Bug 144406 - math/p5-Math-BigInt-GMP doesn't build with -lgmp
Summary: math/p5-Math-BigInt-GMP doesn't build with -lgmp
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Wen Heping
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-02 00:20 UTC by kimor79
Modified: 2014-07-14 15:43 UTC (History)
0 users

See Also:


Attachments
file.diff (386 bytes, patch)
2010-03-02 00:20 UTC, kimor79
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description kimor79 2010-03-02 00:20:04 UTC
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).

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:
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
Comment 1 Wen Heping freebsd_committer freebsd_triage 2010-03-02 03:40:32 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wen

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2010-07-26 12:33:49 UTC
sylvio      2010-07-26 11:33:35 UTC

  FreeBSD ports repository

  Modified files:
    math/p5-Math-BigInt-GMP Makefile 
  Log:
  - Fix problem build with -lgmp
  
  PR:             ports/144406
  Submitted by:   Kimo <kimor79@yahoo.com>
  Approved by:    wen@ (He is on vacation, I've his permission for commit your PR)
  
  Revision  Changes    Path
  1.10      +5 -0      ports/math/p5-Math-BigInt-GMP/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Sylvio Cesar Teixeira freebsd_committer freebsd_triage 2010-07-26 12:34:17 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!
Comment 4 commit-hook freebsd_committer freebsd_triage 2014-07-14 15:43:03 UTC
A commit references this bug:

Author: adamw
Date: Mon Jul 14 15:42:56 UTC 2014
New revision: 361792
URL: http://svnweb.freebsd.org/changeset/ports/361792

Log:
  Fix installation with DOCS disabled.

  PR:		144406
  Submitted by:	Chris Nehren

Changes:
  head/deskutils/mirall/Makefile