Changeset 2015 in ProjectBuilder for devel/pb


Ignore:
Timestamp:
Nov 25, 2015, 6:05:56 PM (8 years ago)
Author:
Bruno Cornec
Message:
  • Fix TDIR chmod by placing the call in build2v when using docker
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r2014 r2015  
    15731573
    15741574    pb_mkdir_p("$ENV{'PBBUILDDIR'}") if (! -d "$ENV{'PBBUILDDIR'}");
    1575     # Need to be traversed by others if using containers
    1576     chmod 0751,"$ENV{'PBBUILDDIR'}";
    15771575    chdir "$ENV{'PBBUILDDIR'}" || die "Unable to chdir to $ENV{'PBBUILDDIR'}";
    15781576    my $made = ""; # pkgs made during build
     
    31483146my $pbstep;
    31493147
     3148$vetype = pb_ve_get_type($vetype);
    31503149if ($action eq "prep") {
    31513150    $pbstep = 2;
    31523151} else {
    31533152    $pbstep = 3;
     3153    # Need to be traversed by others if using containers
     3154    if (($vtype eq "ve") && ($vetype eq "docker")) {
     3155        chmod 0751,"$ENV{'PBBUILDDIR'}";
     3156    }
    31543157}
    31553158
     
    32213224
    32223225    # VE needs a good /proc, tolerate one being potentially left around after a failure
    3223     $vetype = pb_ve_get_type($vetype);
    32243226    if (($vtype eq "ve") && ($vetype ne "docker")) {
    32253227        print SCRIPT "[ -d /proc/1 ] || sudo /bin/mount -t proc /proc /proc\n";
Note: See TracChangeset for help on using the changeset viewer.