From owner-svn-ports-head@freebsd.org Fri Apr 19 02:36:46 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 50B0C1582B67; Fri, 19 Apr 2019 02:36:46 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E835689BC5; Fri, 19 Apr 2019 02:36:45 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B679E27FF2; Fri, 19 Apr 2019 02:36:45 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x3J2ajNC055656; Fri, 19 Apr 2019 02:36:45 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x3J2ajhM055654; Fri, 19 Apr 2019 02:36:45 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201904190236.x3J2ajhM055654@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Fri, 19 Apr 2019 02:36:45 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r499321 - in head/games/renpy6: . files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: in head/games/renpy6: . files X-SVN-Commit-Revision: 499321 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: E835689BC5 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.95 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.96)[-0.955,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Apr 2019 02:36:46 -0000 Author: jbeich Date: Fri Apr 19 02:36:44 2019 New Revision: 499321 URL: https://svnweb.freebsd.org/changeset/ports/499321 Log: games/renpy6: unbreak after r499148 build/temp.freebsd-11.2-RELEASE-amd64-2.7/core.o:(.bss+0x0): multiple definition of `PyGAME_C_API' build/temp.freebsd-11.2-RELEASE-amd64-2.7/gen/_renpy.o:(.bss+0x0): first defined here build/temp.freebsd-11.2-RELEASE-amd64-2.7/subpixel.o:(.bss+0x0): multiple definition of `PyGAME_C_API' build/temp.freebsd-11.2-RELEASE-amd64-2.7/gen/_renpy.o:(.bss+0x0): first defined here ImportError: /usr/local/lib/python2.7/site-packages/_renpy.so: Undefined symbol "RWopsFromPython" ImportError: /usr/local/lib/python2.7/site-packages/_renpy.so: Undefined symbol "RWopsFromPythonThreaded" ImportError: /usr/local/lib/python2.7/site-packages/_renpy.so: Undefined symbol "PySurface_AsSurface" PR: 230115 Reported by: pkg-fallout Added: head/games/renpy6/files/patch-pygame-1.9.5 (contents, props changed) Modified: head/games/renpy6/Makefile (contents, props changed) Modified: head/games/renpy6/Makefile ============================================================================== --- head/games/renpy6/Makefile Fri Apr 19 01:48:31 2019 (r499320) +++ head/games/renpy6/Makefile Fri Apr 19 02:36:44 2019 (r499321) @@ -1,7 +1,7 @@ # $FreeBSD$ PORTVERSION= 6.18.3 -PORTREVISION= 9 +PORTREVISION= 10 PKGNAMESUFFIX= 6 CONFLICTS_INSTALL= ${PORTNAME}-[0-9]* Added: head/games/renpy6/files/patch-pygame-1.9.5 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/renpy6/files/patch-pygame-1.9.5 Fri Apr 19 02:36:44 2019 (r499321) @@ -0,0 +1,408 @@ +build/temp.freebsd-11.2-RELEASE-amd64-2.7/core.o:(.bss+0x0): multiple definition of `PyGAME_C_API' +build/temp.freebsd-11.2-RELEASE-amd64-2.7/gen/_renpy.o:(.bss+0x0): first defined here +build/temp.freebsd-11.2-RELEASE-amd64-2.7/subpixel.o:(.bss+0x0): multiple definition of `PyGAME_C_API' +build/temp.freebsd-11.2-RELEASE-amd64-2.7/gen/_renpy.o:(.bss+0x0): first defined here + +ImportError: /usr/local/lib/python2.7/site-packages/_renpy.so: Undefined symbol "RWopsFromPython" +ImportError: /usr/local/lib/python2.7/site-packages/_renpy.so: Undefined symbol "RWopsFromPythonThreaded" +ImportError: /usr/local/lib/python2.7/site-packages/_renpy.so: Undefined symbol "PySurface_AsSurface" + +--- module/_renpy.pyx.orig 2014-07-22 03:10:55 UTC ++++ module/_renpy.pyx +@@ -28,7 +28,7 @@ cdef extern from "pygame/pygame.h": + pass + + void import_pygame_rwobject() +- SDL_RWops* RWopsFromPython(object obj) ++ SDL_RWops* pgRWops_FromObject(object obj) + + + cdef extern from "renpy.h": +@@ -106,7 +106,7 @@ def save_png(surf, file, compress=-1): + if not isinstance(surf, PygameSurface): + raise Exception("save_png requires a pygame Surface as its first argument.") + +- save_png_core(surf, RWopsFromPython(file), compress) ++ save_png_core(surf, pgRWops_FromObject(file), compress) + + + def pixellate(pysrc, pydst, avgwidth, avgheight, outwidth, outheight): +--- module/core.c.orig 2013-06-08 02:38:29 UTC ++++ module/core.c +@@ -1,6 +1,6 @@ + #include "renpy.h" + #include "IMG_savepng.h" +-#include ++#include + #include + #include + +@@ -28,7 +28,7 @@ void core_init() { + void save_png_core(PyObject *pysurf, SDL_RWops *rw, int compress) { + SDL_Surface *surf; + +- surf = PySurface_AsSurface(pysurf); ++ surf = pgSurface_AsSurface(pysurf); + + /* Can't release GIL, since we're not using threaded RWops. */ + IMG_SavePNG_RW(rw, surf, compress); +@@ -69,8 +69,8 @@ void pixellate32_core(PyObject *pysrc, + unsigned char *srcpixels; + unsigned char *dstpixels; + +- src = PySurface_AsSurface(pysrc); +- dst = PySurface_AsSurface(pydst); ++ src = pgSurface_AsSurface(pysrc); ++ dst = pgSurface_AsSurface(pydst); + + Py_BEGIN_ALLOW_THREADS + +@@ -211,8 +211,8 @@ void pixellate24_core(PyObject *pysrc, + unsigned char *srcpixels; + unsigned char *dstpixels; + +- src = PySurface_AsSurface(pysrc); +- dst = PySurface_AsSurface(pydst); ++ src = pgSurface_AsSurface(pysrc); ++ dst = pgSurface_AsSurface(pydst); + + Py_BEGIN_ALLOW_THREADS + +@@ -344,8 +344,8 @@ void map32_core(PyObject *pysrc, + char *srcp; + char *dstp; + +- src = PySurface_AsSurface(pysrc); +- dst = PySurface_AsSurface(pydst); ++ src = pgSurface_AsSurface(pysrc); ++ dst = pgSurface_AsSurface(pydst); + + Py_BEGIN_ALLOW_THREADS + +@@ -403,8 +403,8 @@ void map24_core(PyObject *pysrc, + char *srcp; + char *dstp; + +- src = PySurface_AsSurface(pysrc); +- dst = PySurface_AsSurface(pydst); ++ src = pgSurface_AsSurface(pysrc); ++ dst = pgSurface_AsSurface(pydst); + + Py_BEGIN_ALLOW_THREADS + +@@ -468,8 +468,8 @@ void linmap32_core(PyObject *pysrc, + char *srcp; + char *dstp; + +- src = PySurface_AsSurface(pysrc); +- dst = PySurface_AsSurface(pydst); ++ src = pgSurface_AsSurface(pysrc); ++ dst = pgSurface_AsSurface(pydst); + + Py_BEGIN_ALLOW_THREADS + +@@ -527,8 +527,8 @@ void linmap24_core(PyObject *pysrc, + char *srcp; + char *dstp; + +- src = PySurface_AsSurface(pysrc); +- dst = PySurface_AsSurface(pydst); ++ src = pgSurface_AsSurface(pysrc); ++ dst = pgSurface_AsSurface(pydst); + + Py_BEGIN_ALLOW_THREADS + +@@ -587,8 +587,8 @@ void xblur32_core(PyObject *pysrc, + unsigned char *dstp; + + +- src = PySurface_AsSurface(pysrc); +- dst = PySurface_AsSurface(pydst); ++ src = pgSurface_AsSurface(pysrc); ++ dst = pgSurface_AsSurface(pydst); + + Py_BEGIN_ALLOW_THREADS + +@@ -732,8 +732,8 @@ void alphamunge_core(PyObject *pysrc, + unsigned char *dstp; + + +- src = PySurface_AsSurface(pysrc); +- dst = PySurface_AsSurface(pydst); ++ src = pgSurface_AsSurface(pysrc); ++ dst = pgSurface_AsSurface(pydst); + + Py_BEGIN_ALLOW_THREADS + +@@ -795,8 +795,8 @@ void scale32_core(PyObject *pysrc, PyObject *pydst, + unsigned char *dstpixels; + + +- src = PySurface_AsSurface(pysrc); +- dst = PySurface_AsSurface(pydst); ++ src = pgSurface_AsSurface(pysrc); ++ dst = pgSurface_AsSurface(pydst); + + Py_BEGIN_ALLOW_THREADS + +@@ -908,8 +908,8 @@ void scale24_core(PyObject *pysrc, PyObject *pydst, + unsigned char *dstpixels; + + +- src = PySurface_AsSurface(pysrc); +- dst = PySurface_AsSurface(pydst); ++ src = pgSurface_AsSurface(pysrc); ++ dst = pgSurface_AsSurface(pydst); + + Py_BEGIN_ALLOW_THREADS + +@@ -1014,8 +1014,8 @@ int transform32_std(PyObject *pysrc, PyObject *pydst, + unsigned char *srcpixels; + unsigned char *dstpixels; + +- src = PySurface_AsSurface(pysrc); +- dst = PySurface_AsSurface(pydst); ++ src = pgSurface_AsSurface(pysrc); ++ dst = pgSurface_AsSurface(pydst); + + Py_BEGIN_ALLOW_THREADS + +@@ -1213,8 +1213,8 @@ int transform32_mmx(PyObject *pysrc, PyObject *pydst, + unsigned char *srcpixels; + unsigned char *dstpixels; + +- src = PySurface_AsSurface(pysrc); +- dst = PySurface_AsSurface(pydst); ++ src = pgSurface_AsSurface(pysrc); ++ dst = pgSurface_AsSurface(pydst); + + Py_BEGIN_ALLOW_THREADS + +@@ -1485,9 +1485,9 @@ void blend32_core_std(PyObject *pysrca, PyObject *pysr + unsigned char *srcbpixels; + unsigned char *dstpixels; + +- srca = PySurface_AsSurface(pysrca); +- srcb = PySurface_AsSurface(pysrcb); +- dst = PySurface_AsSurface(pydst); ++ srca = pgSurface_AsSurface(pysrca); ++ srcb = pgSurface_AsSurface(pysrcb); ++ dst = pgSurface_AsSurface(pydst); + + Py_BEGIN_ALLOW_THREADS + +@@ -1543,9 +1543,9 @@ void blend32_core_mmx(PyObject *pysrca, PyObject *pysr + unsigned char *srcbpixels; + unsigned char *dstpixels; + +- srca = PySurface_AsSurface(pysrca); +- srcb = PySurface_AsSurface(pysrcb); +- dst = PySurface_AsSurface(pydst); ++ srca = pgSurface_AsSurface(pysrca); ++ srcb = pgSurface_AsSurface(pysrcb); ++ dst = pgSurface_AsSurface(pydst); + + Py_BEGIN_ALLOW_THREADS + +@@ -1639,10 +1639,10 @@ void imageblend32_core_std(PyObject *pysrca, PyObject + unsigned char *dstpixels; + unsigned char *imgpixels; + +- srca = PySurface_AsSurface(pysrca); +- srcb = PySurface_AsSurface(pysrcb); +- dst = PySurface_AsSurface(pydst); +- img = PySurface_AsSurface(pyimg); ++ srca = pgSurface_AsSurface(pysrca); ++ srcb = pgSurface_AsSurface(pysrcb); ++ dst = pgSurface_AsSurface(pydst); ++ img = pgSurface_AsSurface(pyimg); + + Py_BEGIN_ALLOW_THREADS + +@@ -1709,10 +1709,10 @@ void imageblend32_core_mmx(PyObject *pysrca, PyObject + unsigned char *dstpixels; + unsigned char *imgpixels; + +- srca = PySurface_AsSurface(pysrca); +- srcb = PySurface_AsSurface(pysrcb); +- dst = PySurface_AsSurface(pydst); +- img = PySurface_AsSurface(pyimg); ++ srca = pgSurface_AsSurface(pysrca); ++ srcb = pgSurface_AsSurface(pysrcb); ++ dst = pgSurface_AsSurface(pydst); ++ img = pgSurface_AsSurface(pyimg); + + Py_BEGIN_ALLOW_THREADS + +@@ -1809,8 +1809,8 @@ void colormatrix32_core(PyObject *pysrc, PyObject *pyd + unsigned char *srcpixels; + unsigned char *dstpixels; + +- src = PySurface_AsSurface(pysrc); +- dst = PySurface_AsSurface(pydst); ++ src = pgSurface_AsSurface(pysrc); ++ dst = pgSurface_AsSurface(pydst); + + Py_BEGIN_ALLOW_THREADS + +@@ -1888,8 +1888,8 @@ void staticgray_core(PyObject *pysrc, PyObject *pydst, + unsigned char *srcpixels; + unsigned char *dstpixels; + +- src = PySurface_AsSurface(pysrc); +- dst = PySurface_AsSurface(pydst); ++ src = pgSurface_AsSurface(pysrc); ++ dst = pgSurface_AsSurface(pydst); + + Py_BEGIN_ALLOW_THREADS; + +--- module/ffdecode.c.orig 2014-07-06 14:22:40 UTC ++++ module/ffdecode.c +@@ -19,7 +19,7 @@ + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +-#include ++#include + #include + #include + #include +@@ -616,7 +616,7 @@ static void alloc_picture(void *opaque, PyObject *pysu + + ffpy_needs_alloc = 0; + +- surf = PySurface_AsSurface(pysurf); ++ surf = pgSurface_AsSurface(pysurf); + is->width = surf->w; + is->height = surf->h; + +--- module/include/pygame.pxd.orig 2014-07-04 20:19:24 UTC ++++ module/include/pygame.pxd +@@ -12,7 +12,7 @@ cdef extern from "pygame/pygame.h": + int w + int h + +- SDL_Surface *PySurface_AsSurface(object) ++ SDL_Surface *pgSurface_AsSurface(object) + int SDL_SetAlpha(SDL_Surface *surface, unsigned int flag, char alpha) + + enum: +--- module/pysdlsound/sound.pyx.orig 2014-07-08 03:12:10 UTC ++++ module/pysdlsound/sound.pyx +@@ -25,7 +25,7 @@ cdef extern from "pygame/pygame.h": + pass + + void import_pygame_rwobject() +- SDL_RWops* RWopsFromPythonThreaded(object obj) ++ SDL_RWops* pgRWops_FromFileObject(object obj) + + cdef extern from "pss.h": + +@@ -66,7 +66,7 @@ def check_error(): + def play(channel, file, name, paused=False, fadein=0, tight=False): + cdef SDL_RWops *rw + +- rw = RWopsFromPythonThreaded(file) ++ rw = pgRWops_FromFileObject(file) + + if rw == NULL: + raise Exception, "Could not create RWops." +@@ -88,7 +88,7 @@ def play(channel, file, name, paused=False, fadein=0, + def queue(channel, file, name, fadein=0, tight=False): + cdef SDL_RWops *rw + +- rw = RWopsFromPythonThreaded(file) ++ rw = pgRWops_FromFileObject(file) + + if tight: + tight = 1 +--- module/subpixel.c.orig 2013-06-08 02:38:29 UTC ++++ module/subpixel.c +@@ -7,7 +7,7 @@ + */ + + #include "renpy.h" +-#include ++#include + #include + #include + +@@ -171,8 +171,8 @@ int subpixel32(PyObject *pysrc, PyObject *pydst, + return 0; + } + +- src = PySurface_AsSurface(pysrc); +- dst = PySurface_AsSurface(pydst); ++ src = pgSurface_AsSurface(pysrc); ++ dst = pgSurface_AsSurface(pydst); + + Py_BEGIN_ALLOW_THREADS + +--- renpy/angle/gldraw.pyx.orig 2014-07-22 03:26:17 UTC ++++ renpy/angle/gldraw.pyx +@@ -1113,7 +1113,7 @@ cdef class GLDraw: + + # A surface the size of the framebuffer. + full = renpy.display.pgrender.surface_unscaled(self.physical_size, False) +- surf = PySurface_AsSurface(full) ++ surf = pgSurface_AsSurface(full) + + # Create an array that can hold densely-packed pixels. + raw_pixels = malloc(surf.w * surf.h * 4) +--- renpy/angle/gltexture.pyx.orig 2014-10-05 01:47:19 UTC ++++ renpy/angle/gltexture.pyx +@@ -1134,7 +1134,7 @@ def premultiply( + cdef unsigned int *pp + cdef unsigned int *ppend + +- surf = PySurface_AsSurface(pysurf) ++ surf = pgSurface_AsSurface(pysurf) + pixels = surf.pixels + + # The start of the pixel data to read out. +--- renpy/display/accelerator.pyx.orig 2014-09-24 01:07:49 UTC ++++ renpy/display/accelerator.pyx +@@ -40,8 +40,8 @@ def nogil_copy(src, dest): + cdef SDL_Surface *src_surf + cdef SDL_Surface *dst_surf + +- src_surf = PySurface_AsSurface(src) +- dest_surf = PySurface_AsSurface(dest) ++ src_surf = pgSurface_AsSurface(src) ++ dest_surf = pgSurface_AsSurface(dest) + + old_alpha = src_surf.flags & SDL_SRCALPHA + +--- renpy/gl/gldraw.pyx.orig 2014-07-22 03:26:17 UTC ++++ renpy/gl/gldraw.pyx +@@ -1110,7 +1110,7 @@ cdef class GLDraw: + + # A surface the size of the framebuffer. + full = renpy.display.pgrender.surface_unscaled(self.physical_size, False) +- surf = PySurface_AsSurface(full) ++ surf = pgSurface_AsSurface(full) + + # Create an array that can hold densely-packed pixels. + raw_pixels = malloc(surf.w * surf.h * 4) +--- renpy/gl/gltexture.pyx.orig 2014-10-05 01:47:19 UTC ++++ renpy/gl/gltexture.pyx +@@ -1131,7 +1131,7 @@ def premultiply( + cdef unsigned int *pp + cdef unsigned int *ppend + +- surf = PySurface_AsSurface(pysurf) ++ surf = pgSurface_AsSurface(pysurf) + pixels = surf.pixels + + # The start of the pixel data to read out. +--- renpy/text/ftfont.pyx.orig 2014-07-04 20:19:24 UTC ++++ renpy/text/ftfont.pyx +@@ -584,7 +584,7 @@ cdef class FTFont: + + self.setup() + +- surf = PySurface_AsSurface(pysurf) ++ surf = pgSurface_AsSurface(pysurf) + pixels = surf.pixels + pitch = surf.pitch +