Libglitz for Precise

The iPrint package I built needs libglitz, from cairographics.org.

[Note]Note

The iPrint package doesn't depend on libglitz. Oddly enough, none of the binaries in the package seem to link to libglitz. But without it, things break.

In particular, when libglitz is not installed, iprint will seem to work and printers can be installed from the iprint server webpage. But /etc/cups/printers.conf will show all printers installed through iPrint to point to /dev/null. (And consequently, nothing you send will ever be printed.)

Libglitz's latest version is 0.5.6, and that one is packaged for Ubuntu Lucid. The dangers of using a Lucid libglitz in Precise are not that large, but I build for Precise anyway:

apprentice@packagehost:~/packaging/libglitz:$ dget http://archive.ubuntu.com/ubuntu/pool/main/g/glitz/glitz_0.5.6-1build1.dsc
apprentice@packagehost:~/packaging/libglitz:$ git-import-dsc glitz_0.5.6-1build1.dsc
apprentice@packagehost:~/packaging/libglitz:$ cd glitz
apprentice@packagehost:~/packaging/libglitz:$ git checkout master
apprentice@packagehost:~/packaging/libglitz:$ git branch build-for-precise

The changes necessary are almost trivial. Add a line to debian/rules:

CFLAGS+=-Wno-format-security
      

Update debian/control for Precise:


Source: glitz
Section: libs
Priority: optional
Maintainer: Dave Beckett <dajobe@debian.org>
Build-Depends: debhelper (>> 9), cdbs, autotools-dev, pkg-config, libx11-dev, x11-utils, libgl1-mesa-dev|libgl-dev, libxt-dev
Standards-Version: 3.9.3

Package: libglitz1-dev
Provides: libglitz-dev
Conflicts: libglitz-dev
Section: libdevel
Architecture: any
Depends: libglitz1 (= ${binary:Version}), ${misc:Depends}, libx11-dev, xlibmesa-gl-dev | libgl-dev
Description: OpenGL image compositing library development libraries and headers
 Development libraries, header files and documentation needed by
 programs that want to compile with the glitz library.

Package: libglitz1
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Glitz OpenGL image compositing library
 A 2D graphics library that uses OpenGL to render hardware
 accelerated graphics using an API matching the X Render Extension
 semantics.  It is standalone but also designed to provide an OpenGL
 accelerated backend for the Cairo vector graphics library.

Package: libglitz-glx1-dev
Provides: libglitz-glx-dev
Conflicts: libglitz-glx-dev
Section: libdevel
Architecture: any
Depends: libglitz-glx1 (= ${binary:Version}), libglitz1-dev (= ${binary:Version}), ${misc:Depends}
Description: Glitz OpenGL library GLX backend development libraries and headers
 Development libraries, header files and documentation needed by
 programs that want to compile with the glitz-glx library.

Package: libglitz-glx1
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Glitz OpenGL library GLX backend
 The GLX backend for the Glitz OpenGL 2D graphics library.

      

Then update debian/compat and debian/changelog and commit, and we can build the package:

apprentice@packagehost:~/packaging/libglitz:$ git checkout master
apprentice@packagehost:~/packaging/libglitz:$ git merge build-for-precise
apprentice@packagehost:~/packaging/libglitz:$ DIST=precise git-buildpackage --debbuildopts '-sa'