|
osdir.com mailing list archive F.A.Q. -since 2001! |
|
|
|
Subject: pkg/29704: fsh doesn't like python 2.4 - msg#00523List: os.netbsd.devel.pkgsrc.bugs
by Date: Prev Next Date Index by Thread: Prev Next Thread Index
>Number: 29704
>Category: pkg >Synopsis: fsh doesn't like python 2.4 >Confidential: no >Severity: serious >Priority: medium >Responsible: pkg-manager >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Mar 16 05:28:00 +0000 2005 >Originator: Luke Mewburn >Release: NetBSD 2.99.10 >Organization: TNF >Environment: >Description: The fsh package (security/fsh) doesn't operate correctly with python 2.4, because the FCNTL module was deprecated in the latter. >How-To-Repeat: Try to run fsh. % fsh Traceback (most recent call last): File "/usr/pkg/bin/fsh", line 6, in ? import fsh File "/usr/pkg/share/fsh/fsh.py", line 28, in ? import fshlib File "/usr/pkg/share/fsh/fshlib.py", line 24, in ? import fshcompat File "/usr/pkg/share/fsh/fshcompat.py", line 67, in ? import FCNTL ImportError: No module named FCNTL >Fix: Apply this patch. It seems to work, but I'm not python clued enough to know if it's strictly correct. Once fixed correctly, feed the fix upstream. --- fshcompat.py.orig 2001-12-23 22:08:26.000000000 +1100 +++ fshcompat.py @@ -52,20 +52,23 @@ except: # in Python 2.2 as a bug. See <URL:http://sourceforge.net/tracker/ # ?func=detail&aid=496171&group_id=5470&atid=105470>. try: - # Stop Python 2.2 from warning that we import a deprecated module. - # But Python 1.5.2 doesn't have the warnings module, so be prepared - # for the import statement to fail. try: - import warnings - warnings.filterwarnings( - "ignore", - "the FCNTL module is deprecated; please use fcntl", - DeprecationWarning) - except ImportError: - pass + FD_CLOEXEC = fcntl.FD_CLOEXEC + except: + # Stop Python 2.2 from warning that we import a deprecated module. + # But Python 1.5.2 doesn't have the warnings module, so be prepared + # for the import statement to fail. + try: + import warnings + warnings.filterwarnings( + "ignore", + "the FCNTL module is deprecated; please use fcntl", + DeprecationWarning) + except ImportError: + pass - import FCNTL - FD_CLOEXEC = FCNTL.FD_CLOEXEC + import FCNTL + FD_CLOEXEC = FCNTL.FD_CLOEXEC except AttributeError:
Thread at a glance:
Previous Message by Date:Re: pkg/18777On Tue, Mar 15, 2005 at 02:59:10PM +0000, wiz@xxxxxxxxxx wrote: >Synopsis: perl's POSIX::strftime() routinely gets gmtoff and zone wrong > >Responsible-Changed-From-To: pkg-manager->jlam >Responsible-Changed-By: wiz@xxxxxxxxxx >Responsible-Changed-When: Tue, 15 Mar 2005 14:59:06 +0000 >Responsible-Changed-Why: >Over to maintainer. fwiw, i think perl 5.8 has this fixed because of a pr i filed there. -- |-----< "CODE WARRIOR" >-----| codewarrior@xxxxxxxxxx * "ah! i see you have the internet twofsonet@xxxxxxxxxxxx (Andrew Brown) that goes *ping*!" werdna@xxxxxxxxxxxx * "information is power -- share the wealth." Next Message by Date:Re: pkg/27289The following reply was made to PR pkg/27289; it has been noted by GNATS. From: Kevin Lo <kevlo@xxxxxxxxxxxx> To: Rui-Xiang Guo <rxg@xxxxxxxxxxxxx> Cc: gnats-bugs@xxxxxxxxxx, pkgsrc-bugs@xxxxxxxxxx Subject: Re: pkg/27289 Date: Wed, 16 Mar 2005 15:31:55 +0000 Rui-Xiang Guo wrote: > Hi, > Could you please upgrade your system to more recent and try it again? > It works just fine for me now. Yes, I upgraded my system to -current, it still doesn't work. Would you take the time to fix it? Thanks. > -rxg Kevin Previous Message by Thread:PR/29666 CVS commit: pkgsrc/math/octave-forgeThe following reply was made to PR pkg/29666; it has been noted by GNATS. From: Dan McMahill <dmcmahill@xxxxxxxxxx> To: gnats-bugs@xxxxxxxxxx Cc: Subject: PR/29666 CVS commit: pkgsrc/math/octave-forge Date: Wed, 16 Mar 2005 02:10:30 +0000 (UTC) Module Name: pkgsrc Committed By: dmcmahill Date: Wed Mar 16 02:10:30 UTC 2005 Modified Files: pkgsrc/math/octave-forge: Makefile Log Message: We no longer have to explicitly set F77. Addresses PR29666 To generate a diff of this commit: cvs rdiff -r1.7 -r1.8 pkgsrc/math/octave-forge/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Next Message by Thread:Re: pkg/27289The following reply was made to PR pkg/27289; it has been noted by GNATS. From: Kevin Lo <kevlo@xxxxxxxxxxxx> To: Rui-Xiang Guo <rxg@xxxxxxxxxxxxx> Cc: gnats-bugs@xxxxxxxxxx, pkgsrc-bugs@xxxxxxxxxx Subject: Re: pkg/27289 Date: Wed, 16 Mar 2005 15:31:55 +0000 Rui-Xiang Guo wrote: > Hi, > Could you please upgrade your system to more recent and try it again? > It works just fine for me now. Yes, I upgraded my system to -current, it still doesn't work. Would you take the time to fix it? Thanks. > -rxg Kevin
blog comments powered by Disqus
|
|