Changeset 0ee931e for scripts/untested/blfs-scripts/blfs-python-32.sh
- Timestamp:
- Feb 21, 2006, 8:16:10 AM (19 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 99e4712
- Parents:
- 12ba0a4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/untested/blfs-scripts/blfs-python-32.sh
-
Property mode
changed from
100644
to120000
r12ba0a4 r0ee931e 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 64 #!/bin/bash 65 # 66 # python 67 # 68 # Dependencies: None 69 # 70 71 cd ${SRC} 72 LOG=blfs-python.log 73 74 SELF=`basename ${0}` 75 set_buildenv 76 set_libdirname 77 setup_multiarch 78 if [ ! "${libdirname}" = "lib" ]; then 79 extra_conf="--libdir=/usr/${libdirname}" 80 fi 81 82 unpack_tarball Python-${PYTHON_VER} && 83 cd ${PKGDIR} 84 85 case ${PYTHON_VER}} in 86 2.4 ) apply_patch Python-2.4-db43-1 ;; 87 esac 88 # Still applies to 2.4.1 89 apply_patch Python-2.4-gdbm-1 90 91 #------------------------------------------ 92 # TODO: need to do some edits for lib64 ... 93 #------------------------------------------ 94 if [ "lib64" = ${libdirname} ]; then 95 case ${PYTHON_VER}} in 96 2.4 ) apply_patch Python-2.4-lib64-1 ;; 97 2.4.* ) apply_patch Python-2.4.1-lib64-1 ;; 98 esac 99 fi 100 101 max_log_init python ${PYTHON_VER} "blfs (shared)" ${CONFLOGS} ${LOG} 102 CC="${CC-gcc} ${ARCH_CFLAGS}" \ 103 CXX="${CXX-g++} ${ARCH_CFLAGS}" \ 104 CFLAGS="${TGT_CFLAGS}" \ 105 CXXFLAGS="${TGT_CFLAGS}" \ 106 ./configure --prefix=/usr --build="${TARGET}" \ 107 --mandir=/usr/share/man --infodir=/usr/share/info \ 108 --enable-shared ${extra_conf} \ 109 --enable-ipv6 \ 110 >> ${LOGFILE} 2>&1 && 111 echo " o Configure OK" && 112 113 min_log_init ${BUILDLOGS} && 114 make ${PMFLAGS} LDFLAGS="-s" \ 115 >> ${LOGFILE} 2>&1 && 116 echo " o Build OK" && 117 118 min_log_init ${INSTLOGS} && 119 make install \ 120 >> ${LOGFILE} 2>&1 && 121 echo " o ALL OK" || barf 122 123 if [ "Y" = "${MULTIARCH}" ]; then 124 use_wrapper /usr/bin/{python,python2.4} 125 create_stub_hdrs /usr/include/python2.4/pyconfig.h 126 fi 1 blfs-python.sh -
Property mode
changed from
Note:
See TracChangeset
for help on using the changeset viewer.