Bug 6187 - rpmbuild of 3.2.8 failes on RHEL 4.x
Summary: rpmbuild of 3.2.8 failes on RHEL 4.x
Status: RESOLVED INVALID
Alias: None
Product: Samba 3.2
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.2.8
Hardware: x86 Windows XP
: P3 normal
Target Milestone: ---
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-13 08:44 UTC by Christian Masopust
Modified: 2009-03-13 09:23 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Masopust 2009-03-13 08:44:41 UTC
Found 2 issues with source-rpm (downloaded from SerNet: samba3-3.2.8-38.src.rpm)

- first rpmbuild on my RHEL 4.7 system complains about missing
  keyutils-libs-devel package (which is available only on RHEL 5.x)
  seems that calculation of "rhel_ver" is wrong as the used 
  "%define         rhel_ver        %(grep "release" %{releasefile} | sed "s/[^0-9]//g")"
  gives "47" on my RHEL 4.7 system

- when (dirty) fixing the above problem (simply changing version at check
  of rhel_ver at line 190 to "50") then I'm running into the following 
  problems at creating rpms:

Installing bin/CP437.so as /var/tmp/samba3-3.2.8-build//usr/lib/samba/charset/CP437.so
Installing bin/script.so as /var/tmp/samba3-3.2.8-build//usr/lib/samba/auth/script.so
Linking rfc2307.so to ../idmap/ad.so
ln: `rfc2307.so': File exists
Linking sfu.so to ../idmap/ad.so
ln: `sfu.so': File exists
Linking sfu20.so to ../idmap/ad.so
ln: `sfu20.so': File exists
make: Leaving directory `/export/rpm/BUILD/samba-3.2.8/source'
+ mkdir -p /var/tmp/samba3-3.2.8-build//usr/lib/krb5/plugins/libkrb5
+ cp -p source/bin/winbind_krb5_locator.so /var/tmp/samba3-3.2.8-build//usr/lib/krb5/plugins/libkrb5
cp: cannot stat `source/bin/winbind_krb5_locator.so': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.13339 (%install)


same sourc-rpm builds fine on a RHEL 5.2 system.

christian
Comment 1 Björn Jacke 2009-03-13 09:23:08 UTC
For sure your RPM says
# rpm -qi samba3 |grep Packager
Packager    : SerNet Samba Team <Samba@SerNet.DE>

so, this is not a work of the Samba team and no issue for bugzilla. But we at SerNet will have a look at the issue soon. If you need an urgent fix, please send us a mail to the above mail address.