Comment 8 for bug 881843

Revision history for this message
Robert Bradley (robert-bradley1) wrote :

It's easier to use "apt-get source cups" to fetch the source code, since then you get the latest source code with the Ubuntu/Debian patches applied too. The orig.tar.bz2 file is actually the unaltered CUPS source.

At the risk of being slightly off-topic, these instructions should work for building and replacing the ipp backend manually:

* Download the patch file in my previous comment.
* Run "mkdir cups && cd cups && apt-get source cups" to fetch Ubuntu's source code for CUPS and place it in its own directory.
* Change to the "cups-1.5.0" directory, then run "patch -p1 < ipp-patch-file", where ipp-patch-file is the location of the patch file.
* Run "./configure"

Normally you would do "make && sudo make install", compiling the entirety of CUPS (you'll need the po4a package installed first). We have CUPS installed already though, so to save time we can just compile the contents of the "backend" directory on their own:

* "cd backend && make"
* Run these next two commands to back up the existing ipp backend file and replace it with the new one:
 - "sudo cp /usr/lib/cups/backend/ipp /usr/lib/cups/backend/ipp-backup"
 - "sudo cp ./ipp /usr/lib/cups/backend/ipp"