1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

audio/openal-soft: fix build with clang 19

With clang 19 and gcc 15, audio/openal-soft fails to compile, with an
error similar to:

    /wrkdirs/usr/ports/audio/openal-soft/work/openal-soft-1.21.1/common/aloptional.h:119:48: error: no member named 'mValue' in 'optional<T>'; did you mean 'value'?
      119 |     const T& operator*() const& { return this->mValue; }
          |                                                ^~~~~~
          |                                                value
    /wrkdirs/usr/ports/audio/openal-soft/work/openal-soft-1.21.1/common/aloptional.h:127:8: note: 'value' declared here
      127 |     T& value() & { return mStore.mValue; }
          |        ^

Upstream commit <https://github.com/kcat/openal-soft/440b5970> fixes
this this, so add it as a PATCHFILES entry in the Makefile, until a
newer version of openal-soft is imported.

PR:		280677
Approved by:	maintainer timeout (2 weeks)
MFH:		2024Q3
This commit is contained in:
Dimitry Andric 2024-08-07 20:43:03 +02:00
parent 124019daa6
commit 6832814ba1
2 changed files with 6 additions and 1 deletions

View File

@ -4,6 +4,9 @@ PORTREVISION= 4
CATEGORIES= audio
MASTER_SITES= https://openal-soft.org/openal-releases/
PATCH_SITES= https://github.com/kcat/${PORTNAME}/commit/
PATCHFILES+= 440b59704c82684786bf7e251b4882f2a12c4c06.patch:-p1
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Software implementation of the OpenAL specification
WWW= https://openal-soft.org/

View File

@ -1,3 +1,5 @@
TIMESTAMP = 1633359406
TIMESTAMP = 1723055526
SHA256 (openal-soft-1.21.1.tar.bz2) = c8ad767e9a3230df66756a21cc8ebf218a9d47288f2514014832204e666af5d8
SIZE (openal-soft-1.21.1.tar.bz2) = 524787
SHA256 (440b59704c82684786bf7e251b4882f2a12c4c06.patch) = f2b5b7f307aa561e7b63ace43072c8a7cfaff74b6d67c260ee9ad848ea51f2d2
SIZE (440b59704c82684786bf7e251b4882f2a12c4c06.patch) = 896