[Bug 436470] New: [RPM] Fixed path in rpm script.
https://bugzilla.novell.com/show_bug.cgi?id=436470 Summary: [RPM] Fixed path in rpm script. Product: openSUSE 11.1 Version: Beta 2 Platform: All OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: eich@novell.com QAContact: qa@suse.de Found By: Development Created an attachment (id=246272) --> (https://bugzilla.novell.com/attachment.cgi?id=246272) Proposed fix. The rpm script find-supplements.ksyms contains an fixed path to the SOURCES directory. This doesn't work when this path is modified in .rpmmacros. Furthermore spec files are not found in the SOURCES directory when one installs a source rpm. Thus it needs to be checked if the spec file is really present in the SOURCES directory or in SPECS. Checking for the presence in SOURCES first preserve as much backwards compatibility and reduce the risk of surprises in autobuild. Patch attached. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=436470
Michal Seben
https://bugzilla.novell.com/show_bug.cgi?id=436470
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=436470#c1
Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=436470
User agruen@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=436470#c2
Andreas Gruenbacher
https://bugzilla.novell.com/show_bug.cgi?id=436470
User eich@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=436470#c8
--- Comment #8 from Egbert Eich
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
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.
https://bugzilla.novell.com/show_bug.cgi?id=436470
User agruen@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=436470#c12
--- Comment #12 from Andreas Gruenbacher
https://bugzilla.novell.com/show_bug.cgi?id=436470
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=436470#c13
Michael Schröder
participants (1)
-
bugzilla_noreply@novell.com