From owner-svn-ports-head@freebsd.org Sat Jun 22 21:11:20 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 F142415B8E79; Sat, 22 Jun 2019 21:11:19 +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 8D60D8C7D6; Sat, 22 Jun 2019 21:11:19 +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 68CB2181A1; Sat, 22 Jun 2019 21:11:19 +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 x5MLBJS7057691; Sat, 22 Jun 2019 21:11:19 GMT (envelope-from linimon@FreeBSD.org) Received: (from linimon@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x5MLBJ3h057688; Sat, 22 Jun 2019 21:11:19 GMT (envelope-from linimon@FreeBSD.org) Message-Id: <201906222111.x5MLBJ3h057688@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: linimon set sender to linimon@FreeBSD.org using -f From: Mark Linimon Date: Sat, 22 Jun 2019 21:11:19 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r504888 - in head/graphics/py-gphoto2: . files X-SVN-Group: ports-head X-SVN-Commit-Author: linimon X-SVN-Commit-Paths: in head/graphics/py-gphoto2: . files X-SVN-Commit-Revision: 504888 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 8D60D8C7D6 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.999,0]; NEURAL_HAM_SHORT(-0.98)[-0.980,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: Sat, 22 Jun 2019 21:11:20 -0000 Author: linimon Date: Sat Jun 22 21:11:18 2019 New Revision: 504888 URL: https://svnweb.freebsd.org/changeset/ports/504888 Log: Remove '-Wno-unused-but-set-variable' on GCC-based systems to fix build: cc1: error: unrecognized command line option "-Wno-unused-but-set-variable" Approved by: portmgr (tier-2 blanket) Added: head/graphics/py-gphoto2/files/ head/graphics/py-gphoto2/files/extra-patch-setup.py (contents, props changed) Modified: head/graphics/py-gphoto2/Makefile Modified: head/graphics/py-gphoto2/Makefile ============================================================================== --- head/graphics/py-gphoto2/Makefile Sat Jun 22 20:50:10 2019 (r504887) +++ head/graphics/py-gphoto2/Makefile Sat Jun 22 21:11:18 2019 (r504888) @@ -14,11 +14,9 @@ COMMENT= Python bindings for libgphoto2 LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/LICENSE.txt -BROKEN_powerpc64= fails to compile: unrecognized command line option "-Wno-unused-but-set-variable" - LIB_DEPENDS= libgphoto2.so:graphics/libgphoto2 -USES= pkgconfig python shebangfix +USES= compiler pkgconfig python shebangfix USE_PYTHON= autoplist concurrent distutils SHEBANG_FILES= examples/*.py @@ -30,4 +28,10 @@ post-patch: -e 's|share/python-gphoto2|${DOCSDIR:S,${PREFIX}/,,}|' \ ${WRKSRC}/setup.py -.include +.include + +.if ${CHOSEN_COMPILER_TYPE} == gcc +EXTRA_PATCHES= ${FILESDIR}/extra-patch-setup.py +.endif + +.include Added: head/graphics/py-gphoto2/files/extra-patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/py-gphoto2/files/extra-patch-setup.py Sat Jun 22 21:11:18 2019 (r504888) @@ -0,0 +1,11 @@ +--- setup.py.orig 2018-01-02 11:44:51 UTC ++++ setup.py +@@ -83,7 +83,7 @@ mod_src_dir = os.path.join( + 'src', mod_src_dir + '-gp' + '.'.join(map(str, best_match))) + + extra_compile_args = [ +- '-O3', '-Wno-unused-variable', '-Wno-unused-but-set-variable', ++ '-O3', '-Wno-unused-variable', + '-Wno-unused-label', '-Wno-strict-prototypes', + '-DGPHOTO2_VERSION=' + '0x{:02x}{:02x}{:02x}'.format(*gphoto2_version)] + if 'PYTHON_GPHOTO2_STRICT' in os.environ: