[Shipwright] EXTERNAL: Re: Errors importing GnuPG::Interface

Wenck, Samuel samuel.wenck at lmco.com
Mon Aug 27 10:13:14 EDT 2012


Hi Sunnavy,

The patched CleanINC.pm module with your patched one and I was successful in building of the cpan-Socket module. However, as my RT vessel continued to build, it is now dying on the Server-Starter module. Again, I manually installed that module on my local build host to ensure that I had all of the required dependencies. Here are the build output errors:

building cpan-Server-Starter
build cpan-Server-Starter configure part failed, last output of build.log is:
        *** Module::AutoInstall version 1.03
        *** Checking for Perl dependencies...
        *** Since we're running under CPAN, I'll just let it take care
            of the dependency's installation later.
        [Core Features]
        - Test::TCP       ...missing. (would need 0.11)
        - Getopt::Long    ...loaded. (2.38)
        - List::MoreUtils ...loaded. (0.33)
        - Proc::Wait3     ...loaded. (0.04)
        - Scope::Guard    ...loaded. (0.20)
        *** Module::AutoInstall configuration finished.
        Checking if your kit is complete...
        Looks good
        Writing Makefile for Server::Starter
        Writing MYMETA.yml and MYMETA.json
        Use of uninitialized value in ref-to-glob cast at /opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5/Test/SharedFork/Store.pm line 104.
        Use of uninitialized value in ref-to-glob cast at /opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5/Test/SharedFork/Store.pm line 104.
        flock() on unopened filehandle at /opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5/Test/SharedFork/Store.pm line 104.
        Bad file descriptor at /opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5/Test/SharedFork/Store.pm line 104.
        END failed--call queue aborted.
 at ./bin/shipwright-builder line 605
        main::_install('cpan-Server-Starter', 'GLOB(0x15548f0)') called at ./bin/shipwright-builder line 435
        main::install() called at ./bin/shipwright-builder line 300

Thanks again, Sam

-----Original Message-----
From: shipwright-bounces at lists.bestpractical.com [mailto:shipwright-bounces at lists.bestpractical.com] On Behalf Of sunnavy
Sent: Monday, August 27, 2012 7:57 AM
To: shipwright at lists.bestpractical.com
Subject: Re: [Shipwright] EXTERNAL: Re: Errors importing GnuPG::Interface

Hi Sam

you can get the attach via the following url:

http://lists.bestpractical.com/pipermail/shipwright/attachments/20120825/54bdbae9/attachment.pm

Regards
sunnavy

On 12-08-27 11:40, Wenck, Samuel wrote:
> Hi Sunnavy,
> 
> Our email system removed your attachment. Could you please resend after adding the suffix of .allow to the attachment? Yes, you are correct, I am using the '--include-dual-lifed' option when importing to build using the latest Perl modules. Is that OK?
> 
> Thanks, Sam
> 
> -----Original Message-----
> From: shipwright-bounces at lists.bestpractical.com 
> [mailto:shipwright-bounces at lists.bestpractical.com] On Behalf Of 
> sunnavy
> Sent: Saturday, August 25, 2012 12:26 AM
> To: shipwright at lists.bestpractical.com
> Subject: Re: [Shipwright] EXTERNAL: Re: Errors importing 
> GnuPG::Interface
> 
> Hi Sam
> 
> I reproduced this issue and I think I found a solution, could you replace "inc/lib/Shipwright/Util/CleanINC.pm" in your shipyard with the one attached and try again?
> 
> btw, seems you were building RT, could you tell me which package requires recent version of Socket.pm? or did you use --include-dual-lifed when importing?
> 
> Regards
> sunnavy
> 
> On 12-08-24 18:24, Wenck, Samuel wrote:
> > Hi Sunnavy,
> > 
> > Thanks, I followed your advice and installed the gmp-devel RPM for CentOS and I was able to get the GnuPG::Interface module imported into the Shipwright vessel. However, now when executing the shipwright-builder script for the Shipwright vessel, the builder is failing during the build of the Socket module:
> > 
> > building cpan-ExtUtils-CBuilder
> > building cpan-ExtUtils-ParseXS
> > building cpan-ExtUtils-Manifest
> > building cpan-ExtUtils-Constant
> > building cpan-Socket
> > build cpan-Socket configure part failed, last output of build.log is:
> >         found build for cpan-Socket, will install cpan-Socket using that
> >         build configure part in cpan-Socket with cmd: /usr/bin/perl -I/opt/rt_build/rt4.0.6_vessel/shipwright/yard/inc -MShipwright::Util::CleanINC Makefile.PL LIB=/opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5/ PREFIX=/opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel INSTALLSITEARCH=/opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5 INSTALLARCHLIB=/opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5
> >         running shipwright build command: /usr/bin/perl -I/opt/rt_build/rt4.0.6_vessel/shipwright/yard/inc -MShipwright::Util::CleanINC Makefile.PL LIB=/opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5/ PREFIX=/opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel INSTALLSITEARCH=/opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5 INSTALLARCHLIB=/opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5
> >         Attempt to reload Socket.pm aborted.
> >         Compilation failed in require at /opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5/IPC/Cmd.pm line 46.
> >         BEGIN failed--compilation aborted at /opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5/IPC/Cmd.pm line 46.
> >         Compilation failed in require at /opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5/ExtUtils/CBuilder/Base.pm line 11.
> >         BEGIN failed--compilation aborted at /opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5/ExtUtils/CBuilder/Base.pm line 11.
> >         Compilation failed in require at /opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5/ExtUtils/CBuilder/Platform/Unix.pm line 4.
> >         BEGIN failed--compilation aborted at /opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5/ExtUtils/CBuilder/Platform/Unix.pm line 4.
> >         Compilation failed in require at (eval 10) line 2.
> >         BEGIN failed--compilation aborted at (eval 10) line 2.
> >         Compilation failed in require at Makefile.PL line 18.
> >  at ./bin/shipwright-builder line 605
> >         main::_install('cpan-Socket', 'GLOB(0x1cf2e58)') called at ./bin/shipwright-builder line 435
> >         main::install() called at ./bin/shipwright-builder line 300
> > 
> > 
> > I checked line 18 of the Makefile.PL for shipwright/yard/sources/cpan-Socket/vendor and it is:
> > 
> > 	18     require ExtUtils::CBuilder;
> > 
> > You can see above that the ExtUtils::CBuilder module was already built for this vessel.
> > Am I missing something?
> > 
> > Thanks again, Sam
> > 
> > 
> > 
> > -----Original Message-----
> > From: shipwright-bounces at lists.bestpractical.com
> > [mailto:shipwright-bounces at lists.bestpractical.com] On Behalf Of 
> > sunnavy
> > Sent: Thursday, August 23, 2012 8:47 PM
> > To: shipwright at lists.bestpractical.com
> > Subject: EXTERNAL: Re: [Shipwright] Errors importing 
> > GnuPG::Interface
> > 
> > Hi Wenck
> > 
> > the Math::BigInt issue is just a warning because Shipwright first 
> > searches clean INC(if error happens, it will search the whole INC
> > automatically)
> > 
> > Shipwright will import latest version on CPAN if the module is not in perl core, so you don't need to worry about the warnings.
> > 
> > so your problem is not there. note the following lines:
> > 
> > > running source cpan-Math-BigInt-GMP: 
> > > /root/.shipwright/downloads/cpan/authors/id/P/PJ/PJACKLAM/Math-Big
> > > In
> > > t- GMP-1.37.tar.gz running cmd: /usr/bin/perl 
> > > -MShipwright::Util::CleanINC Makefile.PL
> > > err:
> > > Can't link/include 'gmp.h', 'gmp'
> > > running cmd: /usr/bin/perl Makefile.PL
> > > err:
> > > Can't link/include 'gmp.h', 'gmp'
> > > read_file 'Makefile' - sysopen: No such file or directory at
> > 
> > your machine seems doesn't have package like "libgmp-dev" installed?
> > 
> > Regards
> > sunnavy
> > 
> > On 12-08-23 16:15, Wenck, Samuel wrote:
> > > I am attempting to import the cpan:GnuPG::Interface Perl module into a Shipwright vessel using Shipwright version 2.4.32 running under Centos 6.3 x86. I am having issues ewith one of its dependencies, Math::BigInt, which Shipwright is having problems determining the version locally installed on the build host.
> > > 
> > > Usually, when I encounter these issues, I install the Perl module in question onto the build host which I did successfully:
> > > 
> > > cpan[3]> i GnuPG::Interface
> > > Module id = GnuPG::Interface
> > >     DESCRIPTION  OO interface to GNU Privacy Guard
> > >     CPAN_USERID  FTOBIN (Frank J. Tobin <ftobin at cpan.org>)
> > >     CPAN_VERSION 0.44
> > >     CPAN_FILE    J/JE/JESSE/GnuPG-Interface-0.44.tar.gz
> > >     UPLOAD_DATE  2011-05-03
> > >     DSLIP_STATUS MdpO? (mature,developer,perl,object-oriented,)
> > >     MANPAGE      GnuPG::Interface - Perl interface to GnuPG
> > >     INST_FILE    /usr/local/share/perl5/GnuPG/Interface.pm
> > >     INST_VERSION 0.44
> > > 
> > > 
> > > I also made sure that the dependency, Math::BigInt was installed locally:
> > > 
> > > cpan[4]> i Math::BigInt
> > > Module id = Math::BigInt
> > >     DESCRIPTION  Arbitrary size integer math package
> > >     CPAN_USERID  TELS (Tels <nospam-abuse at bloodgate.com>)
> > >     CPAN_VERSION 1.997
> > >     CPAN_FILE    P/PJ/PJACKLAM/Math-BigInt-1.997.tar.gz
> > >     UPLOAD_DATE  2011-09-04
> > >     DSLIP_STATUS SupOp (standard,comp.lang.perl.*,perl,object-oriented,Standard-Perl)
> > >     MANPAGE      Math::BigInt - Arbitrary size integer/float math package
> > >     INST_FILE    /usr/local/share/perl5/Math/BigInt.pm
> > >     INST_VERSION 1.997
> > > 
> > > 
> > > However, when the Shipwright import command executes, it somehow gets confused about the locally installed BigInt module version:
> > > 
> > > running source cpan-Math-BigInt: 
> > > /root/.shipwright/downloads/cpan/authors/id/P/PJ/PJACKLAM/Math-Big
> > > In
> > > t-
> > > 1.997.tar.gz
> > > skipping Test::More
> > > skipping ExtUtils::MakeMaker
> > > preparing to run source: bignum
> > > running source cpan-bignum: 
> > > /root/.shipwright/downloads/cpan/authors/id/F/FL/FLORA/bignum-0.29
> > > .t ar .gz /tmp/shipwright_source_VZgMmw/cpan-bignum is a 
> > > Module::Install based distribution running cmd: /usr/bin/perl 
> > > -Mversion -MShipwright::Util::CleanINC shipwright_makefile.pl 
> > > running cmd:
> > > /usr/bin/make clean preparing to run source: Math::BigRat running 
> > > source cpan-Math-BigRat:
> > > /root/.shipwright/downloads/cpan/authors/id/P/PJ/PJACKLAM/Math-Big
> > > Ra
> > > t- 0.2602.tar.gz /tmp/shipwright_source_VZgMmw/cpan-Math-BigRat is 
> > > a Module::Install based distribution running cmd: /usr/bin/perl 
> > > -Mversion -MShipwright::Util::CleanINC shipwright_makefile.pl
> > > err:
> > > Warning: prerequisite Math::BigInt 1.991 not found. We have 1.89.
> > > running cmd: /usr/bin/make clean
> > > 
> > > I believe that CentOS might include the older version of the BigInt module in its Perl RPM but I thought that Shipwright would pick up the locally installed newer version first. I checked on the installed version this way:
> > > 
> > > # perl -MMath::BigInt -e 'print "$Math::BigInt::VERSION\n";'
> > > 1.997
> > > 
> > > So the installed Perl sees the newer version but Shipwright does not and does not want to import the newer version as a dependency for the GnuPG::Interface module. I have attached the full output of the import command for reference.
> > > 
> > > I have successfully built the same shipwright vessel under CentOS 5.8 with no issues and I am wondering the cause and a work around or solution.
> > > 
> > > Thanks in advance, Sam
> > > 
> > > 
> > 
> > 
> > > _______________________________________________
> > > Shipwright mailing list
> > > Shipwright at lists.bestpractical.com
> > > http://lists.bestpractical.com/cgi-bin/mailman/listinfo/shipwright
> > 
> > _______________________________________________
> > Shipwright mailing list
> > Shipwright at lists.bestpractical.com
> > http://lists.bestpractical.com/cgi-bin/mailman/listinfo/shipwright
> > _______________________________________________
> > Shipwright mailing list
> > Shipwright at lists.bestpractical.com
> > http://lists.bestpractical.com/cgi-bin/mailman/listinfo/shipwright
> _______________________________________________
> Shipwright mailing list
> Shipwright at lists.bestpractical.com
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/shipwright
_______________________________________________
Shipwright mailing list
Shipwright at lists.bestpractical.com
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/shipwright


More information about the Shipwright mailing list