pkgsrc-Bugs archive

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

Re: pkg/33346: print/cups: "make install" failed



The following reply was made to PR pkg/33346; it has been noted by GNATS.

From: Yoshito Komatsu <ykomatsu%akaumigame.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/33346: print/cups: "make install" failed
Date: Mon, 24 Apr 2006 23:11:01 +0900

 This is a multi-part message in MIME format.
 --------------020505070305040202090003
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 
 I think that the following patch will solve this problem.
 
 # diff -uNr mk/install/usergroupfuncs.orig mk/install/usergroupfuncs
 --- mk/install/usergroupfuncs.orig      2006-04-24 22:20:10.000000000 +0900
 +++ mk/install/usergroupfuncs   2006-04-24 22:22:28.000000000 +0900
 @@ -33,6 +33,9 @@
                         ${RM} -f $_testfile; return 0
                 fi
                 ${RM} -f $_testfile; return 2
 +       elif ${TEST} -z "$_groupid"; then
 +               # $_group doesn't exist and $_groupid is not set
 +               return 1
         elif ${CHGRP} $_groupid $_testfile >/dev/null 2>&1; then
                 _name=`${LS} -l $_testfile 2>/dev/null | ${AWK} '{ print $4 }'`
                 if ${TEST} "$_name" != "$_groupid"; then
 @@ -67,6 +70,9 @@
                         ${RM} -f $_testfile; return 0
                 fi
                 ${RM} -f $_testfile; return 2
 +       elif ${TEST} -z "$_userid"; then
 +               # $_user doesn't exist and $_userid is not set
 +               return 1
         elif ${CHOWN} $_userid $_testfile >/dev/null 2>&1; then
                 _name=`${LS} -l $_testfile 2>/dev/null | ${AWK} '{ print $3 }'`
                 if ${TEST} "$_name" != "$_userid"; then
 
 -- 
 Yoshito Komatsu <ykomatsu%akaumigame.org@localhost>
 
 --------------020505070305040202090003
 Content-Type: text/plain;
  name="usergroupfuncs.diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="usergroupfuncs.diff"
 
 --- mk/install/usergroupfuncs.orig      2006-04-24 22:20:10.000000000 +0900
 +++ mk/install/usergroupfuncs   2006-04-24 22:22:28.000000000 +0900
 @@ -33,6 +33,9 @@
                         ${RM} -f $_testfile; return 0
                 fi
                 ${RM} -f $_testfile; return 2
 +       elif ${TEST} -z "$_groupid"; then
 +               # $_group doesn't exist and $_groupid is not set
 +               return 1
         elif ${CHGRP} $_groupid $_testfile >/dev/null 2>&1; then
                 _name=`${LS} -l $_testfile 2>/dev/null | ${AWK} '{ print $4 }'`
                 if ${TEST} "$_name" != "$_groupid"; then
 @@ -67,6 +70,9 @@
                         ${RM} -f $_testfile; return 0
                 fi
                 ${RM} -f $_testfile; return 2
 +       elif ${TEST} -z "$_userid"; then
 +               # $_user doesn't exist and $_userid is not set
 +               return 1
         elif ${CHOWN} $_userid $_testfile >/dev/null 2>&1; then
                 _name=`${LS} -l $_testfile 2>/dev/null | ${AWK} '{ print $3 }'`
                 if ${TEST} "$_name" != "$_userid"; then
 
 --------------020505070305040202090003--
 



Home | Main Index | Thread Index | Old Index