From owner-svn-ports-head@freebsd.org Wed Oct 31 02:32:51 2018 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 79CAD1074527; Wed, 31 Oct 2018 02:32:51 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 302CA86553; Wed, 31 Oct 2018 02:32:51 +0000 (UTC) (envelope-from danfe@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 11345262B5; Wed, 31 Oct 2018 02:32:51 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w9V2Wo50061719; Wed, 31 Oct 2018 02:32:50 GMT (envelope-from danfe@FreeBSD.org) Received: (from danfe@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w9V2Wo7W061718; Wed, 31 Oct 2018 02:32:50 GMT (envelope-from danfe@FreeBSD.org) Message-Id: <201810310232.w9V2Wo7W061718@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: danfe set sender to danfe@FreeBSD.org using -f From: Alexey Dokuchaev Date: Wed, 31 Oct 2018 02:32:50 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r483546 - in head/x11-toolkits/nucleo: . files X-SVN-Group: ports-head X-SVN-Commit-Author: danfe X-SVN-Commit-Paths: in head/x11-toolkits/nucleo: . files X-SVN-Commit-Revision: 483546 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: Wed, 31 Oct 2018 02:32:51 -0000 Author: danfe Date: Wed Oct 31 02:32:50 2018 New Revision: 483546 URL: https://svnweb.freebsd.org/changeset/ports/483546 Log: In r483285, compiler:c++11-lang was added to USES in order to unbreak the port on GCC-based architectures, while actually the code predates 2011 by couple of years. Turns out that the build against GCC was failing because of the -Wno-c++11-narrowing option added back in r474518 to unbreak the build against Clang 6. Fix the underlying problem with the code instead, so we can remove offending option from CXXFLAGS and stop bogusly require C++11-capable compiler just because of that option. Tested on: Mac mini G4 (powerpc, gcc-4.2.1-based) Added: head/x11-toolkits/nucleo/files/patch-nucleo_gl_texture_glTexture.cxx (contents, props changed) Modified: head/x11-toolkits/nucleo/Makefile Modified: head/x11-toolkits/nucleo/Makefile ============================================================================== --- head/x11-toolkits/nucleo/Makefile Wed Oct 31 02:29:03 2018 (r483545) +++ head/x11-toolkits/nucleo/Makefile Wed Oct 31 02:32:50 2018 (r483546) @@ -18,7 +18,7 @@ LIB_DEPENDS= libexif.so:graphics/libexif \ libfreetype.so:print/freetype2 \ libexpat.so:textproc/expat2 -USES= compiler:c++11-lang gl gmake jpeg libtool localbase:ldflags \ +USES= gl gmake jpeg libtool localbase:ldflags \ pathfix pkgconfig python:run shebangfix tar:bzip2 USE_GL= gl glu GNU_CONFIGURE= yes @@ -26,8 +26,6 @@ CONFIGURE_ARGS= --without-opencv USE_LDCONFIG= yes INSTALL_TARGET= install-strip SHEBANG_FILES= docs/MacOSX/nBundle.in - -CXXFLAGS+= -Wno-c++11-narrowing OPTIONS_DEFINE= FFMPEG GD GNUTLS QT4 OPTIONS_RADIO= DNSSD Added: head/x11-toolkits/nucleo/files/patch-nucleo_gl_texture_glTexture.cxx ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-toolkits/nucleo/files/patch-nucleo_gl_texture_glTexture.cxx Wed Oct 31 02:32:50 2018 (r483546) @@ -0,0 +1,13 @@ +--- nucleo/gl/texture/glTexture.cxx.orig 2009-06-02 09:34:34 UTC ++++ nucleo/gl/texture/glTexture.cxx +@@ -426,7 +426,9 @@ namespace nucleo { + {left, top, 0.0} + } ; + +- GLdouble texinfo[] = { left, bottom, tWidth, tHeight, 1.0, 1.0 } ; ++ GLdouble texinfo[] = { left, bottom, ++ static_cast(tWidth), static_cast(tHeight), ++ 1.0, 1.0 } ; + if (tTarget==GL_TEXTURE_2D) { + texinfo[4] = t->getTextureWidth() ; + texinfo[5] = t->getTextureHeight() ;