Ticket #88: xapian_solaris_sun_c_build_20060830.txt

File xapian_solaris_sun_c_build_20060830.txt, 4.5 KB (added by Andreas Floeter, 18 years ago)

Description of the fresh build of Python and Xapian with Sun C compiler.

Line 
1________________________
2Wed Aug 30 18:52:05 2006
3
4##-- remove the installed python, make a clean build
5
6##[
7rm -r /usr/bin/pydoc /usr/bin/smtpd.py /usr/bin/pydoc /usr/bin/python /usr/bin/python2.4 /usr/lib/python2.4
8rm /usr/share/man/man1/python.1
9
10
11##]
12
13
14##- installing Python 2.4.3 with Sun C 5.8 compiler
15
16##[
17BUILDDIR=/builddir
18SRCDIR=/var/tmp
19VERSION=2.4.3
20STAR=Python-2.4.3.tar.bz2
21PKG=`echo $STAR | sed -e 's@-'$VERSION'\.tar\.gz@@' -e 's@-'$VERSION'\.tgz@@' -e 's@-'$VERSION'\.tar\.bz2@@' `
22
23unset LD_LIBRARY_PATH; unset CC; unset CXX; unset CFLAGS
24CC=cc; export CC
25CXX=CC; export CXX
26
27PATH=/opt/SUNWspro/bin:/usr/ccs/bin:/usr/sbin:/usr/bin; export PATH
28# LDFLAGS='-R/opt/db4/lib -L/opt/db4/lib'; export LDFLAGS
29# CPPFLAGS='-I/opt/db4/include STRICT_SYSV_CURSES=1'; export CPPFLAGS
30# CPPFLAGS='-I/opt/db4/include'; export CPPFLAGS
31TIMESTAMP=`date '+%Y%m%d%H%M%S'`
32# TIMESTAMP=20060830211422
33
34cd $BUILDDIR
35[ "$BUILDDIR/${PKG}-$VERSION" != '/' ] && rm -rf "$BUILDDIR/${PKG}-$VERSION"
36bunzip2 -c $SRCDIR/$STAR | /usr/sfw/bin/gtar -xvf -
37
38cd "$BUILDDIR/${PKG}-$VERSION"
39
40patch -p0 < $SRCDIR/python_curses_1471938.patch
41# env
42
43./configure --prefix=/usr --without-gcc \
44 2>&1 | tee /var/tmp/"${PKG}"-"$VERSION"_configure_$TIMESTAMP
45
46make 2>&1 | tee /var/tmp/"${PKG}"-"$VERSION"_make_$TIMESTAMP
47make test 2>&1 | tee /var/tmp/"${PKG}"-"$VERSION"_make_test_$TIMESTAMP
48
49# done as user 'root'
50cd "$BUILDDIR/${PKG}-$VERSION"
51make install 2>&1 | tee /var/tmp/"${PKG}"-"$VERSION"_make_install_$TIMESTAMP
52
53##]
54
55##[
56echo $TIMESTAMP
57# TIMESTAMP=20060830211422
58
59files="
60Python-${VERSION}_configure
61Python-${VERSION}_make
62Python-${VERSION}_make_test
63Python-${VERSION}_make_install
64"
65
66str=''
67for f in $files; do
68 str="$str /var/tmp/${f}_$TIMESTAMP"
69done
70scp -p $str humpyham:/usr/local/admin/solaris_10/data/
71##]
72
73##-- installing Xapian
74
75##[
76SRCDIR=/home/zamiz/admin/sources/xapian
77SRCDIR=/var/tmp
78STAR=xapian-core-0.9.6.tar.gz
79PKG=`echo $STAR | sed -e 's@\.tar\.gz@@' -e 's@\.tgz@@' -e 's@\.tar\.bz2@@' `
80STAR1=omega-0.9.6.tar.gz
81PKG1=`echo $STAR1 | sed -e 's@\.tar\.gz@@' -e 's@\.tgz@@' -e 's@\.tar\.bz2@@' `
82STAR2=xapian-bindings-0.9.6.tar.gz
83PKG2=`echo $STAR2 | sed -e 's@\.tar\.gz@@' -e 's@\.tgz@@' -e 's@\.tar\.bz2@@' `
84BUILDDIR=/builddir
85
86TIMESTAMP=`date +%Y%m%d%H%M%S`
87LOGFILE=/tmp/$PKG.$TIMESTAMP
88
89cd $BUILDDIR
90pwd
91
92unset LD_LIBRARY_PATH; unset CC; unset CXX; unset CFLAGS
93CC=cc; export CC
94CXX=CC; export CXX
95PATH=/opt/SUNWspro/bin:/usr/ccs/bin:/sbin/bin:/usr/bin; export PATH
96cd $BUILDDIR
97
98
99##- xapian-core
100/usr/sfw/bin/gtar -zxvf $SRCDIR/$STAR
101cd $PKG
102
103LDFLAGS="-lm"; export LDFLAGS
104./configure --prefix=/usr --without-gcc 2>&1 | tee /var/tmp/${PKG}_configure_${TIMESTAMP}
105# ./configure --prefix=/usr
106##- Fix the trailing commas in version.h
107cp -p include/xapian/version.h include/xapian/version.h.orig
108sed 's/ ,$//' include/xapian/version.h.orig > include/xapian/version.h
109make 2>&1 | tee /var/tmp/${PKG}_make_${TIMESTAMP}
110# gmake
111
112# done as user 'root'
113##- source in the above environment variables
114cd $BUILDDIR/$PKG
115LDFLAGS="-lm"; export LDFLAGS
116make install 2>&1 | tee /var/tmp/${PKG}_make_install_${TIMESTAMP}
117# gmake install
118
119files="
120${PKG}_configure
121${PKG}_make
122${PKG}_make_test
123${PKG}_make_install
124"
125str=''
126for f in $files; do
127 str="$str /var/tmp/${f}_$TIMESTAMP"
128done
129scp -p $str humpyham:/usr/local/admin/solaris_10/data/
130
131
132# ##- omega
133# # done as regular user
134# cd ..
135# /usr/sfw/bin/gtar -zxvf $SRCDIR/$STAR1
136# cd $PKG1
137# ./configure --prefix=/usr --without-gcc
138# make 2>&1 | tee /var/tmp/${PKG1}_make_${TIMESTAMP}
139
140# # done as user 'root'
141# cd $BUILDDIR/$PKG1
142# PATH=/opt/SUNWspro/bin:/usr/ccs/bin:/usr/bin:/bin; export PATH
143# LDFLAGS="-lm"; export LDFLAGS
144# make install 2>&1 | tee /var/tmp/${PKG1}_make_install_${TIMESTAMP}
145
146
147##- xapian-bindings
148# done as regular user
149cd ..
150/usr/sfw/bin/gtar -zxvf $SRCDIR/$STAR2
151cd $PKG2
152./configure --prefix=/usr --without-gcc
153make 2>&1 | tee /var/tmp/${PKG2}_make_${TIMESTAMP}
154
155# done as user 'root'
156cd $BUILDDIR/$PKG2
157PATH=/opt/SUNWspro/bin:/usr/ccs/bin:/usr/bin:/bin; export PATH
158LDFLAGS="-lm"; export LDFLAGS
159make install 2>&1 | tee /var/tmp/${PKG2}_make_install_${TIMESTAMP}
160
161files="
162${PKG}_configure
163${PKG}_make
164${PKG}_make_test
165${PKG}_make_install
166"
167str=''
168for f in $files; do
169 str="$str /var/tmp/${f}_$TIMESTAMP"
170done
171scp -p $str humpyham:/usr/local/admin/solaris_10/data/
172##]
173
174
175##-- failing xapian
176chmod +x /usr/share/doc/xapian-bindings/python/examples/simpleindex.py
177/usr/share/doc/xapian-bindings/python/examples/simpleindex.py dada
178dbx /usr/bin/python core > xapian_core_dbx_20060830
179pstack core > xapian_core_pstack_20060830
180
181