wiki:npl/perl/version

Dit pakketje is een goedvoorbeeld van newpackage gebruik voor een perl module:

psy npl # ./newpackage perl version http://search.cpan.org/CPAN/authors/id/J/JP/JPEACOCK/version-0.76.tar.gz
Using perl/buildmods.SlackBuild as slackbuild..
--2009-02-21 13:33:23--  http://search.cpan.org/CPAN/authors/id/J/JP/JPEACOCK/version-0.76.tar.gz
Resolving search.cpan.org... 84.45.68.23
Connecting to search.cpan.org|84.45.68.23|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://archive.cs.uu.nl/mirror/CPAN/authors/id/J/JP/JPEACOCK/version-0.76.tar.gz [following]
--2009-02-21 13:33:23--  http://archive.cs.uu.nl/mirror/CPAN/authors/id/J/JP/JPEACOCK/version-0.76.tar.gz
Resolving archive.cs.uu.nl... 131.211.84.186
Connecting to archive.cs.uu.nl|131.211.84.186|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 54896 (54K) [application/x-gzip]
Saving to: `version-0.76.tar.gz'

100%[====================================================================================>] 54,896      --.-K/s   in 0.09s

2009-02-21 13:33:23 (585 KB/s) - `version-0.76.tar.gz' saved [54896/54896]

/home/psy/syn3/npl
Rebuild required: ./version.SlackBuild has changed!
REBUILDING /home/psy/syn3/npl/perl/version/version.SlackBuild:
Buildroot up-to-date check: (nopkgcheck to skip)......................................................................................................DONE
Buildroot /tmp/buildroot0._home_psy_syn3_builder repareren/syncen...OK
Build-dependency perl installeren: /home/psy/syn3/npl/.tmp/D/perl-5.8.7-i486-2056.tgz
Nieuwe packages ldconfiggen...
etc-update doen
stderr is not a tty - where are you?
/home/psy/syn3/npl/perl/version word gekopieerd naar werkdirectory /tmp/buildroot0._home_psy_syn3_builder/tmp/build
*** Chroot naar /tmp/buildroot0._home_psy_syn3_builder en starten van version.SlackBuild in /tmp/build:
/dev/pts/33: No such file or directory
1 /tmp/build > pwd
8 /tmp/build > CWD=/tmp/build
1 /tmp/build > pwd
9 /tmp/build > PKGROOT=/tmp/build/pkgtmp
1 /tmp/build > echo version-0.76.tar.gz
1 /tmp/build > sed s/.tar.gz//
12 /tmp/build > TARDIR=version-0.76
1 /tmp/build > echo version-0.76
1 /tmp/build > sed 's/.*-//'
13 /tmp/build > VER=0.76
1 /tmp/build > echo version-0.76
1 /tmp/build > sed 's/-[^-]*$//'
1 /tmp/build > sed s/-/_/
14 /tmp/build > NAME=perlmod_version
16 /tmp/build > rm -r /tmp/build/pkgtmp
17 /tmp/build > mkdir -p /tmp/build/pkgtmp
20 /tmp/build > cd /tmp/build
21 /tmp/build > export PERL_INSTALL_ROOT=/tmp/build/pkgtmp
21 /tmp/build > PERL_INSTALL_ROOT=/tmp/build/pkgtmp
22 /tmp/build > tar -xzf version-0.76.tar.gz
23 /tmp/build > cd version-0.76
24 /tmp/build/version-0.76 > perl Makefile.PL
Testing if you have a C compiler
Checking if your kit is complete...
Looks good
Writing Makefile for version::vxs
Writing Makefile for version
25 /tmp/build/version-0.76 > make
cp lib/version.pm blib/lib/version.pm
cp lib/version.pod blib/lib/version.pod
make[1]: Entering directory `/tmp/build/version-0.76/vutil'
cp lib/version/vxs.pm ../blib/lib/version/vxs.pm
cc -c   -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i486 -mcpu=i686   -DVERSION=\"0.76\" -DXS_VERSION=\"0.76\" -fPIC "-I/usr/lib/perl5/5.8.7/i486-linux/CORE"   vutil.c
/usr/bin/perl5.8.7 /usr/lib/perl5/5.8.7/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.8.7/ExtUtils/typemap -typemap ../lib/version/typemap  vxs.xs > vxs.xsc && mv vxs.xsc vxs.c
cc -c   -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i486 -mcpu=i686   -DVERSION=\"0.76\" -DXS_VERSION=\"0.76\" -fPIC "-I/usr/lib/perl5/5.8.7/i486-linux/CORE"   vxs.c
Running Mkbootstrap for version::vxs ()
chmod 644 vxs.bs
rm -f ../blib/arch/auto/version/vxs/vxs.so
LD_RUN_PATH="" cc  -shared -L/usr/local/lib vutil.o vxs.o  -o ../blib/arch/auto/version/vxs/vxs.so
chmod 755 ../blib/arch/auto/version/vxs/vxs.so
cp vxs.bs ../blib/arch/auto/version/vxs/vxs.bs
chmod 644 ../blib/arch/auto/version/vxs/vxs.bs
make[1]: Leaving directory `/tmp/build/version-0.76/vutil'
Manifying blib/man3/version.3
26 /tmp/build/version-0.76 > make test
make[1]: Entering directory `/tmp/build/version-0.76/vutil'
make[1]: Leaving directory `/tmp/build/version-0.76/vutil'
PERL_DL_NONLAZY=1 /usr/bin/perl5.8.7 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01base.......ok
t/02derived....ok
t/03require....ok
        4/129 skipped: version require'd instead of use'd, cannot test qv
All tests successful, 4 subtests skipped.
Files=3, Tests=396,  0 wallclock secs ( 0.19 cusr +  0.03 csys =  0.22 CPU)
make[1]: Entering directory `/tmp/build/version-0.76/vutil'
No tests defined for version::vxs extension.
make[1]: Leaving directory `/tmp/build/version-0.76/vutil'
27 /tmp/build/version-0.76 > make install
make[1]: Entering directory `/tmp/build/version-0.76/vutil'
make[1]: Leaving directory `/tmp/build/version-0.76/vutil'
Installing /tmp/build/pkgtmp/usr/lib/perl5/site_perl/5.8.7/i486-linux/auto/version/vxs/vxs.bs
Installing /tmp/build/pkgtmp/usr/lib/perl5/site_perl/5.8.7/i486-linux/auto/version/vxs/vxs.so
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /tmp/build/pkgtmp/usr/lib/perl5/site_perl/5.8.7/i486-linux/version.pod
Installing /tmp/build/pkgtmp/usr/lib/perl5/site_perl/5.8.7/i486-linux/version.pm
Installing /tmp/build/pkgtmp/usr/lib/perl5/site_perl/5.8.7/i486-linux/version/vxs.pm
Installing /tmp/build/pkgtmp/usr/man/man3/version.3
Writing /usr/lib/perl5/site_perl/5.8.7/i486-linux/auto/version/.packlist
Appending installation info to /usr/lib/perl5/5.8.7/i486-linux/perllocal.pod
29 /tmp/build/version-0.76 > cd /tmp/build/pkgtmp
30 /tmp/build/pkgtmp > makepkg -l y -c n /tmp/build/perlmod_version.pkg
tar-1.13: perlmod_version.pkg.tar is the archive; not dumped
31 /tmp/build/pkgtmp > echo 0.76
32 /tmp/build/pkgtmp > arch
*** Build gelukt.
* Packages terugmoven naar originele directory..
/tmp/buildroot0._home_psy_syn3_builder/tmp/build/perlmod_version.arch ...
/tmp/buildroot0._home_psy_syn3_builder/tmp/build/perlmod_version.version ...
/tmp/buildroot0._home_psy_syn3_builder/tmp/build/perlmod_version.pkg ...

* Klaar ja!
Updating md5 for /home/psy/syn3/npl/perl/version/version.SlackBuild...
Updating dependency information for /home/psy/syn3/npl/perl/version/version.SlackBuild...
All rebuilds completed.
A         perl/version
A         perl/version/version.SlackBuild
A  (bin)  perl/version/version-0.76.tar.gz
A         perl/version/perlmod_version.arch
A         perl/version/perlmod_version.version
A  (bin)  perl/version/perlmod_version.pkg
A         perl/version/version.md5
Automatic Syn-3 package-creation completed succesfully.
Last modified 15 years ago Last modified on 05/25/09 18:06:13