pkgsrc-Bugs archive

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

Re: pkg/50505: graphics/py-cairo3 build failure with lang/python35



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

From: "David H. Gutteridge" <dhgutteridge%sympatico.ca@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/50505: graphics/py-cairo3 build failure with lang/python35
Date: Sat, 12 Dec 2015 03:25:03 -0500

 I've found a workaround for this issue. It allows the build to
 complete with Python 3.5, and is apparently a no-op for Python 3.4
 (I tested with both). With the build complete, the Python 3.5 version
 passes its test suite successfully (once one of the test files has
 its interpreter invocation corrected). See also my comments in the
 upstream bug report:
 
 https://bugs.freedesktop.org/show_bug.cgi?id=3D76759
 
 The patch is:
 
 With Python 3.5, uncaught exceptions thrown by this code block would
 cause the build to fail. The exceptions seem to be harmless: they
 don't prevent the build from succeeding.
 https://bugs.freedesktop.org/show_bug.cgi?id=3D76759
 
 --- .waf3-1.6.4-e3c1e08604b18a10567cfcd2d02eb6e6/waflib/Build.py.orig    =
    2011-03-29 10:52:54.000000000 -0400
 +++ .waf3-1.6.4-e3c1e08604b18a10567cfcd2d02eb6e6/waflib/Build.py       =20=
 
 @@ -162,6 +162,8 @@
                         try:
                                 f=3Dopen(db+'.tmp','wb')
                                 cPickle.dump(data,f)
 +                       except AttributeError as err:
 +                               print(format(err))
                         finally:
                                 if f:
                                         f.close()
 
 Regards,
 
 Dave
 


Home | Main Index | Thread Index | Old Index