ports/164029: [PATCH] graphics/bmeps fix build with databases/gdbm

Jan Henrik Sylvester me at janh.de
Wed Jan 11 19:20:12 UTC 2012


>Number:         164029
>Category:       ports
>Synopsis:       [PATCH] graphics/bmeps fix build with databases/gdbm
>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:   Wed Jan 11 19:20:11 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Jan Henrik Sylvester
>Release:        9.0-RELEASE amd64
>Organization:
>Environment:
>Description:
graphics/bmeps fails to configure, if databases/gdbm is installed.

configure picks up gdbm, but cannot use it:

checking gdbm.h usability... yes
checking gdbm.h presence... no
configure: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: gdbm.h: proceeding with the compiler's result
checking for gdbm.h... yes

Since configure has found gdbm, it will skip the check for ndbm. Later, it finds out that it cannot use either gdbm or ndbm and fails:

ERROR: None of the supported database APIs was found on this system.
At least one of NDBM, GDBM or Berkeley DB is required.
>How-To-Repeat:
Install databases/gdbm and try to build graphics/bmeps.
>Fix:
The patch attached creates a patch that has configure skip the gdbm check and use ndbm  whether or not gdbm is present. (Note that graphics/bmeps/files has to be created.)

Patch attached with submission follows:

diff -uN graphics/bmeps/files/patch-configure.orig graphics/bmeps/files/patch-configure
--- graphics/bmeps/files/patch-configure.orig	1970-01-01 01:00:00.000000000 +0100
+++ graphics/bmeps/files/patch-configure	2012-01-11 19:28:09.000000000 +0100
@@ -0,0 +1,11 @@
+--- configure.orig	2011-11-02 18:37:26.000000000 +0100
++++ configure	2012-01-11 19:27:21.000000000 +0100
+@@ -4234,7 +4234,7 @@
+ 
+ 
+ GDBMLIB=""
+-ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
++#ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
+ if test "x$ac_cv_header_gdbm_h" = x""yes; then :
+   $as_echo "#define HAVE_GDBM_H 1" >>confdefs.h
+ 


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



More information about the freebsd-ports-bugs mailing list