extra/pixman to 0.43.0-2

This commit is contained in:
Kevin Mihelich 2024-01-28 00:37:06 +00:00
parent 0adbc8ec0f
commit 67b88fc897
3 changed files with 71 additions and 7 deletions

View file

@ -1,15 +1,17 @@
pkgbase = pixman
pkgdesc = The pixel-manipulation library for X and cairo
pkgver = 0.43.0
pkgrel = 1
pkgrel = 2
url = https://cgit.freedesktop.org/pixman/
arch = x86_64
license = custom
license = MIT
makedepends = meson
makedepends = libpng
depends = glibc
provides = libpixman-1.so
source = https://xorg.freedesktop.org/releases/individual/lib/pixman-0.43.0.tar.xz
source = 0001-Drop-automatic-DEBUG-define.patch
sha512sums = a90399b8c6aec218abb2f419fb5d6894acf9f4c7acb4fd3893b0b7c805ba47c82ee7efb363be59bb1a15b6997b2dddb7dba062a165503b035e1124fff1b271c9
sha512sums = 6d3f81f5d48f19d54db5ad37f911dba4c6c928bc1b5744b81c3aed10ba68166f2b240329e4a4164a75664f2ff76030697ba22e603197e5fe270ee7a3757f9fe4
pkgname = pixman

View file

@ -0,0 +1,52 @@
From 8c39ce243708c3a3fe290154c5b85b093fadca5f Mon Sep 17 00:00:00 2001
From: Simon Ser <contact@emersion.fr>
Date: Sat, 27 Jan 2024 13:14:04 +0100
Subject: [PATCH] Drop automatic DEBUG define
We don't use the historical odd stable release numbering scheme
anymore.
Developers can still enable this debugging code via CFLAGS=-DDEBUG.
Signed-off-by: Simon Ser <contact@emersion.fr>
Closes: https://gitlab.freedesktop.org/pixman/pixman/-/issues/87
---
pixman/pixman-private.h | 19 -------------------
1 file changed, 19 deletions(-)
diff --git a/pixman/pixman-private.h b/pixman/pixman-private.h
index f43e87f..34fb69b 100644
--- a/pixman/pixman-private.h
+++ b/pixman/pixman-private.h
@@ -1050,28 +1050,9 @@ float pixman_unorm_to_float (uint16_t u, int n_bits);
* Various debugging code
*/
-#undef DEBUG
-
#define COMPILE_TIME_ASSERT(x) \
do { typedef int compile_time_assertion [(x)?1:-1]; } while (0)
-/* Turn on debugging depending on what type of release this is
- */
-#if (((PIXMAN_VERSION_MICRO % 2) == 0) && ((PIXMAN_VERSION_MINOR % 2) == 1))
-
-/* Debugging gets turned on for development releases because these
- * are the things that end up in bleeding edge distributions such
- * as Rawhide etc.
- *
- * For performance reasons we don't turn it on for stable releases or
- * random git checkouts. (Random git checkouts are often used for
- * performance work).
- */
-
-# define DEBUG
-
-#endif
-
void
_pixman_log_error (const char *function, const char *message);
--
GitLab

View file

@ -7,20 +7,30 @@
pkgname=pixman
pkgver=0.43.0
pkgrel=1
pkgrel=2
pkgdesc="The pixel-manipulation library for X and cairo"
arch=(x86_64)
url="https://cgit.freedesktop.org/pixman/"
license=('custom')
license=('MIT')
depends=('glibc')
makedepends=('meson' 'libpng')
provides=('libpixman-1.so')
source=(https://xorg.freedesktop.org/releases/individual/lib/${pkgname}-${pkgver}.tar.xz)
sha512sums=('a90399b8c6aec218abb2f419fb5d6894acf9f4c7acb4fd3893b0b7c805ba47c82ee7efb363be59bb1a15b6997b2dddb7dba062a165503b035e1124fff1b271c9')
source=(https://xorg.freedesktop.org/releases/individual/lib/${pkgname}-${pkgver}.tar.xz
0001-Drop-automatic-DEBUG-define.patch)
sha512sums=('a90399b8c6aec218abb2f419fb5d6894acf9f4c7acb4fd3893b0b7c805ba47c82ee7efb363be59bb1a15b6997b2dddb7dba062a165503b035e1124fff1b271c9'
'6d3f81f5d48f19d54db5ad37f911dba4c6c928bc1b5744b81c3aed10ba68166f2b240329e4a4164a75664f2ff76030697ba22e603197e5fe270ee7a3757f9fe4')
#validpgpkeys=('') # Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
prepare() {
cd $pkgname-$pkgver
# disable DEBUG
# https://gitlab.archlinux.org/archlinux/packaging/packages/pixman/-/issues/1
# https://gitlab.freedesktop.org/pixman/pixman/-/merge_requests/91
patch -Np1 -i ../0001-Drop-automatic-DEBUG-define.patch
}
build() {
arch-meson $pkgbase-$pkgver build \
arch-meson $pkgname-$pkgver build \
-D loongson-mmi=disabled \
-D vmx=disabled \
-D arm-simd=disabled \