Changeset 3193 in /cluster/svnroot


Ignore:
Timestamp:
May 15, 2011 6:56:13 PM (10 years ago)
Author:
skylar
Message:

merging in new package manifest (#632)

Location:
bccd-ng/branches/skylar-devel
Files:
1 deleted
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/skylar-devel/bin/build_livecd.pl

    r3192 r3193  
    66# education.
    77#
    8 # Copyright (C) 2010 Andrew Fitz Gibbon, Paul Gray, Kevin Hunter, Dave Joiner,
     8# Copyright (C) 2011 Andrew Fitz Gibbon, Paul Gray, Kevin Hunter, Dave Joiner,
    99#   Sam Leeman-Munk, Tom Murphy, Charlie Peck, Skylar Thompson, & Aaron Weeden
    1010
     
    3333use File::Temp;
    3434use File::Copy;
     35use File::Basename;
    3536use WWW::Mechanize;
    3637use POSIX;
     
    117118Readonly my $KERNREV    => "2.6.38bccd";
    118119$ENV{'DEBIAN_FRONTEND'} = "noninteractive";
    119 Readonly my $PACKAGES   => "screen openssh-client openssh-server less make gcc-4.2 g++-4.2 flex bison gdb alien lsb-rpm bzip2 sudo yum debootstrap rsync dhcp3-server tcpdump syslinux syslinux-common subversion nfs-common nfs-kernel-server ncurses-base ncurses-bin libncurses5 libncurses5-dev psmisc vim iproute pciutils host bc ntp ntpdate debconf-utils dhcpcd xbase-clients libxt-dev lesstif2 lesstif2-dev ipcalc dialog lvm2 grub parted tzdata xserver-xorg-video-fbdev xfonts-100dpi xfonts-75dpi xfonts-scalable xserver-xorg-video-all fontconfig xfonts-base udev vtwm aterm rxvt xbase-clients menu bbkeys libwww-mechanize-perl postgresql-client-common postgresql-client-8.3 libdbi-perl libdbd-pg-perl strace tcsh libnet-dhcp-perl libnetaddr-ip-perl libnet-ip-perl libstdc++5 pdnsd csh libterm-readkey-perl libsvn-perl libui-dialog-perl libreadonly-perl sshfs autofs libnet-dhcp-perl dnsutils libfile-touch-perl libnet-cidr-perl arping dosfstools gawk dc glutg3-dev libxi-dev wireless-tools snmp snmpd netpbm imagemagick libyaml-perl tcl8.4 libc6-i386 initramfs-tools linux-image-$KERNREV xvfb libmime-lite-perl exim4 genisoimage mingetty x11vnc sun-java6-plugin javacc openjdk-6-jdk";
    120 Readonly my $EXTRA_PACKAGES => "fftw2 fftw-dev sfftw-dev sfftw2 automake1.7 console-tools libreadline5-dev hal libxmu-headers libxmu-dev gfortran ethtool libssl0.9.8 libblas-dev libblas-dev atlas3-base atlas3-base-dev atlas3-base refblas3 lapack3 atlas3-test libg2c0-dev libg2c0 apache2 iceweasel xpdf ruby sl robotfindskitten pvm xpvm emacs21 grac automake1.9 libtool libglu1-mesa-dev minicom lcd4linux insight joe grace libxpm-dev telnet lsof xresprobe fbset fluxbox xgalaga zenmap nedit eterm manpages-dev";
    121 Readonly my $AMD64_PACKAGES => "libc6-dev-i386 ia32-libs lib32gfortran3 lib32readline5 nvidia-glx-ia32";
    122 Readonly my $BAD_PACKAGES   => ""; # Packages that throw some fatal error during install but still work
    123120Readonly my $PERLDIR        => "/usr/local/lib/site_perl/";
    124121Readonly my $TESTNAME       => "build_livecd";
     
    197194
    198195$Bccd->run_test(
     196    "revfetch",
     197    "",
     198    "Fetched package manifest.",
     199    $svnrev,
     200    "$websvn/packages/packages.conf",
     201    "$tmpdir/packages.conf",
     202    );
     203
     204my $PACKAGES = $Bccd->run_test(
     205    "read_yaml",
     206    "",
     207    "Read package manifest.",
     208    "$tmpdir/packages.conf",
     209    );
     210
     211for(my $i=0;$i<$#{$PACKAGES->{BASE}};$i++) {
     212    if($PACKAGES->{BASE}->[$i] eq 'linux-image') {
     213        $PACKAGES->{BASE}->[$i] .= "-$KERNREV";
     214    }
     215}
     216
     217$Bccd->run_test(
    199218    "chdir",
    200219    "",
     
    530549            "0",
    531550            "Fetched Debian packages.",
    532             "/usr/sbin/chroot $BUILDDIR /usr/bin/aptitude --allow-untrusted -y install $PACKAGES $EXTRA_PACKAGES",
     551            "/usr/sbin/chroot $BUILDDIR /usr/bin/aptitude --allow-untrusted -y install @{$PACKAGES->{BASE}} @{$PACKAGES->{EXTRA}}",
    533552            );
    534553}
     
    538557            "0",
    539558            "Fetched Debian packages.",
    540             "/usr/sbin/chroot $BUILDDIR aptitude --allow-untrusted -y install $PACKAGES $EXTRA_PACKAGES $AMD64_PACKAGES",
     559            "/usr/sbin/chroot $BUILDDIR aptitude --allow-untrusted -y install @{$PACKAGES->{BASE}} @{$PACKAGES->{EXTRA}} @{$PACKAGES->{AMD64}}",
    541560            );
    542561}
Note: See TracChangeset for help on using the changeset viewer.