Subject: pkg/23338: databases/ruby-postgresql fails to build
To: None <>
From: None <>
List: netbsd-bugs
Date: 11/01/2003 20:04:48
>Number:         23338
>Category:       pkg
>Synopsis:       databases/ruby-postgresql fails to build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 01 20:05:01 UTC 2003
>Originator:     Ron Roskens
>Release:        -current
NetBSD 1.6ZD NetBSD 1.6ZD (GENERIC) #19: Wed Oct 22 18:35:02 CDT 2003 i386

When building databases/ruby-postgresql, it fails to find the postgresql libraries or header files. Even though the for postgresql-libs is included, the makefile does not define USE_BUILDLINK2 and so has no dependency upon postgresql-libs.

===> Configuring for ruby-postgresql-0.7.1
===>  Fixing the #! line of sample/psql.rb
===>  Fixing the #! line of sample/test1.rb
===>  Fixing the #! line of sample/test2.rb
===>  Fixing the #! line of sample/test4.rb
===>  Running extconf.rb to configure
checking for cygwin32_socket() in -lwsock32... no
checking for socket() in -lsocket... no
checking for gethostbyname() in -linet... no
checking for gethostbyname() in -lnsl... no
checking for sys/un.h... yes
checking for socket()... yes
checking for hsterror()... no
checking for gethostname()... yes
Using PostgreSQL include directory: /usr/pkg/include/postgresql
Using PostgreSQL lib directory: /usr/pkg/lib
checking for PQsetdbLogin() in -lpq... no
Could not find PostgreSQL libraries: Makefile not created

Run a bulk build, and watch it add databases/ruby-postgresql to the broken list.
Index: Makefile
RCS file: /cvs/NetBSD/pkgsrc/databases/ruby-postgresql/Makefile,v
retrieving revision 1.10
diff -u -r1.10 Makefile
--- Makefile    11 Sep 2003 14:59:18 -0000      1.10
+++ Makefile    1 Nov 2003 19:56:17 -0000
@@ -9,6 +9,8 @@
 COMMENT=               Ruby extension for postgresql
+USE_BUILDLINK2=                # defined
 VERSION=               0.7.1
 DIST_SUBDIR=           ruby
@@ -41,4 +43,5 @@
 .include "../../databases/postgresql-lib/"
 .include "../../lang/ruby-base/Makefile.common"
+.include "../../lang/ruby-base/"
 .include "../../mk/"