Bug 177473 - [patch update] databases/p5-DBD-cego fix compile with newer DBI
Summary: [patch update] databases/p5-DBD-cego fix compile with newer DBI
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-29 14:10 UTC by Kurt Jaeger
Modified: 2013-03-30 04:50 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (1.83 KB, patch)
2013-03-29 14:10 UTC, Kurt Jaeger
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kurt Jaeger 2013-03-29 14:10:00 UTC
	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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-03-29 14:10:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->perl

perl@ wants this port PRs (via the GNATS Auto Assign Tool)
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2013-03-29 14:36:07 UTC
Responsible Changed
From-To: perl->miwi

I'll take it.
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2013-03-30 04:41:07 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-03-30 04:41:08 UTC
Author: miwi
Date: Sat Mar 30 04:40:54 2013
New Revision: 315593
URL: http://svnweb.freebsd.org/changeset/ports/315593

Log:
  - Unbreak build
  
  PR:		177473
  Submitted by:	maintainer
  Reported by:	pointyhat

Modified:
  head/databases/p5-DBD-cego/Makefile   (contents, props changed)
  head/databases/p5-DBD-cego/files/patch-makefile-pl   (contents, props changed)

Modified: head/databases/p5-DBD-cego/Makefile
==============================================================================
--- head/databases/p5-DBD-cego/Makefile	Sat Mar 30 04:37:26 2013	(r315592)
+++ head/databases/p5-DBD-cego/Makefile	Sat Mar 30 04:40:54 2013	(r315593)
@@ -1,7 +1,4 @@
-# New ports collection makefile for:	p5-DBD-cego
-# Date created:				Jul  2, 2010
-# Whom:					Kurt Jaeger <fbsd-ports@opsec.eu>
-#
+# Created by: Kurt Jaeger <fbsd-ports@opsec.eu>
 # $FreeBSD$
 
 PORTNAME=	DBD-cego
@@ -24,4 +21,7 @@ CC:=		${CXX}
 
 MAN3=		DBD::Cego.3
 
+post-configure:
+	@${REINPLACE_CMD} -e 's|fno-strict-aliasing|fno-strict-aliasing -fpermissive|g' ${WRKSRC}/Makefile
+
 .include <bsd.port.mk>

Modified: head/databases/p5-DBD-cego/files/patch-makefile-pl
==============================================================================
--- head/databases/p5-DBD-cego/files/patch-makefile-pl	Sat Mar 30 04:37:26 2013	(r315592)
+++ head/databases/p5-DBD-cego/files/patch-makefile-pl	Sat Mar 30 04:40:54 2013	(r315593)
@@ -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]
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"