Re: [Samba] RHEL 5 compilation of Samba 3.5.2, termcap library problem, use '--no-as-needed'
On 2010-04-14 at 18:48 -0400 Nico Kadel-Garcia sent off: Can you publish the actual SRPM built for RHEL 5, or explain how you were able to compile this package for RHEL 5? that SRPM that Volker mentioned is the correct SRPM. There is no different SRPM. The fact that you see a different distribution tag there is because the spec file does not know how the src.rpm that it was extracted from was named and the distribution tag is generated at built time. For that reason, if you take a look at any of the binary RPMs on ftp.sernet.de you'll see on each distibution package set that it was built from it's own distribution specific spec file. It might be that compilation of the srpm is not as trivialized as it might be. If you have any suggestions or fixes availabe to make it work on your flavour or patchlevel of RHEL5 you're welcome to send us them so that we can incorporate them and make compilation from the srpm also for other people even more convenient. Cheers Björn -- SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen phone: +49-551-37-0, fax: +49-551-37-9 AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen pgpky42QGXrB4.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] RHEL 5 compilation of Samba 3.5.2, termcap library problem, use '--no-as-needed'
On Thu, Apr 15, 2010 at 5:51 AM, Björn Jacke b...@sernet.de wrote: On 2010-04-14 at 18:48 -0400 Nico Kadel-Garcia sent off: Can you publish the actual SRPM built for RHEL 5, or explain how you were able to compile this package for RHEL 5? that SRPM that Volker mentioned is the correct SRPM. There is no different SRPM. The fact that you see a different distribution tag there is because the spec file does not know how the src.rpm that it was extracted from was named and the distribution tag is generated at built time. For that reason, if you take a look at any of the binary RPMs on ftp.sernet.de you'll see on each distibution package set that it was built from it's own distribution specific spec file. It might be that compilation of the srpm is not as trivialized as it might be. If you have any suggestions or fixes availabe to make it work on your flavour or patchlevel of RHEL5 you're welcome to send us them so that we can incorporate them and make compilation from the srpm also for other people even more convenient. Cheers Björn It's cool. Where I'm working these days, I have to be really careful about software provenance. I remain confused that the RPM's you publish all have something like this in their 'rpm -qi' information. Notice that the 'Source RPM' they lise is not the suse91 SRPM, it's an 'el5' SRPM. I assume this is because you're doing your builds for RHEL with a tool like 'mock', that first rebuilds the SRPM you are working from as a new SRPM precisely to get tags and PGP signatures right, then builds the RPM's from that. $ rpm -qip ldb-tools-3.5.2-43.el5.x86_64.rpm warning: ldb-tools-3.5.2-43.el5.x86_64.rpm: Header V4 DSA signature: NOKEY, key ID f4428b1a Name: ldb-toolsRelocations: (not relocatable) Version : 3.5.2 Vendor: Service Network GmbH, Goettingen Release : 43.el5Build Date: Tue 06 Apr 2010 07:37:55 AM EDT Install Date: (not installed) Build Host: sam Group : Productivity/Networking/Samba Source RPM: samba3-3.5.2-43.el5.src.rpm Size: 11378307 License: GPL v3 or later Signature : DSA/SHA1, Tue 06 Apr 2010 09:38:12 AM EDT, Key ID d9921b1cf4428b1a Packager: SerNet Samba Team sa...@sernet.de URL : http://www.samba.org Summary : SerNet Samba ldb tools Description : This packages contains the tools to manage ldb databases -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] RHEL 5 compilation of Samba 3.5.2, termcap library problem, use '--no-as-needed'
On Thu, Apr 15, 2010 at 1:20 AM, Volker Lendecke volker.lende...@sernet.de wrote: On Wed, Apr 14, 2010 at 06:48:09PM -0400, Nico Kadel-Garcia wrote: Can you publish the actual SRPM built for RHEL 5, or explain how you were able to compile this package for RHEL 5? All I can say at this moment is that according to our internal procedures, the source RPM I referred you to is the one we are building from. I will investigate if something went wrong in posting this to the ftp server. We will certainly do everything necessary to ship the source code for the binaries you can download from our website to comply with the GPL. Can you please post the specific error message you are getting? It might be that our BuildRequires: line in the specfile is not correct or something else in our build environment is different than your host. Thanks, Volker Thanks. I responded to Bjorn about the provenance of your SRPM. Here are my error messages: This occurs on RHEL 5.4 and CentOS 5.4, x86_64 architecture, in a normal home directory build and under mock. $ rpmbuild --rebuild samba3-3.5.2-43.suse91.src.rpm Installing samba3-3.5.2-43.suse91.src.rpm warning: InstallSourcePackage: Header V4 DSA signature: NOKEY, key ID f4428b1a error: Package already exists: %package debuginfo Looking more deeply, I see your fascinating logic around 'this_is_redhat'., which seems to be failing. I've no idea why it's failing, but I've previously found group statements to be a bit subtle and unreliable unless you're very careful to set 'LANG' to something predictable. In particular, in RHEL 5 with the default en_US.UTF8 setup, grep is case insensitive and should therefore be avoided unless you set 'LANG=POSIX' or something reliable, first. I'd like to suggest some cleaner logic for RedHat detection, as included in this patch: $ diff -u samba-3.5.spec.default samba-3.5.spec --- samba-3.5.spec.default 2010-04-06 06:14:28.0 -0400 +++ samba-3.5.spec 2010-04-15 07:10:57.0 -0400 @@ -7,7 +7,7 @@ Url: http://www.samba.org Vendor:Service Network GmbH, Goettingen %definereleasefile %(ls /etc/SuSE-release /etc/UnitedLinux-release /etc/sles-release /etc/redhat-release 2/dev/null | head -n1) -%definethis_is_redhat %(echo %{releasefile} | grep -qi red echo 1 || echo 0) +%definethis_is_redhat %([ -e /etc/redhat-release ] echo 1 || echo 0) Distribution: %(head -n1 %{releasefile} || echo some SUSE-flavour ... ) %if %(echo %{distribution} | grep -q UnitedLinux echo 1 || echo 0 ) %definesuse_ver81 This patch allows compilation. I'm running a complete build right now. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] RHEL 5 compilation of Samba 3.5.2, termcap library problem, use '--no-as-needed'
On Sun, Apr 11, 2010 at 4:42 AM, Nico Kadel-Garcia nka...@gmail.com wrote: On Sun, Apr 11, 2010 at 2:41 AM, Volker Lendecke volker.lende...@sernet.de wrote: http://ftp.sernet.de/pub/samba/3.5/src/rpm/samba3-3.5.2-43.suse91.src.rpm Odd name to build on CentOS, but we build all RPMs from a single source RPM and pick one to upload. Volker Volker, this SRPM does *not* compile on clean RHEL 5.4 x86_64, neither from my command line nor in a mock configuration. It seems to rely on interpreting various config files to decide whether it is RHEL, and then to decide whether to build debuginfo as a separate component, and it fails on the resulting duplicate debuginfo compilation. Given that you haven't published the actual SRPM used referred to by your RPM's, and that I can't compile the SRPM you did publish, I don't feel I can use this package. Moreover, if this isn't actually the SRPM you used, you may be in violation of the GPL. (Not deliberately, of course!!!) Can you publish the actual SRPM built for RHEL 5, or explain how you were able to compile this package for RHEL 5? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] RHEL 5 compilation of Samba 3.5.2, termcap library problem, use '--no-as-needed'
On Wed, Apr 14, 2010 at 06:48:09PM -0400, Nico Kadel-Garcia wrote: On Sun, Apr 11, 2010 at 4:42 AM, Nico Kadel-Garcia nka...@gmail.com wrote: On Sun, Apr 11, 2010 at 2:41 AM, Volker Lendecke volker.lende...@sernet.de wrote: http://ftp.sernet.de/pub/samba/3.5/src/rpm/samba3-3.5.2-43.suse91.src.rpm Odd name to build on CentOS, but we build all RPMs from a single source RPM and pick one to upload. Volker Volker, this SRPM does *not* compile on clean RHEL 5.4 x86_64, neither from my command line nor in a mock configuration. It seems to rely on interpreting various config files to decide whether it is RHEL, and then to decide whether to build debuginfo as a separate component, and it fails on the resulting duplicate debuginfo compilation. Given that you haven't published the actual SRPM used referred to by your RPM's, and that I can't compile the SRPM you did publish, I don't feel I can use this package. Moreover, if this isn't actually the SRPM you used, you may be in violation of the GPL. (Not deliberately, of course!!!) Can you publish the actual SRPM built for RHEL 5, or explain how you were able to compile this package for RHEL 5? All I can say at this moment is that according to our internal procedures, the source RPM I referred you to is the one we are building from. I will investigate if something went wrong in posting this to the ftp server. We will certainly do everything necessary to ship the source code for the binaries you can download from our website to comply with the GPL. Can you please post the specific error message you are getting? It might be that our BuildRequires: line in the specfile is not correct or something else in our build environment is different than your host. Thanks, Volker signature.asc Description: Digital signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] RHEL 5 compilation of Samba 3.5.2, termcap library problem, use '--no-as-needed'
On Sat, Apr 10, 2010 at 08:40:38PM -0400, Nico Kadel-Garcia wrote: On Sat, Apr 10, 2010 at 4:02 PM, Oguz Yilmaz oguzyilmazl...@gmail.com wrote: Check for precompiled rpms if it is appropriate for you. rpms fr Centos 5 isTested in Centos 5.4 http://enterprisesamba.com/index.php?id=65 http://ftp.sernet.de/pub/samba/ http://ftp.sernet.de/pub/samba/3.5/centos/5/i386/ If you need SRPMS check new RHEL 5.5 SRPMS. ftp://ftp.redhat.com/redhat/linux/enterprise/5Server/en/os/SRPMS/ Thank you for the pointer: the official RedHat and CentOs RPM's don't go past 3.3.8. The ftp.sernet.de repository has version 3.5.x, but I do not see SRPM's there, nor do I see the stated SRPM from their 'rpm -qi' information listed anywhere in Google, so I don't see access to the relevant SRPM to review it or compare it to my own work. It's unusual to publish an RPM repository without the SRPM's in a related location: who runs that site? where is it a mirror from? http://ftp.sernet.de/pub/samba/3.5/src/rpm/samba3-3.5.2-43.suse91.src.rpm Odd name to build on CentOS, but we build all RPMs from a single source RPM and pick one to upload. Volker -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] RHEL 5 compilation of Samba 3.5.2, termcap library problem, use '--no-as-needed'
http://www.sernet.de/de/samba/ On Sun, Apr 11, 2010 at 3:40 AM, Nico Kadel-Garcia nka...@gmail.com wrote: On Sat, Apr 10, 2010 at 4:02 PM, Oguz Yilmaz oguzyilmazl...@gmail.com wrote: Check for precompiled rpms if it is appropriate for you. rpms fr Centos 5 isTested in Centos 5.4 http://enterprisesamba.com/index.php?id=65 http://ftp.sernet.de/pub/samba/ http://ftp.sernet.de/pub/samba/3.5/centos/5/i386/ If you need SRPMS check new RHEL 5.5 SRPMS. ftp://ftp.redhat.com/redhat/linux/enterprise/5Server/en/os/SRPMS/ Thank you for the pointer: the official RedHat and CentOs RPM's don't go past 3.3.8. The ftp.sernet.de repository has version 3.5.x, but I do not see SRPM's there, nor do I see the stated SRPM from their 'rpm -qi' information listed anywhere in Google, so I don't see access to the relevant SRPM to review it or compare it to my own work. It's unusual to publish an RPM repository without the SRPM's in a related location: who runs that site? where is it a mirror from? Whose is that site? Do they have the SRPM';s somewhere else? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] RHEL 5 compilation of Samba 3.5.2, termcap library problem, use '--no-as-needed'
On Sun, Apr 11, 2010 at 2:41 AM, Volker Lendecke volker.lende...@sernet.de wrote: On Sat, Apr 10, 2010 at 08:40:38PM -0400, Nico Kadel-Garcia wrote: On Sat, Apr 10, 2010 at 4:02 PM, Oguz Yilmaz oguzyilmazl...@gmail.com wrote: Check for precompiled rpms if it is appropriate for you. rpms fr Centos 5 isTested in Centos 5.4 http://enterprisesamba.com/index.php?id=65 http://ftp.sernet.de/pub/samba/ http://ftp.sernet.de/pub/samba/3.5/centos/5/i386/ If you need SRPMS check new RHEL 5.5 SRPMS. ftp://ftp.redhat.com/redhat/linux/enterprise/5Server/en/os/SRPMS/ Thank you for the pointer: the official RedHat and CentOs RPM's don't go past 3.3.8. The ftp.sernet.de repository has version 3.5.x, but I do not see SRPM's there, nor do I see the stated SRPM from their 'rpm -qi' information listed anywhere in Google, so I don't see access to the relevant SRPM to review it or compare it to my own work. It's unusual to publish an RPM repository without the SRPM's in a related location: who runs that site? where is it a mirror from? http://ftp.sernet.de/pub/samba/3.5/src/rpm/samba3-3.5.2-43.suse91.src.rpm Odd name to build on CentOS, but we build all RPMs from a single source RPM and pick one to upload. Volker Then you're missing a step in your descriptioin. The Samba RPM's claim that they are built from the SRPM samba3-3.5.2-43.el5.src.rpm, not that SuSE listed SRPM. If you're using a tool like mock to build from the SuSE SRPM, it's still not the SRPM actually used to build your binaries: the SRPM used to build the actual binaries is the SRPM that mock, itself, regenerates and can be found with the binaries in /var/lib/mock/epel-5-x86_64/results/ or wherever your build tool may put them. If this isn't what's happening, then something else fascinating is going on, and I'd welcome your explanation. I'm sorry if it seems pesky on my part: I do try to dot my i's and cross my t's about software source code and build procedures, especially for something so system-critical as Samba. And I *have* seen smart aleck software packagers put in '%ifdef and %ifarch statements around source components of their SRPM's, and even write self-modifying .spec files. That programmer and I had to have a talk about that little stunt: he wrote a bit of '%setup scripting that updated the release number and built from the new .spec file, but then he got the termination one and recursed the system into destruction, compiling as root, which I'd previously explained was a really bad idea. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] RHEL 5 compilation of Samba 3.5.2, termcap library problem, use '--no-as-needed'
Check for precompiled rpms if it is appropriate for you. rpms fr Centos 5 isTested in Centos 5.4 http://enterprisesamba.com/index.php?id=65 http://ftp.sernet.de/pub/samba/ http://ftp.sernet.de/pub/samba/3.5/centos/5/i386/ If you need SRPMS check new RHEL 5.5 SRPMS. ftp://ftp.redhat.com/redhat/linux/enterprise/5Server/en/os/SRPMS/ On Sat, Apr 10, 2010 at 2:43 AM, Nico Kadel-Garcia nka...@gmail.com wrote: There have been various reports of the difficulties compiling Samba 3.5.x on RHEL 5 and other older operating systems, due to the failure to correctly load the 'termcap' libraries. The issue is described in various sources as involving the automaticlaly included GCC option: '--as-needed' failes to detect the dependencies and add the termcap library. There are two graceful fixes for this: one is to add a '--with-termcap' test to configure.in. The other is to edit configure.in to change the '--as-needed' flag to '--no-as-needed', at least on platforms that have this issue. I've written a quick and dirty .spec file for RHEL 5, which I'm happy to post. It's built from the Fedora 12 SRPM and .spec file, and also rearranges the 'BuildRequires' to work for RHEL 5 if the RPM settings match that release. Does anyone want it for testing, or is in a better position than me to host RHEL compatible updates for Samba and could use this? CentOS isn't prepared, I think, to jump *that* far ahead of RHEL with this. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] RHEL 5 compilation of Samba 3.5.2, termcap library problem, use '--no-as-needed'
On Sat, Apr 10, 2010 at 4:02 PM, Oguz Yilmaz oguzyilmazl...@gmail.com wrote: Check for precompiled rpms if it is appropriate for you. rpms fr Centos 5 isTested in Centos 5.4 http://enterprisesamba.com/index.php?id=65 http://ftp.sernet.de/pub/samba/ http://ftp.sernet.de/pub/samba/3.5/centos/5/i386/ If you need SRPMS check new RHEL 5.5 SRPMS. ftp://ftp.redhat.com/redhat/linux/enterprise/5Server/en/os/SRPMS/ Thank you for the pointer: the official RedHat and CentOs RPM's don't go past 3.3.8. The ftp.sernet.de repository has version 3.5.x, but I do not see SRPM's there, nor do I see the stated SRPM from their 'rpm -qi' information listed anywhere in Google, so I don't see access to the relevant SRPM to review it or compare it to my own work. It's unusual to publish an RPM repository without the SRPM's in a related location: who runs that site? where is it a mirror from? Whose is that site? Do they have the SRPM';s somewhere else? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] RHEL 5 compilation of Samba 3.5.2, termcap library problem, use '--no-as-needed'
There have been various reports of the difficulties compiling Samba 3.5.x on RHEL 5 and other older operating systems, due to the failure to correctly load the 'termcap' libraries. The issue is described in various sources as involving the automaticlaly included GCC option: '--as-needed' failes to detect the dependencies and add the termcap library. There are two graceful fixes for this: one is to add a '--with-termcap' test to configure.in. The other is to edit configure.in to change the '--as-needed' flag to '--no-as-needed', at least on platforms that have this issue. I've written a quick and dirty .spec file for RHEL 5, which I'm happy to post. It's built from the Fedora 12 SRPM and .spec file, and also rearranges the 'BuildRequires' to work for RHEL 5 if the RPM settings match that release. Does anyone want it for testing, or is in a better position than me to host RHEL compatible updates for Samba and could use this? CentOS isn't prepared, I think, to jump *that* far ahead of RHEL with this. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba