Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/policyd-weight mail/policyd-weight: properly esca...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/36c2b8862855
branches:  trunk
changeset: 431786:36c2b8862855
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat May 16 15:20:35 2020 +0000

description:
mail/policyd-weight: properly escape dot in regular expression

Without this escaping, mk/subst.mk sees that there are no actual changes
with the default setup.  Nevertheless, mk/scripts/subst-identity.awk does
not classify the sed command as an identity transformation because there
_might_ be the text /etc/policyd-weightXconf, and the X would match the
dot.  Therefore, subst.mk aborts the build when it is in SUBST_NOOP_OK=no
mode.

diffstat:

 mail/policyd-weight/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 4badcdba8f3c -r 36c2b8862855 mail/policyd-weight/Makefile
--- a/mail/policyd-weight/Makefile      Sat May 16 14:54:09 2020 +0000
+++ b/mail/policyd-weight/Makefile      Sat May 16 15:20:35 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2019/08/11 13:21:40 wiz Exp $
+# $NetBSD: Makefile,v 1.13 2020/05/16 15:20:35 rillig Exp $
 #
 
 DISTNAME=              policyd-weight-0.1.14.17
@@ -39,7 +39,7 @@
 SUBST_STAGE.fix-paths= post-build
 SUBST_FILES.fix-paths= policyd-weight policyd-weight.conf.sample
 SUBST_SED.fix-paths=   -e 's,"/var/run/,"${VARBASE}/run/,g'
-SUBST_SED.fix-paths+=  -e 's,"/etc/policyd-weight.conf","${PKG_SYSCONFDIR}/policyd-weight.conf",g'
+SUBST_SED.fix-paths+=  -e 's,"/etc/policyd-weight\.conf","${PKG_SYSCONFDIR}/policyd-weight.conf",g'
 SUBST_SED.fix-paths+=  -e 's,"polw";,"${POLICYD_WEIGHT_USER}";,g'
 
 do-build:              replace-interpreter



Home | Main Index | Thread Index | Old Index