pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/30955: print-pkg-size-this produces "", not 0, for file-less package (such as metapackage)
>Number: 30955
>Category: pkg
>Synopsis: print-pkg-size-this produces "", not 0, for file-less package
>(such as metapackage)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Aug 10 00:04:00 +0000 2005
>Originator: Chapman Flack
>Release: 2.0.0 (irrelevant to issue)
>Organization:
>Environment:
NetBSD lundestad.anastigmatix.net 2.0 NetBSD 2.0 (lundestad) #11: Sat Mar 5
14:01:49 EST 2005 xxx@xxx:/usr/src/sys/arch/i386/compile/lundestad i386
(irrelevant to issue)
>Description:
If a package, such as a metapackage, has no files, the print-pkg-size-this
target produces an empty string, not 0.
>How-To-Repeat:
>Fix:
--- /tmp/bsd.pkg.mk 2005-08-09 14:32:15.000000000 -0500
+++ /tmp/bsd.pkg.mk 2005-08-09 19:04:29.000000000 -0500
@@ -3974,7 +3974,7 @@
| ${SORT} -u \
| ${SED} -e "s/'/'\\\\''/g" -e "s/.*/'&'/" \
| ${XARGS} -n 256 ${LS} -ld \
- | ${AWK} '{ s += $$5; } END { print s; }' \
+ | ${AWK} '{ s += $$5; } END { print 0 + s; }' \
# Sizes of required pkgs (only)
#
Home |
Main Index |
Thread Index |
Old Index