FreeBSD Bugzilla – Attachment 211118 Details for
Bug 242997
games/oolite: Fix build for Python 3.x
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch (since 520894 revision, Python 3.5+ variant)
oolite_python3.diff (text/plain), 4.84 KB, created by
lightside
on 2020-01-28 01:22:04 UTC
(
hide
)
Description:
Proposed patch (since 520894 revision, Python 3.5+ variant)
Filename:
MIME Type:
Creator:
lightside
Created:
2020-01-28 01:22:04 UTC
Size:
4.84 KB
patch
obsolete
>Index: games/oolite/Makefile >=================================================================== >--- games/oolite/Makefile (revision 520894) >+++ games/oolite/Makefile (working copy) >@@ -12,9 +12,6 @@ > MAINTAINER= ports@FreeBSD.org > COMMENT= Trade and combat space simulator, clone of Elite > >-DEPRECATED= Unmaintained, uses EOLed python27 >-EXPIRATION_DATE= 2020-01-27 >- > LICENSE= CC-BY-NC-SA-3.0 GPLv2 ZLIB > LICENSE_COMB= multi > LICENSE_FILE_CC-BY-NC-SA-3.0= ${WRKSRC}/Doc/LICENSE.TXT >@@ -27,7 +24,7 @@ > libpng.so:graphics/png \ > libminizip.so:archivers/minizip > >-USES= gl gnustep openal:al perl5 python:2.7,build sdl \ >+USES= gl gnustep openal:al perl5 python:3.5+,build sdl \ > tar:bzip2 xorg > USE_CXXSTD= gnu++98 > USE_GL= gl glu >@@ -34,6 +31,8 @@ > USE_SDL= sdl > USE_XORG= x11 > USE_GNUSTEP= base build >+ >+MAKE_ENV= ac_cv_path_PYTHON=${PYTHON_CMD} > # Redefine DO_MAKE_BUILD, because current gnustep in USES overrides MAKEFILE > # without possibility to change it, as it was done in the previous implementation > DO_MAKE_BUILD= ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} Makefile ${_MAKE_JOBS} ${MAKE_ARGS:C,^${DESTDIRNAME}=.*,,g} >Index: games/oolite/files/patch-deps_mozilla_js_src.diff >=================================================================== >--- games/oolite/files/patch-deps_mozilla_js_src.diff (nonexistent) >+++ games/oolite/files/patch-deps_mozilla_js_src.diff (working copy) >@@ -0,0 +1,33 @@ >+# Patch for Python 3.x support, created with using 2to3 program. >+ >+--- deps/mozilla/js/src/build/cl.py.orig 2014-05-17 17:57:43 UTC >++++ deps/mozilla/js/src/build/cl.py >+@@ -51,7 +51,7 @@ def InvokeClWithDependencyGeneration(cmd >+ break >+ >+ if target == None: >+- print >>sys.stderr, "No target set" and sys.exit(1) >++ print("No target set" and sys.exit(1), file=sys.stderr) >+ >+ # The deps target lives here >+ depstarget = os.path.basename(target) + ".pp" >+@@ -90,7 +90,7 @@ def InvokeClWithDependencyGeneration(cmd >+ >+ f = open(depstarget, "w") >+ for dep in sorted(deps): >+- print >>f, "%s: %s" % (target, dep) >++ print("%s: %s" % (target, dep), file=f) >+ >+ if __name__ == "__main__": >+ InvokeClWithDependencyGeneration(sys.argv[1:]) >+--- deps/mozilla/js/src/imacro_asm.py.orig 2014-05-17 17:57:43 UTC >++++ deps/mozilla/js/src/imacro_asm.py >+@@ -456,7 +456,7 @@ def assemble(filename, outfile): >+ if __name__ == '__main__': >+ import sys >+ if len(sys.argv) != 3: >+- print "usage: python imacro_asm.py infile.jsasm outfile.c.out" >++ print("usage: python imacro_asm.py infile.jsasm outfile.c.out") >+ sys.exit(1) >+ >+ f = open(sys.argv[2], 'w') >Index: games/oolite/files/patch-deps_mozilla_js_src_configure >=================================================================== >--- games/oolite/files/patch-deps_mozilla_js_src_configure (revision 520894) >+++ games/oolite/files/patch-deps_mozilla_js_src_configure (working copy) >@@ -1,7 +1,21 @@ >---- deps/mozilla/js/src/configure.orig 2014-06-30 08:54:39 UTC >+--- deps/mozilla/js/src/configure.orig 2014-05-17 17:57:43 UTC > +++ deps/mozilla/js/src/configure >-@@ -9547,7 +9547,8 @@ >+@@ -6490,10 +6490,10 @@ case "$host" in >+ ;; >+ esac > >+-echo $ac_n "checking for Python version >= $PYTHON_VERSION but not 3.x""... $ac_c" 1>&6 >+-echo "configure:6495: checking for Python version >= $PYTHON_VERSION but not 3.x" >&5 >++echo $ac_n "checking for Python version >= $PYTHON_VERSION""... $ac_c" 1>&6 >++echo "configure:6495: checking for Python version >= $PYTHON_VERSION" >&5 >+ >+-$PYTHON -c "import sys; sys.exit(sys.version[:3] < sys.argv[1] or sys.version[:2] != '2.')" $PYTHON_VERSION >++$PYTHON -c "import sys; sys.exit(sys.version[:3] < sys.argv[1])" $PYTHON_VERSION >+ _python_res=$? >+ >+ if test "$_python_res" != 0; then >+@@ -9547,7 +9547,8 @@ fi >+ > echo "$ac_t""$ac_cv_have_visibility_builtin_bug" 1>&6 > if test "$ac_cv_have_visibility_builtin_bug" = "no" -a \ > - "$ac_cv_have_visibility_class_bug" = "no"; then >Index: games/oolite/files/patch-deps_mozilla_js_src_configure.in >=================================================================== >--- games/oolite/files/patch-deps_mozilla_js_src_configure.in (revision 520894) >+++ games/oolite/files/patch-deps_mozilla_js_src_configure.in (nonexistent) >@@ -1,12 +0,0 @@ >---- deps/mozilla/js/src/configure.in.orig 2014-06-30 08:54:39 UTC >-+++ deps/mozilla/js/src/configure.in >-@@ -3378,7 +3378,8 @@ >- rm -f conftest.{c,S} >- ]) >- if test "$ac_cv_have_visibility_builtin_bug" = "no" -a \ >-- "$ac_cv_have_visibility_class_bug" = "no"; then >-+ "$ac_cv_have_visibility_class_bug" = "no" -a \ >-+ "$OS_ARCH" != "FreeBSD" ; then >- VISIBILITY_FLAGS='-I$(DIST)/system_wrappers_js -include $(topsrcdir)/config/gcc_hidden.h' >- WRAP_SYSTEM_INCLUDES=1 >- STL_FLAGS='-I$(DIST)/stl_wrappers'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 242997
:
210342
|
210343
|
210354
|
210814
|
211114
| 211118