From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Mar 29 14:10:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A819A23C for ; Fri, 29 Mar 2013 14:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 8EED77C3 for ; Fri, 29 Mar 2013 14:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2TEA0xg061356 for ; Fri, 29 Mar 2013 14:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2TEA0Ft061355; Fri, 29 Mar 2013 14:10:00 GMT (envelope-from gnats) Resent-Date: Fri, 29 Mar 2013 14:10:00 GMT Resent-Message-Id: <201303291410.r2TEA0Ft061355@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Kurt Jaeger Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1055A238 for ; Fri, 29 Mar 2013 14:09:43 +0000 (UTC) (envelope-from pi@fa9.opsec.eu) Received: from fa9.opsec.eu (zfs.opsec.eu [IPv6:2001:14f8:200:4::18]) by mx1.freebsd.org (Postfix) with ESMTP id C70167C0 for ; Fri, 29 Mar 2013 14:09:42 +0000 (UTC) Received: from pi by fa9.opsec.eu with local (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1ULZzx-000FiC-Tx; Fri, 29 Mar 2013 15:09:41 +0100 Message-Id: Date: Fri, 29 Mar 2013 15:09:41 +0100 From: Kurt Jaeger To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/177473: [patch update] databases/p5-DBD-cego fix compile with newer DBI Cc: lemke@lemke-it.com X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Kurt Jaeger List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Mar 2013 14:10:01 -0000 >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 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: