Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Sep 1998 23:15:09 +0300 (EEST)
From:      Vladimir Kushnir <kushn@mail.kar.net>
To:        Thomas Gellekum <tg@ihf.rwth-aachen.de>
Cc:        Vladimir Kushnir <kushn@mail.kar.net>, freebsd-ports@FreeBSD.ORG
Subject:   Re: question about python15 port.
Message-ID:  <Pine.BSF.4.00.9809292311160.378-100000@kushnir.kiev.ua>
In-Reply-To: <87lnn31ljz.fsf@ghpc6.ihf.rwth-aachen.de>

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

On 29 Sep 1998, Thomas Gellekum wrote:

> Vladimir Kushnir <kushn@mail.kar.net> writes:
> 
> > Sorry if I should have asked this in question-, but since it concernes
> > 3.0.. 
> 
> freebsd-ports, actually. Moved there.
> 
> > Well, it seems there's a typo in Makefile in python15 port:
> 
> No.
> 
> > .if ${OSVERSION} < 300000
> >                ~~~~~~~~~~
> >         ${MKDIR} ${PREFIX}/lib/python1.5/plat-freebsd3
> > 						~~~~~~~
> > <snip>
> > .else
> > ~~~~~~
> >         ${MKDIR} ${PREFIX}/lib/python1.5/plat-freebsd2
> > 						~~~~~~~      
> > <snip>
> > Shouldn't it be other way around?
> 
> If python is built on a 2.2.x system it already installs the
> plat-freebsd2 files. I want the plat-freebsd3 installed as well so I
> won't have to deal with different PLISTs for the two releases. And no,
> I can't take the version number out because some library scripts
> depend on it.
> 
> tg
> 
> 

Thanks, I see now. And one more thing: python (as many other ports)
doesn't load modules under ELF (due to underscore in dlsym' arg and lack
of export of dynamic symbols). Fixed easily: LDFLAGS += -rdynamic under
ELF and one-liner for underscore:

*** Python/importdl.c.orig	Tue Sep 29 12:17:52 1998
--- Python/importdl.c	Tue Sep 29 12:18:40 1998
***************
*** 211,217 ****
  extern char *Py_GetProgramName();
  
  #ifndef FUNCNAME_PATTERN
! #if defined(__hp9000s300) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__BORLANDC__)
  #define FUNCNAME_PATTERN "_init%.200s"
  #else
  #define FUNCNAME_PATTERN "init%.200s"
--- 211,217 ----
  extern char *Py_GetProgramName();
  
  #ifndef FUNCNAME_PATTERN
! #if defined(__hp9000s300) || defined(__NetBSD__) || (defined(__FreeBSD__) && !defined(__ELF__)) || defined(__OpenBSD__) || defined(__BORLANDC__)
  #define FUNCNAME_PATTERN "_init%.200s"
  #else
  #define FUNCNAME_PATTERN "init%.200s"

Regards,
Vladimir

===========================|=======================
 Vladimir Kushnir   	   |	
 kushn@mail.kar.net, 	   |	Powered by FreeBSD
 kushnir@ap3.bitp.kiev.ua  |


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.00.9809292311160.378-100000>