Warning: file_exists(): open_basedir restriction in effect. File(/srv/http/vhosts/aur.archlinux.org/public/web/locale//en/LC_MESSAGES/aurweb.mo) is not within the allowed path(s): (/srv/http/vhosts/aur-dev.archlinux.org/:/etc/aurweb/) in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/streams.php on line 90
AUR (en) - cairo-ubuntu

Notice: Undefined variable: name in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/pkgfuncs.inc.php on line 248

Package Details: cairo-ubuntu 1.14.8-1

Git Clone URL: https://aur-dev.archlinux.org/cairo-ubuntu.git (read-only)
Package Base: cairo-ubuntu
Description: Cairo vector graphics library
Upstream URL: http://cairographics.org/
Licenses: MPL, LGPL
Conflicts: cairo, cairo-cleartype, cairo-git, cairo-gl-git, cairo-glitz, cairo-ocaml-git, cairo-small
Provides: cairo=1.14.8, cairo-ubuntu, cairo-xcb
Replaces: cairo-xcb
Submitter: wonder
Maintainer: el_aur
Last Packager: el_aur
Votes: 331
Popularity: 0.255925
First Submitted: 2008-06-04 11:52
Last Updated: 2017-01-08 20:36

Required by (284)

Sources (4)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 ... Next › Last »

valmar commented on 2013-02-21 09:59

Does anyone know what happened to the lib32-*-ubuntu packages. lib32-freetype2-ubuntu is in AUR but, for example lib32-cairo-ubuntu is gone.

bohoomil commented on 2013-02-17 12:05

Thank you for the feedback.

Ad. 1) Mesa is not required by cairo -- at best it is an optional dependency. You can disable it by removing '--enable-gl'. (I compile cairo with several features that may not be present in the official package. You can easily adjust the configure section so that it meets you requirements. I presume that you were successfully using Arch without mesa, so you don't really need it now.)
Ad. 2) Didn't I mention that I'm using generic names? :) That's why I don't need to change $pkgname variable.

Anyway, I'm glad that you were able to re-use the files.

Anonymous comment on 2013-02-17 09:11


thanks a lot for your support!!
I tested your PKGBUILD but it don't work; I found two errors:
1) add 'mesa' in the depends list (otherwise you get an opengl error)
2) replace $srcdir/$pkgname-$pkgver with $srcdir/cairo-$pkgver

my working PKGBUILD is:

pkgdesc="Cairo vector graphics library, with Ubuntu's LCD rendering patches"
arch=(i686 x86_64)
license=('LGPL' 'MPL')
depends=('libpng>=1.4.0' 'libxrender' 'fontconfig-ubuntu>=2.8.0' 'libxft' 'pixman>=0.16.6' 'xcb-util>=0.3.6' 'mesa')
provides=("cairo=$pkgver" "cairo-tee=$pkgver")
conflicts=('cairo' 'cairo-cleartype' 'cairo-lcd' 'cairo-tee' 'cairo-xeffects')

'92bb0af20e9438d07a04a586841ac90f' )

build() {
cd $srcdir/cairo-$pkgver

for _f in $(cat $srcdir/debian/patches/series) ; do
patch -Np1 -i $srcdir/debian/patches/$_f

patch -Np1 -i ../cairo-respect-fontconfig.patch
patch -Np1 -i ../cairo-1.12.8-expose_snapshot-1.patch

sed '20 aAM_PROG_AR' -i $srcdir/cairo-$pkgver/configure.ac

autoreconf -i --force

./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
--enable-tee \
--enable-gl \
--enable-egl \
--enable-svg \
--enable-ps \
--enable-pdf \

#check() {
# cd "$srcdir/cairo-$pkgver"
# make -k check || /bin/true # 162 Passed, 328 Failed [8 crashed, 10 expected], 26 Skipped

package() {
cd "$srcdir/cairo-$pkgver"
make DESTDIR="$pkgdir" install

bohoomil commented on 2013-02-16 20:57

I have obviously made a mistake: the version is 1.12.14 of course, not 1.12.4. :)

bohoomil commented on 2013-02-16 20:55

Sure, here you go:


...and the expo patch, just in case you don't have it:


Beware that I'm using generic names (cairo instead of cairo-ubuntu) so you may need to adjust the relevant parts, i.e.


If necessary, run 'makepkg -g >> PKGBUILD' (the expo patch may have a different checksum when copied and pasted).

Anonymous comment on 2013-02-16 15:53

I applied the two lines you suggested
sed '20 aAM_PROG_AR' -i $srcdir/${pkgname}-${pkgver}/configure.ac
autoreconf -i --force
and got the following error:

sed: not possible to read /home/nunzio/Download/cairo-ubuntu/src/cairo-ubuntu-1.12.14/configure.ac: File or directory don't exist
==> ERROR: there is an error in build().

please, can you share the full PKGBUILD of 1.12.14 version?

bohoomil commented on 2013-02-14 21:06

Cairo 1.12.14 can be built just fine with the following patches:


Having applied the patches, you may need to add two lines to the PKGBUILD:

sed '20 aAM_PROG_AR' -i $srcdir/${pkgname}-${pkgver}/configure.ac
autoreconf -i --force

Anonymous comment on 2013-02-13 21:52

the last version of Cairo is 1.12.14
Ubuntu patch already exists

I suppose cairo-1.12.2 is out of date... or not?

valmar commented on 2013-02-12 12:26

Why is this flagged as out of date? Isn't stable ubuntu also at 1.12.2?


valmar commented on 2013-02-12 12:25

Why is this flagged as out of date. Isn't stable ubuntu also at 1.12.2?