pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/grep Use absolute paths in /usr/pkg/bin/g*gre...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/30fe59f33290
branches:  trunk
changeset: 360446:30fe59f33290
user:      bouyer <bouyer%pkgsrc.org@localhost>
date:      Thu Mar 30 08:52:54 2017 +0000

description:
Use absolute paths in /usr/pkg/bin/g*grep, so they can be used even if
/usr/pkg/bin/ is not in $PATH.
Bump PKGREVISION
>From Tim Zingelman

diffstat:

 textproc/grep/Makefile                      |   3 ++-
 textproc/grep/distinfo                      |   4 +++-
 textproc/grep/patches/patch-src_Makefile.am |  16 ++++++++++++++++
 textproc/grep/patches/patch-src_Makefile.in |  16 ++++++++++++++++
 4 files changed, 37 insertions(+), 2 deletions(-)

diffs (68 lines):

diff -r cf63621b7ce1 -r 30fe59f33290 textproc/grep/Makefile
--- a/textproc/grep/Makefile    Thu Mar 30 08:09:21 2017 +0000
+++ b/textproc/grep/Makefile    Thu Mar 30 08:52:54 2017 +0000
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.48 2017/01/30 04:46:13 wen Exp $
+# $NetBSD: Makefile,v 1.49 2017/03/30 08:52:54 bouyer Exp $
 
 DISTNAME=      grep-2.27
 CATEGORIES=    textproc
 MASTER_SITES=  ${MASTER_SITE_GNU:=grep/}
 EXTRACT_SUFX=  .tar.xz
+PKGREVISION=   1
 
 MAINTAINER=    bouyer%NetBSD.org@localhost
 HOMEPAGE=      http://www.gnu.org/software/grep/grep.html
diff -r cf63621b7ce1 -r 30fe59f33290 textproc/grep/distinfo
--- a/textproc/grep/distinfo    Thu Mar 30 08:09:21 2017 +0000
+++ b/textproc/grep/distinfo    Thu Mar 30 08:52:54 2017 +0000
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.21 2017/01/30 04:46:13 wen Exp $
+$NetBSD: distinfo,v 1.22 2017/03/30 08:52:54 bouyer Exp $
 
 SHA1 (grep-2.27.tar.xz) = ac68dd7d07cd4318ef5545c29c9a37ed2e96aef6
 RMD160 (grep-2.27.tar.xz) = 87db92c2f7dafd88e70e1717e66a17a06d4e8b64
 SHA512 (grep-2.27.tar.xz) = d67f16cc5f931a455d5287badbaf080967da573d290430f440e578a563cff4f4c0c2668f60dbb8bc71eaed289f075957006c10c6827f0da1a49df49efd3f0781
 Size (grep-2.27.tar.xz) = 1360388 bytes
+SHA1 (patch-src_Makefile.am) = c919a396c550f6218db8e015139c69e49217a946
+SHA1 (patch-src_Makefile.in) = f0b0b3a87d1ab0afd831144a6c7e81963735ce41
diff -r cf63621b7ce1 -r 30fe59f33290 textproc/grep/patches/patch-src_Makefile.am
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/grep/patches/patch-src_Makefile.am       Thu Mar 30 08:52:54 2017 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_Makefile.am,v 1.1 2017/03/30 08:52:54 bouyer Exp $
+
+Make the paths in gegrep & gfgrep absolute so if they are used without
+${PREFIX}/${PKGGNUDIR}bin being in the path, they still work.
+
+--- src/Makefile.am.orig       2016-11-21 18:31:31.000000000 +0100
++++ src/Makefile.am    2017-03-30 10:32:14.000000000 +0200
+@@ -60,7 +60,7 @@
+       fi &&                                                           \
+       sed -e 's|[@]SHELL@|$(SHELL)|g'                                 \
+           -e "$$edit_substring"                                       \
+-          -e "s|[@]grep@|$$grep|g"                                    \
++          -e "s|[@]grep@|$(PREFIX)/$(PKGGNUDIR)bin/$$grep|g"          \
+           -e "s|[@]option@|$$option|g" <$(srcdir)/egrep.sh >$@-t
+       $(AM_V_at)chmod +x $@-t
+       $(AM_V_at)mv $@-t $@
diff -r cf63621b7ce1 -r 30fe59f33290 textproc/grep/patches/patch-src_Makefile.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/grep/patches/patch-src_Makefile.in       Thu Mar 30 08:52:54 2017 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_Makefile.in,v 1.1 2017/03/30 08:52:54 bouyer Exp $
+
+Make the paths in gegrep & gfgrep absolute so if they are used without
+${PREFIX}/${PKGGNUDIR}bin being in the path, they still work.
+
+--- src/Makefile.in.orig       2016-12-07 08:15:19.000000000 +0100
++++ src/Makefile.in    2017-03-30 10:33:33.000000000 +0200
+@@ -1601,7 +1601,7 @@
+       fi &&                                                           \
+       sed -e 's|[@]SHELL@|$(SHELL)|g'                                 \
+           -e "$$edit_substring"                                       \
+-          -e "s|[@]grep@|$$grep|g"                                    \
++          -e "s|[@]grep@|$(PREFIX)/$(PKGGNUDIR)bin/$$grep|g"          \
+           -e "s|[@]option@|$$option|g" <$(srcdir)/egrep.sh >$@-t
+       $(AM_V_at)chmod +x $@-t
+       $(AM_V_at)mv $@-t $@



Home | Main Index | Thread Index | Old Index