Date: Tue, 2 Mar 2010 00:18:59 GMT From: Kimo <kimor79@yahoo.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/144406: p5-Math-BigInt-GMP doesn't build with -lgmp Message-ID: <201003020018.o220IxeD035551@www.freebsd.org> Resent-Message-ID: <201003020020.o220K4LM097379@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 144406 >Category: ports >Synopsis: p5-Math-BigInt-GMP doesn't build with -lgmp >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Mar 02 00:20:04 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Kimo >Release: 8.0 >Organization: >Environment: >Description: On FreeBSD 8.0, math/p5-Math-BigInt-GMP builds with no "errors" but skips building with -lgmp. This is not the case on FreeBSD 7.2 (it correctly builds with gmp). >How-To-Repeat: cd /usr/ports/math/p5-Math-BigInt-GMP make install ldd /usr/local/lib/perl5/site_perl/5.8.9/mach/auto/Math/BigInt/GMP/GMP.so >Fix: Patch to the port Makefile: Index: Makefile =================================================================== --- Makefile (revision 44) +++ Makefile (working copy) @@ -24,4 +24,9 @@ MAN3= Math::BigInt::GMP.3 +post-patch: + @${PERL} -pi -e "s!-lgmp!-L${LOCALBASE}/lib $$&!;" \ + -e "if (/'LIBS'/) { print qq!'INC' => '-I${LOCALBASE}/include',!; }" \ + ${WRKSRC}/Makefile.PL + .include <bsd.port.mk> Patch attached with submission follows: Index: Makefile =================================================================== --- Makefile (revision 44) +++ Makefile (working copy) @@ -24,4 +24,9 @@ MAN3= Math::BigInt::GMP.3 +post-patch: + @${PERL} -pi -e "s!-lgmp!-L${LOCALBASE}/lib $$&!;" \ + -e "if (/'LIBS'/) { print qq!'INC' => '-I${LOCALBASE}/include',!; }" \ + ${WRKSRC}/Makefile.PL + .include <bsd.port.mk> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003020018.o220IxeD035551>