From da531d80f2dab163e4a9f68f3e5d32d0f0af880e Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 1 Jun 2020 10:23:25 -0600 Subject: [PATCH] pixman: drop package This is now in upstream Alpine --- sr.ht/pixman/APKBUILD | 43 -------------------------- sr.ht/pixman/stacksize-reduction.patch | 35 --------------------- 2 files changed, 78 deletions(-) delete mode 100644 sr.ht/pixman/APKBUILD delete mode 100644 sr.ht/pixman/stacksize-reduction.patch diff --git a/sr.ht/pixman/APKBUILD b/sr.ht/pixman/APKBUILD deleted file mode 100644 index 2ad13b7..0000000 --- a/sr.ht/pixman/APKBUILD +++ /dev/null @@ -1,43 +0,0 @@ -# Maintainer: Natanael Copa -pkgname=pixman -pkgver=0.40.0 -pkgrel=0 -pkgdesc="Low-level pixel manipulation library" -url="http://xorg.freedesktop.org" -arch="all" -license="MIT" -subpackages="$pkgname-static $pkgname-dev $pkgname-dbg" -makedepends="perl linux-headers autoconf automake libtool" -source="https://gitlab.freedesktop.org/pixman/pixman/-/archive/pixman-$pkgver/pixman-pixman-$pkgver.tar.gz" -builddir="$srcdir/$pkgname-$pkgname-$pkgver" - -build() { - cd "$builddir" - ./autogen.sh - ./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/usr \ - --enable-static \ - --disable-openmp \ - --disable-arm-iwmmxt - make -} - -check() { - cd "$builddir" - make check -} - -package() { - cd "$builddir" - make DESTDIR="$pkgdir" install -} - -static() { - pkgdesc="Static libraries for pixman" - mkdir -p "$subpkgdir"/usr/lib - mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/ -} - -sha512sums="18774e22add5c5442edede5467fa07234c2b9e57a79d88110f25424e4253c6ab0c2921e951c5686cefebf4724ff19ad053d0c28f4d2f8d642bbcf6fc71764ef6 pixman-pixman-0.40.0.tar.gz" diff --git a/sr.ht/pixman/stacksize-reduction.patch b/sr.ht/pixman/stacksize-reduction.patch deleted file mode 100644 index 38da9b3..0000000 --- a/sr.ht/pixman/stacksize-reduction.patch +++ /dev/null @@ -1,35 +0,0 @@ -Reduce the stack footprint of pixman's function -general_composite_rect() which allocates a large buffer -`stack_scanline_buffer`. Make it `static __thread` instead. - ---- a/pixman/pixman-general.c 2015-12-27 21:37:37.000000000 +0100 -+++ b/pixman/pixman-general.c 2016-05-05 12:24:47.346661080 +0200 -@@ -128,8 +128,8 @@ - pixman_composite_info_t *info) - { - PIXMAN_COMPOSITE_ARGS (info); -- uint8_t stack_scanline_buffer[3 * SCANLINE_BUFFER_LENGTH]; -- uint8_t *scanline_buffer = (uint8_t *) stack_scanline_buffer; -+ static __thread uint8_t static_scanline_buffer[3 * SCANLINE_BUFFER_LENGTH]; -+ uint8_t *scanline_buffer = (uint8_t *) static_scanline_buffer; - uint8_t *src_buffer, *mask_buffer, *dest_buffer; - pixman_iter_t src_iter, mask_iter, dest_iter; - pixman_combine_32_func_t compose; -@@ -158,7 +158,7 @@ - if (width <= 0 || _pixman_multiply_overflows_int (width, Bpp * 3)) - return; - -- if (width * Bpp * 3 > sizeof (stack_scanline_buffer) - 15 * 3) -+ if (width * Bpp * 3 > sizeof (static_scanline_buffer) - 15 * 3) - { - scanline_buffer = pixman_malloc_ab_plus_c (width, Bpp * 3, 15 * 3); - -@@ -232,7 +232,7 @@ - if (dest_iter.fini) - dest_iter.fini (&dest_iter); - -- if (scanline_buffer != (uint8_t *) stack_scanline_buffer) -+ if (scanline_buffer != (uint8_t *) static_scanline_buffer) - free (scanline_buffer); - } - -- 2.45.2