[arch-commits] Commit in dia/repos/community-x86_64 (3 files)
Konstantin Gizdov
kgizdov at archlinux.org
Tue Jun 15 07:07:21 UTC 2021
Date: Tuesday, June 15, 2021 @ 07:07:20
Author: kgizdov
Revision: 963743
archrelease: copy trunk to community-x86_64
Added:
dia/repos/community-x86_64/PKGBUILD
(from rev 963742, dia/trunk/PKGBUILD)
dia/repos/community-x86_64/dia-0.9.3-cve-2019-19451.patch
(from rev 963742, dia/trunk/dia-0.9.3-cve-2019-19451.patch)
Deleted:
dia/repos/community-x86_64/PKGBUILD
--------------------------------+
PKGBUILD | 107 ++++++++++++++++++++-------------------
dia-0.9.3-cve-2019-19451.patch | 26 +++++++++
2 files changed, 82 insertions(+), 51 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-06-15 07:07:09 UTC (rev 963742)
+++ PKGBUILD 2021-06-15 07:07:20 UTC (rev 963743)
@@ -1,51 +0,0 @@
-# Maintainer: Thorsten Töpper <atsutane-tu at freethoughts.de>
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: Juergen Hoetzel <juergen at archlinux.org>
-# Contributor: Gregor Ibic <gregor.ibic at intelicom.si>
-
-pkgname=dia
-pkgver=0.97.3
-pkgrel=6
-pkgdesc="A GTK+ based diagram creation program"
-arch=('x86_64')
-license=('GPL')
-url="http://live.gnome.org/Dia"
-depends=('libxslt' 'gtk2')
-makedepends=('intltool' 'python2' 'docbook-xsl')
-optdepends=('python2')
-options=('docs' '!emptydirs')
-source=("ftp://ftp.gnome.org/pub/gnome/sources/${pkgname}/0.97/${pkgname}-${pkgver}.tar.xz")
-md5sums=('0e744a0f6a6c4cb6a089e4d955392c3c')
-
-prepare() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- for file in `find -type f -name '*.py'`; do
- sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' "$file"
- done
- sed -i 's#python2\.1#python2 python2.1#' configure
- sed -i 's#freetype-config --cflags#pkg-config --cflags freetype2#' configure
- sed -i 's#freetype-config --libs#pkg-config --libs freetype2#' configure
-}
-
-build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- export PYTHON=/usr/bin/python2
- ./configure --prefix=/usr \
- --with-cairo \
- --with-python \
- --disable-gnome \
- --with-hardbooks
- sed -i 's#SUBDIRS = lib objects plug-ins shapes app bindings samples po sheets data doc tests installer#SUBDIRS = lib objects plug-ins shapes app bindings samples po sheets data tests installer#' Makefile
- make
- cd doc
- make html
-}
-
-package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- make DESTDIR="${pkgdir}" install
- cd doc
- make DESTDIR="${pkgdir}" install-html
- ln -sf ../doc/dia/html "${pkgdir}"/usr/share/dia/help
-}
Copied: dia/repos/community-x86_64/PKGBUILD (from rev 963742, dia/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-06-15 07:07:20 UTC (rev 963743)
@@ -0,0 +1,56 @@
+# Maintainer: Thorsten Töpper <atsutane-tu at freethoughts.de>
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Juergen Hoetzel <juergen at archlinux.org>
+# Contributor: Gregor Ibic <gregor.ibic at intelicom.si>
+
+pkgname=dia
+pkgver=0.97.3
+pkgrel=8
+pkgdesc="A GTK+ based diagram creation program"
+arch=('x86_64')
+license=('GPL')
+url="http://live.gnome.org/Dia"
+depends=('libxslt' 'gtk2')
+makedepends=('intltool' 'python2' 'docbook-xsl')
+optdepends=('python2')
+options=('docs' '!emptydirs')
+source=("https://ftp.gnome.org/pub/gnome/sources/${pkgname}/0.97/${pkgname}-${pkgver}.tar.xz"
+ 'dia-0.9.3-cve-2019-19451.patch')
+sha256sums=('22914e48ef48f894bb5143c5efc3d01ab96e0a0cde80de11058d3b4301377d34'
+ '32cecad212fbd0f87f304d9eaf48f8b3d6555b10733ead5a3943bac778bf8586')
+
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ for file in `find -type f -name '*.py'`; do
+ sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' "$file"
+ done
+ sed -i 's#python2\.1#python2 python2.1#' configure
+ sed -i 's#freetype-config --cflags#pkg-config --cflags freetype2#' configure
+ sed -i 's#freetype-config --libs#pkg-config --libs freetype2#' configure
+
+ # FS#71257
+ patch -Np1 -i "${srcdir}/dia-0.9.3-cve-2019-19451.patch"
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ export PYTHON=/usr/bin/python2
+ ./configure --prefix=/usr \
+ --with-cairo \
+ --with-python \
+ --disable-gnome \
+ --with-hardbooks
+ sed -i 's#SUBDIRS = lib objects plug-ins shapes app bindings samples po sheets data doc tests installer#SUBDIRS = lib objects plug-ins shapes app bindings samples po sheets data tests installer#' Makefile
+ make
+ cd doc
+ make html
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ cd doc
+ make DESTDIR="${pkgdir}" install-html
+ ln -sf ../doc/dia/html "${pkgdir}"/usr/share/dia/help
+}
Copied: dia/repos/community-x86_64/dia-0.9.3-cve-2019-19451.patch (from rev 963742, dia/trunk/dia-0.9.3-cve-2019-19451.patch)
===================================================================
--- dia-0.9.3-cve-2019-19451.patch (rev 0)
+++ dia-0.9.3-cve-2019-19451.patch 2021-06-15 07:07:20 UTC (rev 963743)
@@ -0,0 +1,26 @@
+From baa2df853f9fb770eedcf3d94c7f5becebc90bb9 Mon Sep 17 00:00:00 2001
+From: Nils Steinger <git at n-st.de>
+Date: Thu, 7 Nov 2019 15:12:18 +0100
+Subject: [PATCH] Fix endless loop on filenames with invalid encoding
+
+See also:
+ - https://bugzilla.redhat.com/show_bug.cgi?id=1778767
+ - https://gitlab.gnome.org/GNOME/dia/-/issues/428
+---
+ app/app_procs.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/app/app_procs.c b/app/app_procs.c
+index 434a092f6..53f8b8c38 100644
+--- a/app/app_procs.c
++++ b/app/app_procs.c
+@@ -675,6 +675,7 @@ app_init (int argc, char **argv)
+
+ if (!filename) {
+ g_print (_("Filename conversion failed: %s\n"), filenames[i]);
++ ++i;
+ continue;
+ }
+
+--
+GitLab
More information about the arch-commits
mailing list