Github messages for voidlinux
 help / color / mirror / Atom feed
From: motorto <motorto@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] intel-media-driver: update to 22.5.2.
Date: Fri, 19 Aug 2022 01:08:42 +0200	[thread overview]
Message-ID: <20220818230842.UxdCYr0JNgUMhbvo9ABzgCF1uLYVwwmwItT3XiiwXbA@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-38632@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 647 bytes --]

There is an updated pull request by motorto against master on the void-packages repository

https://github.com/motorto/void-packages intel-media-driver-22.5.0
https://github.com/void-linux/void-packages/pull/38632

intel-media-driver: update to 22.5.2.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**, been using it for the last day without any problem

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc


A patch file from https://github.com/void-linux/void-packages/pull/38632.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-intel-media-driver-22.5.0-38632.patch --]
[-- Type: text/x-diff, Size: 3968 bytes --]

From bbed7a9558afcec2eb63dc8ff563ade739388752 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Cerqueira?= <acerqueira021@gmail.com>
Date: Fri, 12 Aug 2022 14:45:56 +0100
Subject: [PATCH] intel-media-driver: update to 22.5.2.

---
 .../intel-media-driver/patches/execinfo.patch | 48 ++++++++++++++-----
 srcpkgs/intel-media-driver/template           |  4 +-
 2 files changed, 39 insertions(+), 13 deletions(-)

diff --git a/srcpkgs/intel-media-driver/patches/execinfo.patch b/srcpkgs/intel-media-driver/patches/execinfo.patch
index 17987b098d0a..25d21192d5a1 100644
--- a/srcpkgs/intel-media-driver/patches/execinfo.patch
+++ b/srcpkgs/intel-media-driver/patches/execinfo.patch
@@ -1,26 +1,54 @@
-Fix builds on musl
+From b17354142563b45e0ebf427485591426481368fd Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd.kuhls@t-online.de>
+Date: Fri, 29 Jul 2022 19:51:39 +0200
+Subject: [PATCH] Fix uClibc build
 
+uClibc does not provide execinfo.h
+---
+ CMakeLists.txt                                              | 6 ++++++
+ .../linux/common/os/osservice/mos_utilities_specific.cpp    | 4 ++++
+ 2 files changed, 10 insertions(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 053904748..4a3f0869e 100755
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -53,6 +53,12 @@ option (BUILD_CMRTLIB "Build and Install cmrtlib together with media driver" ON)
+ 
+ option (ENABLE_PRODUCTION_KMD "Enable Production KMD header files" OFF)
+ 
++include(CheckIncludeFileCXX)
++check_include_file_cxx("execinfo.h" HAVE_EXECINFO)
++if (HAVE_EXECINFO)
++    add_definitions(-DHAVE_EXECINFO)
++endif()
++
+ include(GNUInstallDirs)
+ 
+ if (BUILD_CMRTLIB AND NOT CMAKE_WDDM_LINUX)
+diff --git a/media_softlet/linux/common/os/osservice/mos_utilities_specific.cpp b/media_softlet/linux/common/os/osservice/mos_utilities_specific.cpp
+index bde216b83..120b02d55 100644
 --- a/media_softlet/linux/common/os/osservice/mos_utilities_specific.cpp
 +++ b/media_softlet/linux/common/os/osservice/mos_utilities_specific.cpp
-@@ -51,7 +51,9 @@
+@@ -34,7 +34,9 @@
  #include <signal.h>
  #include <unistd.h>  // fork
  #include <algorithm>
-+#if defined(__GLIBC__)
++#ifdef HAVE_EXECINFO
  #include <execinfo.h> // backtrace
 +#endif
- 
- const char           *MosUtilitiesSpecificNext::m_szUserFeatureFile     = USER_FEATURE_FILE;
- MOS_PUF_KEYLIST      MosUtilitiesSpecificNext::m_ufKeyList              = nullptr;
-@@ -2489,6 +2491,7 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>  // fstat
+ #include <sys/ipc.h>  // System V IPC
+@@ -2473,6 +2475,7 @@ void MosUtilities::MosTraceEvent(
                  MOS_FreeMemory(pTraceBuf);
              }
          }
-+#if defined(__GLIBC__)
++#ifdef HAVE_EXECINFO
          if (m_mosTraceFilter & (1ULL << TR_KEY_CALL_STACK))
          {
              // reserve space for header and stack size field.
-@@ -2508,6 +2511,7 @@
+@@ -2492,6 +2495,7 @@ void MosUtilities::MosTraceEvent(
                  size_t ret = write(MosUtilitiesSpecificNext::m_mosTraceFd, traceBuf, nLen);
              }
          }
@@ -28,5 +56,3 @@ Fix builds on musl
      }
      return;
  }
-
-
diff --git a/srcpkgs/intel-media-driver/template b/srcpkgs/intel-media-driver/template
index 855cfbdc3e0a..add82f6564fc 100644
--- a/srcpkgs/intel-media-driver/template
+++ b/srcpkgs/intel-media-driver/template
@@ -1,6 +1,6 @@
 # Template file for 'intel-media-driver'
 pkgname=intel-media-driver
-version=22.4.4
+version=22.5.2
 revision=1
 archs="x86_64*"
 wrksrc=media-driver-intel-media-${version}
@@ -13,7 +13,7 @@ maintainer="Stefano Ragni <st3r4g@protonmail.com>"
 license="MIT, BSD-3-Clause"
 homepage="https://github.com/intel/media-driver"
 distfiles="https://github.com/intel/media-driver/archive/intel-media-${version}.tar.gz"
-checksum=19c3ef965ca155913719d138e297963b759f9b9d34d4ea85414d1c7b9d204253
+checksum=3b53bb6fb7793ef6c498ff086327ceefeef0a72d1f41b1fcaeae552a694fbcd8
 
 build_options="nonfree"
 desc_option_nonfree="Enable nonfree kernels"

  parent reply	other threads:[~2022-08-18 23:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-12 13:46 [PR PATCH] " motorto
2022-08-13 21:09 ` [PR PATCH] [Updated] " motorto
2022-08-18 21:45 ` motorto
2022-08-18 23:08 ` motorto [this message]
2022-08-21 12:46 ` [PR PATCH] [Merged]: " leahneukirchen

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=20220818230842.UxdCYr0JNgUMhbvo9ABzgCF1uLYVwwmwItT3XiiwXbA@z \
    --to=motorto@users.noreply.github.com \
    --cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).