initial import
This commit is contained in:
56
xenocara-video-vesa-debug/PKGBUILD
Normal file
56
xenocara-video-vesa-debug/PKGBUILD
Normal file
@@ -0,0 +1,56 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
# Based on xf86-video-vesa package
|
||||
|
||||
pkgname=xenocara-video-vesa-debug
|
||||
_openbsdver=6.9
|
||||
pkgver=2.3.4
|
||||
pkgrel=6
|
||||
pkgdesc="Xenocara vesa video driver"
|
||||
arch=(i686 x86_64)
|
||||
license=('X11')
|
||||
url="https://www.xenocara.org"
|
||||
depends=('glibc')
|
||||
makedepends=('xenocara-server-devel' 'X-ABI-VIDEODRV_VERSION=24.0' 'xenocara-util-macros')
|
||||
provides=('xf86-video-vesa')
|
||||
conflicts=('xf86-video-vesa' 'xenocara-server<1.20' 'X-ABI-VIDEODRV_VERSION<24' 'X-ABI-VIDEODRV_VERSION>=25')
|
||||
replaces=('xf86-video-vesa')
|
||||
groups=('xenocara-video-drivers-debug' 'xenocara-video-debug' 'xenocara-drivers-debug'
|
||||
'xorg-video-drivers-debug' 'xorg-video-debug' 'xorg-drivers-debug')
|
||||
source=(https://repo.hyperbola.info:50000/sources/xenocara-libre/$_openbsdver/driver/xf86-video-vesa-$pkgver.tar.lz{,.sig}
|
||||
revert-kernelcheck.patch)
|
||||
options=(!strip) # It's required for debug packages
|
||||
sha512sums=('d80ae6384e06876d0b462263591332ed8e5f926ca9a14cf4b34fc9ecbd6da7761d2bafe10377c1017daf3c24fd3c53dd1521e3ceb3fdc75ec16316c857f9798b'
|
||||
'SKIP'
|
||||
'2357f9b30732321c774073c3e233d16ebff29aab31bcebf7c6481bd2187554e85ec8b9cd375eaa836b433dfaba4d9e9cea1dcf3659803a388ceb6699ed905923')
|
||||
validpgpkeys=('C92BAA713B8D53D3CAE63FC9E6974752F9704456') # André Silva
|
||||
|
||||
prepare() {
|
||||
cd "xenocara-$_openbsdver/driver/xf86-video-vesa"
|
||||
patch -p1 -R -i "$srcdir/revert-kernelcheck.patch"
|
||||
autoreconf -vfi
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "xenocara-$_openbsdver/driver/xf86-video-vesa"
|
||||
|
||||
# Since pacman 5.0.2-2, hardened flags are now enabled in makepkg.conf
|
||||
# With them, module fail to load with undefined symbol.
|
||||
# See https://bugs.archlinux.org/task/55102 / https://bugs.archlinux.org/task/54845
|
||||
export CFLAGS=${CFLAGS/-fno-plt}
|
||||
export CXXFLAGS=${CXXFLAGS/-fno-plt}
|
||||
export LDFLAGS=${LDFLAGS/,-z,now}
|
||||
# It's required for debug packages
|
||||
export CFLAGS=${CFLAGS/-O2/-O0 -g3}
|
||||
export CXXFLAGS=${CXXFLAGS/-O2/-O0 -g3}
|
||||
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "xenocara-$_openbsdver/driver/xf86-video-vesa"
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
||||
}
|
||||
31
xenocara-video-vesa-debug/revert-kernelcheck.patch
Normal file
31
xenocara-video-vesa-debug/revert-kernelcheck.patch
Normal file
@@ -0,0 +1,31 @@
|
||||
From b1f7f190f9d4f2ab63d3e9ade3e7e04bb4b1f89f Mon Sep 17 00:00:00 2001
|
||||
From: Adam Jackson <ajax@redhat.com>
|
||||
Date: Wed, 08 Dec 2010 18:45:32 +0000
|
||||
Subject: Refuse to load if there's a kernel driver bound to the device
|
||||
|
||||
Ported from the equivalent check in nv.
|
||||
|
||||
Signed-off-by: Adam Jackson <ajax@redhat.com>
|
||||
---
|
||||
diff --git a/src/vesa.c b/src/vesa.c
|
||||
index 168fde1..2523d76 100644
|
||||
--- a/src/vesa.c
|
||||
+++ b/src/vesa.c
|
||||
@@ -431,8 +431,14 @@ VESAPciProbe(DriverPtr drv, int entity_num, struct pci_device *dev,
|
||||
pScrn = xf86ConfigPciEntity(NULL, 0, entity_num, NULL,
|
||||
NULL, NULL, NULL, NULL, NULL);
|
||||
if (pScrn != NULL) {
|
||||
- VESAPtr pVesa = VESAGetRec(pScrn);
|
||||
+ VESAPtr pVesa;
|
||||
|
||||
+ if (pci_device_has_kernel_driver(dev)) {
|
||||
+ ErrorF("vesa: Ignoring device with a bound kernel driver\n");
|
||||
+ return FALSE;
|
||||
+ }
|
||||
+
|
||||
+ pVesa = VESAGetRec(pScrn);
|
||||
VESAInitScrn(pScrn);
|
||||
pVesa->pciInfo = dev;
|
||||
}
|
||||
--
|
||||
cgit v0.9.0.2-2-gbebe
|
||||
Reference in New Issue
Block a user