https://bugzilla.novell.com/show_bug.cgi?id=436470 User mmarek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=436470#c9 --- Comment #9 from Michal Marek <mmarek@novell.com> 2008-10-20 08:43:21 MDT --- (In reply to comment #8 from Egbert Eich)
I've tried this: %__find_supplements \ RPM_SOURCE_DIR=\"%{u2p:%{_sourcedir}}\"\ RPM_SPEC_DIR=\"%{u2p:%{_specdir}}\"\ export RPM_SOURCE_DIR RPM_SPEC_DIR \ /usr/lib/rpm/find-supplements %name
This is what I get: Finding Requires: /usr/lib/rpm/find-requires xorg-x11-driver-video error: Couldn't exec RPM_SOURCE_DIR=/home/eich/rpmbuild/SOURCES: No such file or directory
For some reason the content of the %__find_xxx macros is not passed to the shell as other build phases, but just split into words by rpm and execve()d directly :-/. You'd have to make it %__find_supplements sh -c 'RPM_SOURCE_DIR=... /usr/lib/rpm/find-supplements %name' and hope that rpm gets the apostrophes right... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.