Ignore:
Timestamp:
Oct 7, 2012, 7:54:06 PM (12 years ago)
Author:
Bruno Cornec
Message:
  • As Red Hat 6.2 in chroot doesn't support setarch i386 for a x86_64 environment, we have to fake x86_64 rpm build in /etc/rpmrc
  • Red Hat 6.2 builds with the rpm command, not rpmbuild
  • Red Hat 6.2 sudo doesn't support the env_keep var, remove it
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/Distribution.pm

    r1651 r1652  
    132132# Initialize arch
    133133$pbos->{'arch'} = pb_get_arch() if (not defined $pbos->{'arch'});
     134# Solves a bug on Red Hat 6.x where real arch is not detected when using setarch and a chroot
     135# As it was only i386 forcing it here.
     136$pbos->{'arch'} = "i386" if (($pbos->{'name'} eq "redhat") && ($pbos->{'version'} =~ /^6\./));
    134137
    135138# Dig into the tuple to find the best answer
     
    330333# Get dependencies in the build file if not forced
    331334$deps = pb_distro_getdeps($f,$pbos) if (not defined $deps);
    332 pb_log(1, "ftp_proxy=$ENV{ftp_proxy} http_proxy=$ENV{http_proxy}\n");
     335pb_log(1, "ftp_proxy=$ENV{ftp_proxy}\n") if (defined $ENV{ftp_proxy});
     336pb_log(1, "http_proxy=$ENV{http_proxy}\n")  if (defined $ENV{http_proxy});
    333337pb_log(2,"deps: $deps\n");
    334338return if ((not defined $deps) || ($deps =~ /^\s*$/));
Note: See TracChangeset for help on using the changeset viewer.