Project

General

Profile

Actions

Bug #2645

closed

Building rudder-agent fails as it cannot find XML::NamespaceSupport perl library

Added by Michael Gliwinski over 11 years ago. Updated about 9 years ago.

Status:
Rejected
Priority:
3
Assignee:
-
Category:
Packaging
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

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


Related issues 1 (0 open1 closed)

Is duplicate of Rudder - Bug #4965: rudder-agent build rely too much on CPAN availabilityReleasedMatthieu CERDA2014-06-09Actions
Actions #1

Updated by Michael Gliwinski over 11 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/

Actions #2

Updated by Jonathan CLARKE over 11 years ago

  • Target version set to 2.4.0~beta3
Actions #3

Updated by Nicolas PERRON over 11 years ago

Like #2644 I'm not sure about this issue. Matthieu, you worked on it, could you add some more information, please ?

Actions #4

Updated by Matthieu CERDA over 11 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.

Actions #5

Updated by Michael Gliwinski over 11 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.

Actions #6

Updated by Matthieu CERDA over 11 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 :)

Actions #7

Updated by Jonathan CLARKE over 11 years ago

  • Target version changed from 2.4.0~beta4 to 2.4.0~rc1
Actions #8

Updated by Jonathan CLARKE over 11 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.

Actions #9

Updated by Jonathan CLARKE over 11 years ago

  • Assignee deleted (Matthieu CERDA)
Actions #10

Updated by Jonathan CLARKE about 11 years ago

  • Project changed from Rudder to 34
  • Category deleted (11)
Actions #11

Updated by Nicolas CHARLES almost 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 ?

Actions #12

Updated by Jonathan CLARKE over 9 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!

Actions #13

Updated by Benoît PECCATTE about 9 years ago

  • Project changed from 34 to Rudder
  • Category set to Packaging
Actions

Also available in: Atom PDF