Request 167 was acted upon.
_________________________________________________________________________
URL: https://rt.openpkg.org/id/167
Ticket: [OpenPKG #167]
Subject: perl-dbi with_dbd_pg patch
Requestors: [EMAIL PROTECTED]
Queue: openpkg
Owner: Nobody
Status: new
Transaction: Ticket created by [EMAIL PROTECTED]
Time: Tue Jul 01 02:24:08 2003
_________________________________________________________________________
When I tried to build the current perl-dbi today with postgresql support
the compile failed because it couldn't find the postgresql include files.
The attached patch fixes this, at least to the extent that it now compiles
cleanly. It remains to be seen whether the module actually works (make
test in the built directory fails, but that may well be an artifact of the
openpkg-perl script).
Bill
--
INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC
UUCP: camco!bill PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/
It is necessary for the welfare of society that genius should be
privileged to utter sedition, to blaspheme, to outrage good taste, to
corrupt the youthful mind, and generally to scandalize one's uncles.
-- George Bernard Shaw
--- perl-dbi.spec.orig 2003-06-30 16:21:09.000000000 -0700
+++ perl-dbi.spec 2003-06-30 16:45:01.000000000 -0700
@@ -44,7 +44,7 @@
Group: Language
License: GPL/Artistic
Version: 20030629
-Release: 20030629
+Release: 20030630
# package options
%option with_dbd_mysql no
@@ -138,7 +138,11 @@
( cd DBD-Pg-%{V_dbd_pg}
%{l_shtool} subst -e 's;-lpq;-lpq -lssl -lcrypto -lcrypt;' Makefile.PL
POSTGRES_HOME=%{l_prefix}
- export POSTGRES_HOME
+ # NOTE: the second -I has to be here since the first is
+ # supplied in the Makefile.PL script
+ POSTGRES_INCLUDE="%{l_prefix}/include/postgresql -I%{l_prefix}/include"
+ POSTGRES_LIB=%{l_prefix}/lib
+ export POSTGRES_LIB POSTGRES_INCLUDE
%{l_prefix}/bin/perl-openpkg install
)
%endif