From owner-svn-ports-head@freebsd.org Fri Mar 29 17:21:27 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 C48A2156FB05; Fri, 29 Mar 2019 17:21:27 +0000 (UTC) (envelope-from linimon@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 621346FA29; Fri, 29 Mar 2019 17:21:27 +0000 (UTC) (envelope-from linimon@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 3C5091E17; Fri, 29 Mar 2019 17:21:27 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x2THLRGr042104; Fri, 29 Mar 2019 17:21:27 GMT (envelope-from linimon@FreeBSD.org) Received: (from linimon@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x2THLQg3042099; Fri, 29 Mar 2019 17:21:26 GMT (envelope-from linimon@FreeBSD.org) Message-Id: <201903291721.x2THLQg3042099@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: linimon set sender to linimon@FreeBSD.org using -f From: Mark Linimon Date: Fri, 29 Mar 2019 17:21:26 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r497170 - in head/graphics/gstreamer1-plugins-gl: . files X-SVN-Group: ports-head X-SVN-Commit-Author: linimon X-SVN-Commit-Paths: in head/graphics/gstreamer1-plugins-gl: . files X-SVN-Commit-Revision: 497170 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 621346FA29 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_SHORT(-0.98)[-0.978,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] 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, 29 Mar 2019 17:21:28 -0000 Author: linimon Date: Fri Mar 29 17:21:25 2019 New Revision: 497170 URL: https://svnweb.freebsd.org/changeset/ports/497170 Log: Fix compilation on GCC-based architectures including and similar to: gstgldebug.h:28: error: redefinition of typedef 'GstGLAsyncDebug' I chose a different approach from the PR. The trick is that since this is a slave port, the patchdir by default is from the masterport. In my fix, I put the patches back into this port's files/ subdir and do some Makefile magic to invoke them. PR: 233788 (based on) Submitted by: Piotr Kubaj Approved by: portmgr (tier-2 blanket) Added: head/graphics/gstreamer1-plugins-gl/files/ head/graphics/gstreamer1-plugins-gl/files/patch-gst-libs_gst_gl_gstgl__fwd.h (contents, props changed) head/graphics/gstreamer1-plugins-gl/files/patch-gst-libs_gst_gl_gstglcontext.h (contents, props changed) head/graphics/gstreamer1-plugins-gl/files/patch-gst-libs_gst_gl_gstgldebug.h (contents, props changed) head/graphics/gstreamer1-plugins-gl/files/patch-gst-libs_gst_gl_gstglfuncs.h (contents, props changed) Modified: head/graphics/gstreamer1-plugins-gl/Makefile Modified: head/graphics/gstreamer1-plugins-gl/Makefile ============================================================================== --- head/graphics/gstreamer1-plugins-gl/Makefile Fri Mar 29 17:06:20 2019 (r497169) +++ head/graphics/gstreamer1-plugins-gl/Makefile Fri Mar 29 17:21:25 2019 (r497170) @@ -20,6 +20,12 @@ OPTIONS_SUB= yes WAYLAND_CONFIGURE_ENABLE= wayland WAYLAND_LIB_DEPENDS= libwayland-egl.so:graphics/wayland +EXTRA_PATCHDIR= ${.CURDIR}/../../graphics/gstreamer1-plugins-gl/files +EXTRA_PATCHES= ${EXTRA_PATCHDIR}/patch-gst-libs_gst_gl_gstgl__fwd.h \ + ${EXTRA_PATCHDIR}/patch-gst-libs_gst_gl_gstglcontext.h \ + ${EXTRA_PATCHDIR}/patch-gst-libs_gst_gl_gstgldebug.h \ + ${EXTRA_PATCHDIR}/patch-gst-libs_gst_gl_gstglfuncs.h + pre-build: .for dir in ${GL_GST_DIRS} @(cd ${BUILD_WRKSRC}/${dir}; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} ${ALL_TARGET}) Added: head/graphics/gstreamer1-plugins-gl/files/patch-gst-libs_gst_gl_gstgl__fwd.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/gstreamer1-plugins-gl/files/patch-gst-libs_gst_gl_gstgl__fwd.h Fri Mar 29 17:21:25 2019 (r497170) @@ -0,0 +1,11 @@ +--- gst-libs/gst/gl/gstgl_fwd.h.orig 2018-12-05 14:04:58 UTC ++++ gst-libs/gst/gl/gstgl_fwd.h +@@ -102,8 +102,6 @@ typedef struct _GstGLOverlayCompositorClass GstGLOverl + + typedef struct _GstGLQuery GstGLQuery; + +-typedef struct _GstGLFuncs GstGLFuncs; +- + typedef struct _GstGLAsyncDebug GstGLAsyncDebug; + + #include Added: head/graphics/gstreamer1-plugins-gl/files/patch-gst-libs_gst_gl_gstglcontext.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/gstreamer1-plugins-gl/files/patch-gst-libs_gst_gl_gstglcontext.h Fri Mar 29 17:21:25 2019 (r497170) @@ -0,0 +1,11 @@ +--- gst-libs/gst/gl/gstglcontext.h.orig 2018-12-05 14:06:09 UTC ++++ gst-libs/gst/gl/gstglcontext.h +@@ -98,7 +98,7 @@ struct _GstGLContext { + GstGLWindow *window; + + /*< public >*/ +- GstGLFuncs *gl_vtable; ++ struct _GstGLFuncs *gl_vtable; + + /*< private >*/ + GstGLContextPrivate *priv; Added: head/graphics/gstreamer1-plugins-gl/files/patch-gst-libs_gst_gl_gstgldebug.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/gstreamer1-plugins-gl/files/patch-gst-libs_gst_gl_gstgldebug.h Fri Mar 29 17:21:25 2019 (r497170) @@ -0,0 +1,11 @@ +--- gst-libs/gst/gl/gstgldebug.h.orig 2018-12-04 14:57:39 UTC ++++ gst-libs/gst/gl/gstgldebug.h +@@ -25,8 +25,6 @@ + + G_BEGIN_DECLS + +-typedef struct _GstGLAsyncDebug GstGLAsyncDebug; +- + typedef gchar * (*GstGLAsyncDebugLogGetMessage) (gpointer user_data); + + /** Added: head/graphics/gstreamer1-plugins-gl/files/patch-gst-libs_gst_gl_gstglfuncs.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/gstreamer1-plugins-gl/files/patch-gst-libs_gst_gl_gstglfuncs.h Fri Mar 29 17:21:25 2019 (r497170) @@ -0,0 +1,27 @@ +--- gst-libs/gst/gl/gstglfuncs.h.orig 2018-03-23 20:44:42 UTC ++++ gst-libs/gst/gl/gstglfuncs.h +@@ -23,13 +23,6 @@ + + #include + +-/* This mimic GCC behaviour with system headers files even if GL headers may +- * not be in the system header path. */ +-#ifdef __GNUC__ +-#pragma GCC diagnostic push +-#pragma GCC diagnostic ignored "-Wredundant-decls" +-#endif +- + /* OpenGL 2.0 for Embedded Systems */ + #if GST_GL_HAVE_GLES2 + # if GST_GL_HAVE_PLATFORM_EAGL +@@ -72,10 +65,6 @@ + # endif + #endif + +-#ifdef __GNUC__ +-#pragma GCC diagnostic pop +-#endif +- + #if defined(WINAPI) + #define GSTGLAPI WINAPI + #else