pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/39377: python24 extensions fail to configure on Ubuntu Linux



The following reply was made to PR pkg/39377; it has been noted by GNATS.

From: David Holland <dholland-pbugs%netbsd.org@localhost>
To: dave%dtsp.co.nz@localhost, gnats-bugs%netbsd.org@localhost
Cc: pkg-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, 
pkgsrc-bugs%netbsd.org@localhost
Subject: Re: pkg/39377: python24 extensions fail to configure on Ubuntu
        Linux
Date: Tue, 19 Aug 2008 04:14:11 +0000

 On Tue, Aug 19, 2008 at 03:25:01AM +0000, dave%dtsp.co.nz@localhost wrote:
  > fgrep -- -ldb4 /usr/pkg/lib/python2.4/config/Makefile 
  > LIBS=           -lpthread -ldl -ldb4 -lutil
 
 If you build python against the db185 that's in NetBSD's libc (and the
 libc of every 4.4-derived system) that -ldb4 won't be there:
 
    % grep -- '^LIBS=' /usr/pkg/lib/python2.4/config/Makefile
    LIBS=           -lpthread  -lutil
 
 However, if on such a system you do build python against db4, and it's
 not there, the linker will likely find the db185 functions in libc,
 and that is extremely likely to make a mess. So it needs to be there
 in at least some cases. (And depending on exactly what this is used to
 link against, it might be needed on Linux too; one of the charming
 properties of ELF shared libs is that failing to link with needed libs
 when building one is nonfatal and silently results in an output file
 with shared lib dependencies missing, which can cause assorted subtle
 problems later on.)
 
 In light of these things I think your following patch is the right
 approach.
 
  > --- pkgsrc/lang/python24/buildlink3.mk    2006-07-09 19:02:27.000000000 
+1200
  > +++ pkgsrc/lang/python24/buildlink3.mk    2008-08-18 17:07:05.000000000 
+1200
  > @@ -28,6 +28,7 @@
  > 
  >  BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH:S/+$//}
  > 
  > +.include "../../mk/bdb.buildlink3.mk"
  >  .include "../../mk/dlopen.buildlink3.mk"
  >  .include "../../mk/pthread.buildlink3.mk"
  >  .include "../../devel/gettext-lib/buildlink3.mk"
  > 
  > 
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index