git: f74b56360de7 - main - graphics/mesa-*: Unbreak on 11.4
Piotr Kubaj
pkubaj at anongoth.pl
Wed Jul 28 08:17:29 UTC 2021
On 21-07-28 07:12:20, Emmanuel Vadot wrote:
> The branch main has been updated by manu:
>
> URL: https://cgit.FreeBSD.org/ports/commit/?id=f74b56360de7b82aa5135be306cdfacb3db3acd0
>
> commit f74b56360de7b82aa5135be306cdfacb3db3acd0
> Author: Emmanuel Vadot <manu at FreeBSD.org>
> AuthorDate: 2021-07-28 07:12:07 +0000
> Commit: Emmanuel Vadot <manu at FreeBSD.org>
> CommitDate: 2021-07-28 07:12:07 +0000
>
> graphics/mesa-*: Unbreak on 11.4
>
> Re-add patches that was removed on the 21.1.5 update.
>
> PR: 257305
> ---
> graphics/mesa-dri/Makefile.common | 4 ++++
> graphics/mesa-dri/files/extra-patch-src_util_build__id.c | 15 +++++++++++++++
> graphics/mesa-libs/Makefile | 2 --
> 3 files changed, 19 insertions(+), 2 deletions(-)
>
> diff --git a/graphics/mesa-dri/Makefile.common b/graphics/mesa-dri/Makefile.common
> index 20931bf44980..36ba47ccbe30 100644
> --- a/graphics/mesa-dri/Makefile.common
> +++ b/graphics/mesa-dri/Makefile.common
> @@ -81,6 +81,10 @@ PKGHELP= ${.CURDIR}/pkg-help
> PKGINSTALL= ${.CURDIR}/pkg-install
> PKGDEINSTALL= ${.CURDIR}/pkg-deinstall
>
> +.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000
> +EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-src_util_build__id.c
> +.endif
> +
> .include <bsd.port.pre.mk>
>
> BINARY_ALIAS+= python3=${PYTHON_VERSION}
> diff --git a/graphics/mesa-dri/files/extra-patch-src_util_build__id.c b/graphics/mesa-dri/files/extra-patch-src_util_build__id.c
> new file mode 100644
> index 000000000000..4b7b69d6b8ee
> --- /dev/null
> +++ b/graphics/mesa-dri/files/extra-patch-src_util_build__id.c
> @@ -0,0 +1,15 @@
> +# Elf_ doesn't exist, use Elf32_ or Elf64_
> +#
> +--- src/util/build_id.c.orig 2017-12-21 17:31:22 UTC
> ++++ src/util/build_id.c
> +@@ -38,6 +38,10 @@
> + #define ElfW(type) Elf_##type
> + #endif
> +
> ++#if defined(__FreeBSD__) && __FreeBSD__ < 12
> ++typedef Elf_Note Elf_Nhdr;
> ++#endif
Why check for version here when the check is already done in the Makefile?
> ++
> + struct build_id_note {
> + ElfW(Nhdr) nhdr;
> +
> diff --git a/graphics/mesa-libs/Makefile b/graphics/mesa-libs/Makefile
> index 858a91d7472f..7d759b34ca81 100644
> --- a/graphics/mesa-libs/Makefile
> +++ b/graphics/mesa-libs/Makefile
> @@ -6,8 +6,6 @@ CATEGORIES= graphics
>
> COMMENT= OpenGL libraries that support GLX and EGL clients
>
> -BROKEN_FreeBSD_11= error: unknown type name 'Elf_Nhdr'
> -
> BUILD_DEPENDS= libglvnd>0:graphics/libglvnd
>
> OPTIONS_GROUP= PLATFORM
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/dev-commits-ports-all/attachments/20210728/0da54156/attachment.sig>
More information about the dev-commits-ports-all
mailing list