mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 05:17:07 +02:00
main/wayland: work around debugger detection in wayland
testsuite tries to detect if a debugger is attached. the detector will give alse positive on grsec kernels. Add an environment variable to force work around it.
This commit is contained in:
parent
3f2b59e548
commit
2ae8dd4d06
@ -13,7 +13,8 @@ depends_dev="libffi-dev expat-dev"
|
||||
makedepends="$depends_dev doxygen xmlto graphviz grep libxml2-dev bash"
|
||||
subpackages="$pkgname-dev $pkgname-libs-client:_libs $pkgname-libs-egl:_libs
|
||||
$pkgname-libs-cursor:_libs $pkgname-libs-server:_libs"
|
||||
source="http://wayland.freedesktop.org/releases/$pkgname-$pkgver.tar.xz"
|
||||
source="http://wayland.freedesktop.org/releases/$pkgname-$pkgver.tar.xz
|
||||
tests-ignore-debugger.patch"
|
||||
|
||||
builddir="$srcdir/$pkgname-$pkgver"
|
||||
|
||||
@ -34,7 +35,7 @@ build() {
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
make check
|
||||
make check WAYLAND_TEST_IGNORE_DEBUGGER=1
|
||||
}
|
||||
|
||||
package() {
|
||||
@ -60,4 +61,5 @@ _libs() {
|
||||
mv "$pkgdir"/usr/lib/*-$name.so.* "$subpkgdir"/usr/lib
|
||||
}
|
||||
|
||||
sha512sums="f908917f1b575d2dc4d9770d3303e2637e8744fcb5c81feb2af2fe82cc51f54e22beaddfbe775fcf9623584169b7a062c75076132abeb888717180bfab53b3a8 wayland-1.15.0.tar.xz"
|
||||
sha512sums="f908917f1b575d2dc4d9770d3303e2637e8744fcb5c81feb2af2fe82cc51f54e22beaddfbe775fcf9623584169b7a062c75076132abeb888717180bfab53b3a8 wayland-1.15.0.tar.xz
|
||||
0f65a55265e9134ab08cabf67f9d1919c85c4cb6b69129e78bc6c50057cafcaf143007716a0fa73b2eb43d6b605944c320a12a36dbb5f15fcd2f5e770248c480 tests-ignore-debugger.patch"
|
||||
|
14
main/wayland/tests-ignore-debugger.patch
Normal file
14
main/wayland/tests-ignore-debugger.patch
Normal file
@ -0,0 +1,14 @@
|
||||
diff --git a/tests/test-runner.c b/tests/test-runner.c
|
||||
index 82a0a7b..8c7e90d 100644
|
||||
--- a/tests/test-runner.c
|
||||
+++ b/tests/test-runner.c
|
||||
@@ -287,6 +287,9 @@ is_debugger_attached(void)
|
||||
pid_t pid;
|
||||
int pipefd[2];
|
||||
|
||||
+ if (getenv("WAYLAND_TEST_IGNORE_DEBUGGER"))
|
||||
+ return 0;
|
||||
+
|
||||
if (pipe(pipefd) == -1) {
|
||||
perror("pipe");
|
||||
return 0;
|
Loading…
Reference in New Issue
Block a user