pkgsrc-Bugs archive

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

pkg/43050: math/mpfr (& others??) needs a revbump



>Number:         43050
>Category:       pkg
>Synopsis:       math/mpfr (& others??) needs a revbump
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 24 05:35:00 +0000 2010
>Originator:     Robert Elz
>Release:        NetBSD 4.0 / i386   pkgsrc current 2010-03-24
>Organization:
        Prince of Songkla University
>Environment:
System: NetBSD jade.coe.psu.ac.th 4.0_STABLE NetBSD 4.0_STABLE 
(JADE-1.696-20080517) #9: Fri May 23 18:55:13 ICT 2008 
kre%jade.coe.psu.ac.th@localhost:/usr/obj/4/kernels/JADE i386
Architecture: i386
Machine: i386
>Description:
        The update of devel/gmp from version 4.3.1 to version 5.0.1
        changed the major version of its shared lib from libgmp.so.3
        to libgmp.so.10

        math/mpfr installs a shares lib with a runtime dependency
        upon libgmp.so - when the version of libgmp.so was
        changed, mpfr needs to be rebuilt so it can link against
        the correct version.

        The pkgsrc way of achieving that is the (in)famous recursive
        revbump - either that wasn't done at all in this case, or
        (at the very least) math/mpfr was missed.

>How-To-Repeat:
        I found this attempting to build the latest version of
        lang/gcc44 - the build failed claiming that while building
        libgcc it was unable to determine the suffix of object
        files ...

        The reason turned out to be that (even though there was
        for the program being compiled no rational reason to need
        any of this) the test program was linking against libmpfr.so
        and that one (installed from my latest binary package building
        of math/mpfr - predating the gmp update) required libgmp.so.3,
        but installing devel/gmp had installed libgmp.so.10


pkg_comp:default.conf# ldd 
/pkg_comp/obj/pkgsrc/lang/gcc44/4x/.buildlink/lib/*.so
/pkg_comp/obj/pkgsrc/lang/gcc44/4x/.buildlink/lib/libgmp.so:
/pkg_comp/obj/pkgsrc/lang/gcc44/4x/.buildlink/lib/libgmpxx.so:
        -lgmp.10 => /usr/pkg/lib/libgmp.so.10
        -lstdc++.6 => /usr/lib/libstdc++.so.6
        -lm.0 => /usr/lib/libm387.so.0
        -lm.0 => /usr/lib/libm.so.0
        -lgcc_s.1 => /usr/lib/libgcc_s.so.1
/pkg_comp/obj/pkgsrc/lang/gcc44/4x/.buildlink/lib/libmpfr.so:
        -lgmp.3 => not found

        Rebuilding math/mpfr fixed that problem.

>Fix:
        Do a recursive revbump for the devel/gmp update if that
        has not already been done (but not for any packages that
        have been updated for other reasons in the past month or so).

        Or, at the very least, revbump math/mpfr



Home | Main Index | Thread Index | Old Index