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