pkgsrc-Bugs archive

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

pkg/48157: pkgsrc 2013Q2 make-system exeeds max. command line length



>Number:         48157
>Category:       pkg
>Synopsis:       pkgsrc 2013Q2 make-system exeeds max. command line length
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 27 13:35:00 +0000 2013
>Originator:     Dr. Wolfgang Stukenbrock
>Release:        NetBSD 6.1 / pkgsrc-2013Q2
>Organization:
Dr. Nagler & Company GmbH
>Environment:
        
        
System: NetBSD test-s0 5.1.2 NetBSD 5.1.2 (NSW-WS) #3: Fri Dec 21 15:15:43 CET 
2012 wgstuken@test-s0:/usr/src/sys/arch/amd64/compile/NSW-WS amd64
Architecture: x86_64
Machine: amd64
>Description:
        While trying to build math/R with "make -D ALLOW_VULNERABLE_PACKAGES 
bin-install" I've got the error message
        "make: exec(/bin/sh) failed (Argument list too long)".
        When running make without "-D ALLOW_VULNERABLE_PACKAGE" it succeeds.
        I've tried to figure out the problem and run "make -d e -D 
ALLOW_VULNERABLE_PACKAGES bin-install".
        Now I get the same error message and the failed command dumped is:
*** Failed target:  barrier
*** Failed command: set -e; if test -n "" && /usr/pkg/sbin/pkg_info -K 
/var/db/pkg -qe dialog-1.2.20130523; then echo ===\> "Skipping installation of 
already handled package"; else cd /usr/pkgsrc-2013Q2/misc/dialog && 
/usr/bin/env MAKECONF=/etc/mk.conf 
PATH=/usr/pkgsrc-2013Q2/misc/dialog/work/.wrapper/bin:/usr/pkgsrc-2013Q2/misc/dialog/work/.buildlink/bin:/usr/pkgsrc-2013Q2/misc/dialog/work/.gcc/bin:/usr/pkgsrc-2013Q2/misc/dialog/work/.tools/bin:/usr/pkg/bin:/sbin:/bin:/usr/bin:/usr/sbin:/
 USE_DESTDIR=yes /usr/bin/make -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNE
 RABLE_PACKAGES -D ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES 
-d e -D ALLOW_VULNERABLE_PACKAGES -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -D ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_
 VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULN
...... (many many many times '-d e -D ALLOW_VULNERABLE_PACKAGES' again) .....
-d e -D ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES 
DEPENDS_TARGET=bin-install HOST_OSTYPE=NetBSD-6.1-amd64 LOWER_OPSYS=netbsd 
OPSYS=NetBSD OS_VERSION=6.1 PKGTOOLS_VERSION=20130131 
PKG_BUILD_OPTIONS.MesaLib=dri\ dri PKG_BUILD_OPTIONS.cairo=x11\ xcb 
PKG_BUILD_OPTIONS.tk=threads\ xft2 _AUTOMATIC=yes _CC=/usr/bin/gcc 
_MAKE=/usr/bin/make _PATH_ORIG=/sbin:/bin:/usr/bin:/usr/sbin:/ 
_PKGSRCDIR=/usr/pkgsrc-2013Q2 _SRC_TOP_= LOWER_OPSYS=netbsd clean; /usr/bin/env 
MAKECONF=/etc/mk.conf 
PATH=/usr/pkgsrc-2013Q2/misc/dialog/work/.wrapper/bin:/usr/pkgsrc-2013Q2/misc/dialog/work/.buildlink/bin:/usr/pkgsrc-2013Q2/misc/dialog/work/.gcc/bin:/usr/pkgsrc-2013Q2/misc/dialog/work/.tools/bin:/usr/pkg/bin:/sbin:/bin:/usr/bin:/usr/sbin:/
 USE_DESTDIR=yes /usr/bin/make -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VUL
 NERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNER
 ABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNE
...... (many many many times '-d e -D ALLOW_VULNERABLE_PACKAGES' again) .....
CKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e 
-D ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES -d e -D ALLOW_VULNERABLE_PACKAGES -d e -D 
ALLOW_VULNERABLE_PACKAGES DEPENDS_TARGET=bin-install 
HOST_OSTYPE=NetBSD-6.1-amd64 LOWER_OPSYS=netbsd OPSYS=NetBSD OS_VERSION=6.1 
PKGTOOLS_VERSION=20130131 PKG_BUILD_OPTIONS.MesaLib=dri\ dri 
PKG_BUILD_OPTIONS.cairo=x11\ xcb PKG_BUILD_OPTIONS.tk=threads\ xft2 
_AUTOMATIC=yes _CC=/usr/bin/gcc _MAKE=/usr/bin/make 
_PATH_ORIG=/sbin:/bin:/usr/bin:/usr/sbin:/ _PKGSRCDIR=/usr/pkgsrc-2013Q2 
_SRC_TOP_= LOWER_OPSYS=netbsd build ;; esac
*** Error code 1

        Hmm. It looks like the command options are placed on the command line 
again and again and again ... not very smart.
        There is a call to make with target 'clean' and a call to make with 
taget 'build'.
        The same happens if I try to use MAKEFLAGS environment variable for "-D 
ALLOW_VULNERABLE_PACKAGES".

        Remark: the command with target 'install' does not trigger the problem. 
It looks like there is an additional recursive call to make in case of
        'bin-install' and that will double the command line.
>How-To-Repeat:
        Try to compile math/R as descried above on a fresh system with out the 
dependencies installed (or present as binary packages)
>Fix:
        Not prepared till now - sorry, but the make-files of pkgsrc look not 
trivial to me.
        And someone with deeper knowledge to this make system will find the 
place to fix this much faster ...

        But the fix is clear: avoid adding the same options on the command line 
again and again ....

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index