From: "Matt Turner" <mattst88@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/mesa/files/, media-libs/mesa/
Date: Mon, 13 Apr 2020 16:32:51 +0000 (UTC) [thread overview]
Message-ID: <1586795564.a117c20f1b3127d4c397dddef4a7680359f1c9a3.mattst88@gentoo> (raw)
commit: a117c20f1b3127d4c397dddef4a7680359f1c9a3
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 13 16:06:42 2020 +0000
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Mon Apr 13 16:32:44 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a117c20f
media-libs/mesa: Revbump in order to rebuild against libdrm
And patch the libdrm version requirement so we don't have this problem
again.
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
...ify-the-maximum-required-libdrm-in-dri.pc.patch | 33 ++++++++++++++++++++++
.../{mesa-20.0.4.ebuild => mesa-20.0.4-r1.ebuild} | 4 +++
2 files changed, 37 insertions(+)
diff --git a/media-libs/mesa/files/mesa-20.0.4-meson-Specify-the-maximum-required-libdrm-in-dri.pc.patch b/media-libs/mesa/files/mesa-20.0.4-meson-Specify-the-maximum-required-libdrm-in-dri.pc.patch
new file mode 100644
index 00000000000..09897526a65
--- /dev/null
+++ b/media-libs/mesa/files/mesa-20.0.4-meson-Specify-the-maximum-required-libdrm-in-dri.pc.patch
@@ -0,0 +1,33 @@
+From 316b352e946a9993a20f28abc741d34455a957a8 Mon Sep 17 00:00:00 2001
+From: Matt Turner <mattst88@gmail.com>
+Date: Mon, 13 Apr 2020 09:20:18 -0700
+Subject: [PATCH] meson: Specify the maximum required libdrm in dri.pc
+
+When dealing with a regression in libdrm-2.4.101, I masked the package
+in Gentoo. In doing so, we discovered that Mesa's dri.pc specifies a
+version requirement in dri.pc for >= the version of libdrm Mesa was
+built against, thus preventing packages from being rebuilt with the
+older version of libdrm installed.
+
+Let's reduce this version requirement to the latest libdrm required by
+Mesa instead, since libdrm is backward compatible.
+---
+ src/mesa/drivers/dri/meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/mesa/drivers/dri/meson.build b/src/mesa/drivers/dri/meson.build
+index acf7d2eb128..b09ca16e38a 100644
+--- a/src/mesa/drivers/dri/meson.build
++++ b/src/mesa/drivers/dri/meson.build
+@@ -86,7 +86,7 @@ endif
+ if with_dri
+ dri_req_private = []
+ if dep_libdrm.found()
+- dri_req_private = ['libdrm >= ' + dep_libdrm.version()]
++ dri_req_private = ['libdrm >= ' + _drm_ver]
+ endif
+
+ pkg.generate(
+--
+2.24.1
+
diff --git a/media-libs/mesa/mesa-20.0.4.ebuild b/media-libs/mesa/mesa-20.0.4-r1.ebuild
similarity index 99%
rename from media-libs/mesa/mesa-20.0.4.ebuild
rename to media-libs/mesa/mesa-20.0.4-r1.ebuild
index 18accf194ed..a0d7a8ff5ca 100644
--- a/media-libs/mesa/mesa-20.0.4.ebuild
+++ b/media-libs/mesa/mesa-20.0.4-r1.ebuild
@@ -246,6 +246,10 @@ x86? (
libglvnd? ( usr/lib/libGLX_mesa.so.0.0.0 )
)"
+PATCHES=(
+ "${FILESDIR}"/${P}-meson-Specify-the-maximum-required-libdrm-in-dri.pc.patch
+)
+
llvm_check_deps() {
local flags=${MULTILIB_USEDEP}
if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi
next reply other threads:[~2020-04-13 16:32 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-13 16:32 Matt Turner [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-06-10 14:27 [gentoo-commits] repo/gentoo:master commit in: media-libs/mesa/files/, media-libs/mesa/ Matt Turner
2025-04-27 2:21 Matt Turner
2024-11-09 16:48 Matt Turner
2024-09-18 17:45 Matt Turner
2024-01-11 4:41 Matt Turner
2023-08-16 22:07 Matt Turner
2023-04-27 6:20 Sam James
2023-04-11 19:04 Sam James
2021-11-18 7:48 Matt Turner
2021-09-22 21:22 Matt Turner
2018-11-29 5:17 Matt Turner
2017-03-20 19:01 Matt Turner
2017-03-16 20:37 Matt Turner
2017-03-03 0:03 Matt Turner
2016-11-15 14:32 Michał Górny
2016-08-01 4:34 Mike Frysinger
2016-04-21 4:46 Matt Turner
2016-02-22 17:53 Matt Turner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1586795564.a117c20f1b3127d4c397dddef4a7680359f1c9a3.mattst88@gentoo \
--to=mattst88@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox