Bug #2645
closedBuilding rudder-agent fails as it cannot find XML::NamespaceSupport perl library
Description
rpmbuild -ba SPECS/rudder-agent.spec
fails with:
Fetching file:///root/rudder-agent/SOURCES/files/XML-SAX-0.96.tar.gz ... OK Configuring XML-SAX-0.96 ... OK ==> Found dependencies: XML::NamespaceSupport ! Finding XML::NamespaceSupport on cpanmetadb failed. ! Finding XML::NamespaceSupport on search.cpan.org failed. ! Couldn't find module or a distribution XML::NamespaceSupport ! Bailing out the installation for XML-SAX-0.96. Retry with --prompt or --force.
XML::NamespaceSupport is not downloaded into SOURCES/files/ so will probably need to be added to rudder-packages/rudder-agent/SOURCES/Makefile and to rudder-packages/rudder-agent/SOURCES/perl-prepare.sh
Updated by Michael Gliwinski over 12 years ago
With current master there are a couple more packages (dependencies of the newly added), here's how I modified perl-prepare.sh:
--- a/rudder-agent/SOURCES/perl-prepare.sh +++ b/rudder-agent/SOURCES/perl-prepare.sh @@ -41,7 +41,7 @@ PERL_PREFIX="/opt/rudder" BUILDDIR="$TMP/build" BASETARBALLSDIR="$PWD/base-tarballs" # MODULES="XML::NamespaceSupport Class::Inspector Digest::MD5 Net::IP File::ShareDir File::Copy::Recursive Net::IP Proc::Daemon Proc::PID::File Diges -MODULES="Digest::MD5 Net::IP XML::SAX XML::Simple UNIVERSAL::require File::Which XML::TreePP" +MODULES="Digest::MD5 Net::IP XML::NamespaceSupport XML::SAX XML::Simple UNIVERSAL::require Probe::Perl IPC::Run3 Test::Script File::Which XML::TreePP FINALDIR=$PWD NO_CLEANUP=0 OLD_PATH=$PATH
Also needs modification to rudder-packages/rudder-agent/SOURCES/Makefile to download the tarballs to SOURCES/files/
Updated by Nicolas PERRON over 12 years ago
Like #2644 I'm not sure about this issue. Matthieu, you worked on it, could you add some more information, please ?
Updated by Matthieu CERDA over 12 years ago
- Status changed from New to Discussion
- Assignee changed from Jonathan CLARKE to Nicolas PERRON
- Priority changed from N/A to 3
Well, actually the dependencies required for the new version of Fusion Inventory agent have been drastically reduced.
Our tests showed that this line is sufficient:
MODULES="Digest::MD5 Net::IP XML::SAX XML::Simple UNIVERSAL::require File::Which XML::TreePP"
This is what is used in rudder-agent.
Updated by Michael Gliwinski over 12 years ago
Matthieu CERDA wrote:
Well, actually the dependencies required for the new version of Fusion Inventory agent have been drastically reduced.
Our tests showed that this line is sufficient:
MODULES="Digest::MD5 Net::IP XML::SAX XML::Simple UNIVERSAL::require File::Which XML::TreePP"
I should probably note that my build server doesn't have internet access. This bug and and #2644 are about dependencies of the packages listed (e.g. XML::NamespaceSupport is a dependency of XML::SAX).
It's quite possible that if the build server had internet access, cpan would happily download them itself. I assumed that "no internet access at build-time" was the use case since you mirror the packages on your server and download them into SOURCES/files/ before the build proper (in SOURCES/Makefile).
Sorry if I caused any confusion.
Updated by Matthieu CERDA over 12 years ago
- Status changed from Discussion to New
- Assignee changed from Nicolas PERRON to Matthieu CERDA
- Target version changed from 2.4.0~beta3 to 2.4.0~beta4
Oh, I understand. Well, I will re-target this for the next release, it is not critical, but should be investigated. Thank you for explaining it further :)
Updated by Jonathan CLARKE over 12 years ago
- Target version changed from 2.4.0~beta4 to 2.4.0~rc1
Updated by Jonathan CLARKE over 12 years ago
- Target version changed from 2.4.0~rc1 to Ideas (not version specific)
In the future, we will rework our packages to not build and use our own Perl installation, but use the system's... So I don't think we should worry about this too much for now.
Updated by Jonathan CLARKE almost 12 years ago
- Project changed from Rudder to 34
- Category deleted (
11)
Updated by Nicolas CHARLES over 10 years ago
I'm pretty sure this bug is not relevant anymore. Could someone with more insight close this one if it is indeed not the case anymore ?
Updated by Jonathan CLARKE about 10 years ago
- Status changed from New to Rejected
This was fixed by #4965. I'm marking this as a duplicate, because the other ticket contains the appropriate commits, but it was actually the original. Thanks for the report Michael!
Updated by Benoît PECCATTE almost 10 years ago
- Project changed from 34 to Rudder
- Category set to Packaging