ports/146027: sysutils/coreutils: missing dependency on math/gmp

Craig Leres leres at ee.lbl.gov
Sat Apr 24 22:40:07 UTC 2010


>Number:         146027
>Category:       ports
>Synopsis:       sysutils/coreutils: missing dependency on math/gmp
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 24 22:40:06 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Craig Leres
>Release:        FreeBSD 7.2-RELEASE amd64
>Organization:
Lawrence Berkeley National Laboratory
>Environment:
	    FreeBSD hot.ee.lbl.gov 7.2-RELEASE FreeBSD 7.2-RELEASE #6: Mon Apr
 5 18:55:55 PDT 2010
leres at hot.ee.lbl.gov:/usr/src/7.2-RELEASE/sys/amd64/compile/LBLSMPIPV6
amd64

>Description:
	If gmp is not installed when coreutils is built, all is
	well. But if gmp is installed, some binaries (e.g. gexpr)
	link against libgmp. If you later remove gmp, these programs
	fail.

>How-To-Repeat:

    % pkg_info | egrep 'coreutil|gmp'
    coreutils-7.5       The Free Software Foundation's core utilities
    gmp-5.0.1           A free library for arbitrary precision arithmetic
    hot 19 % ldd /usr/local/bin/gexpr
    /usr/local/bin/gexpr:
	    libintl.so.8 => /usr/local/lib/libintl.so.8 (0x80064f000)
	    libgmp.so.10 => /usr/local/lib/libgmp.so.10 (0x800758000)
	    libc.so.7 => /lib/libc.so.7 (0x8008c2000)
	    libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x800ae6000)
    % pkg_info -r coreutils-7.5
    Information for coreutils-7.5:

    Depends on:
    Dependency: libiconv-1.13.1_1
    Dependency: gettext-0.17_1

>Fix:
	Add a package dependency on gmp if it was installed when
	coreutils was built (see attached patch).


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvTcpAACgkQWxlAhAje3JvItgCgghkzdfl2SEibiIGLvele1r4s
OcMAmwT28MiyE/wLLsZy5M+4DrDiCWuk
=5bfW
-----END PGP SIGNATURE-----

--------------090905040701020809000609
Content-Type: text/plain;
 name="Makefile.diff.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="Makefile.diff.txt"

--- Makefile-	2009-09-16 04:26:06.000000000 -0700
+++ Makefile	2010-04-24 15:24:47.000000000 -0700
@@ -14,6 +14,13 @@
 MAINTAINER=	jharris at widomaker.com
 COMMENT=	The Free Software Foundation's core utilities
 
+# coreutils links against libgmp when present
+HAVE_LIBGMP!=	pkg_info -E gmp-* || true
+
+.if !empty(HAVE_LIBGMP)
+LIB_DEPENDS+=	libgmp:math/gmp
+.endif
+
 CONFLICTS=	id-utils-[0-9]* linux-gid-[0-9]*
 
 GNU_CONFIGURE=	yes

--------------090905040701020809000609
Content-Type: application/octet-stream;
 name="Makefile.diff.txt.sig"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="Makefile.diff.txt.sig"

iEYEABECAAYFAkvTcpQACgkQWxlAhAje3JtK5ACfSXlSajrh+NrYkG5xkrB3EAR6VFEAn2a0
Rg/umRnE6JYWidf1ZEF8ZDuE
--------------090905040701020809000609--
>Release-Note:
>Audit-Trail:
>Unformatted:
 This is a multi-part message in MIME format.
 --------------090905040701020809000609
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 



More information about the freebsd-ports-bugs mailing list