Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jul 2011 13:09:22 GMT
From:      Peter Vereshagin <peter@vereshagin.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/159085: security/p5-Crypt-DH-GMP lacks gmp.h
Message-ID:  <201107211309.p6LD9MKw096521@red.freebsd.org>
Resent-Message-ID: <201107211310.p6LDA7gE051691@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         159085
>Category:       ports
>Synopsis:       security/p5-Crypt-DH-GMP lacks gmp.h
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 21 13:10:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Peter Vereshagin
>Release:        releng_7 as of May, 2011
>Organization:
Private
>Environment:
FreeBSD teh.ost 7.4-STABLE FreeBSD 7.4-STABLE #10: Mon May  2 16:12:55 MSD 2011     peter@vereshagin.org:/CONF  i386
>Description:
Reproduced on several hosts. Module building process loses the headers path.
No much sure it is a port problem and not a module's.
Versions:
perl-5.14.1
gmp-5.0.1
p5-Crypt-DH-GMP-0.00009
>How-To-Repeat:

cd /usr/ports/security/p5-Crypt-DH-GMP
make
I get:
[..]
cc -c  "-I."  "-I."  -O2 -fno-strict-aliasing -pipe -g    -DVERSION=\"0.00009\"
 -DXS_VERSION=\"0.00009\" -o xs/dh_gmp.o -DP
IC -fPIC "-I/usr/local/lib/perl5/5.14.1/mach/CORE"  -DUSE_PPPORT xs/dh_gmp.c
In file included from xs/dh_gmp.c:4:
xs/dh_gmp.h:4:17: error: gmp.h: No such file or directory
Solution: patch attached, should better handle the build $PREFIX
>Fix:
patch on module's Makefile.PL supplied

Patch attached with submission follows:

--- ../Crypt-DH-GMP-0.00009.orig/Makefile.PL	2011-06-30 17:59:18.000000000 +0400
+++ Makefile.PL	2011-06-30 18:00:13.000000000 +0400
@@ -7,7 +7,7 @@
 
 my @CCFLAGS = split(//, $ENV{CCFLAGS} || '');
 my @LDFLAGS = split(//, $ENV{LDFLAGS} || '');
-my @INCLUDES;
+my @INCLUDES = '/usr/local/include';
 my @LIBPATHS;
 
 if ($^O eq 'darwin') {
@@ -60,4 +60,4 @@
 
 test_requires 'Test::More';
 test_requires 'Test::Requires';
-WriteAll;
\ No newline at end of file
+WriteAll;


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107211309.p6LD9MKw096521>