[arch-commits] Commit in appstream-generator/repos/community-x86_64 (3 files)

Antonio Rojas arojas at gemini.archlinux.org
Sun Mar 27 20:02:55 UTC 2022


    Date: Sunday, March 27, 2022 @ 20:02:55
  Author: arojas
Revision: 1177235

archrelease: copy trunk to community-x86_64

Added:
  appstream-generator/repos/community-x86_64/PKGBUILD
    (from rev 1177234, appstream-generator/trunk/PKGBUILD)
  appstream-generator/repos/community-x86_64/stack-size.diff
    (from rev 1177234, appstream-generator/trunk/stack-size.diff)
Deleted:
  appstream-generator/repos/community-x86_64/PKGBUILD

-----------------+
 PKGBUILD        |   57 ++++++++++++++++++++++++++++++++----------------------
 stack-size.diff |   12 +++++++++++
 2 files changed, 46 insertions(+), 23 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-27 20:02:40 UTC (rev 1177234)
+++ PKGBUILD	2022-03-27 20:02:55 UTC (rev 1177235)
@@ -1,23 +0,0 @@
-# Maintainer: Antonio Rojas <arojas at archlinux.org>
-
-pkgname=appstream-generator
-pkgver=0.8.7
-pkgrel=1
-pkgdesc='A fast AppStream metadata generator'
-arch=(x86_64)
-url='https://github.com/ximion/appstream-generator'
-license=(GPL3)
-depends=(appstream libarchive librsvg optipng glibd lmdb)
-makedepends=(ldc meson ninja mustache-d curl gir-to-d gobject-introspection docbook-xsl)
-source=(https://github.com/ximion/appstream-generator/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
-sha256sums=('0e8432549e55b653ebd971421aac208956ec8e197dc23c5533a6c1932f125793')
-
-build() {
-  export LDFLAGS="$(echo -ne $LDFLAGS | sed -e 's/-flto/--flto=full/')"
-  meson build $pkgname-$pkgver -Ddownload-js=false --prefix=/usr
-  ninja -C build
-}
-
-package() {
-  DESTDIR="$pkgdir" ninja install -C build
-}

Copied: appstream-generator/repos/community-x86_64/PKGBUILD (from rev 1177234, appstream-generator/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-03-27 20:02:55 UTC (rev 1177235)
@@ -0,0 +1,34 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=appstream-generator
+pkgver=0.8.7
+pkgrel=2
+pkgdesc='A fast AppStream metadata generator'
+arch=(x86_64)
+url='https://github.com/ximion/appstream-generator'
+license=(GPL3)
+depends=(appstream libarchive librsvg optipng glibd lmdb)
+makedepends=(ldc meson ninja mustache-d curl gir-to-d gobject-introspection docbook-xsl)
+options=(debug)
+source=(https://github.com/ximion/appstream-generator/archive/v$pkgver/$pkgname-$pkgver.tar.gz
+        stack-size.diff)
+sha256sums=('0e8432549e55b653ebd971421aac208956ec8e197dc23c5533a6c1932f125793'
+            '73f68b4b85611ddabbcac7189266e49af4bc012d4fb610fb6fc87bae57970c2a')
+
+prepare() {
+  cd $pkgname-$pkgver
+
+  # Fix crash due to stack exhaustion trying to initialize iconv in a Generator fiber
+  # https://github.com/ximion/appstream-generator/issues/101
+  patch -Np1 -i ../stack-size.diff
+}
+
+build() {
+  export LDFLAGS="$(echo -ne $LDFLAGS | sed -e 's/-flto=auto/--flto=full/')"
+  arch-meson $pkgname-$pkgver build -D download-js=false
+  meson compile -C build
+}
+
+package() {
+  meson install -C build --destdir="$pkgdir"
+}

Copied: appstream-generator/repos/community-x86_64/stack-size.diff (from rev 1177234, appstream-generator/trunk/stack-size.diff)
===================================================================
--- stack-size.diff	                        (rev 0)
+++ stack-size.diff	2022-03-27 20:02:55 UTC (rev 1177235)
@@ -0,0 +1,12 @@
+diff -u -r a/src/asgen/zarchive.d a2/src/asgen/zarchive.d
+--- a/src/asgen/zarchive.d	2022-02-22 18:16:54.000000000 +0100
++++ a2/src/asgen/zarchive.d	2022-03-27 20:51:22.390736900 +0200
+@@ -436,7 +436,7 @@
+                 aentry.data = this.readEntry (ar);
+                 yield (aentry);
+             }
+-        });
++        }, 65536);
+ 
+         return gen;
+     }



More information about the arch-commits mailing list