[arch-commits] Commit in libva/repos (6 files)

Laurent Carlier lcarlier at archlinux.org
Tue Feb 28 15:53:12 UTC 2017


    Date: Tuesday, February 28, 2017 @ 15:53:12
  Author: lcarlier
Revision: 289674

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  libva/repos/testing-i686/
  libva/repos/testing-i686/PKGBUILD
    (from rev 289673, libva/trunk/PKGBUILD)
  libva/repos/testing-i686/not-finding-wl-drm-interface-with-libglvnd.patch
    (from rev 289673, libva/trunk/not-finding-wl-drm-interface-with-libglvnd.patch)
  libva/repos/testing-x86_64/
  libva/repos/testing-x86_64/PKGBUILD
    (from rev 289673, libva/trunk/PKGBUILD)
  libva/repos/testing-x86_64/not-finding-wl-drm-interface-with-libglvnd.patch
    (from rev 289673, libva/trunk/not-finding-wl-drm-interface-with-libglvnd.patch)

-----------------------------------------------------------------+
 testing-i686/PKGBUILD                                           |   36 +++++++
 testing-i686/not-finding-wl-drm-interface-with-libglvnd.patch   |   48 ++++++++++
 testing-x86_64/PKGBUILD                                         |   36 +++++++
 testing-x86_64/not-finding-wl-drm-interface-with-libglvnd.patch |   48 ++++++++++
 4 files changed, 168 insertions(+)

Copied: libva/repos/testing-i686/PKGBUILD (from rev 289673, libva/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2017-02-28 15:53:12 UTC (rev 289674)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Ionut Biru <ibiru at archlinux.org>
+# Maintainer: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+
+pkgname=libva
+pkgver=1.7.3
+pkgrel=2
+pkgdesc='Video Acceleration (VA) API for Linux'
+arch=('i686' 'x86_64')
+url='http://freedesktop.org/wiki/Software/vaapi'
+license=('MIT')
+depends=('libgl' 'libdrm' 'libxfixes')
+makedepends=('mesa')
+optdepends=('libva-vdpau-driver: backend for Nvidia and AMD cards'
+            'libva-intel-driver: backend for Intel cards')
+source=(https://freedesktop.org/software/vaapi/releases/$pkgname/$pkgname-$pkgver.tar.bz2
+        not-finding-wl-drm-interface-with-libglvnd.patch)
+sha1sums=('18e46f3d5a0e971eb0ec9fe14bc021e69eb13fb8'
+          'b6f28238cc3c93f727d44198d9b303379b74fab1')
+
+prepare() {
+  cd $pkgname-$pkgver
+  patch -Np1 -i ../not-finding-wl-drm-interface-with-libglvnd.patch
+}
+
+build() {
+  cd $pkgname-$pkgver
+  ./configure --prefix=/usr
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+  install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}

Copied: libva/repos/testing-i686/not-finding-wl-drm-interface-with-libglvnd.patch (from rev 289673, libva/trunk/not-finding-wl-drm-interface-with-libglvnd.patch)
===================================================================
--- testing-i686/not-finding-wl-drm-interface-with-libglvnd.patch	                        (rev 0)
+++ testing-i686/not-finding-wl-drm-interface-with-libglvnd.patch	2017-02-28 15:53:12 UTC (rev 289674)
@@ -0,0 +1,48 @@
+From b832b37c6a6f7ff69a4ea4656007827a1b7e67e8 Mon Sep 17 00:00:00 2001
+From: Hans de Goede <hdegoede at redhat.com>
+Date: Wed, 15 Feb 2017 15:18:44 +0100
+Subject: [PATCH] Wayland-drm: Fix not finding wl_drm_interface on systems with
+ libglvnd
+
+We do not want just any libEGL.so.1 we want mesa's libEGL.so.1 as that
+is the only way which defines the wl_drm_interface symbol we need,
+one systems with libglvnd libEGL.so.1 is a dispatcher library provided
+by libglvnd and the actual mesa libEGL we want is named libEGL_mesa.so.0
+so try that first.
+
+Signed-off-by: Hans de Goede <hdegoede at redhat.com>
+---
+ va/wayland/va_wayland_drm.c | 12 +++++++++---
+ 1 file changed, 9 insertions(+), 3 deletions(-)
+
+diff --git a/va/wayland/va_wayland_drm.c b/va/wayland/va_wayland_drm.c
+index 958ea85..2ff19f5 100644
+--- a/va/wayland/va_wayland_drm.c
++++ b/va/wayland/va_wayland_drm.c
+@@ -38,7 +38,10 @@
+ #include "wayland-drm-client-protocol.h"
+ 
+ /* XXX: Wayland/DRM support currently lives in Mesa libEGL.so.* library */
+-#define LIBWAYLAND_DRM_NAME "libEGL.so.1"
++/* First try the soname of a glvnd enabled mesa build */
++#define LIBWAYLAND_DRM_NAME "libEGL_mesa.so.0"
++/* Then fallback to plain libEGL.so.1 (which might not be mesa) */
++#define LIBWAYLAND_DRM_NAME_FALLBACK "libEGL.so.1"
+ 
+ typedef struct va_wayland_drm_context {
+     struct va_wayland_context   base;
+@@ -207,8 +210,11 @@ va_wayland_drm_create(VADisplayContextP pDisplayContext)
+     vtable->has_prime_sharing = 0;
+ 
+     wl_drm_ctx->handle = dlopen(LIBWAYLAND_DRM_NAME, RTLD_LAZY|RTLD_LOCAL);
+-    if (!wl_drm_ctx->handle)
+-        return false;
++    if (!wl_drm_ctx->handle) {
++        wl_drm_ctx->handle = dlopen(LIBWAYLAND_DRM_NAME_FALLBACK, RTLD_LAZY|RTLD_LOCAL);
++        if (!wl_drm_ctx->handle)
++            return false;
++    }
+ 
+     wl_drm_ctx->drm_interface =
+         dlsym(wl_drm_ctx->handle, "wl_drm_interface");
+

Copied: libva/repos/testing-x86_64/PKGBUILD (from rev 289673, libva/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2017-02-28 15:53:12 UTC (rev 289674)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Ionut Biru <ibiru at archlinux.org>
+# Maintainer: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+
+pkgname=libva
+pkgver=1.7.3
+pkgrel=2
+pkgdesc='Video Acceleration (VA) API for Linux'
+arch=('i686' 'x86_64')
+url='http://freedesktop.org/wiki/Software/vaapi'
+license=('MIT')
+depends=('libgl' 'libdrm' 'libxfixes')
+makedepends=('mesa')
+optdepends=('libva-vdpau-driver: backend for Nvidia and AMD cards'
+            'libva-intel-driver: backend for Intel cards')
+source=(https://freedesktop.org/software/vaapi/releases/$pkgname/$pkgname-$pkgver.tar.bz2
+        not-finding-wl-drm-interface-with-libglvnd.patch)
+sha1sums=('18e46f3d5a0e971eb0ec9fe14bc021e69eb13fb8'
+          'b6f28238cc3c93f727d44198d9b303379b74fab1')
+
+prepare() {
+  cd $pkgname-$pkgver
+  patch -Np1 -i ../not-finding-wl-drm-interface-with-libglvnd.patch
+}
+
+build() {
+  cd $pkgname-$pkgver
+  ./configure --prefix=/usr
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+  install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}

Copied: libva/repos/testing-x86_64/not-finding-wl-drm-interface-with-libglvnd.patch (from rev 289673, libva/trunk/not-finding-wl-drm-interface-with-libglvnd.patch)
===================================================================
--- testing-x86_64/not-finding-wl-drm-interface-with-libglvnd.patch	                        (rev 0)
+++ testing-x86_64/not-finding-wl-drm-interface-with-libglvnd.patch	2017-02-28 15:53:12 UTC (rev 289674)
@@ -0,0 +1,48 @@
+From b832b37c6a6f7ff69a4ea4656007827a1b7e67e8 Mon Sep 17 00:00:00 2001
+From: Hans de Goede <hdegoede at redhat.com>
+Date: Wed, 15 Feb 2017 15:18:44 +0100
+Subject: [PATCH] Wayland-drm: Fix not finding wl_drm_interface on systems with
+ libglvnd
+
+We do not want just any libEGL.so.1 we want mesa's libEGL.so.1 as that
+is the only way which defines the wl_drm_interface symbol we need,
+one systems with libglvnd libEGL.so.1 is a dispatcher library provided
+by libglvnd and the actual mesa libEGL we want is named libEGL_mesa.so.0
+so try that first.
+
+Signed-off-by: Hans de Goede <hdegoede at redhat.com>
+---
+ va/wayland/va_wayland_drm.c | 12 +++++++++---
+ 1 file changed, 9 insertions(+), 3 deletions(-)
+
+diff --git a/va/wayland/va_wayland_drm.c b/va/wayland/va_wayland_drm.c
+index 958ea85..2ff19f5 100644
+--- a/va/wayland/va_wayland_drm.c
++++ b/va/wayland/va_wayland_drm.c
+@@ -38,7 +38,10 @@
+ #include "wayland-drm-client-protocol.h"
+ 
+ /* XXX: Wayland/DRM support currently lives in Mesa libEGL.so.* library */
+-#define LIBWAYLAND_DRM_NAME "libEGL.so.1"
++/* First try the soname of a glvnd enabled mesa build */
++#define LIBWAYLAND_DRM_NAME "libEGL_mesa.so.0"
++/* Then fallback to plain libEGL.so.1 (which might not be mesa) */
++#define LIBWAYLAND_DRM_NAME_FALLBACK "libEGL.so.1"
+ 
+ typedef struct va_wayland_drm_context {
+     struct va_wayland_context   base;
+@@ -207,8 +210,11 @@ va_wayland_drm_create(VADisplayContextP pDisplayContext)
+     vtable->has_prime_sharing = 0;
+ 
+     wl_drm_ctx->handle = dlopen(LIBWAYLAND_DRM_NAME, RTLD_LAZY|RTLD_LOCAL);
+-    if (!wl_drm_ctx->handle)
+-        return false;
++    if (!wl_drm_ctx->handle) {
++        wl_drm_ctx->handle = dlopen(LIBWAYLAND_DRM_NAME_FALLBACK, RTLD_LAZY|RTLD_LOCAL);
++        if (!wl_drm_ctx->handle)
++            return false;
++    }
+ 
+     wl_drm_ctx->drm_interface =
+         dlsym(wl_drm_ctx->handle, "wl_drm_interface");
+



More information about the arch-commits mailing list