[openmamba-devel-it] perl
Silvan Calarco
silvan.calarco a mambasoft.it
Sab 31 Maggio 2008 14:56:23 CEST
Alle venerdì 30 maggio 2008, gil ha scritto:
> un altro problema
> devo aggiornare mysql (l'ho gia messo nel devel the_packagizers)
Anche qui se aggiorni mysql alla versione 5 devi aggiornare tutto ciò che
dipende dalle sue librerie. Non ho aggiornato mysql alla versione 5 perché
potrebbero esserci problemi di compatibilità con i database per la versione 4
ed allora bisogna prevedere un meccanismo di aggiornamento che sia testato
per bene.
Sicuramente esiste la possibilità di aggiornare perl-DBD-mysql mantenendo
mysql 4. L'aggiornamento a mysql 5 è una scelta a se stante, non può essere
una scelta dovuta al fatto che un modulo lo richiede, se il tuo scopo è
aggiornare i moduli perl io lascerei mysql 4 e vedrei l'aggiornamento di
mysql a parte.
ciao,
Silvan
> $ autospec -u perl-DBD-mysql -a5,6
> aggiornamento del pacchetto perl-DBD-mysql alla versione [?]...
> [step 5] -- creazione dei pacchetti rpm e srpm
> * trovato build requirement: `perl-devel' (perl-devel-5.8.8-4mamba.i586)
> * trovato build requirement: `libmysql-devel'
> (libmysql-devel-4.1.22-2mamba.i586)
> esecuzione dei test sullo specfile...
> creazione dei pacchetti rpm e srpm...
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.64010
> + umask 022
> + cd /usr/src/RPM/BUILD
> + cd /usr/src/RPM/BUILD
> + rm -rf DBD-mysql-4.007
> + /bin/gzip -dc /usr/src/RPM/SOURCES/DBD-mysql-4.007.tar.gz
> + tar -xf -
> + STATUS=0
> + '[' 0 -ne 0 ']'
> + cd DBD-mysql-4.007
> + exit 0
> Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.64010
> + umask 022
> + cd /usr/src/RPM/BUILD
> + cd DBD-mysql-4.007
> + perl Makefile.PL
>
>
> PLEASE NOTE:
>
> For 'make test' to run properly, you must ensure that the
> database user 'gil' can connect to your MySQL server
> and has the proper privileges that these tests require such
> as 'drop table', 'create table', 'drop procedure', 'create procedure'
> as well as others.
>
> mysql> grant all privileges on test.* to 'gil'@'localhost' identified by
> 's3kr1t';
>
> You can also optionally set the user to run 'make test' with:
>
> perl Makefile.pl --testuser=username
>
> I will use the following settings for compiling and testing:
>
> cflags (mysql_config) = -I/usr/include/mysql
> -fomit-frame-pointer -pipe -march=athlon
> embedded (mysql_config) =
> libs (mysql_config) = -L/usr/lib -lmysqlclient -lz -lcrypt
> -lnsl -lm -L/usr/lib -lssl -lcrypto
> mysql_config (guessed ) = mysql_config
> nocatchstderr (default ) = 0
> nofoundrows (default ) = 0
> ssl (guessed ) = 1
> testdb (default ) = test
> testhost (default ) =
> testpassword (default ) =
> testsocket (default ) =
> Use of uninitialized value in printf at Makefile.PL line 171, <PIPE>
> line 93.
> testuser ( ) = gil
>
> To change these settings, see 'perl Makefile.PL --help' and
> 'perldoc INSTALL'.
>
> Checking if your kit is complete...
> Looks good
> Using DBI 1.50 (for perl 5.008008 on i386-linux-thread-multi) installed
> in /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi/auto/DBI/
> Writing Makefile for DBD::mysql
> + make -j2
> i586-openmamba-linux-gnu-gcc -c
> -I/usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi/auto/DBI/
> -I/usr/include/mysql -fomit-frame-pointer -pipe -march=athlon
> -DDBD_MYSQL_WITH_SSL -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -D_REENTRANT
> -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe
> -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -O2 -fomit-frame-pointer -pipe -march=i586
> -mtune=pentiumpro -DVERSION=\"4.007\" -DXS_VERSION=\"4.007\" -fpic
> "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE" dbdimp.c
> cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
> cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
> cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
> cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
> /usr/bin/perl5.8.8 -p -e "s/~DRIVER~/mysql/g"
> /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi/auto/DBI//Driver.x
>st
>
> > mysql.xsi
>
> Running Mkbootstrap for DBD::mysql ()
> chmod 644 mysql.bs
> /usr/bin/perl5.8.8 /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap
> /usr/lib/perl5/5.8.8/ExtUtils/typemap mysql.xs > mysql.xsc && mv
> mysql.xsc mysql.c
> Warning: duplicate function definition 'do' detected in mysql.xs, line 225
> Warning: duplicate function definition 'rows' detected in mysql.xs, line
> 612 cp mysql.bs blib/arch/auto/DBD/mysql/mysql.bs
> chmod 644 blib/arch/auto/DBD/mysql/mysql.bs
> i586-openmamba-linux-gnu-gcc -c
> -I/usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi/auto/DBI/
> -I/usr/include/mysql -fomit-frame-pointer -pipe -march=athlon
> -DDBD_MYSQL_WITH_SSL -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -D_REENTRANT
> -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe
> -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -O2 -fomit-frame-pointer -pipe -march=i586
> -mtune=pentiumpro -DVERSION=\"4.007\" -DXS_VERSION=\"4.007\" -fpic
> "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE" mysql.c
> In file included from
> /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi/auto/DBI/DBIXS.h:3
>1In file included from
> /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi/auto/DBI/DBIXS.h:3
>1, from dbdimp.h:21,
> from dbdimp.c:20:
> /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi/auto/DBI/dbipport.
>h:227:1: warning: "PERL_UNUSED_DECL" redefined
> In file included from
> /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi/auto/DBI/DBIXS.h:1
>9, from dbdimp.h:21,
> from dbdimp.c:20:
> /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/perl.h:163:1: warning:
> this is the location of the previous definition
> ,
> from dbdimp.h:21,
> from mysql.xs:14:
> /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi/auto/DBI/dbipport.
>h:227:1: warning: "PERL_UNUSED_DECL" redefined
> In file included from
> /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi/auto/DBI/DBIXS.h:1
>9, from dbdimp.h:21,
> from mysql.xs:14:
> /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/perl.h:163:1: warning:
> this is the location of the previous definition
> rm -f blib/arch/auto/DBD/mysql/mysql.so
> LD_RUN_PATH="/usr/lib" /usr/bin/perl5.8.8 myld
> i586-openmamba-linux-gnu-gcc -shared -L/usr/local/lib dbdimp.o mysql.o
> -o blib/arch/auto/DBD/mysql/mysql.so \
> -L/usr/lib -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib
> -lssl -lcrypto \
>
> chmod 755 blib/arch/auto/DBD/mysql/mysql.so
> Manifying blib/man3/DBD::mysql.3pm
> Manifying blib/man3/DBD::mysql::INSTALL.3pm
> Manifying blib/man3/Bundle::DBD::mysql.3pm
> + make test
> PERL_DL_NONLAZY=1 /usr/bin/perl5.8.8 "-MExtUtils::Command::MM" "-e"
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> t/00base....................ok
> t/10connect.................ok
> t/20createdrop..............ok
> t/25lockunlock..............ok
> t/29warnings................ok
> t/30insertfetch.............ok
> t/31insertid................ok
> t/32insert_error............ok
> t/35limit...................ok
> t/35prepare.................ok
> t/40bindparam...............ok
> t/40bindparam2..............ok
> t/40blobs...................ok
> t/40catalog.................ok
> 35/77 skipped: various reasons
> t/40keyinfo.................ok
> t/40listfields..............ok
> t/40nulls...................ok
> t/40numrows.................ok
> t/40server_prepare..........ok 1/10
> # Failed test in t/40server_prepare.t at line 42.
> # Structures begin differing at:
> # $got->[0] = Does not exist
> # $expected->[0] = HASH(0x82351f8)
> t/40server_prepare..........NOK 8# Looks like you failed 1 test of 10.
> t/40server_prepare..........dubious
> Test returned status 1 (wstat 256, 0x100)
> DIED. FAILED test 8
> Failed 1/10 tests, 90.00% okay
> t/40server_prepare_error....ok
> t/40types...................ok
> 19/20 skipped: New Data types not supported by server
> t/41bindparam...............ok
> t/41blobs_prepare...........ok
> t/42bindparam...............ok
> t/50chopblanks..............ok 1/29
> # Failed test '$name should not have blanks chopped'
> # in t/50chopblanks.t at line 51.
> # got: ''
> # expected: ' '
> t/50chopblanks..............NOK 15
> # Failed test '$name should not have blanks chopped'
> # in t/50chopblanks.t at line 51.
> # got: ' a b c'
> # expected: ' a b c '
> t/50chopblanks..............NOK 22# Looks like you failed 2 tests of 29.
> t/50chopblanks..............dubious
> Test returned status 2 (wstat 512, 0x200)
> DIED. FAILED tests 15, 22
> Failed 2/29 tests, 93.10% okay
> t/50commit..................ok
> t/55utf8....................skipped
> all skipped: SKIP TEST: You must have MySQL version 5.0 and
> greater for this test to run
> t/60leaks...................skipped
> all skipped: Skip $ENV{SLOW_TESTS} is not set
> t/65types...................ok
> t/70takeimp.................ok 1/21Can't use dbi_imp_data of wrong size
> (127 not 124) at
> /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi/DBI.pm line 1182.
> SV = RV(0x80a5068) at 0x828d428
> REFCNT = 1
> FLAGS = (ROK)
> RV = 0x828d3f8
> (in cleanup) dbih_getcom handle DBI::db=HASH(0x828d3f8) is not a
> DBI handle (has no magic).
> SV = RV(0x80a5068) at 0x828d47c
> REFCNT = 1
> FLAGS = (ROK,READONLY)
> RV = 0x828d3f8
> # Looks like you planned 21 tests but only ran 12.
> # Looks like your test died just after 12.
> t/70takeimp.................dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 13-21
> Failed 9/21 tests, 57.14% okay
> t/71impdata.................ok 1/10Can't use dbi_imp_data of wrong size
> (127 not 124) at
> /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi/DBI.pm line 1182.
> SV = RV(0x8091dc4) at 0x8285224
> REFCNT = 1
> FLAGS = (ROK)
> RV = 0x82851f4
> (in cleanup) dbih_getcom handle DBI::db=HASH(0x82851f4) is not a
> DBI handle (has no magic).
> SV = RV(0x8091dc4) at 0x8285278
> REFCNT = 1
> FLAGS = (ROK,READONLY)
> RV = 0x82851f4
> # Looks like you planned 10 tests but only ran 6.
> # Looks like your test died just after 6.
> t/71impdata.................dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 7-10
> Failed 4/10 tests, 60.00% okay
> t/75supported_sql...........ok
> t/76multi_statement.........ok
> t/80procs...................skipped
> all skipped: SKIP TEST: You must have MySQL version 5.0 and
> greater for this test to run
> Failed Test Stat Wstat Total Fail Failed List of Failed
> ---------------------------------------------------------------------------
>---- t/40server_prepare.t 1 256 10 1 10.00% 8
> t/50chopblanks.t 2 512 29 2 6.90% 15 22
> t/70takeimp.t 255 65280 21 18 85.71% 13-21
> t/71impdata.t 255 65280 10 8 80.00% 7-10
> 3 tests and 54 subtests skipped.
> Failed 4/34 test scripts, 88.24% okay. 16/643 subtests failed, 97.51% okay.
> make: *** [test_dynamic] Error 255
> error: Bad exit status from /var/tmp/rpm-tmp.64010 (%build)
--
mambaSoft di Calarco Silvan
Web: http://www.mambasoft.it
mambaSoft Store @ http://shop.mambasoft.it
openmamba GNU/Linux development @ http://www.openmamba.org
Maggiori informazioni sulla lista
openmamba-devel-it