diff options
author | Narrat | 2020-01-12 18:07:14 +0100 |
---|---|---|
committer | Narrat | 2020-01-12 18:07:14 +0100 |
commit | 0c0389b0d75646377a8c457091d8320aae4292e9 (patch) | |
tree | 0722896921eb7ceb5f3068ae6272cef28075eea9 | |
parent | 4e841c9af004a8b4b8d10c12c07007dc852447c0 (diff) | |
download | aur-0c0389b0d75646377a8c457091d8320aae4292e9.tar.gz |
update to 1.7.9
Did the changes andreas.baumann suggested. So happy testing
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 23 | ||||
-rw-r--r-- | git-fixes.patch | 187 |
3 files changed, 14 insertions, 213 deletions
@@ -1,25 +1,20 @@ pkgbase = xf86-video-siliconmotion pkgdesc = X.org siliconmotion video driver - pkgver = 1.7.8 - pkgrel = 3 + pkgver = 1.7.9 + pkgrel = 1 url = https://xorg.freedesktop.org/ arch = i686 arch = x86_64 groups = xorg-drivers license = custom makedepends = xorg-server-devel - makedepends = X-ABI-VIDEODRV_VERSION=23 + makedepends = X-ABI-VIDEODRV_VERSION=24.0 depends = glibc - conflicts = xorg-server<1.19 - conflicts = X-ABI-VIDEODRV_VERSION<23 - conflicts = X-ABI-VIDEODRV_VERSION>=24 - source = https://xorg.freedesktop.org//releases/individual/driver/xf86-video-siliconmotion-1.7.8.tar.bz2 - source = https://xorg.freedesktop.org//releases/individual/driver/xf86-video-siliconmotion-1.7.8.tar.bz2.sig - source = git-fixes.patch + source = https://xorg.freedesktop.org//releases/individual/driver/xf86-video-siliconmotion-1.7.9.tar.bz2 + source = https://xorg.freedesktop.org//releases/individual/driver/xf86-video-siliconmotion-1.7.9.tar.bz2.sig validpgpkeys = 7B27A3F1A6E18CD9588B4AE8310180050905E40C - sha256sums = e9d449a9fd9e58b4e018447b6c64005f7874cffb1777e513ac9fc41a86071beb + sha256sums = d0f3c691e71108d27a061beb62bf78b36ec35bd755905692734dd68cfb3359bc sha256sums = SKIP - sha256sums = cc87d2e0ce857cf5c486127af6a0fc3278323c18be022e94b16f10e90fcc7b68 pkgname = xf86-video-siliconmotion @@ -1,29 +1,22 @@ -# $Id: PKGBUILD 281739 2016-11-21 13:55:06Z lcarlier $ -# Maintainer: Jan de Groot <jgc@archlinux.org> +# Contributor: Andreas Baumann <mail@andreasbaumann.cc> +# Contributor: Jan de Groot <jgc@archlinux.org> # Contributor: Alexander Baldeck <alexander@archlinux.org> pkgname=xf86-video-siliconmotion -pkgver=1.7.8 -pkgrel=3 +pkgver=1.7.9 +pkgrel=1 pkgdesc="X.org siliconmotion video driver" arch=(i686 x86_64) url="https://xorg.freedesktop.org/" license=('custom') depends=('glibc') -makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=23') -conflicts=('xorg-server<1.19' 'X-ABI-VIDEODRV_VERSION<23' 'X-ABI-VIDEODRV_VERSION>=24') +makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=24.0') groups=('xorg-drivers') -source=(${url}/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2{,.sig} - git-fixes.patch) -sha256sums=('e9d449a9fd9e58b4e018447b6c64005f7874cffb1777e513ac9fc41a86071beb' - 'SKIP' - 'cc87d2e0ce857cf5c486127af6a0fc3278323c18be022e94b16f10e90fcc7b68') +source=(${url}/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2{,.sig}) +sha256sums=('d0f3c691e71108d27a061beb62bf78b36ec35bd755905692734dd68cfb3359bc' + 'SKIP') validpgpkeys=('7B27A3F1A6E18CD9588B4AE8310180050905E40C') # Julien Cristau <julien.cristau@ens-lyon.org> -prepare() { - cd ${pkgname}-${pkgver} - patch -Np1 -i ../git-fixes.patch -} build() { cd ${pkgname}-${pkgver} diff --git a/git-fixes.patch b/git-fixes.patch deleted file mode 100644 index 348634f33ebb..000000000000 --- a/git-fixes.patch +++ /dev/null @@ -1,187 +0,0 @@ -From a4e406c20ab0590214f779c2319ac7b92594a606 Mon Sep 17 00:00:00 2001 -From: Connor Behan <connor.behan@gmail.com> -Date: Sun, 23 Aug 2015 11:46:37 -0400 -Subject: [PATCH 1/3] Check for drawables before compositing - -This should prevent a crash when something like Cairo tries to composite -a solid picture. - -Signed-off-by: Connor Behan <connor.behan@gmail.com> ---- - src/smi_exa.c | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/src/smi_exa.c b/src/smi_exa.c -index 70298ed..67a6fdd 100644 ---- a/src/smi_exa.c -+++ b/src/smi_exa.c -@@ -623,6 +623,10 @@ SMI_PrepareComposite(int op, PicturePtr pSrcPicture, PicturePtr pMaskPicture, Pi - { - ScrnInfoPtr pScrn = xf86ScreenToScrn(pDst->drawable.pScreen); - SMIPtr pSmi = SMIPTR(pScrn); -+ -+ if (!pSrc) return FALSE; -+ if (!pSrcPicture->pDrawable) return FALSE; -+ - int src_pitch = exaGetPixmapPitch(pSrc) / (pSrc->drawable.bitsPerPixel >> 3); - int dst_pitch = exaGetPixmapPitch(pDst) / (pDst->drawable.bitsPerPixel >> 3); - --- -2.10.2 - -From 647e5a93d9387e3bc8d2c8569e3a5f996acfb169 Mon Sep 17 00:00:00 2001 -From: Thomas Klausner <wiz@NetBSD.org> -Date: Mon, 14 Sep 2015 18:36:32 +0200 -Subject: [PATCH 2/3] Use X11/Xarch.h for endian detection. - -Reviewed-by: Connor Behan <connor.behan@gmail.com> ---- - src/smi.h | 1 + - src/smi_driver.c | 2 +- - src/smi_xaa.c | 18 +++++++++--------- - 3 files changed, 11 insertions(+), 10 deletions(-) - -diff --git a/src/smi.h b/src/smi.h -index 5e44892..2742c8d 100644 ---- a/src/smi.h -+++ b/src/smi.h -@@ -34,6 +34,7 @@ authorization from the XFree86 Project and Silicon Motion. - - #include <string.h> - #include <stdio.h> -+#include <X11/Xarch.h> - - #include "xf86.h" - #include "xf86_OSproc.h" -diff --git a/src/smi_driver.c b/src/smi_driver.c -index 2568637..8949cae 100644 ---- a/src/smi_driver.c -+++ b/src/smi_driver.c -@@ -487,7 +487,7 @@ SMI_PreInit(ScrnInfoPtr pScrn, int flags) - if (pScrn->depth > 8) { - /* The defaults are OK for us */ - rgb zeros = {0, 0, 0}; --#if __BYTE_ORDER == __BIG_ENDIAN -+#if X_BYTE_ORDER == X_BIG_ENDIAN - rgb masks = {0xff00,0xff0000,0xff000000}; - #else - rgb masks = {0, 0, 0}; -diff --git a/src/smi_xaa.c b/src/smi_xaa.c -index a878098..cd861a1 100644 ---- a/src/smi_xaa.c -+++ b/src/smi_xaa.c -@@ -211,7 +211,7 @@ SMI_SetupForScreenToScreenCopy(ScrnInfoPtr pScrn, int xdir, int ydir, int rop, - ENTER(); - DEBUG("xdir=%d ydir=%d rop=%02X trans=%08X\n", xdir, ydir, rop, trans); - --#if __BYTE_ORDER == __BIG_ENDIAN -+#if X_BYTE_ORDER == X_BIG_ENDIAN - if (pScrn->depth >= 24) - trans = lswapl(trans); - #endif -@@ -296,7 +296,7 @@ SMI_SetupForSolidFill(ScrnInfoPtr pScrn, int color, int rop, - | SMI_BITBLT - | SMI_START_ENGINE; - --#if __BYTE_ORDER == __BIG_ENDIAN -+#if X_BYTE_ORDER == X_BIG_ENDIAN - if (pScrn->depth >= 24) { - /* because of the BGR values are in the MSB bytes, - * 'white' is not possible and -1 has a different meaning. -@@ -408,7 +408,7 @@ SMI_SetupForCPUToScreenColorExpandFill(ScrnInfoPtr pScrn, int fg, int bg, - ENTER(); - DEBUG("fg=%08X bg=%08X rop=%02X\n", fg, bg, rop); - --#if __BYTE_ORDER == __BIG_ENDIAN -+#if X_BYTE_ORDER == X_BIG_ENDIAN - if (pScrn->depth >= 24) { - /* see remark elswere */ - if (fg == 0x7FFFFFFF) -@@ -431,7 +431,7 @@ SMI_SetupForCPUToScreenColorExpandFill(ScrnInfoPtr pScrn, int fg, int bg, - WRITE_DPR(pSmi, 0x18, ~fg); - WRITE_DPR(pSmi, 0x20, fg); - } else { --#if __BYTE_ORDER == __BIG_ENDIAN -+#if X_BYTE_ORDER == X_BIG_ENDIAN - if (bg == 0xFFFFFF7F) - bg = -1; - #endif -@@ -498,7 +498,7 @@ SMI_SetupForMono8x8PatternFill(ScrnInfoPtr pScrn, int patx, int paty, int fg, - DEBUG("patx=%08X paty=%08X fg=%08X bg=%08X rop=%02X\n", - patx, paty, fg, bg, rop); - --#if __BYTE_ORDER == __BIG_ENDIAN -+#if X_BYTE_ORDER == X_BIG_ENDIAN - if (pScrn->depth >= 24) { - if (fg == 0x7FFFFFFF) - fg = -1; -@@ -524,7 +524,7 @@ SMI_SetupForMono8x8PatternFill(ScrnInfoPtr pScrn, int patx, int paty, int fg, - WRITE_DPR(pSmi, 0x34, patx); - WRITE_DPR(pSmi, 0x38, paty); - } else { --#if __BYTE_ORDER == __BIG_ENDIAN -+#if X_BYTE_ORDER == X_BIG_ENDIAN - if (bg == 0xFFFFFF7F) - bg = -1; - #endif -@@ -582,7 +582,7 @@ SMI_SetupForColor8x8PatternFill(ScrnInfoPtr pScrn, int patx, int paty, int rop, - | SMI_COLOR_PATTERN - | SMI_START_ENGINE; - --#if __BYTE_ORDER == __BIG_ENDIAN -+#if X_BYTE_ORDER == X_BIG_ENDIAN - if (pScrn->depth >= 24) - trans_color = lswapl(trans_color); - #endif -@@ -666,7 +666,7 @@ SMI_SetupForImageWrite(ScrnInfoPtr pScrn, int rop, unsigned int planemask, - DEBUG("rop=%02X trans_color=%08X bpp=%d depth=%d\n", - rop, trans_color, bpp, depth); - --#if __BYTE_ORDER == __BIG_ENDIAN -+#if X_BYTE_ORDER == X_BIG_ENDIAN - if (pScrn->depth >= 24) - trans_color = lswapl(trans_color); - #endif -@@ -675,7 +675,7 @@ SMI_SetupForImageWrite(ScrnInfoPtr pScrn, int rop, unsigned int planemask, - | SMI_START_ENGINE; - - if (trans_color != -1) { --#if __BYTE_ORDER == __BIG_ENDIAN -+#if X_BYTE_ORDER == X_BIG_ENDIAN - if (trans_color == 0xFFFFFF7F) - trans_color = -1; - #endif --- -2.10.2 - -From e67f3949648c20e16ac756ae28ea4a2b4a1d0f4c Mon Sep 17 00:00:00 2001 -From: Adam Jackson <ajax@redhat.com> -Date: Tue, 19 Jul 2016 10:03:56 -0400 -Subject: [PATCH 3/3] Adapt Block/WakeupHandler signature for ABI 23 - -Signed-off-by: Adam Jackson <ajax@redhat.com> ---- - src/compat-api.h | 5 +++++ - 1 file changed, 5 insertions(+) - -diff --git a/src/compat-api.h b/src/compat-api.h -index 6bc946f..89976e4 100644 ---- a/src/compat-api.h -+++ b/src/compat-api.h -@@ -75,8 +75,13 @@ - - #define SCREEN_INIT_ARGS_DECL ScreenPtr pScreen, int argc, char **argv - -+#if ABI_VIDEODRV_VERSION >= SET_ABI_VERSION(23, 0) -+#define BLOCKHANDLER_ARGS_DECL ScreenPtr arg, pointer pTimeout -+#define BLOCKHANDLER_ARGS arg, pTimeout -+#else - #define BLOCKHANDLER_ARGS_DECL ScreenPtr arg, pointer pTimeout, pointer pReadmask - #define BLOCKHANDLER_ARGS arg, pTimeout, pReadmask -+#endif - - #define CLOSE_SCREEN_ARGS_DECL ScreenPtr pScreen - #define CLOSE_SCREEN_ARGS pScreen --- -2.10.2 - |