[culot at FreeBSD.org: Re: ports/179254: [patch update] databases/p5-DBD-cego 1.2.0 -> 1.2.3]

Kurt Jaeger pi at opsec.eu
Tue Jul 30 08:37:54 UTC 2013


Hi!

> > > > > https://rt.cpan.org/Ticket/Display.html?id=84285
> > > > 
> > > > should fix DBI, but I do not know how to push harder at upstream 8-)
> > > > or the p5-DBI port 8-}
> > 
> > Tim Bunce has included the patch to Driver.xst and it will be in the
> > next version of DBI.
> > 
> > I'm sorry that it is a mess, but there's no easy way to fix it without
> > the DBI update.
> 
> DBI was updated a few days ago. I submitted 
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=180902
> 
> to update it.
> 
> With that, DBD::cego compiles.

Included is a slightly newer patch which includes the upgraded
DBI requirement.

--------------
diff -r -u -N databases/p5-DBD-cego/Makefile /usr/home/pi/myp/databases/p5-DBD-cego/Makefile
--- databases/p5-DBD-cego/Makefile	2013-07-10 23:25:35.000000000 +0200
+++ /usr/home/pi/myp/databases/p5-DBD-cego/Makefile	2013-07-30 10:34:09.000000000 +0200
@@ -1,21 +1,24 @@
 # Created by: Kurt Jaeger <fbsd-ports at opsec.eu>
-# $FreeBSD: head/databases/p5-DBD-cego/Makefile 322681 2013-07-10 12:25:52Z bapt $
+# $FreeBSD: head/databases/p5-DBD-cego/Makefile 317340 2013-05-04 20:02:52Z bapt $
 
 PORTNAME=	DBD-cego
-PORTVERSION=	1.2.0
+PORTVERSION=	1.2.6
 CATEGORIES=	databases perl5
 MASTER_SITES=	http://www.lemke-it.com/
 PKGNAMEPREFIX=	p5-
 
 MAINTAINER=	fbsd-ports at opsec.eu
-COMMENT=	Cego DBI driver for Perl 5
+COMMENT=	A Cego DBI driver for Perl 5
 
-LICENSE=	GPLv2
+LICENSE=	GPLv3
 
-BUILD_DEPENDS=	p5-DBI>=1.61:${PORTSDIR}/databases/p5-DBI
-RUN_DEPENDS=	p5-DBI>=1.61:${PORTSDIR}/databases/p5-DBI
+BUILD_DEPENDS=	p5-DBI>=1.628:${PORTSDIR}/databases/p5-DBI
+RUN_DEPENDS=	p5-DBI>=1.628:${PORTSDIR}/databases/p5-DBI
 LIB_DEPENDS=	cego.1:${PORTSDIR}/databases/cego
-MAKE_JOBS_UNSAFE=	yes
+
+.if defined(.PARSEDIR)
+USE_GMAKE=	yes
+.endif
 
 PERL_CONFIGURE=	yes
 CC:=		${CXX}
diff -r -u -N databases/p5-DBD-cego/distinfo /usr/home/pi/myp/databases/p5-DBD-cego/distinfo
--- databases/p5-DBD-cego/distinfo	2013-01-01 18:29:55.000000000 +0100
+++ /usr/home/pi/myp/databases/p5-DBD-cego/distinfo	2013-07-18 09:32:58.000000000 +0200
@@ -1,2 +1,2 @@
-SHA256 (DBD-cego-1.2.0.tar.gz) = 37f4cbc997abeb8d089b63ae863e186f38349f04d1045a45c0b414361a7c1436
-SIZE (DBD-cego-1.2.0.tar.gz) = 16433
+SHA256 (DBD-cego-1.2.6.tar.gz) = d944addd62cb3c6bdc853269a7f645f99a7fa255113c7279c81e06313d4b98e9
+SIZE (DBD-cego-1.2.6.tar.gz) = 28192
diff -r -u -N 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-03-30 23:24:27.000000000 +0100
+++ /usr/home/pi/myp/databases/p5-DBD-cego/files/patch-makefile-pl	2013-07-09 09:48:49.000000000 +0200
@@ -1,6 +1,6 @@
---- 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 @@
+--- Makefile.PL-orig	2013-07-09 09:44:14.000000000 +0200
++++ Makefile.PL	2013-07-09 09:48:24.000000000 +0200
+@@ -28,33 +28,23 @@
  Getopt::Long::GetOptions(
      $opt,
      "help",
@@ -16,29 +16,33 @@
 -
 -use vars qw($loadlibs);
 -$loadlibs= "-L" . $opt->{'prefix'} . " -llfc";
-+# use vars qw($loadlibs);
-+# $loadlibs= "-L/usr/local/lib";
+ my $so = $Config{so};
  
  WriteMakefile(
      'NAME'          => 'DBD::Cego',
      'VERSION_FROM'  => 'Cego.pm',
-     'PREREQ_PM'     => {DBI => 1.03},
+-    'PREREQ_PM'     => {DBI => 1.03},
++    'PREREQ_PM'     => {DBI => 1.628},
      'OBJECT'        => '$(O_FILES)',
 -    'INC'           => '-I$(DBI_INSTARCH_DIR) -I' . $opt->{'prefix'} . '/include -I' . $opt->{'prefix'} . '/include',
--    'MYEXTLIB'    => $opt->{'prefix'} . "/lib/libcego.a " 
--	      . $opt->{'prefix'} . "/lib/liblfcxml.a " 
--	      . $opt->{'prefix'} . "/lib/liblfc.a",
+-    'MYEXTLIB'    => $opt->{'prefix'} . "/lib/libcego.$so* " 
+-	      . $opt->{'prefix'} . "/lib/liblfcxml.$so* " 
+-	      . $opt->{'prefix'} . "/lib/liblfcbase.$so",
 -    "CC" => "g++",
 -    "LD" => "g++",
+-    "XSPROTOARG" => "-noprototypes",
+-    'OPTIMIZE'      => '-O6 -DNDEBUG=1',
 +    'INC'           => '-I$(DBI_INSTARCH_DIR) -I/usr/local/include',
-+    'MYEXTLIB'      => '-lcego -llfcxml -llfc',
-+    'CC' => 'g++',
-+    'CCFLAGS' => '-O2 -pipe -fno-strict-aliasing -fpermissive',
-+    "LD" => "g++ -L/usr/local/lib",
-     "XSPROTOARG" => "-noprototypes",
-     'OPTIMIZE'      => '-O6 -DNDEBUG=1',
++    'MYEXTLIB'      => '-lcego -llfcxml -llfcbase',
++    'CC'            => 'g++',
++    'CCFLAGS'       => '-O2 -pipe -fno-strict-aliasing -fpermissive',
++    'LD'            => 'g++ -L/usr/local/lib',
++    'XSPROTOARG'    => '-noprototypes',
++    'OPTIMIZE'      => '-O3 -DNDEBUG=1',
      'XSOPT'             => '-C++',
-@@ -59,12 +51,6 @@
+     'TYPEMAPS'          => ['perlobject.map' ],
+     'clean'         => { FILES => 'config.h' },
+@@ -63,12 +53,6 @@
  sub Usage {
    print STDERR <<"USAGE";
  Usage: perl $0 [options]

--------------
-- 
pi at opsec.eu            +49 171 3101372                         7 years to go !


More information about the freebsd-ports-bugs mailing list