Changeset 1603 in ProjectBuilder for devel/pb/bin/pb


Ignore:
Timestamp:
May 27, 2012, 1:49:49 AM (12 years ago)
Author:
Bruno Cornec
Message:
  • pbtest now uses debian-6.0 has the correct distro name and points to mandriva 2011.0
  • pbtest now first umounts potential remaining /proc FS left from previous run and has a build dep fo deb on gcc
  • pb: removes a useless chown in it which was always failing
  • Fix errors in mageia deps
  • Fix typo in Base.pm
  • rpmbootstrap needs aaa_base for VE seyup with zypper, in order to add passwd file e.g.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1601 r1603  
    23322332    pb_system("cd $ENV{'PBBUILDDIR'} ; $cpcmd $src $cptarget 2> /dev/null","$cmt delivery in $cptarget");
    23332333
     2334    my $chowncommand = pb_check_req("chown",0);
    23342335    # For VE we need to change the owner manually
    23352336    if ($cmt =~ /^VE/) {
    23362337        pb_system("$shcmdroot sed -i '/requiretty/d' /etc/sudoers","Removing potential requiretty in sudoers");
    2337         pb_system("$shcmd \"sudo chown -R $mac $tdir\"","Adapt owner in $tdir to $mac");
     2338        pb_system("$shcmd \"sudo $chowncommand -R $mac $tdir\"","Adapt owner in $tdir to $mac");
    23382339    }
    23392340
     
    23592360        # Get back info on pkg produced, compute their name and get them from the VM/RM
    23602361        pb_system("$cpcmd $cp2target/pbgen-$ENV{'PBPROJVER'}-$ENV{'PBPROJTAG'}-$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'} $ENV{'PBBUILDDIR'}/pbgen-$ENV{'PBPROJVER'}-$ENV{'PBPROJTAG'}.$$ 2> /dev/null","Get package names in $cp2target");
    2361         # For VE we need to change the owner manually
    2362         if ($cmt eq "VEbuild") {
    2363             my $command = pb_check_req("chown",0);
    2364             pb_system("sudo $command $UID $ENV{'PBBUILDDIR'}/pbgen-$ENV{'PBPROJVER'}-$ENV{'PBPROJTAG'}.$$","Adapt owner in $tdir to $UID");
    2365         }
    23662362        if (not -f "$ENV{'PBBUILDDIR'}/pbgen-$ENV{'PBPROJVER'}-$ENV{'PBPROJTAG'}.$$") {
    2367             pb_log(0,"Problem with VM/RM $v on $ENV{'PBBUILDDIR'}/pbgen-$ENV{'PBPROJVER'}-$ENV{'PBPROJTAG'}.$$");
     2363            pb_log(0,"ERROR with VM/RM $v on getting $ENV{'PBBUILDDIR'}/pbgen-$ENV{'PBPROJVER'}-$ENV{'PBPROJTAG'}.$$");
    23682364        } else {
    23692365            open(KEEP,"$ENV{'PBBUILDDIR'}/pbgen-$ENV{'PBPROJVER'}-$ENV{'PBPROJTAG'}.$$") || die "Unable to read $ENV{'PBBUILDDIR'}/pbgen-$ENV{'PBPROJVER'}-$ENV{'PBPROJTAG'}.$$";
     
    33233319        # Sync date
    33243320        # do it after sudoers is setup
    3325         print SCRIPT "pb_system(\"$ntpline\");\n";
     3321        print SCRIPT "pb_system(\"$ntpline\",\"Updating time with $ntpline\",\"mayfail\");\n";
    33263322    }
    33273323    # We may need a proxy configuration. Get it from the local env
     
    34293425# For VE we need to umount some FS at the end
    34303426
    3431 pb_system("umount /proc","Unmounting /proc,"mayfail");
     3427pb_system("umount /proc","Unmounting /proc","mayfail");
    34323428
    34333429# Create a basic network file if not already there
Note: See TracChangeset for help on using the changeset viewer.