clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
|
Last change
on this file since dd6636b was dd6636b, checked in by Jim Gifford <clfs@…>, 20 years ago |
r2507@server (orig r1246): ryan | 2006-03-10 02:07:32 -0800
r1296@rei: lfs | 2006-03-09 18:34:49 +1100
Add gawk-3.1.5-segfault_fix-1.patch
-----------------------------------
Submitted By: Matthew Burgess <matthew@…>
Date: 2005-09-24
Initial Package Version: 3.1.5
Upstream Status: From Upstream
Origin: http://lists.gnu.org/archive/html/bug-gnu-utils/2005-08/msg00047.html
Description: Fixes a bug which causes gawk to segfault when operating on a non-existent file.
|
-
Property mode
set to
100755
|
|
File size:
1.3 KB
|
| Rev | Line | |
|---|
| [617118d] | 1 | #!/bin/bash
|
|---|
| 2 |
|
|---|
| 3 | # cross-lfs native gawk build
|
|---|
| 4 | # ---------------------------
|
|---|
| 5 | # $LastChangedBy$
|
|---|
| 6 | # $LastChangedDate$
|
|---|
| 7 | # $LastChangedRevision$
|
|---|
| 8 | # $HeadURL$
|
|---|
| 9 | #
|
|---|
| 10 |
|
|---|
| 11 | cd ${SRC}
|
|---|
| 12 | LOG=gawk-native.log
|
|---|
| 13 |
|
|---|
| 14 | set_libdirname
|
|---|
| 15 | setup_multiarch
|
|---|
| 16 |
|
|---|
| 17 | unpack_tarball gawk-${GAWK_VER} &&
|
|---|
| 18 | cd ${PKGDIR}
|
|---|
| 19 |
|
|---|
| [dd6636b] | 20 | case ${GAWK_VER} in
|
|---|
| 21 | 3.1.5 ) apply_patch gawk-3.1.5-segfault_fix-1 ;;
|
|---|
| 22 | esac
|
|---|
| 23 |
|
|---|
| [617118d] | 24 | # Following mimics gawk patch
|
|---|
| 25 | files="Makefile.in awklib/Makefile.in"
|
|---|
| 26 | for file in ${files}; do
|
|---|
| 27 |
|
|---|
| 28 | test -f ${file}-ORIG ||
|
|---|
| 29 | cp ${file} ${file}-ORIG
|
|---|
| 30 |
|
|---|
| 31 | sed -e 's:libexecdir = @libexecdir@/awk:libexecdir = @libexecdir@:g' \
|
|---|
| 32 | -e 's:datadir = @datadir@/awk:datadir = @datadir@/gawk:g' \
|
|---|
| 33 | ${file}-ORIG > ${file}
|
|---|
| 34 | done
|
|---|
| 35 |
|
|---|
| 36 | max_log_init Gawk ${GAWK_VER} "native (shared)" ${CONFLOGS} ${LOG}
|
|---|
| 37 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
|---|
| 38 | CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
|
|---|
| 39 | ./configure --prefix=/usr \
|
|---|
| 40 | --libexecdir=/usr/${libdirname}/gawk \
|
|---|
| 41 | --bindir=/bin \
|
|---|
| 42 | >> ${LOGFILE} 2>&1 &&
|
|---|
| 43 | echo " o Configure OK" &&
|
|---|
| 44 |
|
|---|
| 45 | min_log_init ${BUILDLOGS} &&
|
|---|
| 46 | make ${PMFLAGS} LDFLAGS="-s" \
|
|---|
| 47 | >> ${LOGFILE} 2>&1 &&
|
|---|
| 48 | echo " o Build OK" &&
|
|---|
| 49 |
|
|---|
| 50 | min_log_init ${TESTLOGS} &&
|
|---|
| 51 | make check \
|
|---|
| 52 | >> ${LOGFILE} 2>&1 &&
|
|---|
| 53 | echo " o Test OK" &&
|
|---|
| 54 |
|
|---|
| 55 | min_log_init ${INSTLOGS} &&
|
|---|
| 56 | make install \
|
|---|
| 57 | >> ${LOGFILE} 2>&1 &&
|
|---|
| 58 | echo " o ALL OK" || barf
|
|---|
| 59 |
|
|---|
| 60 | # When specifying --bindir the symlink doesn't get created (???)
|
|---|
| 61 | ln -sf gawk /bin/awk
|
|---|
| 62 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.