Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19937 - ghostscript-7.05.6-r1 ebuild should seperate cups/gimp-print
Summary: ghostscript-7.05.6-r1 ebuild should seperate cups/gimp-print
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
: 21248 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-04-25 09:16 UTC by Thomas Weidner
Modified: 2003-07-30 13:58 UTC (History)
7 users (show)

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


Attachments
New ebuild recognizing gimp-print correctly (ghostscript-7.05.6-r2.ebuild,2.72 KB, text/plain)
2003-06-18 07:58 UTC, Daniel Karlsson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Weidner 2003-04-25 09:16:20 UTC
Hi,

when trying to emerge ghostscript gimp-print is emerged as a dependancy, but i
don't need gimp-print. I only need ghostscript with cups support (i use hpijs).
A solution might be to seperate cups and gimp-print support in the ebuild,
perhaps a gimp-print useflag.
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-05-22 08:42:44 UTC
*** Bug 21248 has been marked as a duplicate of this bug. ***
Comment 2 Chris PeBenito (RETIRED) gentoo-dev 2003-05-25 01:07:26 UTC
As Thomas said, ghostscript shouldn't automatically require gimp-print if cups support is enabled.  It seems to me that the gimp-print should be enabled, and added to DEPEND if cups and X are in the USE.  IMO, this is a bug, not an enhancement.
Comment 3 Danny 2003-06-15 20:03:08 UTC
Shouldn't someone set this ebuild back to ~X86 quickly?  It's silly that it wants me to install gimp so that it can install gimp-print.  Most users won't know what of the installed stuff can be uninstalled once this problem is fixed.  Look at all it wants me to install:

Calculating world dependencies ...done!
[ebuild  N   ] dev-perl/Text-Balanced-1.95  
[ebuild  N   ] dev-perl/Parse-RecDescent-1.94  
[ebuild  N   ] dev-perl/XML-Writer-0.4-r2  
[ebuild  N   ] media-sound/esound-0.2.29  
[ebuild  N   ] gnome-base/ORBit-0.5.17  
[ebuild  N   ] gnome-base/gnome-libs-1.4.2  
[ebuild  N   ] media-libs/gdk-pixbuf-0.21.0  
[ebuild  N   ] dev-perl/XML-Parser-2.31-r1  
[ebuild  N   ] dev-perl/gtk-perl-0.7008-r9  
[ebuild  N   ] dev-perl/File-Spec-0.82  
[ebuild  N   ] dev-perl/Test-Harness-2.28  
[ebuild  N   ] dev-perl/Data-Dumper-2.101  
[ebuild  N   ] dev-perl/Inline-0.44  
[ebuild  N   ] dev-perl/Filter-1.29  
[ebuild  N   ] dev-perl/ExtUtils-F77-1.14-r1  
[ebuild  N   ] dev-perl/PDL-2.3.4  
[ebuild  N   ] media-libs/mpeg-lib-1.3.1-r1  
[ebuild  N   ] media-gfx/gimp-1.2.3-r3  
[ebuild  N   ] net-ftp/curl-7.10.2  
[ebuild  N   ] net-print/foomatic-2.0.0  
[ebuild  N   ] media-gfx/gimp-print-4.2.5  
[ebuild    U ] app-text/ghostscript-7.05.6-r2 [7.05.5-r2] 
Comment 4 Daniel Karlsson 2003-06-16 03:08:46 UTC
It seems to be a problem with this line: 
	cups? ( || ( gimp-print gimp-print-cups ) ) 
 
I understand what it is supposed to do, but is it really possible to do it this way? 
If it is not, portage doesn't like it that much. Perhaps, there is another way to solve this 
problem? 
Comment 5 Wolfram Schlich (RETIRED) gentoo-dev 2003-06-17 02:52:21 UTC
this ghostscript "update" would merge xfree even on (server) machines, where USE="-X"! this gimp-print dependancy is really unnecessary. it now prevents me from running "emerge -u world" :((
Comment 6 Daniel Karlsson 2003-06-17 03:57:21 UTC
What is the reason behind the dependency on gimp-print? If we trigger on cups we should 
depend on gimp-print-cups, NOT gimp-print. The best thing to do would be testing if either one 
is installed and if not then it should install gimp-print-cups. The problem with the current use 
line is that it ALWAYS want to install gimp-print. That will fail because of gimp-print-cups that 
is already installed on the system (in my case). 
Personaly, I don't quite like ghostscript depending upon gimp-print*. Is this really necessary? 
 
And could we get a little response from some developer please! This is actually a very annoying 
and major bug. I don't understand how this could get through testing. There must be quite a few 
people out there experiencing this problem. 
Comment 7 Daniel Karlsson 2003-06-18 07:58:51 UTC
Created attachment 13464 [details]
New ebuild recognizing gimp-print correctly
Comment 8 Daniel Karlsson 2003-06-18 07:59:21 UTC
I have made an altered version of ghostscript 7.05.6-r2.ebuild that seems to recognize 
gimp-print just fine. Not too sure, please test anyone. Not that good at writing bash. 
 
If there is some developer reading this, could you please look at my ebuild so we can, 
hopefully, put an end to this. 
Comment 9 Gregorio Guidi (RETIRED) gentoo-dev 2003-06-20 08:57:30 UTC
Regarding your change:
if use cups; then
  has_version gimp-print-cups || has_version gimp-print \
    && myconf="${myconf} --enable-cups --with-gimp-print" 
else
  myconf="${myconf} --disable-cups --without-gimp-print"
fi

I think that if someone has USE=cups and neither gimp-print nor
gimp-print-cups installed, this does the wrong thing.
Apart from this issue, en ebuild that behaves differently depending
on external factors is probably a big source of trouble for the
developers, so I reccomend to find a different solution.

As anyone tried just switching gimp-print with gimp-print-cups in
DEPEND? Otherwise I would opt for a virtual/gimp-print or even for
a gimp-print use-flag.
Comment 10 Daniel Karlsson 2003-06-20 13:18:42 UTC
Yes, I agree with you. My solution is not a good idea actually. What if we always require 
gimp-print-cups? Just switching the gimp-print and gimp-print-cups, as you say Guidi, would 
do. Is that a solution good enough? 
 
I think a useflag is a bit of an overkill if we can solve it the way described above. 
Comment 11 Daniel Karlsson 2003-06-20 13:35:25 UTC
No, it's not that easy. :-( You can't just switch the the two words. (Look at comment #6) 
I question if that construct is correct. Could be a bug in the current Portage version I'm using, 
though. 
Comment 12 Daniel Karlsson 2003-06-21 01:44:01 UTC
I vote for a virtual package because we have two packages that can't be installed at the same 
time. Funny, couldn't they be made to complement each other? 
I don't know what to think about the USE flag issue. 
Comment 13 Thomas Raschbacher gentoo-dev 2003-06-24 05:40:29 UTC
hmm... afaik someone did an ebuild which kinda combines gimp-print and gimp-print-cups(which is only the devel version of gimp-print) i'll check it out ..
Comment 14 Daniel Karlsson 2003-06-25 01:14:26 UTC
In idea came to mind looking at the latest attachment to bug #14909. Does the latest portage 
version support local USE flags? If it does, it could be a good idea to let a local USE flag 
control whether gimp-print should enable support for gimp or not. Then we could delete 
gimp-print-cups for good! OK, it looks like gimp-print ebuild needs some tweaking in the install 
section also. Any thoughts? 
Comment 15 Heinrich Wendel (RETIRED) gentoo-dev 2003-06-28 14:08:49 UTC
will be seperated in next ghostscript version.
Comment 16 Heinrich Wendel (RETIRED) gentoo-dev 2003-07-16 07:04:41 UTC
ghostscript-7.05.6-r3 now in portage ...
Comment 17 Daniel Karlsson 2003-07-24 07:34:38 UTC
Any good response to the third release? I would like this to be put to stable as soon as 
possible because this bug is a MAJOR hindrance in my system upgrades. I'm getting 
desperate... :-) 
Comment 18 Mr. Bones. (RETIRED) gentoo-dev 2003-07-24 11:04:44 UTC
I agree.  What's the hold up in marking it stable?
Comment 19 Daniel Karlsson 2003-07-30 13:58:10 UTC
Thank you, my printing now works like a charm!