@@ -710,14 +710,15 @@ my %defconfig = (
710
710
desc => " For developing cosmo platform perl without apperl additions" ,
711
711
base => ' full' ,
712
712
perl_id => ' cosmo' ,
713
- patches => [' ../Perl-Dist-APPerl/5.36-cosmo.patch' ]
713
+ patches => [' ../Perl-Dist-APPerl/share/ 5.36-cosmo.patch' ]
714
714
},
715
715
perl_cosmo3_dev => {
716
716
desc => " For developing cosmo platform perl without apperl additions" ,
717
717
base => ' full' ,
718
718
perl_id => ' v5.36.3' ,
719
719
perl_url => undef ,
720
- patches => [' ../Perl-Dist-APPerl/5.36-cosmo3.patch' ]
720
+ patches => [' ../Perl-Dist-APPerl/share/5.36-cosmo3.patch' ],
721
+ install_modules => [' File-ShareDir-1.118.tar.gz' ]
721
722
},
722
723
perl_cosmo_dev_on_vista => {
723
724
desc => " For developing cosmo platform perl without apperl additions on vista" ,
@@ -1132,7 +1133,9 @@ sub Build {
1132
1133
my $perllib = " $TEMPDIR$proxyConfig {installprivlib}" ;
1133
1134
my $perlarchlib = " $TEMPDIR$proxyConfig {installarchlib}" ;
1134
1135
my $mmopt = sub {
1135
- my @mmopt = (" PERL_LIB=$perllib " , " PERL_ARCHLIB=$perlarchlib " , " MAP_TARGET=perl.com.dbg" ,
1136
+ my @mmopt = (" PERL_LIB=$perllib " , " PERL_ARCHLIB=$perlarchlib " ,
1137
+ # "MAP_TARGET=perl.com.dbg",
1138
+ " MAP_TARGET=perl.com" ,
1136
1139
" INSTALLDIRS=perl" ,
1137
1140
" INSTALLARCHLIB=$perlarchlib " ,
1138
1141
" INSTALLPRIVLIB=$perllib " ,
@@ -1198,8 +1201,9 @@ sub Build {
1198
1201
# install into the src tree
1199
1202
_command_or_die(' make' , ' install' );
1200
1203
# build a new perl binary, convert to APE, and repack zip
1201
- _command_or_die(' make' , ' perl.com.dbg' );
1202
- _command_or_die(dirname($proxyConfig {cc })." /x86_64-linux-musl-objcopy" , ' -S' , ' -O' , ' binary' , ' perl.com.dbg' , ' perl.com' );
1204
+ # _command_or_die('make', 'perl.com.dbg');
1205
+ # _command_or_die(dirname($proxyConfig{cc})."/x86_64-linux-musl-objcopy", '-S', '-O', 'binary', 'perl.com.dbg', 'perl.com');
1206
+ _command_or_die(' make' , ' perl.com' );
1203
1207
$PERL_APE = abs_path(' ./perl.com' );
1204
1208
}
1205
1209
else {
@@ -1503,14 +1507,23 @@ sub _load_apperl_config {
1503
1507
defined ($thispath ) or die (__FILE__ .' issues?' );
1504
1508
push @{$itemconfig {zip_extra_files }{" __perllib__/Perl/Dist" }}, $thispath ;
1505
1509
my $apperlm = $0 ;
1510
+ my $patchdir ;
1506
1511
if (basename($0 ) ne ' apperlm' ) {
1507
1512
$apperlm = dirname($thispath )." /../../../script/apperlm" ;
1508
1513
}
1514
+ $patchdir = dirname($thispath )." /../../../share" ;
1509
1515
$apperlm = abs_path($apperlm );
1510
1516
defined ($apperlm ) or die " error getting path to apperlm" ;
1511
1517
my @additionalfiles = ($apperlm );
1512
1518
-e $_ or die (" $_ $! " ) foreach @additionalfiles ;
1513
1519
push @{$itemconfig {zip_extra_files }{bin }}, @additionalfiles ;
1520
+ $patchdir = abs_path($patchdir );
1521
+ defined ($patchdir ) or die " error getting path to patchdir" ;
1522
+ opendir (my $dh , $patchdir ) or die " error opening patch dir" ;
1523
+ while (my $file = readdir $dh ) {
1524
+ next if (($file eq ' .' ) || ($file eq ' ..' ));
1525
+ push @{$itemconfig {zip_extra_files }{" __perllib__/auto/share/dist/Perl-Dist-APPerl" }}, " $patchdir /$file " ;
1526
+ }
1514
1527
}
1515
1528
1516
1529
# verify apperl config sanity
0 commit comments