pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/ORBit small modification to also match for end of ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6b062126cf96
branches:  trunk
changeset: 512727:6b062126cf96
user:      schwarz <schwarz%pkgsrc.org@localhost>
date:      Sun May 14 21:10:01 2006 +0000

description:
small modification to also match for end of line ($) with the grep and sed
expressions of that hack

diffstat:

 net/ORBit/hacks.mk |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (30 lines):

diff -r 111e4527fbe9 -r 6b062126cf96 net/ORBit/hacks.mk
--- a/net/ORBit/hacks.mk        Sun May 14 21:09:55 2006 +0000
+++ b/net/ORBit/hacks.mk        Sun May 14 21:10:01 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.1 2006/05/01 00:19:45 schwarz Exp $
+# $NetBSD: hacks.mk,v 1.2 2006/05/14 21:10:01 schwarz Exp $
 
 .if !defined(ORBIT_HACKS_MK)
 ORBIT_HACKS_MK=        # defined
@@ -9,16 +9,16 @@
 ### This works around the problem reported in pkg/27009.
 ###
 .if exists(${LOCALBASE}/include/pthread.h)
-_SOCKLEN_T_TYPEDEFD!=  ${GREP} -c '^typedef\ .*\ socklen_t;' ${LOCALBASE}/include/pthread.h || ${TRUE}
-.if ${_SOCKLEN_T_TYPEDEFD} == "1"
+_SOCKLEN_T_TYPEDEFD!=  ${GREP} -c '^typedef\ .*\ socklen_t;$$' ${LOCALBASE}/include/pthread.h || ${TRUE}
+.  if ${_SOCKLEN_T_TYPEDEFD} == "1"
 PKG_HACKS+=            socklen_t-already-typedefd-in-pthread.h
 SUBST_CLASSES+=                socklen_t
 SUBST_FILES.socklen_t= configure
 SUBST_STAGE.socklen_t= post-patch
-SUBST_SED.socklen_t=   -e 's/^\#define\ socklen_t\ size_t//'
+SUBST_SED.socklen_t=   -e 's/^\#define\ socklen_t\ size_t$$//'
 # remark: \ before # needed to prevent make from interpreting
 #         remainder of line as a comment
-.endif
+.  endif
 .endif
 
 .endif



Home | Main Index | Thread Index | Old Index