Changeset 1652 in ProjectBuilder for devel/pb-modules


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
Location:
devel/pb-modules
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/bin/pbdistrocheck

    r1551 r1652  
    3030=head1 SYNOPSIS
    3131
    32 pbdistrocheck [-d][-v][-l [-c][-i][-r][-a]][-s] [distro-ver-arch]
     32pbdistrocheck [-h][-d][-v][-l [-c][-i][-r][-a]][-s] [distro-ver-arch]
    3333
    3434=head1 OPTIONS
    3535
    3636=over 4
     37
     38=item B<-h|--help>
     39
     40Prints this help
    3741
    3842=item B<-v|--verbose>
     
    4246=item B<-a|--all>
    4347
    44 print all parameters
     48Print all parameters
    4549
    4650=item B<-s|--short>
    4751
    48 generate a short format user friendly, comma separated allowing parsing
     52Generate a short format user friendly, comma separated allowing parsing
    4953
    5054=item B<-l|--lsb>
    5155
    52 generate an LSB compliant output
     56Generate an LSB compliant output
    5357
    5458=item B<-d|--description>
    5559
    56 print only description (LSB only)
     60Print only description (LSB only)
    5761
    5862=item B<-r|--release>
    5963
    60 print only release (LSB only)
     64Print only release (LSB only)
    6165
    6266=item B<-c|--codename>
    6367
    64 print only codename (LSB only)
     68Print only codename (LSB only)
    6569
    6670=item B<-i|--id>
    6771
    68 print only distribution identificator (LSB only)
     72Print only distribution identificator (LSB only)
    6973
    7074=item B<-a|--all>
    7175
    72 print all LSB fields
     76Print all LSB fields
    7377
    7478=back
     
    7680=head1 ARGUMENTS
    7781
    78 arguments are optional. If none given, analyzes the underlying operating system
     82Arguments are optional. If none given, analyzes the underlying operating system
    7983If one is given, it should have the format osname-version-architecture, and in that case pbdistrocheck will provide all the information related to that OS needed by pb.
    8084
     
    107111        "verbose|v+" => \$opts{'v'},
    108112        "short|s" => \$opts{'s'},
     113        "help|h" => \$opts{'h'},
    109114        "description|d" => \$opts{'d'},
    110115        "id|i" => \$opts{'i'},
  • devel/pb-modules/etc/pb.conf

    r1651 r1652  
    301301# These deps are needed for rpmbootstrap to install a base distribution
    302302# Originally reuse from rinse conf files
    303 rbsmindep redhat-6.2 = MAKEDEV,SysVinit,authconfig,basesystem,bash,binutils,bzip2,chkconfig,console-tools,cracklib,cracklib-dicts,dev,dev86,diffutils,dhcpcd,e2fsprogs,file,filesystem,fileutils,findutils,gawk,gdbm,glib,glibc,gmp,grep,gzip,info,initscripts,iproute,iputils,kernel,krb5-configs,krb5-libs,ldconfig,ld.so,libc,libelf,libstdc++,libtermcap,logrotate,make,mingetty,mktemp,modutils,mount,newt,ncurses,net-tools,pam,passwd,patch,perl,popt,procps,psmisc,pwdb,python,readline,redhat-release,rpm,rpm-python,sed,setup,shadow-utils,sh-utils,slang,sysklogd,tar,tcsh,termcap,textutils,util-linux,vim-common,vim-minimal,vixie-cron,which,wget,xntp3,zlib
     303# For Rd Hat 6.2 perl is excluded as a manual install from http://www.cpan.org/src/5.0/perl-5.6.2.tar.gz is required
     304rbsmindep redhat-6.2 = MAKEDEV,SysVinit,authconfig,basesystem,bash,binutils,bzip2,chkconfig,console-tools,cracklib,cracklib-dicts,dev,dev86,diffutils,dhcpcd,e2fsprogs,file,filesystem,fileutils,findutils,gawk,gdbm,glib,glibc,gmp,grep,gzip,info,initscripts,iproute,iputils,kernel,krb5-configs,krb5-libs,ldconfig,ld.so,libc,libelf,libstdc++,libtermcap,logrotate,make,mingetty,mktemp,modutils,mount,newt,ncurses,net-tools,pam,passwd,patch,popt,procps,psmisc,pwdb,python,readline,redhat-release,rpm,rpm-build,rpm-python,sed,setup,shadow-utils,sh-utils,slang,sysklogd,tar,tcsh,termcap,textutils,util-linux,vim-common,vim-minimal,vixie-cron,which,wget,xntp3,zlib
    304305#
    305306rbsmindep fedora-4 = MAKEDEV,SysVinit,audit-libs,basesystem,bash,beecrypt,bzip2-libs,chkconfig,coreutils,cracklib,cracklib-dicts,db4,device-mapper,e2fsprogs,elfutils-libelf,ethtool,expat,filesystem,findutils,gawk,gdbm,glib2,glibc,glibc-common,grep,info,initscripts,iproute,iputils,krb5-libs,libacl,libattr,libcap,libgcc,libidn,libselinux,libsepol,libstdc++,libtermcap,libxml2,libxml2-python,mingetty,mktemp,module-init-tools,ncurses,neon,net-tools,openssl,pam,pcre,popt,procps,psmisc,python,python-elementtree,python-sqlite,python-urlgrabber,readline,rpm,rpm-libs,rpm-python,sed,setup,shadow-utils,sqlite,sysklogd,termcap,tzdata,udev,util-linux,yum,zlib
  • devel/pb-modules/lib/ProjectBuilder/Base.pm

    r1651 r1652  
    453453
    454454This function returns the architecture of our local environment and
    455 standardize on i386 for those platforms. It also solves issues where a i386 VE on x86_64 returns x86_64 wrongly
     455standardize on i386 for those platforms.
    456456
    457457=cut
  • 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.