develooper Front page | perl.perl5.porters | Postings from June 2013

Re: How does one smoke dist/* (was: Storable refactoring, was Re: [perl #118139] Storable in DESTROY blocks)

Thread Previous | Thread Next
From:
Salvador Fandino
Date:
June 10, 2013 09:02
Subject:
Re: How does one smoke dist/* (was: Storable refactoring, was Re: [perl #118139] Storable in DESTROY blocks)
Message ID:
1370854914.87854.YahooMailNeo@web163102.mail.bf1.yahoo.com




----- Original Message -----
> From: Peter Rabbitson <rabbit-p5p@rabbit.us>
> To: Salvador Fandino <sfandino@yahoo.com>
> Cc: "perl5-porters@perl.org" <perl5-porters@perl.org>
> Sent: Monday, June 10, 2013 10:47 AM
> Subject: Re: How does one smoke dist/* (was: Storable refactoring, was Re:
 [perl #118139] Storable in DESTROY blocks)
> 
> On Mon, Jun 10, 2013 at 01:43:38AM -0700, Salvador Fandino wrote:
>>  > 
>>  > Weird... I had no notable problems configuring/compiling/bootstraping 
>>  > both 5.6.1 and 5.6.2.
>> 
>>  Witch OS/distribution are you using? 
> 
> Various debians (stable/oldstable/sid/whatever)
> 
>> 
>>  > I hit another roadblock however - I am not sure how to properly build 
> a 
>>  > dual-life dist from the perl tree. This is what I get on a more recent 
> 
>>  > perl:
>> 
>>  I got the latest Storable version available from CPAN and used it as the 
> base replacing Storable.pm and Storable.xs with the ones from core.
>> 
>>  I suppose the standalone version should also be under version control 
> somewhere, but didn't bother to investigate that.
>> 
>>  BTW, in order to compile my version of Storable with old perl versions you 
> also need the ptr_table.h file that is available from 
> https://github.com/salva/p5-Storable
> 
> 
> Hmmm... Do you think you can put together a command log (shell history) 
> demosntrating how you are testing your changes against *any* other perl? 
> I want to make sure I am testing what you are doing, otherwise it will 
> be a lot of wasted time going back and forth...

Clone the repository:

  $ git clone git://github.com/salva/p5-Storable.git

and then compile and test it in the usual way (ignore the warnings about missing files).

  $ cd p5-Storable
  $ perl Makefile.PL
  $ make test

There is also a script ('configure_and_test.sh') that can be used for testing it with perlbrew:

  $ perlbrew exec ./configure_and_test.sh



A sample session follows:


salva@topo:~/t$ git clone git://github.com/salva/p5-Storable.git
Cloning into 'p5-Storable'...
remote: Counting objects: 99, done.
remote: Compressing objects: 100% (89/89), done.
remote: Total 99 (delta 22), reused 84 (delta 7)
Receiving objects: 100% (99/99), 220.86 KiB | 216 KiB/s, done.
Resolving deltas: 100% (22/22), done.
salva@topo:~/t$ cd p5-Storable/
salva@topo:~/t/p5-Storable$ perl Makefile.PL 
Checking if your kit is complete...
Warning: the following files are missing in your kit:
    Storable.bs
    Storable.c
    Storable.o
    t/compat/Test/Builder.pm
    t/compat/Test/More.pm
    t/compat/Test/Simple.pm
Please inform the author.
Writing Makefile for Storable
Writing MYMETA.yml and MYMETA.json
salva@topo:~/t/p5-Storable$ make test
cp Storable.pm blib/lib/Storable.pm
/usr/bin/perl /usr/local/share/perl/5.14.2/ExtUtils/xsubpp  -typemap 
/usr/share/perl/5.14/ExtUtils/typemap  Storable.xs > Storable.xsc 
&& mv Storable.xsc Storable.c
cc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector 
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"2.42\" -DXS_VERSION=\"2.42\"
 -fPIC "-I/usr/lib/perl/5.14/CORE"   Storable.c
Running Mkbootstrap for Storable ()
chmod 644 Storable.bs
rm -f blib/arch/auto/Storable/Storable.so
cc  -shared -L/usr/local/lib -fstack-protector Storable.o  -o blib/arch/auto/Storable/Storable.so     \
             \
      
chmod 755 blib/arch/auto/Storable/Storable.so
cp Storable.bs blib/arch/auto/Storable/Storable.bs
chmod 644 blib/arch/auto/Storable/Storable.bs
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/attach_errors.t ..... ok     
t/attach_singleton.t .. ok     
t/blessed.t ........... ok     
t/canonical.t ......... ok   
t/circular_hook.t ..... ok   
t/code.t .............. ok     
t/compat01.t .......... skipped: Test only works for 32 bit little-ending machines
t/compat06.t .......... ok   
t/croak.t ............. ok   
t/dclone.t ............ ok     
t/downgrade.t ......... ok       
t/file_magic.t ........ ok     
t/forgive.t ........... ok   
t/freeze.t ............ ok     
t/integer.t ........... ok       
t/interwork56.t ....... skipped: Your IVs are no larger than your longs
t/just_plain_nasty.t .. ok     
t/lock.t .............. ok   
t/malice.t ............ ok       
t/overload.t .......... ok     
t/recurse.t ........... ok     
t/restrict.t .......... ok       
t/retrieve.t .......... ok     
t/robust.t ............ ok   
t/sig_die.t ........... ok   
t/store.t ............. ok     
t/threads.t ........... ok   
t/tied.t .............. ok     
t/tied_hook.t ......... ok     
t/tied_items.t ........ ok   
t/utf8.t .............. ok   
t/utf8hash.t .......... ok       
t/weak.t .............. ok     
All tests successful.
Files=33, Tests=2582,  6 wallclock secs ( 1.12 usr  0.09 sys +  3.39 cusr  0.46 csys =  5.06 CPU)
Result: PASS
salva@topo:~/t/p5-Storable$

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About