pkgsrc-Bugs archive

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

Re: pkg/47252: upgrade pkgsrc/lang/gcc47 to 4.7.2



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

From: Richard PALO <Richard.PALO%baou.fr@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/47252: upgrade pkgsrc/lang/gcc47 to 4.7.2
Date: Fri, 30 Nov 2012 12:56:49 +0100

 This is a multi-part message in MIME format.
 --------------070206020509030108070202
 Content-Type: text/plain; charset=UTF-8; format=flowed
 Content-Transfer-Encoding: 7bit
 
 I believe I found the problematic script and tried the following patch:
 richard@devzone:~/src/pkgsrc/mk/pkgformat/pkg$ pkgdiff metadata.mk
 $NetBSD$
 
 --- metadata.mk.orig    2012-05-13 08:20:11.000000000 +0000
 +++ metadata.mk
 @@ -309,7 +309,7 @@ ${_SIZE_ALL_FILE}: ${_RDEPENDS_FILE} ${_
          {                                                               \
                  ${CAT} ${_SIZE_PKG_FILE} &&                             \
                  ${_FULL_DEPENDS_CMD} | ${SORT} -u |                     \
 -               ${XARGS} -n 256 ${PKG_INFO} -qs;                        \
 +               ${XARGS} -rn 256 ${PKG_INFO} -qs;                       \
          } |                                                             \
          ${AWK} 'BEGIN { s = 0 } /^[0-9]+$$/ { s += $$1 } END { print s }' \
                  > ${.TARGET}
 
 
 this allows building the package without the pkg_info error (also worked 
 for nspr)
 
 What I don't like is the gnu-ism...from the xargs man page:
       --no-run-if-empty, -r
            If the standard input does not contain  any  nonblanks,
            do  not  run the command.  Normally, the command is run
            once even if there is no input.  This option is  a  GNU
            extension.
 
 I believe there should be a better way to do this, but I'm afraid it is 
 perhaps better for the pkgsrc maintainers to determine the best approach.
 
 --------------070206020509030108070202
 Content-Type: text/x-vcard; charset=utf-8;
  name="Richard_PALO.vcf"
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment;
  filename="Richard_PALO.vcf"
 
 YmVnaW46dmNhcmQNCmZuOlJpY2hhcmQgUEFMTw0KbjpQQUxPO1JpY2hhcmQNCm9yZzpTQVMg
 QkFPVTtUTlQgUEFDQQ0KYWRyOlpJIENhbXAgTGF1cmVudDs7MTE3LCBhdiBNYXJjZWwgQmVy
 cmU7TEEgU0VZTkUgU1VSIE1FUjtWQVI7ODM1MDA7RlJBTkNFDQplbWFpbDtpbnRlcm5ldDpy
 aWNoYXJkLnBhbG9AYmFvdS5mcg0KdGVsO3dvcms6KzMzIDQgOTQgOTQgMzkgOTQNCnRlbDtm
 YXg6KzMzIDQgOTQgODcgODYgNjcNCngtbW96aWxsYS1odG1sOkZBTFNFDQp2ZXJzaW9uOjIu
 MQ0KZW5kOnZjYXJkDQoNCg==
 --------------070206020509030108070202--
 


Home | Main Index | Thread Index | Old Index