Revision: | 1.16 |
Committed: | Sat Oct 18 18:28:42 2008 UTC (16 years, 6 months ago) by ratnik |
Branch: | MAIN |
CVS Tags: | MotT0_1_0_2, MotT0_1_0_1, MotT0_1_0_0, MotT0_100531_1, MotT0_100528_1, T0Mon_100518_1, T0Mon_100503_1, T0Mon_100316_1, T0Mon_100308_2, T0Mon_100308_1, T0Mon_100216_1, T0Mon_100210_1, T0Mon_100204_4, T0Mon_100204_3, T0Mon_100204_1, T0Mon_100127_1, DBS-APP_20100122_slc4, DBS-APP_20100121_slc4, DBS-WEB_20100120_slc4, DBS-APP_20100120_slc4, DBS-APP_20100118_slc4, DBS-WEB_20100118_slc4, DBS-APP_20100114_slc4, DBS-WEB_20100113_slc4, DAS_20091202, FILEMOVER_20091118, DBS-APPS_20090929, T0Mon_091111_1, DAS_20091104, DBS-WEB_20091021, DAS_20091016, DAS_20091014, DBS-WEB_20091012, DBS-WEB_20090921, FILEMOVER_20090910, DBS-WEB_20090817, FILEMOVER_20090828, DBS-APPS_20090706, T0Mon_090828_1, T0Mon_090822_1, WEBTOOLS_APPS_20090817, DBS-APPS_20090804, DBS-APPS_20090730, DAS_20090709, T0Mon_090715_1, DAS_20090607, DBS-WEB_20090618, DBS-APPS_20090619, T0Mon_090612_1, DBS-APPS_20090608, T0Mon_090611_1, T0Mon_090610_1, DBS-APPS_20090604_1, DAS_20090604, DBS-APPS_20090604, DAS_20090603, DBS-APPS_20090603, T0Mon_090601_1, DBS-APPS_20090528, T0Mon_090527_2, T0Mon_090527_1, T0Mon_090522_1, ap20090520-osx105, T0Mon_090519_2, T0Mon_090519_1, ap20090519-osx105, DBS_APPS_20090518, T0Mon_090517_1, T0Mon_090516_1, T0Mon_090515_4, T0Mon_090515_3, T0Mon_090515_2, T0Mon_090515_1, DAS_20090514_3, DAS_20090514_2, DAS_20090514_1, DAS_20090514, DBS-WEB_20090512, T0Mon_090510_1, DBS-WEB_20090507, DBS_APPS_20090504, DBS_APPS_20090501, DBS-APPS_20090429_2, DBS-WEB_20090429, DBS-APPS_20090429, DBS-WEB_20090428, DBS-WEB_20090422, DBS-WEB_20090420, DBS-APPS_20090417, DBS-APPS_20090415, DBS-APPS_20090410, DAS_20090408, DBS-APPS_20090406, T0Mon_090406_1, DAS_20090330, DBS-APPS_20090326, T0Mon_090326_1, T0Mon_090325_1, DAS_20090319_1, DAS_20090319, CMSSW_2_2_6_HLT_ONLINE1, nr090319_for226hltonl1, DBS-APPS_20090318, CMSSW_2_2_6_HLT_ONLINE, T0Mon_090318_1, DBS-APPS_20090316, DAS_20090316, T0Mon_090315_1, DAS_20090313, COUCHDB_20090313, CMSSW_2_2_6_onlpatch1_ONLINE, CMSSW_2_2_6_ONLINE, DBS-APPS_20090310, WEBTOOLS-APPS_20090310_1, WEBTOOLS-APPS_20090310, WEBTOOLS-APPS_20090309, nr090307for226_onlpatch1, DBS-APPS_20090306, nr090306onl226_tkonlsw_too_new, DBS-APPS_20090304_1, DBS-APPS_20090304, DBS-APPS_20090303_1, DBS-APPS_20090303, T0Mon_090303_1, DBS-APPS_20090302, DBS-APPS_20090220_1, DBS-APPS_20090220, T0M_0_0_5, MEMCACHED_20090219_1, MEMCACHED_20090219, WEBTOOLS-APPS_20090217_1, WEBTOOLS-APPS_20090217, WEBTOOLS-APPS_20090216, WEBTOOLS-APPS_20090212, WEBTOOLS-APPS_20090209_64bit, zx20090209, WEBTOOLS-APPS_20090206, T0M_0_0_4, T0M_0_0_3, WEBTOOLS-APPS_20090203_1, WEBTOOLS-APPS_20090203, T0M_0_0_2, zx20090201, WEBTOOLS-APPS_20090130, WEBTOOLS-APPS_20090129, PRODAGENT_0_12_10_pre3, PRODAGENT_0_12_10_pre2_20090127_V2, PRODAGENT_0_12_10_20090122, PRODAGENT_0_12_10_pre1_MISC, sw_20090115a, sw_20090115, testofc, T0Mon_081107_1, T0Mon_081105_1, nr081018_bootstrap |
Changes since 1.15: | +10 -0 lines |
Log Message: | Added support for bootstrap for online architecture using cmsBuild: - drop dependency on zlib and openssl: in online case they are taken from the system - set empty value for defaultPkgs in online case |
# | User | Rev | Content |
---|---|---|---|
1 | elmer | 1.11 | ### RPM external bootstrap-driver 19.0c |
2 | eulisse | 1.8 | Source: bootstrap |
3 | ratnik | 1.16 | |
4 | %if "%cmsplatf" != "slc4onl_ia32_gcc346" | ||
5 | dlange | 1.13 | Requires: apt zlib expat openssl beecrypt bz2lib db4 elfutils neon libxml2 rpm |
6 | ratnik | 1.16 | %else |
7 | Requires: apt expat beecrypt bz2lib db4 elfutils neon libxml2 rpm | ||
8 | %endif | ||
9 | |||
10 | dlange | 1.13 | #danger! cms-common version is now hardwired below (and in bootstrap.file) |
11 | eulisse | 1.1 | |
12 | %prep | ||
13 | %build | ||
14 | %install | ||
15 | eulisse | 1.3 | packageList="" |
16 | echo requiredtools `echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'` | ||
17 | for tool in `echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'` | ||
18 | do | ||
19 | case X$tool in | ||
20 | Xdistcc|Xccache ) | ||
21 | ;; | ||
22 | * ) | ||
23 | toolcap=`echo $tool | tr a-z- A-Z_` | ||
24 | toolversion=$(eval echo $`echo ${toolcap}_VERSION`) | ||
25 | toolrevision=$(eval echo $`echo ${toolcap}_REVISION`) | ||
26 | echo $toolversion $toolrevision | ||
27 | packageList="$packageList external+${tool}+${toolversion}-1-${toolrevision}.%cmsplatf.rpm" | ||
28 | ;; | ||
29 | esac | ||
30 | done | ||
31 | |||
32 | eulisse | 1.1 | |
33 | case %cmsplatf in | ||
34 | ratnik | 1.12 | slc*onl* ) |
35 | eulisse | 1.1 | platformSeeds="glibc coreutils bash tcsh zsh pdksh perl tcl |
36 | readline openssl ncurses | ||
37 | e2fsprogs krb5-libs freetype fontconfig | ||
38 | xorg-x11-deprecated-libs xorg-x11-libs xorg-x11-Mesa-libGLU | ||
39 | xorg-x11-Mesa-libGL compat-libstdc++-33 libidn" | ||
40 | |||
41 | # ONLINE: seed system compiler (only libraries for runtime) | ||
42 | platformSeeds="$platformSeeds libgcc libstdc++" | ||
43 | |||
44 | # ONLINE: seed other available system tools: | ||
45 | platformSeeds="$platformSeeds curl libpng libtiff libungif openssl qt zlib perl-DBI-1.40-8" | ||
46 | # Python tools are commented out due to compatibility problems. | ||
47 | #platformSeeds="$platformSeeds python python-elementtree" | ||
48 | |||
49 | # ONLINE: seed daq-built tools: | ||
50 | platformSeeds="$platformSeeds daq-cgicc daq-mimetic daq-oracle daq-tinyproxy | ||
51 | daq-xerces daq-xdaq" | ||
52 | platformSeeds="$platformSeeds daq-config daq-log4cplus daq-logudpappender | ||
53 | daq-logxmlappender daq-pt daq-ptfifo daq-pthttp | ||
54 | daq-pttcp daq-toolbox daq-xcept daq-xdaq2rc daq-xdata | ||
55 | daq-xgi daq-xoap" | ||
56 | ;; | ||
57 | *) | ||
58 | platformSeeds="glibc glibc-32bit coreutils bash tcsh zsh pdksh perl | ||
59 | tcl tk perl-Tk readline openssl ncurses XFree86-libs | ||
60 | e2fsprogs krb5-libs freetype fontconfig XFree86-Mesa-libGLU | ||
61 | XFree86-Mesa-libGL xorg-x11-deprecated-libs | ||
62 | xorg-x11-libs xorg-x11-Mesa-libGLU xorg-x11-Mesa-libGL | ||
63 | compat-libstdc++-33 fglrx_6_8_0 libidn" | ||
64 | ;; | ||
65 | esac | ||
66 | |||
67 | case $cmsplatf in | ||
68 | elmer | 1.6 | ydl*_ppc64_* ) |
69 | platformSeeds="$platformSeeds gcc libgcc libstdc++" | ||
70 | ;; | ||
71 | ydl*_ppc_* ) | ||
72 | eulisse | 1.1 | platformSeeds="$platformSeeds gcc libgcc libstdc++" |
73 | ;; | ||
74 | esac | ||
75 | |||
76 | # OpenSuse | ||
77 | unsupportedSeeds="xorg-x11-Mesa compat-readline4 compat-curl2 freetype2 | ||
78 | xorg-x11-libX11" | ||
79 | # Ubuntu | ||
80 | unsupportedSeeds="$unsupportedSeeds libcomerr2 libidn11 libxi6 libxpm4 libxinerama1 | ||
81 | libncurses5 libsm6 libice6 libc6 libxcursor1 libxmu6 | ||
82 | libgl1-mesa-glx libxft2 perl-base xserver-xorg xserver-xorg-core | ||
83 | libfreetype6 libfontconfig1 libgl1-mesa libxrandr2 libglu1-mesa | ||
84 | libxext6 libx11-6 libxrender1" | ||
85 | # Fedora | ||
86 | unsupportedSeeds="$unsupportedSeeds libX11 libXmu libSM libICE libXcursor | ||
87 | libXext libXrandr libXft mesa-libGLU mesa-libGL e2fsprogs-libs libXi libXinerama | ||
88 | dlange | 1.15 | libXft libXrender libXpm ncurses-libs libc6-i686" |
89 | eulisse | 1.1 | |
90 | # Case statement for additional provides. | ||
91 | case %cmsplatf in | ||
92 | osx* ) | ||
93 | additionalProvides="AGL ApplicationServices Carbon CoreFoundation | ||
94 | CoreServices OpenGL Python QuickTime Tcl Tk | ||
95 | libintl.3.dylib" | ||
96 | ;; | ||
97 | esac | ||
98 | |||
99 | unsupportedProvides="libtcl8.3.so libtk8.3.so /bin/env libcom_err.so.3 | ||
100 | libcrypto.so.4 libgssapi_krb5.so.2 libk5crypto.so.3 | ||
101 | libkrb5.so.3 libssl.so.4 /bin/csh /bin/tcsh libreadline.so.4 | ||
102 | libtcl8.4.so libtk8.4.so" | ||
103 | |||
104 | ratnik | 1.16 | %if "%cmsplatf" != "slc4onl_ia32_gcc346" |
105 | dlange | 1.13 | defaultPkgs="cms+cms-common+1.0" |
106 | ratnik | 1.16 | %else |
107 | defaultPkgs="" | ||
108 | %endif | ||
109 | eulisse | 1.8 | |
110 | eulisse | 1.1 | mkdir -p %{i}/etc/profile.d |
111 | (echo "instroot=%{instroot}"; \ | ||
112 | echo "rpm_version=$RPM_VERSION"; \ | ||
113 | eulisse | 1.2 | echo "apt_version=$APT_VERSION"; \ |
114 | eulisse | 1.1 | echo "platformSeeds=\"$platformSeeds\""; \ |
115 | echo "unsupportedSeeds=\"$unsupportedSeeds\""; \ | ||
116 | eulisse | 1.4 | echo "packageList=\"`echo $packageList`\""; \ |
117 | eulisse | 1.1 | echo "additionalProvides=\"$additionalProvides\""; \ |
118 | echo "unsupportedProvides=\"$unsupportedProvides\""; \ | ||
119 | eulisse | 1.8 | echo "defaultPkgs=\"$defaultPkgs\""; \ |
120 | eulisse | 1.1 | ) > %{i}/%{cmsplatf}-driver.txt |
121 | eulisse | 1.10 | # FIXME: Hack to make sure that the cms-common package is named correctly in the driver file. |
122 | # We should make sure that the $PACKAGE_CATEGORY variable is used (requires changes to cmsBuild.sh which | ||
123 | # I don't want to do at this point. | ||
124 | perl -p -i -e 's|external[+]cms-common|cms+cms-common|g' %{i}/%{cmsplatf}-driver.txt |