| 1 | Voorbeeld van een package dat niet in 1x build met newpackage: |
| 2 | |
| 3 | Het blijkt dat we eerst het perl 'version' pakketje nodig hebben: |
| 4 | {{{ |
| 5 | psy npl # ./newpackage perl Parse_RecDescent http://search.cpan.org/CPAN/authors/id/D/DC/DCONWAY/Parse-RecDescent-1.96.0.tar.gz |
| 6 | Using perl/buildmods.SlackBuild as slackbuild.. |
| 7 | --2009-02-21 13:32:10-- http://search.cpan.org/CPAN/authors/id/D/DC/DCONWAY/Parse-RecDescent-1.96.0.tar.gz |
| 8 | Resolving search.cpan.org... 84.45.68.23 |
| 9 | Connecting to search.cpan.org|84.45.68.23|:80... connected. |
| 10 | HTTP request sent, awaiting response... 302 Found |
| 11 | Location: http://mirror.hostfuss.com/CPAN/authors/id/D/DC/DCONWAY/Parse-RecDescent-1.96.0.tar.gz [following] |
| 12 | --2009-02-21 13:32:10-- http://mirror.hostfuss.com/CPAN/authors/id/D/DC/DCONWAY/Parse-RecDescent-1.96.0.tar.gz |
| 13 | Resolving mirror.hostfuss.com... 88.85.76.7 |
| 14 | Connecting to mirror.hostfuss.com|88.85.76.7|:80... connected. |
| 15 | HTTP request sent, awaiting response... 200 OK |
| 16 | Length: 152818 (149K) [application/x-tar] |
| 17 | Saving to: `Parse-RecDescent-1.96.0.tar.gz' |
| 18 | |
| 19 | 100%[====================================================================================>] 152,818 695K/s in 0.2s |
| 20 | |
| 21 | 2009-02-21 13:32:10 (695 KB/s) - `Parse-RecDescent-1.96.0.tar.gz' saved [152818/152818] |
| 22 | |
| 23 | /home/psy/syn3/npl |
| 24 | Rebuild required: ./Parse_RecDescent.SlackBuild has changed! |
| 25 | REBUILDING /home/psy/syn3/npl/perl/Parse_RecDescent/Parse_RecDescent.SlackBuild: |
| 26 | Buildroot up-to-date check: (nopkgcheck to skip)......................................................................................................DONE |
| 27 | Buildroot /tmp/buildroot0._home_psy_syn3_builder repareren/syncen...OK |
| 28 | Build-dependency perl installeren: /home/psy/syn3/npl/.tmp/D/perl-5.8.7-i486-2056.tgz |
| 29 | Nieuwe packages ldconfiggen... |
| 30 | etc-update doen |
| 31 | stderr is not a tty - where are you? |
| 32 | /home/psy/syn3/npl/perl/Parse_RecDescent word gekopieerd naar werkdirectory /tmp/buildroot0._home_psy_syn3_builder/tmp/build |
| 33 | *** Chroot naar /tmp/buildroot0._home_psy_syn3_builder en starten van Parse_RecDescent.SlackBuild in /tmp/build: |
| 34 | /dev/pts/33: No such file or directory |
| 35 | 1 /tmp/build > pwd |
| 36 | 8 /tmp/build > CWD=/tmp/build |
| 37 | 1 /tmp/build > pwd |
| 38 | 9 /tmp/build > PKGROOT=/tmp/build/pkgtmp |
| 39 | 1 /tmp/build > echo Parse-RecDescent-1.96.0.tar.gz |
| 40 | 1 /tmp/build > sed s/.tar.gz// |
| 41 | 12 /tmp/build > TARDIR=Parse-RecDescent-1.96.0 |
| 42 | 1 /tmp/build > echo Parse-RecDescent-1.96.0 |
| 43 | 1 /tmp/build > sed 's/.*-//' |
| 44 | 13 /tmp/build > VER=1.96.0 |
| 45 | 1 /tmp/build > echo Parse-RecDescent-1.96.0 |
| 46 | 1 /tmp/build > sed 's/-[^-]*$//' |
| 47 | 1 /tmp/build > sed s/-/_/ |
| 48 | 14 /tmp/build > NAME=perlmod_Parse_RecDescent |
| 49 | 16 /tmp/build > rm -r /tmp/build/pkgtmp |
| 50 | 17 /tmp/build > mkdir -p /tmp/build/pkgtmp |
| 51 | 20 /tmp/build > cd /tmp/build |
| 52 | 21 /tmp/build > export PERL_INSTALL_ROOT=/tmp/build/pkgtmp |
| 53 | 21 /tmp/build > PERL_INSTALL_ROOT=/tmp/build/pkgtmp |
| 54 | 22 /tmp/build > tar -xzf Parse-RecDescent-1.96.0.tar.gz |
| 55 | 23 /tmp/build > cd Parse-RecDescent-1.96.0 |
| 56 | 24 /tmp/build/Parse-RecDescent-1.96.0 > perl Makefile.PL |
| 57 | Checking if your kit is complete... |
| 58 | Looks good |
| 59 | Warning: prerequisite version 0 not found. |
| 60 | Could not eval ' |
| 61 | package ExtUtils::MakeMaker::_version; |
| 62 | no strict; |
| 63 | |
| 64 | local $VERSION; |
| 65 | $VERSION=undef; do { |
| 66 | use version; $VERSION = qv('1.96.0'); |
| 67 | }; $VERSION |
| 68 | ' in lib/Parse/RecDescent.pm: Can't locate version.pm in @INC (@INC contains: /usr/lib/perl5/5.8.7/i486-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i486-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl .) at (eval 14) line 7, <FH> line 1722. |
| 69 | BEGIN failed--compilation aborted at (eval 14) line 7, <FH> line 1722. |
| 70 | WARNING: Setting VERSION via file 'lib/Parse/RecDescent.pm' failed |
| 71 | at /usr/lib/perl5/5.8.7/ExtUtils/MakeMaker.pm line 486 |
| 72 | Writing Makefile for Parse::RecDescent |
| 73 | 25 /tmp/build/Parse-RecDescent-1.96.0 > make |
| 74 | cp lib/Parse/RecDescent.pm blib/lib/Parse/RecDescent.pm |
| 75 | Manifying blib/man3/Parse::RecDescent.3 |
| 76 | 26 /tmp/build/Parse-RecDescent-1.96.0 > make test |
| 77 | PERL_DL_NONLAZY=1 /usr/bin/perl5.8.7 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t |
| 78 | t/00.load....NOK 1 |
| 79 | # Failed test (t/00.load.t at line 4) |
| 80 | # Tried to use 'Parse::RecDescent'. |
| 81 | # Error: Can't locate version.pm in @INC (@INC contains: /tmp/build/Parse-RecDescent-1.96.0/blib/lib /tmp/build/Parse-RecDescent-1.96.0/blib/arch /usr/lib/perl5/5.8.7/i486-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i486-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl .) at /tmp/build/Parse-RecDescent-1.96.0/blib/lib/Parse/RecDescent.pm line 1722. |
| 82 | # BEGIN failed--compilation aborted at t/00.load.t line 4. |
| 83 | # Compilation failed in require at (eval 3) line 2. |
| 84 | # BEGIN failed--compilation aborted at (eval 3) line 2. |
| 85 | Use of uninitialized value in concatenation (.) or string at t/00.load.t line 7. |
| 86 | # Testing Parse::RecDescent |
| 87 | # Looks like you failed 1 test of 1. |
| 88 | t/00.load....dubious |
| 89 | Test returned status 1 (wstat 256, 0x100) |
| 90 | DIED. FAILED test 1 |
| 91 | Failed 1/1 tests, 0.00% okay |
| 92 | t/basics.....Can't locate version.pm in @INC (@INC contains: /tmp/build/Parse-RecDescent-1.96.0/blib/lib /tmp/build/Parse-RecDescent-1.96.0/blib/arch /usr/lib/perl5/5.8.7/i486-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i486-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl .) at /tmp/build/Parse-RecDescent-1.96.0/blib/lib/Parse/RecDescent.pm line 1722. |
| 93 | BEGIN failed--compilation aborted at /tmp/build/Parse-RecDescent-1.96.0/blib/lib/Parse/RecDescent.pm line 1722. |
| 94 | Compilation failed in require at t/basics.t line 11. |
| 95 | BEGIN failed--compilation aborted at t/basics.t line 11. |
| 96 | t/basics.....dubious |
| 97 | Test returned status 2 (wstat 512, 0x200) |
| 98 | DIED. FAILED tests 1-19 |
| 99 | Failed 19/19 tests, 0.00% okay |
| 100 | t/pod........skipped |
| 101 | all skipped: Test::Pod 1.14 required for testing POD |
| 102 | Failed Test Stat Wstat Total Fail Failed List of Failed |
| 103 | ------------------------------------------------------------------------------- |
| 104 | t/00.load.t 1 256 1 1 100.00% 1 |
| 105 | t/basics.t 2 512 19 37 194.74% 1-19 |
| 106 | 1 test skipped. |
| 107 | Failed 2/3 test scripts, 33.33% okay. 20/20 subtests failed, 0.00% okay. |
| 108 | make: *** [test_dynamic] Error 255 |
| 109 | 26 /tmp/build/Parse-RecDescent-1.96.0 > exit 1 |
| 110 | *** Er ging iets mis tijdens het bakken in de buildroot! |
| 111 | Om verder te testen/onderzoeken, tik: |
| 112 | chroot /tmp/buildroot0._home_psy_syn3_builder |
| 113 | Error while rebuilding /home/psy/syn3/npl/perl/Parse_RecDescent/Parse_RecDescent.SlackBuild! |
| 114 | }}} |
| 115 | |
| 116 | Nadat we het version pakketje gebouwd hebben dat nodig is, voegen we deze toe met een #DEP:perlmod_version in de Slackbuild: |
| 117 | {{{ |
| 118 | psy npl # mcedit perl/Parse_RecDescent/Parse_RecDescent.SlackBuild |
| 119 | |
| 120 | psy npl # ./rebuildcheck perl/Parse_RecDescent/Parse_RecDescent.SlackBuild |
| 121 | Rebuild required: ./Parse_RecDescent.SlackBuild has changed! |
| 122 | REBUILDING /home/psy/syn3/npl/perl/Parse_RecDescent/Parse_RecDescent.SlackBuild: |
| 123 | Buildroot up-to-date check: (nopkgcheck to skip)......................................................................................................DONE |
| 124 | Buildroot /tmp/buildroot0._home_psy_syn3_builder repareren/syncen...OK |
| 125 | Build-dependency perl installeren: /home/psy/syn3/npl/.tmp/D/perl-5.8.7-i486-2056.tgz |
| 126 | Build-dependency perlmod_version installeren: /home/psy/syn3/npl/.tmp/D/perlmod_version-0.76-i586-new.tgz |
| 127 | Nieuwe packages ldconfiggen... |
| 128 | etc-update doen |
| 129 | stderr is not a tty - where are you? |
| 130 | /home/psy/syn3/npl/perl/Parse_RecDescent word gekopieerd naar werkdirectory /tmp/buildroot0._home_psy_syn3_builder/tmp/build |
| 131 | *** Chroot naar /tmp/buildroot0._home_psy_syn3_builder en starten van Parse_RecDescent.SlackBuild in /tmp/build: |
| 132 | /dev/pts/33: No such file or directory |
| 133 | 1 /tmp/build > pwd |
| 134 | 9 /tmp/build > CWD=/tmp/build |
| 135 | 1 /tmp/build > pwd |
| 136 | 10 /tmp/build > PKGROOT=/tmp/build/pkgtmp |
| 137 | 1 /tmp/build > echo Parse-RecDescent-1.96.0.tar.gz |
| 138 | 1 /tmp/build > sed s/.tar.gz// |
| 139 | 13 /tmp/build > TARDIR=Parse-RecDescent-1.96.0 |
| 140 | 1 /tmp/build > echo Parse-RecDescent-1.96.0 |
| 141 | 1 /tmp/build > sed 's/.*-//' |
| 142 | 14 /tmp/build > VER=1.96.0 |
| 143 | 1 /tmp/build > echo Parse-RecDescent-1.96.0 |
| 144 | 1 /tmp/build > sed 's/-[^-]*$//' |
| 145 | 1 /tmp/build > sed s/-/_/ |
| 146 | 15 /tmp/build > NAME=perlmod_Parse_RecDescent |
| 147 | 17 /tmp/build > rm -r /tmp/build/pkgtmp |
| 148 | 18 /tmp/build > mkdir -p /tmp/build/pkgtmp |
| 149 | 21 /tmp/build > cd /tmp/build |
| 150 | 22 /tmp/build > export PERL_INSTALL_ROOT=/tmp/build/pkgtmp |
| 151 | 22 /tmp/build > PERL_INSTALL_ROOT=/tmp/build/pkgtmp |
| 152 | 23 /tmp/build > tar -xzf Parse-RecDescent-1.96.0.tar.gz |
| 153 | 24 /tmp/build > cd Parse-RecDescent-1.96.0 |
| 154 | 25 /tmp/build/Parse-RecDescent-1.96.0 > perl Makefile.PL |
| 155 | Checking if your kit is complete... |
| 156 | Looks good |
| 157 | Writing Makefile for Parse::RecDescent |
| 158 | 26 /tmp/build/Parse-RecDescent-1.96.0 > make |
| 159 | cp lib/Parse/RecDescent.pm blib/lib/Parse/RecDescent.pm |
| 160 | Manifying blib/man3/Parse::RecDescent.3 |
| 161 | 27 /tmp/build/Parse-RecDescent-1.96.0 > make test |
| 162 | PERL_DL_NONLAZY=1 /usr/bin/perl5.8.7 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t |
| 163 | t/00.load....ok 1/1# Testing Parse::RecDescent 1.96.0 |
| 164 | t/00.load....ok |
| 165 | t/basics.....Name "main::D" used only once: possible typo at t/basics.t line 15. |
| 166 | t/basics.....ok |
| 167 | t/pod........skipped |
| 168 | all skipped: Test::Pod 1.14 required for testing POD |
| 169 | All tests successful, 1 test skipped. |
| 170 | Files=3, Tests=20, 1 wallclock secs ( 0.22 cusr + 0.03 csys = 0.25 CPU) |
| 171 | 28 /tmp/build/Parse-RecDescent-1.96.0 > make install |
| 172 | Manifying blib/man3/Parse::RecDescent.3 |
| 173 | Installing /tmp/build/pkgtmp/usr/lib/perl5/site_perl/5.8.7/Parse/RecDescent.pm |
| 174 | Installing /tmp/build/pkgtmp/usr/man/man3/Parse::RecDescent.3 |
| 175 | Writing /usr/lib/perl5/site_perl/5.8.7/i486-linux/auto/Parse/RecDescent/.packlist |
| 176 | Appending installation info to /usr/lib/perl5/5.8.7/i486-linux/perllocal.pod |
| 177 | 30 /tmp/build/Parse-RecDescent-1.96.0 > cd /tmp/build/pkgtmp |
| 178 | 31 /tmp/build/pkgtmp > makepkg -l y -c n /tmp/build/perlmod_Parse_RecDescent.pkg |
| 179 | tar-1.13: perlmod_Parse_RecDescent.pkg.tar is the archive; not dumped |
| 180 | 32 /tmp/build/pkgtmp > echo 1.96.0 |
| 181 | 33 /tmp/build/pkgtmp > arch |
| 182 | *** Build gelukt. |
| 183 | * Packages terugmoven naar originele directory.. |
| 184 | /tmp/buildroot0._home_psy_syn3_builder/tmp/build/perlmod_Parse_RecDescent.arch ... |
| 185 | /tmp/buildroot0._home_psy_syn3_builder/tmp/build/perlmod_Parse_RecDescent.version ... |
| 186 | /tmp/buildroot0._home_psy_syn3_builder/tmp/build/perlmod_Parse_RecDescent.pkg ... |
| 187 | |
| 188 | * Klaar ja! |
| 189 | Updating md5 for /home/psy/syn3/npl/perl/Parse_RecDescent/Parse_RecDescent.SlackBuild... |
| 190 | Updating dependency information for /home/psy/syn3/npl/perl/Parse_RecDescent/Parse_RecDescent.SlackBuild... |
| 191 | All rebuilds completed. |
| 192 | |
| 193 | |
| 194 | }}} |