delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/15/15:04:25

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Apparently-From: <paul?marquess AT yahoo DOT co DOT uk>
From: "Paul Marquess" <Paul_Marquess AT Yahoo DOT co DOT uk>
To: <perl5-porters AT perl DOT org>, <jhi AT iki DOT fi>
Cc: "Reini Urban" <rurban AT sbox DOT tu-graz DOT ac DOT at>, <cygwin AT sources DOT redhat DOT com>
Subject: [PATCH 5.7.x] RE: perl-5.6.1 DB_file support
Date: Mon, 15 Jan 2001 20:02:12 -0000
Keywords: DB_File
Message-ID: <000f01c07f2e$0c9e54a0$a20a140a@bfs.phone.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
In-Reply-To: <003c01c0799a$2fe47640$a20a140a@bfs.phone.com>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200

------=_NextPart_000_0010_01C07F2E.0C9E54A0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

I've a feeling this may not be ok to make use of ls like I do in the patch
enclosed, but it does get perl to check the new default locations for db.h
and libdb.a


Paul


> -----Original Message-----
> From: Paul Marquess [mailto:Paul_Marquess AT Yahoo DOT co DOT uk]
> Sent: 08 January 2001 17:41
> To: Reini Urban; perl5-porters AT perl DOT org; cygwin AT sources DOT redhat DOT com
> Subject: RE: perl-5.6.1 DB_file support
>
>
> From: Reini Urban [mailto:rurban AT sbox DOT tu-graz DOT ac DOT at]
>
> thanks for the feedback.
>
> ...
> >
> > And the DB_File patch for perl, tested with db-3.2.3f:
> > One could also copy the three db headers to /usr/include, but the
> > installer leaves them in /usr/local/BerkeleyDB.3.2/include
> >
> >
> > 2001-01-08 02:40:33 rurban
> >   * support latest BerkeleyDB.3.2 paths
> >
> > --- perl-5.6.1-1/ext/DB_File/Makefile.PL~	Mon Oct 16 09:12:44 2000
> > +++ perl-5.6.1-1/ext/DB_File/Makefile.PL	Mon Jan  8 03:38:00 2001
> > @@ -10,14 +10,13 @@
> >
> >  WriteMakefile(
> >  	NAME 		=> 'DB_File',
> > -	LIBS 		=> ["-L/usr/local/lib $LIB"],
> > +	LIBS 		=> ["-L/usr/local/lib
> > -L/usr/local/BerkeleyDB.3.2/lib $LIB"],
> >          MAN3PODS        => {},         # Pods will be built by
> > installman.
> > -	#INC		=> '-I/usr/local/include',
> >  	VERSION_FROM	=> 'DB_File.pm',
> >  	OBJECT		=> 'version$(OBJ_EXT) DB_File$(OBJ_EXT)',
> >  	XSPROTOARG	=> '-noprototypes',
> >  	DEFINE		=> $OS2 || "",
> > -	INC => ($^O eq "MacOS" ? "-i ::::db:include" : "")
> > +	INC => ($^O eq "MacOS" ? "-i ::::db:include" :
> > "-I/usr/local/BerkeleyDB.3.2/include")
> >  	);
> >
> >  sub MY::postamble {
> > --- perl-5.6.1-1/ext/DB_File/hints/cygwin.pl~	Mon Jan  8
> 03:54:56 2001
> > +++ perl-5.6.1-1/ext/DB_File/hints/cygwin.pl	Mon Jan  8
> 03:51:02 2001
> > @@ -0,0 +1,3 @@
> > +# latest BerkeleyDB.3.2 from
> > +$self->{LIBS} = ['-ldb -L/usr/local/lib
> > -L/usr/local/BerkeleyDB.3.2/lib'];
>
> Should that not be
>
>  $self->{LIBS} = ['-L/usr/local/lib -L/usr/local/BerkeleyDB.3.2/lib -ldb']
>
> i.e. the -L before the -l
>
> > +$self->{INC} => ["-I/usr/local/BerkeleyDB.3.2/include"];
>
> Could you try with only the hints/cygwin.pl change? I don't think
> you should
> need the change to Makefile.PL as well.
>
> Hmmm, thinking about this a bit more, I don't think that either
> hints/cygwin.pl or Makefile.PL file is the correct place for this change.
> The /usr/local/BerkeleyDB.x.y directory prefix is the default location for
> installing recent versions of Berkeley DB on all unix-like architectures.
> Configure needs to be changed to get it to know about
> /usr/local/BerkeleyDB.x.y/lib and
> /usr/local/BerkeleyDB.x.y/include. Rather
> than hard-wiring paths with version numbers (like
> /usr/local/BerkeleyDB.3.2)
> it would be better if Configure could detect what was there
> itself. If I get
> the time, I'll have a look at it.
>
> Regarding the DB_File tests that are failing for you. Berkeley DB
> 3.2 isn't
> officially released yet. The pre-release version I have (which is more
> recent than yours) has known problems that make DB_File fail some tests. I
> don't intend digging for problems at my end until the Sleepycat
> folk have a
> stable 3.2 for me to play with.
>
> NOTE: check both /usr/local/BerkeleyDB/[lib|include]
>       and /usr/local/BerkeleyDB.x.y/[lib|include]
>
> Paul
>
>
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
>

------=_NextPart_000_0010_01C07F2E.0C9E54A0
Content-Type: application/octet-stream;
	name="configure.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="configure.patch"

*** Configure.orig	Tue Jan  9 21:35:54 2001=0A=
--- Configure	Mon Jan 15 19:52:18 2001=0A=
***************=0A=
*** 992,997 ****=0A=
--- 992,999 ----=0A=
  : Set locincpth to "" in a hint file to defeat local include searches.=0A=
  locincpth=3D"/usr/local/include /opt/local/include /usr/gnu/include"=0A=
  locincpth=3D"$locincpth /opt/gnu/include /usr/GNU/include =
/opt/GNU/include"=0A=
+ tmp_db=3D`ls -d /usr/local/BerkeleyDB*/include`=0A=
+ locincpth=3D"$locincpth $tmp_db"=0A=
  :=0A=
  : no include file wanted by default=0A=
  inclwanted=3D''=0A=
***************=0A=
*** 1002,1007 ****=0A=
--- 1004,1011 ----=0A=
  : Possible local library directories to search.=0A=
  loclibpth=3D"/usr/local/lib /opt/local/lib /usr/gnu/lib"=0A=
  loclibpth=3D"$loclibpth /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib"=0A=
+ tmp_db=3D`ls -d /usr/local/BerkeleyDB*/lib`=0A=
+ loclibpth=3D"$loclibpth $tmp_db"=0A=
  =0A=
  : general looking path for locating libraries=0A=
  glibpth=3D"/lib /usr/lib $xlibpth"=0A=


------=_NextPart_000_0010_01C07F2E.0C9E54A0
Content-Type: text/plain; charset=us-ascii

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
------=_NextPart_000_0010_01C07F2E.0C9E54A0--


__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019