From 930e1bdf2e1307ade8449f81bc9f58cb018f723e Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Wed, 30 Nov 2022 02:10:14 +0000 Subject: [PATCH] Auto sync2gitlab import of libdrm-2.4.114-1.el8.src.rpm --- .gitignore | 1 + libdrm-2.4.0-no-bc.patch | 12 ++++++------ libdrm.spec | 18 ++++++++++++++---- sources | 2 +- 4 files changed, 22 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 3e408db..f5c76ce 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /libdrm-2.4.108.tar.xz /libdrm-2.4.111.tar.xz +/libdrm-2.4.114.tar.xz diff --git a/libdrm-2.4.0-no-bc.patch b/libdrm-2.4.0-no-bc.patch index e9f300c..30a8168 100644 --- a/libdrm-2.4.0-no-bc.patch +++ b/libdrm-2.4.0-no-bc.patch @@ -1,7 +1,7 @@ -diff -up libdrm-2.4.103/xf86drm.c.dma libdrm-2.4.103/xf86drm.c ---- libdrm-2.4.103/xf86drm.c.dma 2020-11-04 13:24:14.000000000 +1000 -+++ libdrm-2.4.103/xf86drm.c 2020-11-04 13:42:04.190975193 +1000 -@@ -507,11 +507,6 @@ drm_public int drmAvailable(void) +diff -up libdrm-2.4.114/xf86drm.c.dma libdrm-2.4.114/xf86drm.c +--- libdrm-2.4.114/xf86drm.c.dma 2022-11-03 18:33:36.000000000 +1000 ++++ libdrm-2.4.114/xf86drm.c 2022-11-10 05:39:58.652477119 +1000 +@@ -930,11 +930,6 @@ drm_public int drmAvailable(void) int fd; if ((fd = drmOpenMinor(0, 1, DRM_NODE_PRIMARY)) < 0) { @@ -13,7 +13,7 @@ diff -up libdrm-2.4.103/xf86drm.c.dma libdrm-2.4.103/xf86drm.c return 0; } -@@ -704,38 +699,6 @@ static int drmOpenByName(const char *nam +@@ -1127,38 +1122,6 @@ static int drmOpenByName(const char *nam } } @@ -25,7 +25,7 @@ diff -up libdrm-2.4.103/xf86drm.c.dma libdrm-2.4.103/xf86drm.c - int retcode; - - sprintf(proc_name, "/proc/dri/%d/name", i); -- if ((fd = open(proc_name, O_RDONLY, 0)) >= 0) { +- if ((fd = open(proc_name, O_RDONLY)) >= 0) { - retcode = read(fd, buf, sizeof(buf)-1); - close(fd); - if (retcode) { diff --git a/libdrm.spec b/libdrm.spec index a2fa9a0..66edfa8 100644 --- a/libdrm.spec +++ b/libdrm.spec @@ -1,4 +1,11 @@ %define bcond_meson() %{lua: do + local option = rpm.expand("%{1}") + local with = rpm.expand("%{?with_" .. option .. "}") + local value = (with ~= '') and "enabled" or "disabled" + option = option:gsub('_', '-') + print(string.format("-D%s=%s", option, value)) +end} +%define bcond_meson_tf() %{lua: do local option = rpm.expand("%{1}") local with = rpm.expand("%{?with_" .. option .. "}") local value = (with ~= '') and "true" or "false" @@ -46,7 +53,7 @@ end} Name: libdrm Summary: Direct Rendering Manager runtime library -Version: 2.4.111 +Version: 2.4.114 Release: 1%{?dist} License: MIT @@ -123,9 +130,9 @@ Utility programs for the kernel DRM interface. Will void your warranty. %{bcond_meson cairo_tests} \ %{bcond_meson man_pages} \ %{bcond_meson valgrind} \ - %{bcond_meson freedreno_kgsl} \ - %{bcond_meson install_test_programs} \ - %{bcond_meson udev} \ + %{bcond_meson_tf freedreno_kgsl} \ + %{bcond_meson_tf install_test_programs} \ + %{bcond_meson_tf udev} \ %{nil} %meson_build @@ -271,6 +278,9 @@ install -Dpm0644 -t %{buildroot}%{_udevrulesdir} %{S:2} %endif %changelog +* Thu Nov 10 2022 Dave Airlie - 2.4.114-1 +- Update to 2.4.114 + * Fri Jun 03 2022 Dave Airlie - 2.4.111-1 - Update to 2.4.111 diff --git a/sources b/sources index b437b3d..4ac791b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libdrm-2.4.111.tar.xz) = 17e92e9e4ded8031ac222764bed7e9ff430a1a377f5e435f6b62b4a7f45cb4c4b769b3b79fbcba11512c1ac973abf8cdcca8e0b9659ae095e915d3d5efcf5516 +SHA512 (libdrm-2.4.114.tar.xz) = 8dcd4be5674e3ea2ab4394fa8f461914e5aa7f4f57a2f448c5216d84ee6682e16b45eafabf97b7d9f5c062183d9a6bf3f0c97499d4cb01c19807a51209a0f644