clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 57d97a5 was 617118d, checked in by Jim Gifford <clfs@…>, 19 years ago |
r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure
|
-
Property mode
set to
100755
|
File size:
1.4 KB
|
Rev | Line | |
---|
[617118d] | 1 | #!/bin/bash
|
---|
| 2 | #
|
---|
| 3 | # python
|
---|
| 4 | #
|
---|
| 5 | # Dependencies: None
|
---|
| 6 | #
|
---|
| 7 |
|
---|
| 8 | cd ${SRC}
|
---|
| 9 | LOG=blfs-python.log
|
---|
| 10 |
|
---|
| 11 | SELF=`basename ${0}`
|
---|
| 12 | set_buildenv
|
---|
| 13 | set_libdirname
|
---|
| 14 | setup_multiarch
|
---|
| 15 | if [ ! "${libdirname}" = "lib" ]; then
|
---|
| 16 | extra_conf="--libdir=/usr/${libdirname}"
|
---|
| 17 | fi
|
---|
| 18 |
|
---|
| 19 | unpack_tarball Python-${PYTHON_VER} &&
|
---|
| 20 | cd ${PKGDIR}
|
---|
| 21 |
|
---|
| 22 | case ${PYTHON_VER}} in
|
---|
| 23 | 2.4 ) apply_patch Python-2.4-db43-1 ;;
|
---|
| 24 | esac
|
---|
| 25 | # Still applies to 2.4.1
|
---|
| 26 | apply_patch Python-2.4-gdbm-1
|
---|
| 27 |
|
---|
| 28 | #------------------------------------------
|
---|
| 29 | # TODO: need to do some edits for lib64 ...
|
---|
| 30 | #------------------------------------------
|
---|
| 31 | if [ "lib64" = ${libdirname} ]; then
|
---|
| 32 | case ${PYTHON_VER}} in
|
---|
| 33 | 2.4 ) apply_patch Python-2.4-lib64-1 ;;
|
---|
| 34 | 2.4.* ) apply_patch Python-2.4.1-lib64-1 ;;
|
---|
| 35 | esac
|
---|
| 36 | fi
|
---|
| 37 |
|
---|
| 38 | max_log_init python ${PYTHON_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
|
---|
| 39 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
| 40 | CXX="${CXX-g++} ${ARCH_CFLAGS}" \
|
---|
| 41 | CFLAGS="${TGT_CFLAGS}" \
|
---|
| 42 | CXXFLAGS="${TGT_CFLAGS}" \
|
---|
| 43 | ./configure --prefix=/usr --build="${TARGET}" \
|
---|
| 44 | --mandir=/usr/share/man --infodir=/usr/share/info \
|
---|
| 45 | --enable-shared ${extra_conf} \
|
---|
| 46 | --enable-ipv6 \
|
---|
| 47 | >> ${LOGFILE} 2>&1 &&
|
---|
| 48 | echo " o Configure OK" &&
|
---|
| 49 |
|
---|
| 50 | min_log_init ${BUILDLOGS} &&
|
---|
| 51 | make ${PMFLAGS} LDFLAGS="-s" \
|
---|
| 52 | >> ${LOGFILE} 2>&1 &&
|
---|
| 53 | echo " o Build OK" &&
|
---|
| 54 |
|
---|
| 55 | min_log_init ${INSTLOGS} &&
|
---|
| 56 | make install \
|
---|
| 57 | >> ${LOGFILE} 2>&1 &&
|
---|
| 58 | echo " o ALL OK" || barf
|
---|
| 59 |
|
---|
| 60 | if [ "Y" = "${MULTIARCH}" ]; then
|
---|
| 61 | use_wrapper /usr/bin/{python,python2.4}
|
---|
| 62 | create_stub_hdrs /usr/include/python2.4/pyconfig.h
|
---|
| 63 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.