clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change
on this file since dd6636b was
c0cf39e,
checked in by Jim Gifford <clfs@…>, 18 years ago
|
r2506@server (orig r1245): ryan | 2006-03-10 02:07:10 -0800
r1295@rei: lfs | 2006-03-09 18:29:16 +1100
Add grep-2.5.1a-redhat_fixes-2.patch
------------------------------------
Submitted by: Alexander E. Patrakov
Date: 2005-08-13
Initial Package Version: 2.5.1a
Upstream Status: Partially accepted, partially rejected, but required for LSB >= 2.0 certification
Origin: RedHat?
Description: Various fixes from RedHat?. Individual patches:
grep-2.5.1-fgrep.patch
grep-2.5.1-bracket.patch
grep-2.5-i18n.patch
grep-2.5.1-oi.patch
grep-2.5.1-manpage.patch
grep-2.5.1-color.patch
grep-2.5.1-icolor.patch
grep-2.5.1-egf-speedup.patch
grep-2.5.1-dfa-optional.patch
grep-2.5.1-tests.patch
grep-2.5.1-w.patch
Testcases:
-fgrep: ???, but required for other patches
-bracket: echo "[" | LANG=en_US.UTF-8 grep ":space:?"
-i18n: many fixes for multibyte locale support, required for LSB.
-oi: echo xxYYzz | LANG=C grep -i -o yy
-manpage: typo
-color: restore the background color correctly
-icolor: ??? echo 'spam foo SPAM FOO' | grep -i --color spam
(but that's also fixed by -oi. Is this patch just a cleanup?)
-egf-speedup: without this, grep is as slow as a snail in UTF-8 locales.
-dfa-optional: disables dfa in multibyte locales by default.
-w: (echo 'foo';echo 'fo') > /tmp/testfile && grep -F -w fo /tmp/testfile
|
-
Property mode set to
100755
|
File size:
936 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | # cross-lfs native grep build |
---|
4 | # --------------------------- |
---|
5 | # $LastChangedBy$ |
---|
6 | # $LastChangedDate$ |
---|
7 | # $LastChangedRevision$ |
---|
8 | # $HeadURL$ |
---|
9 | # |
---|
10 | |
---|
11 | cd ${SRC} |
---|
12 | LOG=grep-native.log |
---|
13 | |
---|
14 | set_libdirname |
---|
15 | setup_multiarch |
---|
16 | |
---|
17 | unpack_tarball grep-${GREP_VER} && |
---|
18 | cd ${PKGDIR} |
---|
19 | |
---|
20 | case ${GREP_VER} in |
---|
21 | 2.5.1a ) apply_patch grep-2.5.1a-redhat_fixes-2.patch ;; |
---|
22 | esac |
---|
23 | |
---|
24 | max_log_init Grep ${GREP_VER} "native (shared)" ${CONFLOGS} ${LOG} |
---|
25 | CC="${CC-gcc} ${ARCH_CFLAGS}" \ |
---|
26 | CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \ |
---|
27 | ./configure --prefix=/usr --bindir=/bin \ |
---|
28 | >> ${LOGFILE} 2>&1 && |
---|
29 | echo " o Configure OK" && |
---|
30 | |
---|
31 | min_log_init ${BUILDLOGS} && |
---|
32 | make ${PMFLAGS} LDFLAGS="-s" \ |
---|
33 | >> ${LOGFILE} 2>&1 && |
---|
34 | echo " o Build OK" || barf |
---|
35 | |
---|
36 | # Make Grep tests executable |
---|
37 | chmod 750 ./tests/* && |
---|
38 | |
---|
39 | #min_log_init ${TESTLOGS} && |
---|
40 | #make check \ |
---|
41 | # >> ${LOGFILE} 2>&1 && |
---|
42 | #echo " o Test OK" || errmsg |
---|
43 | |
---|
44 | min_log_init ${INSTLOGS} && |
---|
45 | make install \ |
---|
46 | >> ${LOGFILE} 2>&1 && |
---|
47 | echo " o ALL OK" || barf |
---|
48 | |
---|
Note: See
TracBrowser
for help on using the repository browser.