pkgsrc-Bugs archive

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

pkg/33945: "make test" in pkgsrc/devel/glib2 fails



>Number:         33945
>Category:       pkg
>Synopsis:       "make test" in pkgsrc/devel/glib2 fails
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 08 09:30:00 +0000 2006
>Originator:     Gert Doering
>Release:        NetBSD 2.0.3_STABLE
>Organization:
        
>Environment:
        
        
System: NetBSD kirk 2.0.3_STABLE NetBSD 2.0.3_STABLE (KIRK) #1: Tue Dec 6 
11:53:11 CET 2005 
gert@kirk:/home/sparc64/obj/home/src-2.0/sys/arch/sparc64/compile/KIRK sparc64
Architecture: sparc64
Machine: sparc64
>Description:
        self-test of glib2 fails - this is for glib2-2.12.0, but 2.11 had
        the same problem already.

        The errror seen is this:
        ===> Testing for glib2-2.12.0
        /usr/pkg/bin/gmake  check-recursive
        ...
        gmake[5]: Leaving directory 
`/home/obj/pkg/devel/glib2/work/glib-2.12.0/tests/gobject'
        /usr/pkg/bin/gmake  check-TESTS
        gmake[5]: Entering directory 
`/home/obj/pkg/devel/glib2/work/glib-2.12.0/tests/gobject'
        arithmetic expression: syntax error: " % 256"
        gmake[5]: *** [check-TESTS] Error 2
        gmake[5]: Leaving directory 
`/home/obj/pkg/devel/glib2/work/glib-2.12.0/tests/gobject'
        gmake[4]: *** [check-am] Error 2
        gmake[4]: Leaving directory 
`/home/obj/pkg/devel/glib2/work/glib-2.12.0/tests/gobject'
        gmake[3]: *** [check] Error 2

        the problematic line is in gobject/Makefile:

        MALLOC_PERTURB_=$$(($$RANDOM % 256))

        which normally works fine in my shell (ksh), but somehow fails
        when called from Makefile.  Seems standard "make" calls /bin/sh -
        it works fine if called like this:

             make SHELL=/bin/ksh test

>How-To-Repeat:
        cd /usr/pkgsrc/devel/glib2
        make
        make test
>Fix:
        no good suggestion, maybe forcing "SHELL=/bin/ksh" in the pkg
        Makefile?




Home | Main Index | Thread Index | Old Index