FreeBSD Bugzilla – Attachment 241714 Details for
Bug 271055
graphics/libGLU: fix build with clang 16
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
graphics/libGLU: fix build with clang 16
graphics__libGLU-fix-clang16-build-1.diff (text/plain), 2.04 KB, created by
Dimitry Andric
on 2023-04-24 20:35:04 UTC
(
hide
)
Description:
graphics/libGLU: fix build with clang 16
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2023-04-24 20:35:04 UTC
Size:
2.04 KB
patch
obsolete
>commit ea948c5aa7a38e6fe4b29f980a8d4103079dbd24 >Author: Dimitry Andric <dim@FreeBSD.org> >Date: 2023-04-24 22:31:37 +0200 > > 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. > >diff --git a/graphics/libGLU/Makefile b/graphics/libGLU/Makefile >index 1d97e66d0335..fd59724ea57d 100644 >--- a/graphics/libGLU/Makefile >+++ b/graphics/libGLU/Makefile >@@ -6,6 +6,9 @@ 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 271055
: 241714