pkgsrc-Bugs archive

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

Re: pkg/44089: lang/perl5: warnings from check_interpreter



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

From: "OBATA Akio" <obache%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/44089: lang/perl5: warnings from check_interpreter
Date: Sat, 08 Jan 2011 14:49:16 +0900

 For interpreter, I feel that just only regular files should be checked.
 So how about following patch?
 
 ndex: mk/check/check-interpreter.mk
 ===================================================================
 RCS file: /cvsroot/pkgsrc/mk/check/check-interpreter.mk,v
 retrieving revision 1.24
 diff -u -r1.24 check-interpreter.mk
 --- mk/check/check-interpreter.mk       24 Aug 2010 19:08:29 -0000      1.24
 +++ mk/check/check-interpreter.mk       8 Jan 2011 05:41:21 -0000
 @@ -49,6 +49,9 @@
                  ${_CHECK_INTERP_SKIP:@p@${p}) continue ;;@}             \
                  *) ;;                                                   \
                  esac;                                                   \
 +               if [ ! -f "$$file" ]; then                              \
 +                       continue;                                       \
 +               fi;                                                     \
                  if [ ! -r "$$file" ]; then                              \
                          ${DELAYED_WARNING_MSG} "[check-interpreter.mk] File 
\"${DESTDIR}${PREFIX}/$$file\" cannot be read."; \
                          continue;                                       \
 


Home | Main Index | Thread Index | Old Index