Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Apr 2023 16:38:14 GMT
From:      Dimitry Andric <dim@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 88f549c0d62c - main - graphics/libGLU: fix build with clang 16
Message-ID:  <202304251638.33PGcEeC045099@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dim:

URL: https://cgit.FreeBSD.org/ports/commit/?id=88f549c0d62c1a897a69aeebbb15d8ec91c9dc20

commit 88f549c0d62c1a897a69aeebbb15d8ec91c9dc20
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-04-24 20:31:37 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-04-25 16:27:56 +0000

    graphics/libGLU: fix build with clang 16
    
    Since clang 16 (and gcc 11) the default C++ standard is now gnu++17.
    Because graphics/libGLU's Makefile does not explicitly set its C++ standard,
    this leads to several errors:
    
      ../src/libnurbs/internals/varray.cc:76:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
          register long ds = sgn(arc->tail()[0] - arc->prev->tail()[0]);
          ^~~~~~~~~
      ../src/libnurbs/internals/varray.cc:77:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
          register long dt = sgn(arc->tail()[1] - arc->prev->tail()[1]);
          ^~~~~~~~~
    
    Upstream already noticed this, and committed
    https://gitlab.freedesktop.org/mesa/glu/-/commit/b6c308172993 as a fix,
    so add this as an additional patch, until the next version is released.
    
    PR:             271055
    Approved by:    manu (maintainer)
    MFH:            2023Q2
---
 graphics/libGLU/Makefile | 5 ++++-
 graphics/libGLU/distinfo | 4 +++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/graphics/libGLU/Makefile b/graphics/libGLU/Makefile
index 1d97e66d0335..2b5fde873366 100644
--- a/graphics/libGLU/Makefile
+++ b/graphics/libGLU/Makefile
@@ -1,11 +1,14 @@
 PORTNAME=	libGLU
 PORTVERSION=	9.0.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	graphics
 MASTER_SITES=	ftp://ftp.freedesktop.org/pub/mesa/glu/ \
 		https://mesa.freedesktop.org/archive/glu/
 DISTNAME=	glu-${PORTVERSION}
 
+PATCH_SITES=	https://gitlab.freedesktop.org/mesa/glu/-/commit/
+PATCHFILES+=	b6c308172993.patch:-p1 #https://gitlab.freedesktop.org/mesa/glu/-/merge_requests/10
+
 MAINTAINER=	x11@FreeBSD.org
 COMMENT=	OpenGL utility library
 WWW=		https://gitlab.freedesktop.org/mesa/glu
diff --git a/graphics/libGLU/distinfo b/graphics/libGLU/distinfo
index d0b35fda2468..158535aaf264 100644
--- a/graphics/libGLU/distinfo
+++ b/graphics/libGLU/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1624573301
+TIMESTAMP = 1682367009
 SHA256 (glu-9.0.2.tar.xz) = 6e7280ff585c6a1d9dfcdf2fca489251634b3377bfc33c29e4002466a38d02d4
 SIZE (glu-9.0.2.tar.xz) = 436176
+SHA256 (b6c308172993.patch) = 54ea23facb71f3e2f1cdab535f95ea55e74982b6ec70763d4d39937a5e456487
+SIZE (b6c308172993.patch) = 1187



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304251638.33PGcEeC045099>