Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Apr 2011 22:13:25 +0200
From:      Kurt Jaeger <fbsd-ports@opsec.eu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        lemke@lemke-it.com
Subject:   ports/156623: [ports] [patch] fix p5-DBD-cego from a linking bug
Message-ID:  <E1QE5gL-000D9h-93@fbsd8a.referenz.nepustil.net>
Resent-Message-ID: <201104242020.p3OKKBIM043829@freefall.freebsd.org>

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

>Number:         156623
>Category:       ports
>Synopsis:       [ports] [patch] fix p5-DBD-cego from a linking bug
>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:   Sun Apr 24 20:20:11 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Kurt Jaeger
>Release:        FreeBSD 8.1-RELEASE amd64
>Organization:
-
>Environment:
System: FreeBSD fbsd8a.referenz.nepustil.net 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64


>Description:
	DBD/Cego/Cego.so had some missing symbols
>How-To-Repeat:
	cd work/DBD-cego-1.1.14 && make test failed with missing symbols
>Fix:

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	2010-10-02 23:21:01.000000000 +0200
+++ /usr/home/pi/myp/databases/p5-DBD-cego/files/patch-makefile-pl	2011-04-24 22:04:05.000000000 +0200
@@ -1,6 +1,10 @@
---- Makefile.PL.orig	2010-09-17 10:14:49.000000000 +0200
-+++ Makefile.PL	2010-09-17 21:51:58.000000000 +0200
-@@ -29,12 +29,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 @@
+ Getopt::Long::GetOptions(
+     $opt,
+     "help",
+-    "prefix=s",
      "verbose",
      ) || die Usage();
  
@@ -10,10 +14,13 @@
 -  die Usage();
 -}
 -
- use vars qw($loadlibs);
- $loadlibs= "-L" . $opt->{'prefix'} . " -llfc";
+-use vars qw($loadlibs);
+-$loadlibs= "-L" . $opt->{'prefix'} . " -llfc";
++# use vars qw($loadlibs);
++# $loadlibs= "-L/usr/local/lib";
  
-@@ -43,10 +37,8 @@
+ WriteMakefile(
+     'NAME'          => 'DBD::Cego',
      'VERSION_FROM'  => 'Cego.pm',
      'PREREQ_PM'     => {DBI => 1.03},
      'OBJECT'        => '$(O_FILES)',
@@ -21,23 +28,24 @@
 -    'MYEXTLIB'    => $opt->{'prefix'} . "/lib/libcego.a " 
 -	      . $opt->{'prefix'} . "/lib/liblfcxml.a " 
 -	      . $opt->{'prefix'} . "/lib/liblfc.a",
-+    'INC'           => '-I$(DBI_INSTARCH_DIR) -I/usr/local/include -I' . $opt->{'prefix'} . '/include',
-+    'MYEXTLIB'      => ' -llfc -llfcxml -lcego ',
++    'INC'           => '-I$(DBI_INSTARCH_DIR) -I/usr/local/include',
++    'MYEXTLIB'      => '-lcego -llfcxml -llfc',
      "CC" => "g++",
-     "LD" => "g++",
+-    "LD" => "g++",
++    "LD" => "g++ -L/usr/local/lib",
      "XSPROTOARG" => "-noprototypes",
-@@ -58,13 +50,7 @@
- 
+     'OPTIMIZE'      => '-O6 -DNDEBUG=1',
+     'XSOPT'             => '-C++',
+@@ -59,12 +50,6 @@
  sub Usage {
    print STDERR <<"USAGE";
--Usage: perl $0 [options]
+ Usage: perl $0 [options]
 -
 -Possible options are:
 -
 -  --prefix=<prefix path>       Use <prefix> for setting up the appropriate prefix path
 -                               to find cego libs and includes
 -
-+Usage: perl $0
  USAGE
    exit 1;
  }

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1QE5gL-000D9h-93>