From owner-dev-commits-ports-all@freebsd.org Wed Jul 28 08:17:29 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 987B9656947; Wed, 28 Jul 2021 08:17:29 +0000 (UTC) (envelope-from pkubaj@anongoth.pl) Received: from mail.anongoth.pl (mail.anongoth.pl [46.248.190.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X448 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "anongoth.pl", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GZRNT2D2qz4Z6h; Wed, 28 Jul 2021 08:17:29 +0000 (UTC) (envelope-from pkubaj@anongoth.pl) Received: from anongoth.pl (unknown [192.168.1.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: pkubaj@anongoth.pl) by mail.anongoth.pl (Postfix) with ESMTPSA id 317DB10CA9B; Wed, 28 Jul 2021 10:17:19 +0200 (CEST) Date: Wed, 28 Jul 2021 10:17:17 +0200 From: Piotr Kubaj To: Emmanuel Vadot Cc: ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org Subject: Re: git: f74b56360de7 - main - graphics/mesa-*: Unbreak on 11.4 Message-ID: References: <202107280712.16S7CKYr031066@gitrepo.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HkKKR0fgORF6HjY3" Content-Disposition: inline In-Reply-To: <202107280712.16S7CKYr031066@gitrepo.freebsd.org> X-Rspamd-Queue-Id: 4GZRNT2D2qz4Z6h X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jul 2021 08:17:29 -0000 --HkKKR0fgORF6HjY3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 21-07-28 07:12:20, Emmanuel Vadot wrote: > The branch main has been updated by manu: >=20 > URL: https://cgit.FreeBSD.org/ports/commit/?id=3Df74b56360de7b82aa5135be3= 06cdfacb3db3acd0 >=20 > commit f74b56360de7b82aa5135be306cdfacb3db3acd0 > Author: Emmanuel Vadot > AuthorDate: 2021-07-28 07:12:07 +0000 > Commit: Emmanuel Vadot > CommitDate: 2021-07-28 07:12:07 +0000 >=20 > graphics/mesa-*: Unbreak on 11.4 > =20 > Re-add patches that was removed on the 21.1.5 update. > =20 > 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(-) >=20 > diff --git a/graphics/mesa-dri/Makefile.common b/graphics/mesa-dri/Makefi= le.common > index 20931bf44980..36ba47ccbe30 100644 > --- a/graphics/mesa-dri/Makefile.common > +++ b/graphics/mesa-dri/Makefile.common > @@ -81,6 +81,10 @@ PKGHELP=3D ${.CURDIR}/pkg-help > PKGINSTALL=3D ${.CURDIR}/pkg-install > PKGDEINSTALL=3D ${.CURDIR}/pkg-deinstall > =20 > +.if ${OPSYS} =3D=3D FreeBSD && ${OSVERSION} < 1200000 > +EXTRA_PATCHES+=3D ${PATCHDIR}/extra-patch-src_util_build__id.c > +.endif > + > .include > =20 > BINARY_ALIAS+=3D python3=3D${PYTHON_VERSION} > diff --git a/graphics/mesa-dri/files/extra-patch-src_util_build__id.c b/g= raphics/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 > +=20 > ++#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; > +=20 > 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=3D graphics > =20 > COMMENT=3D OpenGL libraries that support GLX and EGL clients > =20 > -BROKEN_FreeBSD_11=3D error: unknown type name 'Elf_Nhdr' > - > BUILD_DEPENDS=3D libglvnd>0:graphics/libglvnd > =20 > OPTIONS_GROUP=3D PLATFORM --HkKKR0fgORF6HjY3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEycyIeNkkgohzsoorelmbhSCDnJ0FAmEBEo0ACgkQelmbhSCD nJ2lYw//WHItv8FXi8/oYOTbc694sTZLUqxrzxgmDHsd4NOtJaTo6gE+6rHjLwtr ii5G/Lt0IvUclrB7YyUszpM6nPZs7tZqlVZzh8H2L3IaP26o/qTQXfdVdzs3/6ya R1H5tRVHPl/QEj7zGef9EVGbK6G9hLQ1v/Ub+oa2kX0pgBy1owVvRrPfu4dBe74L inTGN+7ayDUVXw9/Hejttr+3L2p0KiRDYnv0kSXhWf3C48lqE1DjEl+wMNw96EmB dFURTTg7nxRpHAU7ozbL42T0sLuJrkqsjTMwOkhxPpuFwNwTwWMP7AGucoXvwHxh dgM59GwUf+S2nySw6UoR/VwLq3M9eh+0DZ3Msly2f+6lOC1CpEv4Wv4BvMis4M8D aDT60ixA3Q/fPLFsGlydcrtaSyU2bT4RYzj5al5QTQiwf5HDPNCfSbNr6s/jDM+T ofEdWFRzy7pd1M/ATLHJCdeJR3tP1oH2+38m9Gci05m5xsEcUqzRhyD54NbHoWLp H7wNl3HHPkMmeyvuAHqzHLB7ZM9T83DOOXFasCX+J8BKtTN5Z2jOjElMpKU5jPD1 oOpOrliozgPFt2UXRCpICNUKb7UJ2FtFXeDvhfXgNqlJAsFtmAZWB8MOtGhoIlNX GHoU3EfzqvWO+uQR94N1P41PRbMenfvM44cf4sieweLTrqdIqwA= =zMrz -----END PGP SIGNATURE----- --HkKKR0fgORF6HjY3--