[Bug 225633] New: problem with /usr/lib/rpm/find-supplements.ksyms
https://bugzilla.novell.com/show_bug.cgi?id=225633 Summary: problem with /usr/lib/rpm/find-supplements.ksyms Product: openSUSE 10.2 Version: RC 5 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: mls@novell.com ReportedBy: suse-tux@gmx.de QAContact: qa@suse.de CC: mrueckert@novell.com It seems that there's a problem with the find-supplements.ksyms script when you're building an rpm with rpmbuild: .. Finding Provides: /usr/lib/rpm/find-provides cyrus-imapd-kolab-testing Finding Requires: /usr/lib/rpm/find-requires cyrus-imapd-kolab-testing sed: can't read /usr/src/packages/SOURCES/cyrus-imapd-kolab-testing.spec: No such file or directory .. The first problem is that the "$RPM_SOURCE_DIR" is hardcoded which isn't a good idea IMHO (RPM_SOURCE_DIR=/usr/src/packages/SOURCES). Normally you didn't build as root so you use a different %_topdir (because a normal user has no write-access to /usr/src/packages/*). The second problem is that you have a different structure when you're building with rpmbuild: %_topdir/SPECS <= for specfiles %_topdir/SOURCES <= for sources .. It's not a good idea to look for the specfile in the sourcedir. So it only works correct in combination with "lbuild" or "build" because these tools put everything into the sourcedir (iirc). -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225633 ------- Comment #1 from suse-tux@gmx.de 2006-12-02 20:20 MST ------- I forgot to mention the rpm-version. Sorry! rpm-4.4.2-75 It's a fresh factory installation from yesterday. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225633 mls@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|mls@novell.com |agruen@novell.com -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225633 agruen@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|agruen@novell.com |mls@novell.com ------- Comment #2 from agruen@novell.com 2006-12-22 03:29 MST ------- Hmm, you are right. It would be better to use %_specdir instead, or write the arguments to %supplements_kernel_module into a file, and read from that file in find-supplements.ksyms. The only problem with this is that I don't know of a way to access rpm macros from find-supplements.ksyms, and the environment doesn't include anything I could guess the context from, either. Michael, do you have any ideas? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225633 agruen@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andreas.hanke@gmx-topmail.de ------- Comment #3 from agruen@novell.com 2006-12-22 03:36 MST ------- *** Bug 225622 has been marked as a duplicate of this bug. *** -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225633 ------- Comment #4 from suse-tux@gmx.de 2006-12-22 05:19 MST ------- (In reply to comment #2)
The only problem with this is that I don't know of a way to access rpm macros from find-supplements.ksyms, and the environment doesn't include anything I could guess the context from, either.
Hmmm - normally we could tell the build scripts (lbuild, y2pmbuild...) to set their own _specdir macro: For lbuild the following would be sufficient: - just add "%_specdir %{_sourcedir}" to the "/usr/lib/build/configs/sl_VERSION_.conf" Now replace "RPM_SOURCE_DIR=/usr/src/packages/SOURCES" with "RPM_SOURCE_DIR="$(rpm --eval "%{_specdir}")" in the "/usr/lib/rpm/find-supplements.ksyms". The find-supplements.ksyms script uses the correct %{_specdir} now. I think this would solve our problem - or am i wrong? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225633 ------- Comment #5 from richard.bos@xs4all.nl 2006-12-29 06:21 MST ------- Hi, [Marcus: funny to encounter you as reported] ;) I build as follows: rpmbuild --define="_topdir /tmp/cgrep" -bb <pkg> I think that this construction should be taken into acoount as well. It might be difficult to solve, but at least a check like: [-f /usr/src/packages/SOURCES/cyrus-imapd-kolab-testing.spec] should be included to prevent the warning, and do something else. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225633#c6
Marcus Hüwe
https://bugzilla.novell.com/show_bug.cgi?id=225633
Marcus Hüwe
https://bugzilla.novell.com/show_bug.cgi?id=225633
Michael Schröder
participants (1)
-
bugzilla_noreply@novell.com