pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Fix Interix user/group failsafe so that it works on...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b509d3b52beb
branches:  trunk
changeset: 488830:b509d3b52beb
user:      tv <tv%pkgsrc.org@localhost>
date:      Wed Feb 09 23:56:10 2005 +0000

description:
Fix Interix user/group failsafe so that it works on PKG_USERS with \\ in them.

diffstat:

 mk/bsd.pkg.install.mk |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (22 lines):

diff -r 26ee0d3a9e8c -r b509d3b52beb mk/bsd.pkg.install.mk
--- a/mk/bsd.pkg.install.mk     Wed Feb 09 22:10:19 2005 +0000
+++ b/mk/bsd.pkg.install.mk     Wed Feb 09 23:56:10 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.install.mk,v 1.81 2005/02/05 01:17:59 jlam Exp $
+# $NetBSD: bsd.pkg.install.mk,v 1.82 2005/02/09 23:56:10 tv Exp $
 #
 # This Makefile fragment is included by bsd.pkg.mk to use the common
 # INSTALL/DEINSTALL scripts.  To use this Makefile fragment, simply:
@@ -111,9 +111,9 @@
 # compile without changing something.
 #
 .if !empty(OPSYS:MInterix)
-.  for user in ${PKG_USERS}
-.    if !defined(BROKEN) && !empty(PKG_GROUPS:M${user:C/:.*//})
-BROKEN:=               "User and group '${user:C/:.*//}' cannot have the same name on Interix"
+.  for user in ${PKG_USERS:C/\\\\//g:C/:.*//}
+.    if !empty(PKG_GROUPS:M${user})
+PKG_FAIL_REASON+=      "User and group '${user}' cannot have the same name on Interix"
 .    endif
 .  endfor
 .endif



Home | Main Index | Thread Index | Old Index