pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/pfstat Avoid setting .PATH with '..' when the...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3e689efc0fb0
branches:  trunk
changeset: 604260:3e689efc0fb0
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Sun May 27 20:46:14 2012 +0000

description:
Avoid setting .PATH with '..' when the name of the containing directory
is the same as the name of a build product. I think this is what's been
confusing make.

diffstat:

 sysutils/pfstat/distinfo                       |   3 ++-
 sysutils/pfstat/patches/patch-pfstatd_Makefile |  21 +++++++++++++++++++++
 2 files changed, 23 insertions(+), 1 deletions(-)

diffs (39 lines):

diff -r bcd8a39b1ba3 -r 3e689efc0fb0 sysutils/pfstat/distinfo
--- a/sysutils/pfstat/distinfo  Sun May 27 18:32:50 2012 +0000
+++ b/sysutils/pfstat/distinfo  Sun May 27 20:46:14 2012 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2011/04/15 11:27:04 obache Exp $
+$NetBSD: distinfo,v 1.7 2012/05/27 20:46:14 dholland Exp $
 
 SHA1 (pfstat-2.5.tar.gz) = fdc6acae98ac2c102dedd2c82104c66d1c0af3ee
 RMD160 (pfstat-2.5.tar.gz) = bba652d4f27b41554422410e924a421a1a0fe2a0
@@ -9,3 +9,4 @@
 SHA1 (patch-ac) = 451e8a66d108dab39277f7d8d93150150f822879
 SHA1 (patch-ad) = 35350590919a13e4cb1cb44f1d5b2f6846699c56
 SHA1 (patch-ae) = 7a538480b79752b763c0c72945ff80bdbdb00a31
+SHA1 (patch-pfstatd_Makefile) = bbcb7738a83e93cfb7053bf5cd09a3da0af5e1ea
diff -r bcd8a39b1ba3 -r 3e689efc0fb0 sysutils/pfstat/patches/patch-pfstatd_Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/pfstat/patches/patch-pfstatd_Makefile    Sun May 27 20:46:14 2012 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-pfstatd_Makefile,v 1.1 2012/05/27 20:46:14 dholland Exp $
+
+Don't use .PATH: ${.CURDIR}/.. as it causes erratic behavior.
+(For example, because ../pfstatd exists, make may latch onto that
+as the path for "pfstatd" instead of the pfstatd executable.)
+
+--- pfstatd/Makefile~  2007-01-11 16:01:58.000000000 +0000
++++ pfstatd/Makefile
+@@ -3,8 +3,11 @@
+ PROG= pfstatd
+ SRCS= pfstatd.c pf.c
+ MAN=  pfstatd.8
+-.PATH: ${.CURDIR}/..
++#.PATH: ${.CURDIR}/..
+ CFLAGS+=      -Wall
+ CFLAGS+=      -I${.CURDIR}/..
+ 
+ .include <bsd.prog.mk>
++
++pf.c: ../pf.c
++      cp ../pf.c pf.c



Home | Main Index | Thread Index | Old Index