[Bug 205718] New: rpm missing build dependencies
https://bugzilla.novell.com/show_bug.cgi?id=205718 Summary: rpm missing build dependencies Product: SUSE Linux 10.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jnelson-suse@jamponi.net QAContact: qa@suse.de I tried to build RPM but the build failed because: checking for gzread in -lz... no checking for gzread in -lgz... no configure: error: sorry rpm requires libz.a or libgz.a (from the zlib package) error: Bad exit status from /var/tmp/rpm-tmp.62379 (%build) Also, I get this error which I can't explain: RPM build errors: Unknown option ? in verify_permissions(:-:) Bad exit status from /var/tmp/rpm-tmp.62379 (%build) Adding the build dependency for zlib-devel of course helps. However, that is also insufficient: /configure: line 25919: AM_GNU_GETTEXT: command not found /configure: line 25920: syntax error near unexpected token `0.11.2' /configure: line 25920: `AM_GNU_GETTEXT_VERSION(0.11.2)' error: Bad exit status from /var/tmp/rpm-tmp.99323 (%build) So it's also missing a build dependency on gettext-devel. I see these dependencies in 'usedforbuild' but that's most definately not a standard rpm thing. What should be done here? -- 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=205718 cthiel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |jnelson-suse@jamponi.net ------- Comment #1 from cthiel@novell.com 2006-09-14 08:48 MST ------- How did you try to build rpm? -- 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=205718 ------- Comment #2 from jnelson-suse@jamponi.net 2006-09-14 09:11 MST ------- rpmbuild -ba rpm.spec after rpm -i rpm-4.4.2-43.4.src.rpm as a non-root user in a chroot set up for building packages. rpm's package is just missing BuildRequires: -- 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=205718 jnelson-suse@jamponi.net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|jnelson-suse@jamponi.net | -- 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=205718 ------- Comment #3 from andreas.hanke@gmx-topmail.de 2006-09-14 09:44 MST ------- There is a set of packages which is always implicitly assumed to be present on a build host without being mentioned in BuildRequires. zlib-devel seems to be one of them, as is gettext. The #usedforbuild line does not have any meaning outside autobuild, just ignore it. This doesn't sound like a valid bug report, sorry. The verify_permissions part might be worth investigating, however. -- 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=205718 ------- Comment #4 from jnelson-suse@jamponi.net 2006-09-14 09:51 MST ------- I see in the changelog: * Wed Jan 25 2006 - mls@suse.de - converted neededforbuild to BuildRequires but the only BuildRequires present is, in fact, python-devel. a bunch of the packages in usedforbuild are not installed on many systems (although many of them are, that's true) such as autoconf, automake, etc.. With all due respect, is it Novell/SUSE's policy to produce rpm's that are somewhat non-standard? I don't mean that in an insulting way, I just mean that BuildRequires is standard and #usedforbuild is not, and in fact #usedforbuild isn't recognized by rpm. I understand your statement about packages installed on a build host, but not everybody's machine is a build host and it seems just prudent/correct to list what is needed for building in BuildRequires. -- 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=205718 ------- Comment #5 from andreas.hanke@gmx-topmail.de 2006-09-14 10:01 MST ------- (In reply to comment #4)
With all due respect, is it Novell/SUSE's policy to produce rpm's that are somewhat non-standard?
Sigh... Try to create an automated build system using RPM "standards" only. This will be difficult. Until then, assume that this stuff is handled this way for a (technical) reason. And wrt. to vendors and standards, did you ever try to rebuild a Fedora src.rpm on your system? If you did, you will have noticed that none of them has gcc in BuildRequires even if it is needed. Assuming certain base packages to be installed is usual practice.
I don't mean that in an insulting way, I just mean that BuildRequires is standard and #usedforbuild is not, and in fact #usedforbuild isn't recognized by rpm.
See comment 3: Ignore the #usedforbuild line. Do as if it were not there. It is just a helper for the automated build system and unused outside. The real issue does not have anything to do with "standards", the issue is that we (Jon and me) don't know the set of packages which are assumed to be installed. Maybe this set of packages should become a pattern in 10.2: "Minimum rpm build environment". -- 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=205718 ------- Comment #6 from andreas.hanke@gmx-topmail.de 2006-09-15 11:07 MST ------- Just for your information. The set of packages which are implied for rpm builds are published in potentially two places: 1. Package "y2pmsh", file "/etc/y2pmbuild/dists/10.1", line "defaultpackages". 2. Package "build", file "/usr/lib/build/configs/sl10.1.conf". -- 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=205718 ------- Comment #7 from jnelson-suse@jamponi.net 2006-09-15 11:22 MST ------- That information will be useful to me, thank you. -- 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=205718 aj@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #8 from aj@novell.com 2006-09-20 11:01 MST ------- I consider this fixed. -- 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.
participants (1)
-
bugzilla_noreply@novell.com