opt/cairo/Pkgfile
Predrag Ivanovic 7abd542e96 cairo: Patch for CVE-2017-7475 and CVE-2016-9082
Patches added:
- cairo-xlib-endianness.patch -- Fix crash when client and server have different endianness
- cairo-get_bitmap_surface-bsc1036789-CVE-2017-7475.diff -- Fix segfault in get_bitmap_surface
- cairo-fix-off-by-one-check.patch -- Fix off by one check in cairo-image-info.c
- 0001-image-prevent-invalid-ptr-access-for-4GB-images.patch CVE-2016-9082 -- Fix segfault when using >4GB images
2017-07-17 19:53:29 +02:00

32 lines
1.1 KiB
Plaintext

# Description: A 2D graphics library with support for multiple output devices
# URL: http://www.cairographics.org/
# Maintainer: Fredrik Rinnestam, fredrik at crux dot nu
# Depends on: fontconfig, libpng, xorg-libxext, xorg-libxrender, xorg-libpixman, xorg-xcb-util, glib
name=cairo
version=1.15.6
release=2
source=(https://cairographics.org/snapshots/cairo-$version.tar.xz
cairo-xlib-endianness.patch
cairo-get_bitmap_surface-bsc1036789-CVE-2017-7475.diff
cairo-fix-off-by-one-check.patch
0001-image-prevent-invalid-ptr-access-for-4GB-images.patch)
build() {
cd $name-$version
patch -p1 -i $SRC/cairo-xlib-endianness.patch
patch -p1 -i $SRC/cairo-get_bitmap_surface-bsc1036789-CVE-2017-7475.diff
patch -p1 -i $SRC/cairo-fix-off-by-one-check.patch
patch -p1 -i $SRC/0001-image-prevent-invalid-ptr-access-for-4GB-images.patch
./configure --prefix=/usr \
--enable-xcb=yes \
--enable-ps \
--enable-pdf \
--disable-gtk-doc \
--enable-tee=yes
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/share
}