Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Mar 2013 15:09:41 +0100
From:      Kurt Jaeger <fbsd-ports@opsec.eu>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        lemke@lemke-it.com
Subject:   ports/177473: [patch update] databases/p5-DBD-cego fix compile with newer DBI
Message-ID:  <E1ULZzx-000FiC-Tx@fa9.opsec.eu>
Resent-Message-ID: <201303291410.r2TEA0Ft061355@freefall.freebsd.org>

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

>Number:         177473
>Category:       ports
>Synopsis:       [patch update] databases/p5-DBD-cego fix compile with newer DBI
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 29 14:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Kurt Jaeger
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
-
>Environment:
System: FreeBSD fa9.opsec.eu 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64


>Description:
	DBD::cego fails to compile with DBI > 1.622 with the error

./Cego.xsi: In function 'void XS_DBD__Cego__db__login(CV*)':
./Cego.xsi:96: error: invalid conversion from 'const char*' to 'char*'
./Cego.xsi:97: error: invalid conversion from 'const char*' to 'char*'

	The real problem seems to be in DBI.

>How-To-Repeat:
	cd /usr/ports/databases/p5-DBD-cego
	make

>Fix:

diff -r -u databases/p5-DBD-cego/Makefile /usr/home/pi/myp/databases/p5-DBD-cego/Makefile
--- databases/p5-DBD-cego/Makefile	2013-01-01 18:29:55.000000000 +0100
+++ /usr/home/pi/myp/databases/p5-DBD-cego/Makefile	2013-03-29 14:59:08.000000000 +0100
@@ -24,4 +24,7 @@
 
 MAN3=		DBD::Cego.3
 
+post-configure:
+	@${REINPLACE_CMD} -e 's|fno-strict-aliasing|fno-strict-aliasing -fpermissive|g' ${WRKSRC}/Makefile
+
 .include <bsd.port.mk>
Only in databases/p5-DBD-cego/files: patch-CegoXS.h
diff -r -u databases/p5-DBD-cego/files/patch-makefile-pl /usr/home/pi/myp/databases/p5-DBD-cego/files/patch-makefile-pl
--- databases/p5-DBD-cego/files/patch-makefile-pl	2013-01-01 18:29:55.000000000 +0100
+++ /usr/home/pi/myp/databases/p5-DBD-cego/files/patch-makefile-pl	2013-03-29 14:43:05.000000000 +0100
@@ -1,6 +1,6 @@
---- Makefile.PL	2010-09-17 10:14:49.000000000 +0200
-+++ /tmp/bla/Makefile.PL	2011-04-24 22:00:03.000000000 +0200
-@@ -25,30 +25,21 @@
+--- Makefile.PL.orig	2010-09-17 10:14:49.000000000 +0200
++++ Makefile.PL	2013-03-29 14:42:20.000000000 +0100
+@@ -25,30 +25,22 @@
  Getopt::Long::GetOptions(
      $opt,
      "help",
@@ -28,15 +28,17 @@
 -    'MYEXTLIB'    => $opt->{'prefix'} . "/lib/libcego.a " 
 -	      . $opt->{'prefix'} . "/lib/liblfcxml.a " 
 -	      . $opt->{'prefix'} . "/lib/liblfc.a",
+-    "CC" => "g++",
+-    "LD" => "g++",
 +    'INC'           => '-I$(DBI_INSTARCH_DIR) -I/usr/local/include',
 +    'MYEXTLIB'      => '-lcego -llfcxml -llfc',
-     "CC" => "g++",
--    "LD" => "g++",
++    'CC' => 'g++',
++    'CCFLAGS' => '-O2 -pipe -fno-strict-aliasing -fpermissive',
 +    "LD" => "g++ -L/usr/local/lib",
      "XSPROTOARG" => "-noprototypes",
      'OPTIMIZE'      => '-O6 -DNDEBUG=1',
      'XSOPT'             => '-C++',
-@@ -59,12 +50,6 @@
+@@ -59,12 +51,6 @@
  sub Usage {
    print STDERR <<"USAGE";
  Usage: perl $0 [options]
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1ULZzx-000FiC-Tx>