diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/xf86-video-intel/APKBUILD | 18 | ||||
-rw-r--r-- | main/xf86-video-intel/O_CLOEXEC.patch | 10 |
2 files changed, 25 insertions, 3 deletions
diff --git a/main/xf86-video-intel/APKBUILD b/main/xf86-video-intel/APKBUILD index 4a0d3bea63..c37a1b685f 100644 --- a/main/xf86-video-intel/APKBUILD +++ b/main/xf86-video-intel/APKBUILD @@ -1,6 +1,6 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=xf86-video-intel -pkgver=2.20.6 +pkgver=2.20.7 pkgrel=0 pkgdesc="X.Org driver for Intel cards" url="http://xorg.freedesktop.org/" @@ -12,7 +12,18 @@ makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto videoproto renderproto glproto xineramaproto libdrm-dev xf86driproto mesa-dev libxvmc-dev xcb-util-dev udev-dev" -source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2" +source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2 + O_CLOEXEC.patch" + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} build() { cd "$srcdir"/$pkgname-$pkgver @@ -29,4 +40,5 @@ package() { find "$pkgdir" -name '*.la' -delete install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING } -md5sums="7aed0905b9fd05956561e01ffd3f5a93 xf86-video-intel-2.20.6.tar.bz2" +md5sums="583cbe1c8461182ee727b20151601247 xf86-video-intel-2.20.7.tar.bz2 +d5c410d504c58aa641658a19e4950ea5 O_CLOEXEC.patch" diff --git a/main/xf86-video-intel/O_CLOEXEC.patch b/main/xf86-video-intel/O_CLOEXEC.patch new file mode 100644 index 0000000000..9dbe933588 --- /dev/null +++ b/main/xf86-video-intel/O_CLOEXEC.patch @@ -0,0 +1,10 @@ +--- ./src/sna/kgem.c.orig ++++ ./src/sna/kgem.c +@@ -37,6 +37,7 @@ + #include <sys/mman.h> + #include <time.h> + #include <errno.h> ++#define __USE_GNU + #include <fcntl.h> + + #include <xf86drm.h> |