Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74211 - Ghostscript AFPL 8.51 released
Summary: Ghostscript AFPL 8.51 released
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Printing Team
URL: http://www.ghostscript.com/article/65...
Whiteboard:
Keywords:
: 75842 90530 (view as bug list)
Depends on: 74456
Blocks:
  Show dependency tree
 
Reported: 2004-12-12 09:38 UTC by Craig Bradney
Modified: 2005-11-02 02:11 UTC (History)
10 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
incomplete gs-afpl 8.50 ebuild (ghostscript-afpl-8.50.ebuild,3.03 KB, text/plain)
2005-01-06 23:06 UTC, Ryan Hill (RETIRED)
Details
gs850-lib.patch (gs850-lib.patch,3.80 KB, patch)
2005-01-06 23:10 UTC, Ryan Hill (RETIRED)
Details | Diff
incomplete gs-afpl 8.50 ebuild (ghostscript-afpl-8.50.ebuild,3.17 KB, text/plain)
2005-01-06 23:21 UTC, Ryan Hill (RETIRED)
Details
incomplete gs-afpl 8.50 ebuild (ghostscript-afpl-8.50.ebuild,3.17 KB, text/plain)
2005-01-06 23:27 UTC, Ryan Hill (RETIRED)
Details
gs-afpl 8.50 ebuild (ghostscript-afpl-8.50.ebuild,3.52 KB, text/plain)
2005-01-18 12:41 UTC, Chris Smith
Details
patch to enable rinkj support (rinkj.patch,105 bytes, text/plain)
2005-01-18 12:42 UTC, Chris Smith
Details
Errors from patch while emerging USE="-cups ijs jasper jbig2dec rinkj" emerge -u ghostscript-afpl (rinkj.patch-19518.out,2.05 KB, text/plain)
2005-01-18 13:12 UTC, Craig Bradney
Details
replacement rinkj patch (rinkj.patch,732 bytes, text/plain)
2005-01-18 14:22 UTC, Chris Smith
Details
replacement (#2) for the rinkj patch (rinkj.patch,766 bytes, text/x-patch)
2005-01-19 11:10 UTC, Chris Smith
Details
Update gdevcups.c to work with gs-8.50 (gdevcups.patch,24.40 KB, patch)
2005-01-24 05:24 UTC, Arve Knudsen
Details | Diff
ghostscript-afpl-8.51.ebuild.patch (ghostscript-afpl-8.51.ebuild.patch,826 bytes, patch)
2005-06-07 09:07 UTC, Fabio Rossi
Details | Diff
Fixed gdevcups.patch (gdevcups.patch,24.35 KB, patch)
2005-09-30 05:51 UTC, Felix Braun
Details | Diff
gs-8.51.ebuild (Updated and consolidated) (ghostscript-afpl-8.51.ebuild,3.56 KB, text/plain)
2005-09-30 05:52 UTC, Felix Braun
Details
patched ebuild (ghostscript-afpl-8.51.ebuild,3.56 KB, text/plain)
2005-10-07 14:34 UTC, Sebastian Roeder
Details
rinkj.patch (rinkj.patch,1.32 KB, patch)
2005-10-08 05:15 UTC, Fabio Rossi
Details | Diff
ghostscript-afpl 8.52 ebuild (ghostscript-afpl-8.52.ebuild,3.61 KB, patch)
2005-10-14 10:36 UTC, Andrew de Quincey
Details | Diff
lib patch for gs 8.52 (gs852-lib.patch,3.95 KB, patch)
2005-10-14 10:36 UTC, Andrew de Quincey
Details | Diff
ghostscript-afpl-8.52.ebuild with ijs fixed (ghostscript-afpl-8.52.ebuild,3.63 KB, patch)
2005-10-14 10:57 UTC, Andrew de Quincey
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Bradney 2004-12-12 09:38:22 UTC
http://www.ghostscript.com/article/65.html

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2004-12-15 01:15:03 UTC
requires libpng-1.2.8 according to http://www.cs.wisc.edu/~ghost/doc/AFPL/get850.htm, which is not currently in portage.  filed a ebuild req as Bug #74456  :)
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2005-01-03 08:25:54 UTC
*** Bug 75842 has been marked as a duplicate of this bug. ***
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2005-01-06 23:04:37 UTC
i'm stuck on this.  everything builds fine until the ijs portion, then it dies on the man page of all things.

/bin/sh ./libtool --mode=link i686-pc-linux-gnu-gcc  -O2 -march=pentium3 -pipe -fomit-frame-pointer -funit-at-a-time -ftracer -fforce-addr -fweb -ffast-math  -Wl,-O1 -Wl,--sort-common -o ijs_server_example  ijs_server_example.o libijs.la 
i686-pc-linux-gnu-gcc -O2 -march=pentium3 -pipe -fomit-frame-pointer -funit-at-a-time -ftracer -fforce-addr -fweb -ffast-math -Wl,-O1 -Wl,--sort-common -o ijs_server_example ijs_server_example.o  ./.libs/libijs.a
make: *** No rule to make target `ijs-config.1', needed by `all-am'.  Stop.

!!! ERROR: app-text/ghostscript-afpl-8.50 failed.
!!! Function src_compile, Line 90, Exitcode 2

(dies with sane flags as well)

i'll post what i've done.  it looks like CUPS isn't putting out a new patch, by the looks of their CVS, so i went and updated the one included w/ cups 1.1.23.  it applies cleanly but hasn't been tested.  i updated the DEPENDS and made sure all the sed lines still apply.  i changed the search path fix to use ${PV} instead of a hardcoded version.

commenting out the ijs lines results in a working build.  i don't have a printer, so that suits me okay, but it's probably not the best for most people. ;]
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2005-01-06 23:06:17 UTC
Created attachment 47807 [details]
incomplete gs-afpl 8.50 ebuild
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2005-01-06 23:10:31 UTC
Created attachment 47808 [details, diff]
gs850-lib.patch

updated CUPS patch.  needs testing.
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2005-01-06 23:21:36 UTC
Created attachment 47810 [details]
incomplete gs-afpl 8.50 ebuild

take two...

the complete incomplete ebuild.
Comment 7 Ryan Hill (RETIRED) gentoo-dev 2005-01-06 23:27:16 UTC
Created attachment 47811 [details]
incomplete gs-afpl 8.50 ebuild

last time, i swear.

just realized that ${PV} doesn't work well inside of sed.  fixed.
Comment 8 Chris Smith 2005-01-07 05:50:16 UTC
>updated CUPS patch

Does this patch work for cups 1.1.23 which was officially launched on 1-3 but has not yet shown up in Portage?
Comment 9 Ryan Hill (RETIRED) gentoo-dev 2005-01-09 18:08:02 UTC
yes it should.  it patches against ghostscript files, rather than cups files, and from the looks of the cups CVS, there had been no changes to the pstoraster directory for quite a while.
Comment 10 Chris Smith 2005-01-17 16:05:54 UTC
Dying with this error:

T_H -DGX_COLOR_INDEX_TYPE="unsigned long long" -O2 -march=pentium4 -fomit-frame-pointer -pipe -s  -I./obj -I./src  -o ./obj/gdevcups.o -c pstoraster/gdevcups.c
pstoraster/gdevcups.c: In function `cups_get_matrix':
pstoraster/gdevcups.c:575: error: `gs_stderr' undeclared (first use in this function)
pstoraster/gdevcups.c:575: error: (Each undeclared identifier is reported only once
pstoraster/gdevcups.c:575: error: for each function it appears in.)
pstoraster/gdevcups.c: In function `cups_get_space_params':
pstoraster/gdevcups.c:1023: error: `gs_stderr' undeclared (first use in this function)
pstoraster/gdevcups.c: In function `cups_open':
pstoraster/gdevcups.c:2432: error: `gs_stderr' undeclared (first use in this function)
pstoraster/gdevcups.c:2512:67: macro "gs_malloc" requires 4 arguments, but only 3 given
pstoraster/gdevcups.c: In function `cups_print_pages':
pstoraster/gdevcups.c:2512: error: `gs_malloc' undeclared (first use in this function)
pstoraster/gdevcups.c:2522:54: macro "gs_malloc" requires 4 arguments, but only 3 given
pstoraster/gdevcups.c:2537: error: too few arguments to function `gs_to_exit'
pstoraster/gdevcups.c:2585:55: macro "gs_free" requires 5 arguments, but only 4 given
pstoraster/gdevcups.c:2585: error: `gs_free' undeclared (first use in this function)
pstoraster/gdevcups.c:2586:76: macro "gs_free" requires 5 arguments, but only 4 given
pstoraster/gdevcups.c:2589: error: `gs_stderr' undeclared (first use in this function)
pstoraster/gdevcups.c: In function `cups_put_params':
pstoraster/gdevcups.c:2706: error: `gs_stderr' undeclared (first use in this function)
pstoraster/gdevcups.c: In function `cups_set_color_info':
pstoraster/gdevcups.c:3223: error: `gs_stderr' undeclared (first use in this function)
pstoraster/gdevcups.c: In function `cups_sync_output':
pstoraster/gdevcups.c:3355: error: `gs_stderr' undeclared (first use in this function)
pstoraster/gdevcups.c: In function `cups_print_chunked':
pstoraster/gdevcups.c:3388: error: `gs_stderr' undeclared (first use in this function)
pstoraster/gdevcups.c:3405: warning: passing arg 1 of `gs_to_exit' makes pointer from integer without a cast
pstoraster/gdevcups.c:3405: error: too few arguments to function `gs_to_exit'
pstoraster/gdevcups.c: In function `cups_print_banded':
pstoraster/gdevcups.c:3541: error: `gs_stderr' undeclared (first use in this function)
pstoraster/gdevcups.c:3560: warning: passing arg 1 of `gs_to_exit' makes pointer from integer without a cast
pstoraster/gdevcups.c:3560: error: too few arguments to function `gs_to_exit'
pstoraster/gdevcups.c: In function `cups_print_planar':
pstoraster/gdevcups.c:4144: error: `gs_stderr' undeclared (first use in this function)
pstoraster/gdevcups.c:4145: warning: passing arg 1 of `gs_to_exit' makes pointer from integer without a cast
pstoraster/gdevcups.c:4145: error: too few arguments to function `gs_to_exit'
make: *** [obj/gdevcups.o] Error 1

!!! ERROR: app-text/ghostscript-afpl-8.50 failed.
!!! Function src_compile, Line 89, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.
Comment 11 Chris Smith 2005-01-18 12:41:10 UTC
Created attachment 48870 [details]
gs-afpl 8.50 ebuild

Added use flags: ijs jasper jbig2dec rinkj.
Not sure about jbig2dec dependency (built-in or package needed?).

Changed "epatch gs850-lib.patch" to "epatch ${FILESDIR}/gs850-lib.patch" so it
looks in the 'files' directory for the patch.

Still non-working with cups, and also non-working with rinkj.
Comment 12 Chris Smith 2005-01-18 12:42:38 UTC
Created attachment 48871 [details]
patch to enable rinkj support

to be placed 'files' dir - enable the rinkj device

does not compile here
Comment 13 Craig Bradney 2005-01-18 13:12:06 UTC
Created attachment 48876 [details]
Errors from patch while emerging  USE="-cups ijs jasper jbig2dec rinkj" emerge -u ghostscript-afpl
Comment 14 Craig Bradney 2005-01-18 13:12:50 UTC
With just the normal use=cups it fails building like above, with ijs rinkj etc I get the above patch failure.
Comment 15 Chris Smith 2005-01-18 14:22:17 UTC
Created attachment 48891 [details]
replacement rinkj patch
Comment 16 Chris Smith 2005-01-19 11:10:07 UTC
Created attachment 48981 [details]
replacement (#2) for the rinkj patch

now patches correctly for those who had trouble with the previous one

although the rinkj driver still does not compile here the patch does enable the
driver per the instructions provided by the afpl-8.50 source
Comment 17 Chris Smith 2005-01-20 09:46:49 UTC
Just want to add that I think the ebuild is relatively complete and usable with the exception that the cups flag cannot be used as the cups gs-lib patch, although correctly implemented in the same manner it is for 8.11 and 8.15 simply does not work for 8.50 as there are other incompatible changes in the 8.50 release.
Also, the small change the rinkj.patch makes, simply allowing the build of the rinkj device driver doesn't compile here. Maybe it's my gcc version or whatever, YMMV.
Suffice it to say that AFAIK, without a new cups patch, 8.50 with cups support is a no-go. But if you don't need cups support but you do need jasper or jbig2 then this ebuild should work fine for you.
Comment 18 Arve Knudsen 2005-01-24 05:24:19 UTC
Created attachment 49360 [details, diff]
Update gdevcups.c to work with gs-8.50

Looks like the internal GS library has changed somewhat, ie. writing to stderr
won't work anymore and the prototypes for gs_exit, gs_malloc and gs_free have
changed. I've tried to fix up gdevcups.c to work with this release, replacing
debugging output with calls to dpf (which seems to be the intended routine for
this sort of thing) and adding the required argument to the aforementioned
gs_{exit,malloc,free) calls. As far as I can tell the patch is correct (used
other driver files for reference).
Comment 19 Heinrich Wendel (RETIRED) gentoo-dev 2005-04-26 22:02:25 UTC
*** Bug 90530 has been marked as a duplicate of this bug. ***
Comment 20 Fabio Rossi 2005-06-07 09:06:38 UTC
The ebuild provided works like a charm on my system (x86 stable). I have compiled

[ebuild   R   ] app-text/ghostscript-afpl-8.51  +X -cjk +cups +gtk -ijs -jasper
-jbig2dec -rinkj 0 kB [1]

using gs850-lib.patch and gdevcups.patch. I have made a little patch to the
ebuild so two sed commands are indipendent of ghostscript version :-)
Comment 21 Fabio Rossi 2005-06-07 09:07:40 UTC
Created attachment 60777 [details, diff]
ghostscript-afpl-8.51.ebuild.patch
Comment 22 José Romildo Malaquias 2005-06-14 05:36:13 UTC
What is the ebuild provided for ghostscript-afpl-8.51, mentioned on comment #20
and to which the patch on comment #21 would apply?
Comment 23 Fabio Rossi 2005-06-14 14:48:57 UTC
(In reply to comment #22)
> What is the ebuild provided for ghostscript-afpl-8.51, mentioned on comment #20
> and to which the patch on comment #21 would apply?

I have used the ebuild for ghostscript 8.50: if you watch at src_compile() there
are 3 sed operations which use the version of the ebuild, "8.50". The solution
is to copy the ebuild for ghostscript 8.51 and upgrade those lines. This
operation is useless as I know the ghostscript version (with ${PV}), so I have
suggested the patch in #21
Comment 24 Luis Medinas (RETIRED) gentoo-dev 2005-08-03 11:09:12 UTC
gs-afpl 8.50 ebuild with the patches you guys send don't work with USE="ijs" and
the gdevcups.c patch don't work using cups 1.1.23 and gs-8.51. Any one of you
can write a patch for cups 1.1.13 that works on gs-8.51 ? I Don't have time
right now (closing another bugs) to build a patch for it. If you submit the
patch i will commit gs 8.51 in cvs. 

Thanks to all and sorry for the delay.
Comment 25 Martin Mokrejš 2005-08-10 06:50:42 UTC
Hi,
  I want to generate CMYK files from ghostscript. Although the bitcmyk option is
available in ESP ghostscript (the default on Gentoo as app-text/ghostscript),
I'd prefer the ghostscript-afpl version having spotcmyk or even better
ghostscript-gnu version having PhotoShop psdcmyk file driver and also tiff32nc
driver.

  As there are problem thats the ESP version has most drivers, I think I'd like
to have concurrently at least app-text/ghostscript and app-text/ghostscript-gnu.
Yes, I use cups for printing locally using Foomatic drivers.


  How about using
--with-gs=NAME          name of the ghostscript executible [gs]
  and placing the tree and binary under some separate place so that at least
skilled users could call directly "gs-afpl blah blah" and "gs blah" and "gs-gnu
blah". Let's say some shell wrapper called /usr/bin/gs would cal eithe rof them
based on some ENV variable. Most people would not realize, but those who would
might happily use /usr/bin/gs-gnu etc. I hope you got the idea.


Comment 26 ivo welch 2005-08-23 05:38:53 UTC
ghostscript 8.51 does not seem to be in the build tree...looking at the traffic
here, was this abandoned after having almost been done?
Comment 27 Luis Medinas (RETIRED) gentoo-dev 2005-08-23 05:56:13 UTC
Look at my last comment.
This package isn't a easy package to maintain. I have build an updated versions
of all ghostscripts available in portage (esp,gnu,afpl) but this ebuilds are not
ready yet to hit portage. If you guys want to help me with this test the ebuilds
here and start fixing it.

Thanks all for the reports, soon i will upload the latest versions to portage.
Comment 28 Craig Bradney 2005-09-11 16:48:31 UTC
I'm ready to test this again, I need the tiffsep device which arrived in 8.3+ 
and is more complete in 8.50+, and future Scribus 1.3.1 users will really like 
that :). Which ebuilds/patches do I need to grab, or do you have URLs? 
Comment 29 Felix Braun 2005-09-30 05:49:49 UTC
I ran into the same problems as Luis ie. gdevcups.patch didn't apply.
Appearently this was caused by the fact that the level of subdirs of the
original versus the patched files in the patch differed.

I'm attaching a fixed version of the patch which applies cleanly here. I'm also
attaching a consolidated ebuild (with the sed-modification).

This works perfectly on my system.
Comment 30 Felix Braun 2005-09-30 05:51:07 UTC
Created attachment 69551 [details, diff]
Fixed gdevcups.patch
Comment 31 Felix Braun 2005-09-30 05:52:19 UTC
Created attachment 69552 [details]
gs-8.51.ebuild (Updated and consolidated)
Comment 32 Fabio Rossi 2005-09-30 06:33:15 UTC
Felix, your ebuild still depends on ghostscript version. Have you looked at the
post #21?
Comment 33 Sebastian Roeder 2005-10-07 14:34:48 UTC
Created attachment 70117 [details]
patched ebuild
Comment 34 Sebastian Roeder 2005-10-07 14:35:38 UTC
I have patched Felix' ebuild from comment #31 with the patch from comment #21   
and verified the result manualy. This patch changes two sed lines slitely to   
use {PV} instead of hardcoded versions. The ebuild then builds cleanly on my   
x86 box:    
   
[ebuild   R   ] app-text/ghostscript-afpl-8.51  +X -cjk +cups -gtk -ijs -jasper   
-jbig2dec -rinkj 0 kB [1]   
   
The ebuild needs gs850-lib.patch and gdevcups.patch in the files dir. I can not 
test the new ghostscript any further atm. cause I have to apply another patch 
to make gs-afpl support my printer (Brother HL-5140 laserprinter). I will do 
this tomorrow and report back. If it works (as it does in afpl 8.15) should I 
post the patch for my printer here (or in a new wish) or should it not go into 
portage?    
Comment 35 Craig Bradney 2005-10-07 15:50:30 UTC
Cooool! It compiles, installs and seems to run ok. With the new devices, 
Scribus 1.3.1+ can now show the spot colour print preview :) Well done, and 
thanks! 
Comment 36 Sebastian Roeder 2005-10-08 01:25:57 UTC
(In reply to comment #35)  
  
Great to hear that it works for you Craig and indead a "well done" from my side 
too for the people who did the patches. 
 
Can you tell me if I need any of the USE flags (I only have X and cups atm) to 
benefit from the new ghostscript-afpl devices etc. in Scribus (Sorry, I am 
pretty much a ghostscript noob). And please forgive me the OT - I promise I 
will not extend this topic to much here in the bugger (or maybe you can answer 
via E-Mail instead?).  
  
Comment 37 Craig Bradney 2005-10-08 01:44:24 UTC
(In reply to comment #36) 
> (In reply to comment #35)   
 
>   
> Can you tell me if I need any of the USE flags (I only have X and cups atm) 
to  
> benefit from the new ghostscript-afpl devices etc. in Scribus (Sorry, I am  
> pretty much a ghostscript noob). And please forgive me the OT - I promise I  
> will not extend this topic to much here in the bugger (or maybe you can 
answer  
> via E-Mail instead?).   
>    
 
Mine were: 
[ebuild     U ] app-text/ghostscript-afpl-8.51 [8.15] +X -cjk +cups +gtk -ijs 
-jasper -jbig2dec -rinkj 0 kB [1]  
So thats basically the same. You also need Scribus 1.3.1, and thats it other 
than setting up your spot colours in Scribus. 
 
Comment 38 Fabio Rossi 2005-10-08 05:14:17 UTC
I have improved the rinkj patch: now the sources compile cleanly. I have used
the following use flags:

[ebuild   R   ] app-text/ghostscript-afpl-8.51  +X -cjk +cups +gtk +ijs +jasper
+jbig2dec +rinkj 0 kB [2]
Comment 39 Fabio Rossi 2005-10-08 05:15:18 UTC
Created attachment 70140 [details, diff]
rinkj.patch
Comment 40 Sebastian Roeder 2005-10-10 04:13:06 UTC
When I wanted to slightly modify the ebuild to work with my printer I came 
across some sed lines in the ebuild, that look a little strange for me as a sed 
beginner: 
 
sed -i -e 's:/usr/local:/usr:' pstoraster 
sed -i -e "s:pstopcl6:pstopxl:" cups.mak 
sed -i -e 's:DEVICE_DEVS7=$(DD)faxg3.dev $(DD)faxg32d.dev $(DD)faxg4.dev 
:DEVICE_DEVS7=$(DD)faxg3.dev $(DD)faxg32d.dev $(DD)faxg4.dev $(DD)cfax.dev:' 
${S}/Makefile.in 
 
1. Question: I learned that sed -e is used to combine more then one sed command 
- but in all this examples it's just one sed command and the -e is not needed 
here IMHO.  
 
2. What is the -i for? I couldn't find it in man sed. 
 
3. What is the difference (if any) between  
sed 's:oldstring:newstring:' file 
sed "s:oldstring:newstring:" file 
 
and is there something like an "ebuild nettiquette" that syntax and symantic of 
e.g. sed is prefered or regarded as "standard"? 
Comment 41 Andrew de Quincey 2005-10-14 10:36:12 UTC
Created attachment 70674 [details, diff]
ghostscript-afpl 8.52 ebuild

http://sourceforge.net/project/shownotes.php?release_id=361878

Also needs gs852-lib.patch which I will attach in a mo.
Comment 42 Andrew de Quincey 2005-10-14 10:36:41 UTC
Created attachment 70675 [details, diff]
lib patch for gs 8.52
Comment 43 Andrew de Quincey 2005-10-14 10:57:01 UTC
Created attachment 70676 [details, diff]
ghostscript-afpl-8.52.ebuild with ijs fixed
Comment 44 Andrew de Quincey 2005-10-14 10:57:56 UTC
Comment on attachment 70676 [details, diff]
ghostscript-afpl-8.52.ebuild with ijs fixed

Fix ijs compilation - ijs/configure is totally broken in the release
Comment 45 Stefan Schweizer (RETIRED) gentoo-dev 2005-11-01 16:33:24 UTC
Thanks, I added the new ebuild to portage
Comment 46 Craig Bradney 2005-11-02 02:11:59 UTC
Thanks to all for this one!