++ id -u
+ '[' X13385 = X0 ']'
+ server=cmsdoc.cern.ch
+ server_main_dir=cms/cpt/Software/download
+ repository=/cms
+ apt_dir=apt
+ groups='lcg cms external'
+ me=./bootstrap.sh
+ case $me in
+ command=setup
+ used_shell=-sh
++ pwd
+ rootdir=/export/rocshare/cmsroc/roc_prod/rpms
+ arch=slc3_ia32_gcc323
+ unsupportedDistribution=false
+ '[' 5 -gt 0 ']'
+ case $1 in
+ command=setup
+ shift
+ '[' 4 -gt 0 ']'
+ case $1 in
+ '[' 4 -gt 0 ']'
++ echo /export/rocshare/cmsroc/roc_prod/rpms
++ cut -b 1
+ '[' / '!=' / ']'
+ rootdir=/export/rocshare/cmsroc/roc_prod/rpms
+ shift
+ shift
+ '[' 2 -gt 0 ']'
+ case $1 in
+ '[' 2 -gt 0 ']'
+ arch=slc4_ia32_gcc345
+ shift
+ shift
+ '[' 0 -gt 0 ']'
+ rpmdb=slc4_ia32_gcc345/var/lib/rpm
+ rpmlock=/export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/var/lib/rpm/lock
+ case $command in
+ setup
+ '[' -f /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/.aptinstaller/cmspath ']'
+ serverDir=cms/cpt/Software/download/cms/apt
+ mkdir -p /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/.aptinstaller
+ echo /export/rocshare/cmsroc/roc_prod/rpms
+ echo 'server="cmsdoc.cern.ch"'
+ echo 'serverDir="cms/cpt/Software/download/cms/apt"'
+ echo 'groups="lcg cms external"'
+ echo 'used_shell="-sh"'
+ echo 'rootdir="/export/rocshare/cmsroc/roc_prod/rpms"'
+ echo 'arch="slc4_ia32_gcc345"'
++ pwd
+ was=/export/rocshare/cmsroc/roc_prod/rpms
+ cd /export/rocshare/cmsroc/roc_prod/rpms
+ mkdir -p slc4_ia32_gcc345/var/lib/apt/lists/partial
+ mkdir -p slc4_ia32_gcc345/var/lib/rpm
+ mkdir -p RPMS/slc4_ia32_gcc345/partial
+ mkdir -p slc4_ia32_gcc345/etc/apt
+ mkdir -p slc4_ia32_gcc345/etc/rpm
+ mkdir -p slc4_ia32_gcc345/lib/apt/methods
+ mkdir -p slc4_ia32_gcc345/var/lib/dpkg/status
+ mkdir -p bin
++ echo /export/rocshare/cmsroc/roc_prod/rpms
++ cut -d/ -f1,2
+ firstdir=/export
+ ln -sf /export ./export
+ cat
+ chmod +x bin/rpm-wrapper
+ cat
+ chmod +x bin/apt-cache-wrapper
+ cat
+ chmod +x bin/apt-get-wrapper
+ cat
+ generateAptConfiguration slc4_ia32_gcc345
+ architecture=slc4_ia32_gcc345
+ cat
+ echo 'rpm http://cmsdoc.cern.ch cms/cpt/Software/download/cms/apt/slc4_ia32_gcc345 lcg cms external'
+ echo 'rpm-src http://cmsdoc.cern.ch cms/cpt/Software/download/cms/apt/slc4_ia32_gcc345 lcg cms external'
+ relocateVariables slc4_ia32_gcc345
+ architecture=slc4_ia32_gcc345
+ perl -p -i -e 's|\@RPMLOCK\@|/export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/var/lib/rpm/lock|g;s|\@ROOTDIR\@|/export/rocshare/cmsroc/roc_prod/rpms|g;s|\@ARCH\@|slc4_ia32_gcc345|g;s|\@RPMDB\@|slc4_ia32_gcc345/var/lib/rpm|g' slc4_ia32_gcc345/etc/apt/apt.conf bin/rpm-wrapper bin/apt-get-wrapper bin/apt-cache-wrapper
+ rm -rf /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/var/lib/rpm
+ mkdir -p /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/var/lib/rpm
+ rpm --define '_rpmlock_path /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/var/lib/rpm/lock' --dbpath /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/var/lib/rpm --initdb
+ seed
+ echo 'Seeding RPM database from selected system RPMs.'
Seeding RPM database from selected system RPMs.
+ seed='glibc glibc-32bit coreutils bash tcsh zsh pdksh perl tcl tk perl-Tk
          readline openssl ncurses XFree86-libs 
          e2fsprogs krb5-libs freetype fontconfig XFree86-Mesa-libGLU XFree86-Mesa-libGL 
          curl xorg-x11-deprecated-libs xorg-x11-libs xorg-x11-Mesa-libGLU xorg-x11-Mesa-libGL compat-libstdc++-33 fglrx_6_8_0'
+ '[' false '!=' false ']'
+ set -e
+ tmp=/export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/tmp/system-import
+ rm -rf /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/tmp/system-import
+ mkdir -p /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/tmp/system-import
+ cd /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/tmp/system-import
+ mkdir -p SOURCES BUILD SPEC RPMS SRPMS tmp
+ :
+ echo '%define _sourcedir      /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/tmp/system-import/SOURCES'
+ echo '%define _builddir       /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/tmp/system-import/BUILD'
+ echo '%define _specdir        /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/tmp/system-import/SPEC'
+ echo '%define _rpmdir         /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/tmp/system-import/RPMS'
+ echo '%define _srcrpmdir      /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/tmp/system-import/SRPMS'
+ echo '%define _tmppath        /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/tmp/system-import/tmp'
+ echo '%define _topdir         /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/tmp/system-import'
+ echo '%define _rpmfilename    system-base-import.rpm'
+ echo
+ echo 'Name: system-base-import'
+ echo 'Version: 1.0'
++ date +%s
+ echo 'Release: 1212167992'
+ echo 'Summary: Base system seed'
+ echo 'License: Unknown'
+ echo 'Group: Hacks'
+ echo 'Packager: install.sh'
+ echo 'Source: none'
+ '[' '' '!=' false ']'
+ echo 'Provides: libtcl8.3.so'
+ echo 'Provides: libtk8.3.so'
+ echo 'Provides: /bin/env'
+ echo 'Provides: libcom_err.so.3'
+ echo 'Provides: libcrypto.so.4'
+ echo 'Provides: libgssapi_krb5.so.2'
+ echo 'Provides: libk5crypto.so.3'
+ echo 'Provides: libkrb5.so.3'
+ echo 'Provides: libssl.so.4'
++ uname -s
+ '[' Linux == Darwin ']'
++ which dpkg
++ grep 'no dpkg'
+ '[' 'which: no dpkg in (/uscmst1/prod/sw/cms/slc4_ia32_gcc345/external/p5-template-toolkit/2.15-CMS3/bin:/uscmst1/prod/sw/cms/slc4_ia32_gcc345/external/p5-template-toolkit/2.15-CMS3/bin:/uscmst1/prod/sw/cms/common:/uscmst1/prod/sw/cms/bin:/usr/krb5/bin:/usr/krb5/bin:/usr/java/jdk1.5.0_14/bin:/usr/krb5/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/export/lhc_home/cmsroc/bin)' == '' ']'
+ which rpm
++ rpm -qa
++ grep 'use alien'
+ '[' '' == '' ']'
++ which rpm
+ echo 'rpm found in /bin/rpm, using it to seed the database.'
rpm found in /bin/rpm, using it to seed the database.
+ for p in '$seed'
+ sed 's!<*=.*!!; s!^!Provides: !'
+ rpm -q glibc --provides
+ grep -v 'not installed'
+ sed 's!^.*/!Provides: !'
+ rpm -q glibc --list
+ grep '\.so'
+ sed 's!^!Provides: !'
+ rpm -q glibc --list
+ grep /bin/
+ for p in '$seed'
+ sed 's!<*=.*!!; s!^!Provides: !'
+ rpm -q glibc-32bit --provides
+ grep -v 'not installed'
+ sed 's!^.*/!Provides: !'
+ rpm -q glibc-32bit --list
+ grep '\.so'
+ rpm -q glibc-32bit --list
+ sed 's!^!Provides: !'
+ grep /bin/
+ for p in '$seed'
+ sed 's!<*=.*!!; s!^!Provides: !'
+ rpm -q coreutils --provides
+ grep -v 'not installed'
+ sed 's!^.*/!Provides: !'
+ grep '\.so'
+ rpm -q coreutils --list
+ rpm -q coreutils --list
+ sed 's!^!Provides: !'
+ grep /bin/
+ for p in '$seed'
+ sed 's!<*=.*!!; s!^!Provides: !'
+ rpm -q bash --provides
+ grep -v 'not installed'
+ sed 's!^.*/!Provides: !'
+ rpm -q bash --list
+ grep '\.so'
+ rpm -q bash --list
+ sed 's!^!Provides: !'
+ grep /bin/
+ for p in '$seed'
+ sed 's!<*=.*!!; s!^!Provides: !'
+ rpm -q tcsh --provides
+ grep -v 'not installed'
+ sed 's!^.*/!Provides: !'
+ rpm -q tcsh --list
+ grep '\.so'
+ sed 's!^!Provides: !'
+ rpm -q tcsh --list
+ grep /bin/
+ for p in '$seed'
+ sed 's!<*=.*!!; s!^!Provides: !'
+ rpm -q zsh --provides
+ grep -v 'not installed'
+ sed 's!^.*/!Provides: !'
+ rpm -q zsh --list
+ grep '\.so'
+ sed 's!^!Provides: !'
+ rpm -q zsh --list
+ grep /bin/
+ for p in '$seed'
+ sed 's!<*=.*!!; s!^!Provides: !'
+ grep -v 'not installed'
+ rpm -q pdksh --provides
+ sed 's!^.*/!Provides: !'
+ rpm -q pdksh --list
+ grep '\.so'
+ sed 's!^!Provides: !'
+ rpm -q pdksh --list
+ grep /bin/
+ for p in '$seed'
+ sed 's!<*=.*!!; s!^!Provides: !'
+ rpm -q perl --provides
+ grep -v 'not installed'
+ rpm -q perl --list
+ sed 's!^.*/!Provides: !'
+ grep '\.so'
+ sed 's!^!Provides: !'
+ rpm -q perl --list
+ grep /bin/
+ for p in '$seed'
+ rpm -q tcl --provides
+ sed 's!<*=.*!!; s!^!Provides: !'
+ grep -v 'not installed'
+ rpm -q tcl --list
+ sed 's!^.*/!Provides: !'
+ grep '\.so'
+ sed 's!^!Provides: !'
+ rpm -q tcl --list
+ grep /bin/
+ for p in '$seed'
+ rpm -q tk --provides
+ sed 's!<*=.*!!; s!^!Provides: !'
+ grep -v 'not installed'
+ sed 's!^.*/!Provides: !'
+ rpm -q tk --list
+ grep '\.so'
+ sed 's!^!Provides: !'
+ rpm -q tk --list
+ grep /bin/
+ for p in '$seed'
+ rpm -q perl-Tk --provides
+ sed 's!<*=.*!!; s!^!Provides: !'
+ grep -v 'not installed'
+ sed 's!^.*/!Provides: !'
+ rpm -q perl-Tk --list
+ grep '\.so'
+ sed 's!^!Provides: !'
+ rpm -q perl-Tk --list
+ grep /bin/
+ for p in '$seed'
+ sed 's!<*=.*!!; s!^!Provides: !'
+ rpm -q readline --provides
+ grep -v 'not installed'
+ sed 's!^.*/!Provides: !'
+ rpm -q readline --list
+ grep '\.so'
+ sed 's!^!Provides: !'
+ rpm -q readline --list
+ grep /bin/
+ for p in '$seed'
+ sed 's!<*=.*!!; s!^!Provides: !'
+ rpm -q openssl --provides
+ grep -v 'not installed'
+ sed 's!^.*/!Provides: !'
+ rpm -q openssl --list
+ grep '\.so'
+ sed 's!^!Provides: !'
+ rpm -q openssl --list
+ grep /bin/
+ for p in '$seed'
+ sed 's!<*=.*!!; s!^!Provides: !'
+ rpm -q ncurses --provides
+ grep -v 'not installed'
+ sed 's!^.*/!Provides: !'
+ rpm -q ncurses --list
+ grep '\.so'
+ sed 's!^!Provides: !'
+ rpm -q ncurses --list
+ grep /bin/
+ for p in '$seed'
+ sed 's!<*=.*!!; s!^!Provides: !'
+ rpm -q XFree86-libs --provides
+ grep -v 'not installed'
+ sed 's!^.*/!Provides: !'
+ rpm -q XFree86-libs --list
+ grep '\.so'
+ sed 's!^!Provides: !'
+ rpm -q XFree86-libs --list
+ grep /bin/
+ for p in '$seed'
+ sed 's!<*=.*!!; s!^!Provides: !'
+ rpm -q e2fsprogs --provides
+ grep -v 'not installed'
+ rpm -q e2fsprogs --list
+ sed 's!^.*/!Provides: !'
+ grep '\.so'
+ rpm -q e2fsprogs --list
+ sed 's!^!Provides: !'
+ grep /bin/
+ for p in '$seed'
+ sed 's!<*=.*!!; s!^!Provides: !'
+ rpm -q krb5-libs --provides
+ grep -v 'not installed'
+ sed 's!^.*/!Provides: !'
+ rpm -q krb5-libs --list
+ grep '\.so'
+ sed 's!^!Provides: !'
+ rpm -q krb5-libs --list
+ grep /bin/
+ for p in '$seed'
+ sed 's!<*=.*!!; s!^!Provides: !'
+ rpm -q freetype --provides
+ grep -v 'not installed'
+ rpm -q freetype --list
+ sed 's!^.*/!Provides: !'
+ grep '\.so'
+ sed 's!^!Provides: !'
+ rpm -q freetype --list
+ grep /bin/
+ for p in '$seed'
+ rpm -q fontconfig --provides
+ sed 's!<*=.*!!; s!^!Provides: !'
+ grep -v 'not installed'
+ sed 's!^.*/!Provides: !'
+ grep '\.so'
+ rpm -q fontconfig --list
+ sed 's!^!Provides: !'
+ rpm -q fontconfig --list
+ grep /bin/
+ for p in '$seed'
+ sed 's!<*=.*!!; s!^!Provides: !'
+ rpm -q XFree86-Mesa-libGLU --provides
+ grep -v 'not installed'
+ rpm -q XFree86-Mesa-libGLU --list
+ sed 's!^.*/!Provides: !'
+ grep '\.so'
+ sed 's!^!Provides: !'
+ rpm -q XFree86-Mesa-libGLU --list
+ grep /bin/
+ for p in '$seed'
+ sed 's!<*=.*!!; s!^!Provides: !'
+ grep -v 'not installed'
+ rpm -q XFree86-Mesa-libGL --provides
+ rpm -q XFree86-Mesa-libGL --list
+ sed 's!^.*/!Provides: !'
+ grep '\.so'
+ sed 's!^!Provides: !'
+ rpm -q XFree86-Mesa-libGL --list
+ grep /bin/
+ for p in '$seed'
+ rpm -q curl --provides
+ sed 's!<*=.*!!; s!^!Provides: !'
+ grep -v 'not installed'
+ sed 's!^.*/!Provides: !'
+ rpm -q curl --list
+ grep '\.so'
+ sed 's!^!Provides: !'
+ rpm -q curl --list
+ grep /bin/
+ for p in '$seed'
+ sed 's!<*=.*!!; s!^!Provides: !'
+ rpm -q xorg-x11-deprecated-libs --provides
+ grep -v 'not installed'
+ sed 's!^.*/!Provides: !'
+ rpm -q xorg-x11-deprecated-libs --list
+ grep '\.so'
+ sed 's!^!Provides: !'
+ rpm -q xorg-x11-deprecated-libs --list
+ grep /bin/
+ for p in '$seed'
+ sed 's!<*=.*!!; s!^!Provides: !'
+ grep -v 'not installed'
+ rpm -q xorg-x11-libs --provides
+ rpm -q xorg-x11-libs --list
+ sed 's!^.*/!Provides: !'
+ grep '\.so'
+ sed 's!^!Provides: !'
+ rpm -q xorg-x11-libs --list
+ grep /bin/
+ for p in '$seed'
+ sed 's!<*=.*!!; s!^!Provides: !'
+ rpm -q xorg-x11-Mesa-libGLU --provides
+ grep -v 'not installed'
+ sed 's!^.*/!Provides: !'
+ rpm -q xorg-x11-Mesa-libGLU --list
+ grep '\.so'
+ sed 's!^!Provides: !'
+ grep /bin/
+ rpm -q xorg-x11-Mesa-libGLU --list
+ for p in '$seed'
+ rpm -q xorg-x11-Mesa-libGL --provides
+ sed 's!<*=.*!!; s!^!Provides: !'
+ grep -v 'not installed'
+ sed 's!^.*/!Provides: !'
+ rpm -q xorg-x11-Mesa-libGL --list
+ grep '\.so'
+ rpm -q xorg-x11-Mesa-libGL --list
+ sed 's!^!Provides: !'
+ grep /bin/
+ for p in '$seed'
+ sed 's!<*=.*!!; s!^!Provides: !'
+ rpm -q compat-libstdc++-33 --provides
+ grep -v 'not installed'
+ sed 's!^.*/!Provides: !'
+ rpm -q compat-libstdc++-33 --list
+ grep '\.so'
+ rpm -q compat-libstdc++-33 --list
+ sed 's!^!Provides: !'
+ grep /bin/
+ for p in '$seed'
+ sed 's!<*=.*!!; s!^!Provides: !'
+ rpm -q fglrx_6_8_0 --provides
+ grep -v 'not installed'
+ sed 's!^.*/!Provides: !'
+ rpm -q fglrx_6_8_0 --list
+ grep '\.so'
+ sed 's!^!Provides: !'
+ grep /bin/
+ rpm -q fglrx_6_8_0 --list
+ echo
+ echo %description
+ echo 'Seeds RPM repository from the base system.'
+ echo
+ echo %prep
+ echo %build
+ echo %install
+ echo %files
++ which rpmbuild
+ '[' /usr/bin/rpmbuild == '' ']'
+ rpmbuild -ba system-base-import.spec
Executing(%prep): /bin/sh -e /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/tmp/system-import/tmp/rpm-tmp.71533
+ umask 022
+ cd /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/tmp/system-import/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ exit 0
Executing(%build): /bin/sh -e /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/tmp/system-import/tmp/rpm-tmp.71533
+ umask 022
+ cd /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/tmp/system-import/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ exit 0
Executing(%install): /bin/sh -e /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/tmp/system-import/tmp/rpm-tmp.71533
+ umask 022
+ cd /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/tmp/system-import/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
Processing files: system-base-import-1.0-1212167992
Checking for unpackaged file(s): /usr/lib/rpm/check-files %{buildroot}
Wrote: /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/tmp/system-import/SRPMS/system-base-import-1.0-1212167992.src.rpm
Wrote: /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/tmp/system-import/RPMS/system-base-import.rpm
+ echo installing in /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/var/lib/rpm
installing in /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/var/lib/rpm
+ rpm --define '_rpmlock_path /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/var/lib/rpm/lock' --dbpath /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/var/lib/rpm -Uvh RPMS/system-base-import.rpm
Preparing...                ##################################################
system-base-import          ##################################################
+ cd /export/rocshare/cmsroc/roc_prod/rpms
+ cd /export/rocshare/cmsroc/roc_prod/rpms
+ case $me in
+ checkAPT
+ grep '^apt '
+ apt-get -v
+ head -1
+ migrate
+ '[' '!' -L /export/rocshare/cmsroc/roc_prod/rpms/var ']'
+ '[' -d /export/rocshare/cmsroc/roc_prod/rpms/var ']'
+ rm -rf /export/rocshare/cmsroc/roc_prod/rpms/var
+ ln -sf /export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/var /export/rocshare/cmsroc/roc_prod/rpms/var
+ export APT_CONFIG=/export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/etc/apt/apt.conf
+ APT_CONFIG=/export/rocshare/cmsroc/roc_prod/rpms/slc4_ia32_gcc345/etc/apt/apt.conf
+ apt-get update
./bootstrap.sh: line 408: apt-get: command not found
+ apt-get install cms+pkgtools+1.0
./bootstrap.sh: line 409: apt-get: command not found
+ case $me in
+ me=/export/rocshare/cmsroc/roc_prod/rpms/./bootstrap.sh
+ echo 'Removing /export/rocshare/cmsroc/roc_prod/rpms/./bootstrap.sh. Now, please source cmsset_default.sh and use cmsapt to proceed with your installation.'
Removing /export/rocshare/cmsroc/roc_prod/rpms/./bootstrap.sh. Now, please source cmsset_default.sh and use cmsapt to proceed with your installation.
+ '[' -f /export/rocshare/cmsroc/roc_prod/rpms/./bootstrap.sh ']'
+ rm /export/rocshare/cmsroc/roc_prod/rpms/./bootstrap.sh
+ exit 0