- Timestamp:
- Apr 1, 2020, 2:28:06 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r2491 r2502 2090 2090 $made .= " ".pb_get_content($f); 2091 2091 } 2092 pb_rm_rf($tmpd); 2092 2093 confess "Aborting, one or more of the children failed." if ((not $all_ok) && ($Global::pb_stop_on_error)); 2093 pb_rm_rf($tmpd);2094 2094 } 2095 2095 … … 4138 4138 4139 4139 EOF 4140 my $itype = pb_distro_get($pbos,"pbinstalltype");4140 my ($itype) = pb_conf_get("pbinstalltype"); 4141 4141 # Install from sandbox mean a file base install 4142 4142 $itype = "file" if (defined $sbx); 4143 4143 $itype = $installtype if (defined $installtype); 4144 pb_log(2,"DEBUG: Found installtype: $itype\n"); 4144 4145 if ($itype =~ /^file/) { 4145 #my ($addrepo) = pb_conf_read("$ENV{'PBDESTDIR'}/pbrc.yml","addbuildrepo"); 4146 #my $pbrepo = pb_distro_get_param($pbos,$addrepo); 4147 my $pbrepo = pb_distro_get_in_conf_if($pbos,"$ENV{'PBDESTDIR'}/pbrc.yml","addbuildrepo"); 4146 my $pbrepo = pb_distro_get_if($pbos,"addbuildrepo"); 4147 #my $pbrepo = pb_distro_get_in_conf_if($pbos,"$ENV{'PBDESTDIR'}/pbrc.yml","addbuildrepo"); 4148 4148 print SCRIPT << 'EOF'; 4149 4149 … … 4190 4190 my $verbopt = "mayfail"; 4191 4191 $verbopt = "mayfailverbose" if ($pbdebug ge 1); 4192 foreach my $m (split(/,/,$osperldep)) { 4193 # Skip empty deps 4194 next if ($m =~ /^\s*$/); 4195 my $dir = $m; 4196 $dir =~ s/-.*//; 4197 pb_system("echo \"rm -rf $m* ; wget http://search.cpan.org/CPAN/modules/by-module/$dir/$m-$osperlver->{$m}.tar.gz ; gzip -cd $m-$osperlver->{$m}.tar.gz | tar xf - ; cd $m* ; if [ -f Build.PL ]; then perl Build.PL; ./Build ; ./Build install ; else perl Makefile.PL; make ; make install ; fi; cd .. ; rm -rf $m*\" | bash -e $bashopt" ,"Installing perl module $m-$osperlver->{$m}",$verbopt); 4192 if (defined $osperldep) { 4193 foreach my $m (split(/,/,$osperldep)) { 4194 # Skip empty deps 4195 next if ($m =~ /^\s*$/); 4196 my $dir = $m; 4197 $dir =~ s/-.*//; 4198 pb_system("echo \"rm -rf $m* ; wget http://search.cpan.org/CPAN/modules/by-module/$dir/$m-$osperlver->{$m}.tar.gz ; gzip -cd $m-$osperlver->{$m}.tar.gz | tar xf - ; cd $m* ; if [ -f Build.PL ]; then perl Build.PL; ./Build ; ./Build install ; else perl Makefile.PL; make ; make install ; fi; cd .. ; rm -rf $m*\" | bash -e $bashopt" ,"Installing perl module $m-$osperlver->{$m}",$verbopt); 4199 } 4198 4200 } 4199 4201 EOF … … 4220 4222 pb_system("pb --version",undef,"verbose"); 4221 4223 EOF 4222 if ($vtype eq "ve") {4224 if ($vtype eq "ve") { 4223 4225 if ($vetype ne "docker") { 4224 4226 print SCRIPT << 'EOF'; … … 4239 4241 } 4240 4242 chmod 0755,$nf; 4243 4241 4244 EOF 4242 4245 } 4246 4247 # Use a fake pb_version_init version here 4248 print SCRIPT << "EOF"; 4249 sub pb_version_init { 4250 return("$projectbuilderver","$projectbuilderrev","$projectbuilderconfver"); 4251 } 4252 EOF 4243 4253 4244 4254 # Adds pb_distro_get_context and all functions needed from ProjectBuilder::Distribution, Conf and Base … … 4253 4263 next if (/^use Exporter/); 4254 4264 next if (/^use ProjectBuilder::/); 4265 next if (/^1;$/); 4255 4266 # Remove lines with our except for the strerr var in YAML 4256 4267 next if ((/^our /) && ($_ !~ /errstr/)); … … 4263 4274 } 4264 4275 } 4265 # Use a fake pb_version_init version here4266 4276 print SCRIPT << "EOF"; 4267 sub pb_version_init {4268 4269 return("$projectbuilderver","$projectbuilderrev","$projectbuilderconfver");4270 }4271 4277 1; 4272 4278 EOF … … 4453 4459 # pb -p pb -m distro-ver-arch setupve 4454 4460 pb_log(2,"Using savproj: $savproj\n"); 4455 if ($savproj eq"pb") {4461 if ($savproj ne "pb") { 4456 4462 pb_cms2build("SandBox") if ($action =~ /sbx2/); 4457 pb_setup2v("ve","SandBox");4458 } else {4459 4463 # Here we install in the CTN pb from upstream packages to have a stable version 4460 4464 pb_setup2v("ve",undef,"pkg"); 4465 } else { 4466 pb_setup2v("ve","SandBox"); 4461 4467 } 4462 4468 }
Note:
See TracChangeset
for help on using the changeset viewer.