Merger of ESP Ghostscript 8.15.4 with GPL Ghostscript 8.57 ========================================================== Till Kamppeter, Linux Foundation As the head branch of Ghostscript is now under GPL (and not only the previous major version as formerly) the ESP Ghostscript project was closed and the extra functionality of ESP Ghostscript is merged into the head development of Ghostscript, GPL Ghostscript. All the changes to do the merger are in this directory, ready for testing. Changes are - Enhanced PCL XL driver. - Shared library and driver (X11) support for Linux/UNIX. - The CUPS "driver" that generates a series of raster images for CUPS printer drivers. - Nearly all known free printer drivers which have to be compiled into Ghostscript - drivers listed with "Execution style: Ghostscript" on openprinting.org. Not included are some obsolete drivers such as hpdj which is replaced by the included pcl3 driver. - All known Uniprint configuration files (*.upp) as listed on openprinting.org. - Patches to add the NOMEDIAATTRS option to Ghostscript, which allows CUPS drivers to use media options separate from Ghostscript. - KRGB support for IJS drivers. - OpenPrinting Vector interface - Support files for CUPS. - Enhanced build system. Binary packages of the new Ghostscript -------------------------------------- Binary packages are available as distribution-independent LSB packages. These should work on all LSB-3.1-compliant Linux distributions. Most of the current distributions are LSB-3.1-compliant. You find the packages here: http://www.linuxprinting.org/download/printdriver/RPMS/i486/ http://www.linuxprinting.org/download/printdriver/RPMS/x86_64/ Go to the directory of your systen's architecture and download all packages whose names begin with "ghostscript" and which contain the version number 8.57. There are 4 packages: ghostscript: The core part of Ghostscript ghostscript-x: The drivers for X11 screen display, not needed on X-less servers, needed on desktop PCs. ghostscript-cups: Needed if you want to use Ghostscript for printing via CUPS. It contains CUPS filters to make CUPS using this version of Ghostscript. ghostscript-fonts: Font package for Ghostscript. Contains the 35 standard fonts of PostScript. Install this if the ghostscript package does not find your system's fonts. In case of doubt or if something does not work simply install all the 4 packages. Before installing the packages install the package named "lsb" to make your system LSB-compliant. This package is part of every LSB-compliant distribution. Uninstall your system's Ghostscript, with your distribution's package tool or with commands like rpm -e --nodeps ghostscript dpkg -r --force-depends gs-esp dpkg -r --force-depends gs-gpl Note that you have to set options to override dependencies. The dependencies which you break by uninstalling your system's Ghostscript will be fullfilled again by installing the new Ghostscript. If you have a non-RPM-based distribution (Ubuntu, Debian, Slackware, ...), convert the downloaded driver package(s) with alien (the packages are provided as RPM packages). Do (On Ubuntu, preceed the command by "sudo", on other distributions, run it as root): alien --scripts Install the Ghostscript package with the package installation tool provided by your distribution. Use "rpm" for .rpm packages on distributions like Red Hat/Fedora, Novell/SuSE, Mandriva, ... Use "dpkg" for .deb packages on Ubuntu, Debian, ... The commands should look like this (execute the appropriate command as root, or on Ubuntu preceeded by "sudo"): rpm -Uvh dpkg -i If there are any problems with dependencies or conflicts, try to force the installation: rpm -Uvh --nodeps rpm -Uvh --force dpkg -i --force-depends dpkg -i --force-all Now log out and log in again or reboot and the new Ghostscript should get used. Print a CUPS test page (on a non-PostScript printer) and see the Ghostscript version number in the box on the right of the test page. Type "gs -h" and see the version number. Try to display PDF files which did not display with your system's Ghostscript. Building the new Ghostscript from source ---------------------------------------- The merged Ghostscript is now the main/head branch (trunk) of the Ghostscript Subversion repositories. Download and compile it as follows: svn co http://svn.ghostscript.com/ghostscript/trunk/gs cd gs ./autogen.sh --help ./configure --enable-dynamic --disable-compile-inits --with-driver=ALL --with-fontpath=/var/lib/defoma/gs.d/dirs/fonts:/usr/share/cups/fonts:/usr/share/ghostscript/fonts:/usr/local/lib/ghostscript/fonts:/usr/share/fonts make sudo make install gs -h The "./configure" command line is an example for Ubuntu Feisty. It makes all drivers being built and the "--with-fontpath=..." is adapted to Ubuntu Feisty. Adapt it to your distro (see "gs -h" for which directories are searched by your distro's Ghostscript). Run "./configure --help" for the complete set of options. Run "make distclean" before rebuilding with other "./configure" options. Some additional remarks about the merger ---------------------------------------- The build system has all necessary checks added for the additional drivers (especially for CUPS Raster and OpenPrinting Vector) and has functionality to easily select the drivers to be built in. Especially one can also build a Ghostscript with none of the extra drivers from the contrib/ directory by supplying the option "--disable-contrib" to "./configure". Other additional options are "--with-drivers" to select drivers and "--with-fontpath" to easily add the system's font locations (call the system's Ghostscript with "gs -h" and add the paths shown in the end of the output), "./configure" also auto-detects whether the X drivers can be modularized. For correct building of the CUPS filters the definition of the version number was moved from src/version.mak to ./configure (or src/configure.ac). The build rules for Omni I have removed from src/contrib.mak, as gdevomni.c is present in the contrib/ directory. So its build rules belong into contrib/contrib.mak. Patches in this directory (not needed any more) ----------------------------------------------- To get from GPL Ghostscript 8.57 to the merged Ghostscript, do in an empty directory (ready for copy & paste): wget http://www.openprinting.org/download/printing/esp-gpl-ghostscript-merge/ghostscript-8.57-bjc880j-lips2p-lips4-lips4v.patch wget http://www.openprinting.org/download/printing/esp-gpl-ghostscript-merge/ghostscript-8.57-build-system.patch wget http://www.openprinting.org/download/printing/esp-gpl-ghostscript-merge/ghostscript-8.57-contrib-drivers.tar.gz wget http://www.openprinting.org/download/printing/esp-gpl-ghostscript-merge/ghostscript-8.57-ljet4pjl-lj4dithp-dj505j-picty180.patch wget http://www.openprinting.org/download/printing/esp-gpl-ghostscript-merge/ghostscript-8.57-x11-svga-as-shared-library.patch wget http://www.openprinting.org/download/printing/esp-gpl-ghostscript-merge/ghostscript-8.57-lib-psfiles.patch wget http://www.openprinting.org/download/printing/esp-gpl-ghostscript-merge/ghostscript-8.57-ijs-krgb.patch wget http://www.openprinting.org/download/printing/esp-gpl-ghostscript-merge/ghostscript-8.57-pxl-duplex.patch cd gs tar -xvzf ../ghostscript-8.57-contrib-drivers.tar.gz patch -p1 < ../ghostscript-8.57-x11-svga-as-shared-library.patch patch -p1 < ../ghostscript-8.57-ljet4pjl-lj4dithp-dj505j-picty180.patch patch -p1 < ../ghostscript-8.57-bjc880j-lips2p-lips4-lips4v.patch patch -p1 < ../ghostscript-8.57-build-system.patch patch -p1 < ../ghostscript-8.57-lib-psfiles.patch patch -p1 < ../ghostscript-8.57-ijs-krgb.patch patch -p1 < ../ghostscript-8.57-pxl-duplex.patch