Subject: pkg/23338: databases/ruby-postgresql fails to build
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <roskens@elfin.net>
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
>Closed-Date:
>Last-Modified:
>Originator: Ron Roskens
>Release: -current
>Organization:
>Environment:
NetBSD hysteria.tx.elfin.net 1.6ZD NetBSD 1.6ZD (GENERIC) #19: Wed Oct 22 18:35:02 CDT 2003 root@speedy.tx.elfin.net:/obj/sys/arch/i386/compile/GENERIC i386
>Description:
When building databases/ruby-postgresql, it fails to find the postgresql libraries or header files. Even though the buildlink2.mk 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
>How-To-Repeat:
Run a bulk build, and watch it add databases/ruby-postgresql to the broken list.
>Fix:
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 @@
HOMEPAGE= http://www.postgresql.jp/interfaces/ruby/
COMMENT= Ruby extension for postgresql
+USE_BUILDLINK2= # defined
+
VERSION= 0.7.1
DIST_SUBDIR= ruby
USE_RUBY_EXTCONF= yes
@@ -41,4 +43,5 @@
.include "../../databases/postgresql-lib/buildlink2.mk"
.include "../../lang/ruby-base/Makefile.common"
+.include "../../lang/ruby-base/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
>Unformatted: