Hello Marcus, sorry, no luck: make[1]: Leaving directory '/home/fred/rpmbuild/BUILD/tgif-QPL-4.2.5/po/ru' + /usr/lib/rpm/find-lang.sh /home/fred/rpmbuild/BUILDROOT/tgif-4.2.5- lp152.250.45.x86_64 tgif + cd .. + patch -p0 /var/tmp/rpm-tmp.WvFBLq: line 40: %Patch14: No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.WvFBLq (%install) (the code in the spec - file was patch -p0 < %Patch14 as per your recommendation) seems as if the variable "%Patch14" is not accessible from within the %install section? Thanks again, take care Dieter Am Mittwoch, 6. Januar 2021, 17:04:01 CET schrieb Marcus Meissner:
On Wed, Jan 06, 2021 at 04:44:48PM +0100, Dr.-Ing. Dieter Jurzitza wrote:
Dear listmembers, I am maintaining an application where I have to run two subsequent compilation processes to care for different screen resolutions.
Now, here is my question: I have to apply a patch after the completion of th first compilation and after moving the first binary apart. Unfortunately I cannot do that from the very begin.
There is a declaration
Patch14: ABCD.patch
but I cannot do a %patch14 in the %prep section because this would cause this patch to be effective from the start.
Currently I am doing a
patch -p0 < ../../SOURCES/ABCD.patch
after the first build and after having moved the first binary away but within the %install section of the spec file. However I assume this is not the way it should be ... I mean, this works but I hope there is a more elegant way to get this done within the spec file.
Any hints for me?
You can reference the patch using %PATCH14 in the spec file. Otherwise it is okay to call patch itself there. patch -p0 < %PATCH14
Ciao, Marcus
-- ----------------------------------------------------------- Dr.-Ing. Dieter Jurzitza 76131 Karlsruhe