Ghostscript GPL 8.60 has been released. This incorporates code merged from the ESP codebase. CUPS support is included without additional patching. Reproducible: Always
Created attachment 126706 [details] Initial ebuild for ghostscript-gpl-8.60
Still needed & updated patch: • djvu-gs-gpl-8.60.patch Unsure cause of the ghostscript-esp integration - thus still in the ebuild: • ghostscript-afpl-8.54-rinkj.patch Probably obsolete and not working anymore due to ghostscript-esp integration - thus dropped from the ebuild: • gdevcups.patch • ghostscript-afpl-8.54-cups-destdir.diff • ghostscript-afpl-8.54-cups-lib.patch I updated the djvu version and the patch for it. Hope it works that way, first tests with djvudigital and gsdjvu are looking good. Future thoughts: Since drivers can be loaded dynamically now one could think to make it the default and use make it behave like mesa with VIDEO_CARDS="nvidia", for ghostscript it could be PRINTER_DRIVERS="HP" for example. But perhaps that would be overkill..
Created attachment 126785 [details] ghostscript-gpl-8.60.ebuild
Created attachment 126788 [details] djvu-gs-gpl-8.60.patch
Something got lost by copy&paste. The posted ghostscript-gpl-8.60.ebuild is of course a modified version of Daniel J.'s Comment #1, many thanks for it.
I get an error during the build on ~amd64 with gcc-4.2.0: x86_64-pc-linux-gnu-gcc -DHAVE_MKSTEMP -DHAVE_HYPOT -DHAVE_FILE64 -DHAVE_FONTCONFIG -O2 -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long int" -O2 -march=k8 -mtune=k8 -pipe -fomit-frame-pointer -I./obj/../soobj -I./src -Iicclib -o ./obj/../soobj/gdevrinkj.o -c ./src/gdevrinkj.c ./src/gdevrinkj.c:217: warning: initialization makes integer from pointer without a cast ./src/gdevrinkj.c:217: error: initializer element is not computable at load time ./src/gdevrinkj.c:217: error: (near initialization for 'gs_rinkj_device.n_planes_out') ./src/gdevrinkj.c:218: warning: initialization makes pointer from integer without a cast ./src/gdevrinkj.c:219: warning: braces around scalar initializer ./src/gdevrinkj.c:219: warning: (near initialization for 'gs_rinkj_device.num_std_colorant_names') ./src/gdevrinkj.c:761: error: conflicting types for 'rinkj_get_color_comp_index' ./src/gdevrinkj.c:47: error: previous declaration of 'rinkj_get_color_comp_index' was here ./src/gdevrinkj.c: In function 'rinkj_set_luts': ./src/gdevrinkj.c:904: warning: assignment discards qualifiers from pointer target type ./src/gdevrinkj.c: In function 'rinkj_init': ./src/gdevrinkj.c:954: warning: assignment discards qualifiers from pointer target type ./src/gdevrinkj.c: In function 'rinkj_write_image_data': ./src/gdevrinkj.c:1004: warning: pointer targets in assignment differ in signedness make[1]: *** [obj/../soobj/gdevrinkj.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-text/ghostscript-gpl-8.60/work/ghostscript-8.60' make: *** [so] Error 2 * * ERROR: app-text/ghostscript-gpl-8.60 failed. * Call stack: * ebuild.sh, line 1648: Called dyn_compile * ebuild.sh, line 988: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * ghostscript-gpl-8.60.ebuild, line 109: Called die * * emake failed emerge --info: Portage 2.1.3.2 (default-linux/amd64/2007.0/desktop, gcc-4.2.0, glibc-2.6-r0, 2.6.22-gentoo-r2 x86_64) ================================================================= System uname: 2.6.22-gentoo-r2 x86_64 Dual Core AMD Opteron(tm) Processor 275 Gentoo Base System release 1.12.10 Timestamp of tree: Fri, 03 Aug 2007 17:00:01 +0000 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.5.1-r2 dev-python/pycrypto: 2.0.1-r6 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17, 2.17.50.0.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8 -mtune=k8 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=k8 -mtune=k8 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LINGUAS="en en_US" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X aac acl acpi alsa amd64 apache2 arts atlas avahi bash-completion berkdb bitmap-fonts blas bookmarks branding bzip2 cairo cblas cdr cli cracklib crypt ctype cups dbus doc dri dvd dvdr dvdread eds emacs emboss encode epydoc esd evo examples f77 fam fftw firefox foomativdb fortran gdbm gif gimpprint gpm gstreamer gtk hal iconv imagemagick imap isdnlog ivman java jpeg jpeg2k kde kdeenablefinal kerberos lapack latex ldap libg++ mad mdnsresponder-compat midi mikmod mime mmap mmx mozbranding mozilla mozsvg mp3 mpeg mplayer mudflap multislot ncurses nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl pic png ppds pppd python qt3 qt3support qt4 quicktime readline reflection rss samba sdl sensord session spell spl sse sse2 ssl subversion svg symlink tcltk tcpd tetex threads tiff tk truetype truetype-fonts type1-fonts umfpack unicode usb vorbis webdav winbind wxwindows xcomposite xfs xinerama xml xorg xv zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="ati vga fglrx" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Yay, ghostscript-esp is finally dead.
Created attachment 127103 [details] ghostscript-gpl-8.60.ebuild - added a patch which adds -fPIC to the shared libs to fix compilation on 64bit systems - additional Fedora patches added.
Created attachment 127105 [details] ghostscript-8.57-ijs-krgb.patch
Created attachment 127107 [details] ghostscript-fPIC-64bit.patch
Created attachment 127108 [details] ghostscript-fPIC.patch
Created attachment 127109 [details] ghostscript-multilib.patch
Created attachment 127110 [details] ghostscript-noopt.patch
Created attachment 127112 [details] ghostscript-scripts.patch
I just want to note that the ghostscript-multilib.patch is garbled. It's not a patch, it's a html file.
Created attachment 127254 [details] ghostscript-multilib.patch Sorry my bad, here's the real one.
I reported this upstream at: http://bugs.ghostscript.com/show_bug.cgi?id=689396 Perhaps passing --enable-dynamic to econf and dropping the patch (ghostscript-fPIC-64bit.patch) completely would be the way to go? What do you think?
Added ~sparc keyword --- this also cures Bug #187280, and otherwise seems to work as expected.
Created attachment 128180 [details] ghostscript-gpl-8.60.ebuild with ~sparc added to KEYWORDS list ghostscript-gpl-8.60 as presented in the attachments lists appears to work on sparc and also cures the dvipdf bug reported in Bug #187280. So, I am attaching a modification of the ebuild at Attachment 127103 [details] --- Only difference is the addition of ~sparc to KEYWORDS list, thus: ========================================================= fmccor@liasis G [133]% diff -u ghostscript-gpl-8.60.ebuild.orig ghostscript-gpl-8.60.ebuild --- ghostscript-gpl-8.60.ebuild.orig 2007-08-15 14:25:09.000000000 +0000 +++ ghostscript-gpl-8.60.ebuild 2007-08-15 14:04:51.000000000 +0000 @@ -18,7 +18,7 @@ LICENSE="GPL-2 CPL-1.0" SLOT="0" -KEYWORDS="~amd64 ~arm ~ppc ~sh ~sparc-fbsd ~x86 ~x86-fbsd" +KEYWORDS="~amd64 ~arm ~ppc ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" IUSE="X bindist cups cjk djvu gtk jpeg2k" DEP="virtual/libc =====================================
Comment on attachment 128180 [details] ghostscript-gpl-8.60.ebuild with ~sparc added to KEYWORDS list Fix description
Since this version includes the esp version, can the esp version be removed from the tree since it's no longer needed? That would make it easier to maintain less Ghostscript versions and less confusing to users. Most users can migrate from esp to gpl-8.60 with no trouble. If a user does need the esp version, which would be a very small number not warrenting portage inclusion, they could drop it in an overlay. :) Cheers.
*** Bug 195398 has been marked as a duplicate of this bug. ***
Fixed in CVS, please retest this version and report any issues. It's package.masked and I had to drop ~sparc-fbsd for now since there are a few deps not yet keyworded ~sparc-fbsd, namely djvu and the three cjk font packages.