summaryrefslogtreecommitdiff
path: root/vte/Pkgfile
diff options
context:
space:
mode:
authorDanny Rawlins <monster.romster@gmail.com>2018-02-10 11:28:14 +1100
committerDanny Rawlins <monster.romster@gmail.com>2018-02-10 11:45:56 +1100
commit22e4cac6db2a3791179d03b7c03fa4e0d787aba3 (patch)
treedd02a6233f778c4d240cc7bc73b0ba04df86686f /vte/Pkgfile
parent7a684ca86e7cbff2a43b0a59aa685cc3f5ec256a (diff)
downloadopt-22e4cac6db2a3791179d03b7c03fa4e0d787aba3.tar.gz
opt-22e4cac6db2a3791179d03b7c03fa4e0d787aba3.tar.xz
[notify] vte: fix CVE-2012-2738 and various ther bugs and improvments
Diffstat (limited to 'vte/Pkgfile')
-rw-r--r--vte/Pkgfile70
1 files changed, 46 insertions, 24 deletions
diff --git a/vte/Pkgfile b/vte/Pkgfile
index 2efb1f5bc..76ffc3387 100644
--- a/vte/Pkgfile
+++ b/vte/Pkgfile
@@ -1,30 +1,52 @@
-# Description: Virtual Terminal Emulator
-# URL: http://developer.gnome.org/arch/gnome/widgets/vte.html
-# Maintainer: Jose V Beneyto, sepen at crux dot nu
-# Packager: Juergen Daubert, jue at crux dot nu
-# Depends on: gtk xorg-libxdamage
+# Description: Virtual Terminal Emulator widget for use with GTK2
+# URL: https://wiki.gnome.org/Apps/Terminal/VTE
+# Maintainer: Danny Rawlins, crux at romster dot me
+# Depends on: gtk util-linux
name=vte
version=0.28.2
-release=2
-source=(ftp://ftp.gnome.org/pub/gnome/sources/$name/${version%.*}/$name-$version.tar.xz \
- $name-metamask.patch)
+release=3
+source=(https://download.gnome.org/sources/$name/${version%%.*}/$name-$version.tar.xz
+ $name-0.30.1-alt-meta.patch
+ $name-0.28.2-interix.patch
+ $name-0.28.2-limit-arguments.patch
+ $name-0.28.2-repaint-after-change-scroll-region.patch)
build() {
- cd $name-$version
-
- patch -R -p1 -i $SRC/$name-metamask.patch
- ./configure --prefix=/usr \
- --libexecdir=/usr/lib/$name \
- --disable-static \
- --disable-debugging \
- --disable-python \
- --disable-gtk-doc \
- --with-xft2 \
- --with-pangox
-
- make
- make DESTDIR=$PKG install
-
- rm -rf $PKG/usr/share/{gtk-doc,locale}
+ cd $name-$version
+
+ # https://bugzilla.gnome.org/show_bug.cgi?id=663779
+ patch -p1 -i $SRC/$name-0.30.1-alt-meta.patch
+
+ # https://bugzilla.gnome.org/show_bug.cgi?id=652290
+ patch -p1 -i $SRC/$name-0.28.2-interix.patch
+
+ # Fix CVE-2012-2738, upstream bug #676090
+ patch -p1 -i $SRC/$name-0.28.2-limit-arguments.patch
+
+ # Fix https://bugzilla.gnome.org/show_bug.cgi?id=542087
+ # Patch from https://github.com/pld-linux/vte0/commit/1e8dce16b239e5d378b02e4d04a60e823df36257
+ patch -p1 -i $SRC/$name-0.28.2-repaint-after-change-scroll-region.patch
+
+ export CFLAGS="$CFLAGS -Wno-deprecated-declarations"
+
+ ./configure \
+ --prefix=/usr \
+ --libexecdir=/usr/lib/$name \
+ --disable-deprecation \
+ --disable-static \
+ --disable-debugging \
+ --disable-python \
+ --disable-gtk-doc \
+ --with-xft2 \
+ --with-pangox \
+ --with-gtk=2.0
+
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+
+ make
+ make DESTDIR=$PKG install
+
+ rm -r $PKG/usr/share/{gtk-doc,locale}
+ rm $PKG/usr/lib/vte/gnome-pty-helper
}

Generated by cgit