When trying to register a port with many dependencies (2141 ports in my case) using pkgng, it fails with error: ===> Registering installation for texlive-scheme-full-20110217,1 /bin/sh: Argument list too long pkg: Invalid manifest format *** [fake-pkg] Error code 74 Stop in /usr/ports/print/texlive-scheme-full. The ${ACTUAL-PACKAGE-DEPENDS} generated snippet is too long and this result in an invalid metadata file to be generated, thus making pkg fail a bit later. In my case, ${_LIB_RUN_DEPENDS} is 204172 bytes long while the max commandline length is 262144 bytes, there is therefore no much room for the rest of the arguments. However, the " " argument passed to `pkg query` prevent it from failing if ${_LIB_RUN_DEPENDS} where empty, so the test to "protect" it against that is useless. Fix: The following patch helps avoiding this situation. How-To-Repeat: One can get the TeXLive ports from http://code.google.com/p/freebsd-texlive/ and try to install print/texlive-scheme-full with WITH_PKGNG=yes in /etc/make.conf.
Responsible Changed From-To: freebsd-ports-bugs->portmgr bsd.pkgng.mk is portmgr territory (via the GNATS Auto Assign Tool)
Responsible Changed From-To: portmgr->bapt I guess bapt will be interested in this. Please reassign to somebody else if I am wrong. Thanks!
Is this PR still relevant?
In theory it is but I never encounter the case when it can happen