Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89557 - app-editors/bluefish links against a heap of GNOME libs if they exist, without depending on them
Summary: app-editors/bluefish links against a heap of GNOME libs if they exist, withou...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-18 10:40 UTC by James Rowe
Modified: 2005-12-20 14:34 UTC (History)
1 user (show)

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


Attachments
bluefish-1.0.2-gnome.patch (bluefish-1.0.2-gnome.patch,706 bytes, patch)
2005-08-13 06:12 UTC, James Rowe
Details | Diff
bluefish-gnome.patch (bluefish-gnome.patch,1.03 KB, patch)
2005-08-13 06:15 UTC, James Rowe
Details | Diff
patch agains bluefish-1.0.4.ebuild (bluefish.patch,968 bytes, patch)
2005-11-26 15:33 UTC, Petteri Räty (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Rowe 2005-04-18 10:40:24 UTC
app-editors/bluefish links against specifically gnome-base/gnome-vfs and
gnome-base/libgnomeui if they exist.  

  bluefish can link solely against gnome-base/gnome-vfs to provide support
for reading/writing files on GNOME's virtual filesystems.

  bluefish can link against gnome-base/libgnomeui for using some common
GNOME user interface functions.

  The gnome-base/gnome-vfs linkage is totally usable in its own right, and
as such doesn't need wrapping in to a "use gnome" test IMO.  However, the
gnome-base/libgnomeui quite obviously warrants the use of the gnome use flag
IMO[1].

  I wanted to see some consensus on whether a gnome-vfs(or some other name,
yet same meaning) flag could be added to support gnome-base/gnome-vfs
without the need for all the other gnome-base/libgnomeui stuff before I took
the time to cut patches...  or fix it yourself if you come to a conclusion
and can spare 15 minutes ;)

1.  Support for gnome-base/libgnomeui would force gnome-base/gnome-vfs as
well, because of the deps set in gnome-base/libgnomeui.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Hanno Böck gentoo-dev 2005-08-05 07:18:09 UTC
I don't think adding a gnome-vfs-flag is needed. I'd suggest having both 
handled by the gnome-useflag. 
Beside that, the problem is that there's no way to enable/disable these 
features with configure-options, so to fix this we would need to patch the 
configure-script (or let upstream fix this). 
If you have a working patch, please attach it to this bug. 
Comment 2 James Rowe 2005-08-13 06:11:04 UTC
  First up sorry for the delay, holiday season.

  The attached patches should fixes the dependencies, and without adding
a new gnome-vfs flag as you suggested.  It isn't the prettiest solution, but
it renders the smallest patch for files/ by skipping all the whitespace
changes.  The patches have only been compile tested, but they are really
simple.

  I have to admit now that if I'm the only person touched by this bug it
isn't worth fixing it with optional GNOME support, might as well just
correct the dependencies statically.  [I'm going to have to keep my local
ebuilds in the overlay regardless.  It is way too late in the day to make
the GNOME VFS support pull in all the extra GNOME libs just for a few VFS
modules that require auth for us, as it has been deployed for 3 months
already.]
--

  The attached patches should fixes the dependencies, and without adding
a new gnome-vfs flag as you suggested.  It isn't the prettiest solution, but
it renders the smallest patch for files/ by skipping all the whitespace
changes.  The patches have only been compile tested, but they are really
simple.

  I have to admit now that if I'm the only person touched by this bug it
isn't worth fixing it with optional GNOME support, might as well just
correct the dependencies statically.  [I'm going to have to keep my local
ebuilds in the overlay regardless.  It is way too late in the day to make
the GNOME VFS support pull in all the extra GNOME libs just for a few VFS
modules that require auth for us, as it has been deployed for 3 months
already.]
Comment 3 James Rowe 2005-08-13 06:12:25 UTC
Created attachment 65835 [details, diff]
bluefish-1.0.2-gnome.patch
Comment 4 James Rowe 2005-08-13 06:15:31 UTC
Created attachment 65836 [details, diff]
bluefish-gnome.patch
Comment 5 Hanno Böck gentoo-dev 2005-09-22 11:17:08 UTC
Did you send your patches to the bluefish-devs? 1.0.4 still has no 
configure-options for that stuff. 
I don't want to fix such minor stuff inside ebuilds, but imho it should be  
fixed upstream.  
Comment 6 James Rowe 2005-09-24 07:51:29 UTC
(In reply to comment #5)
> Did you send your patches to the bluefish-devs? 1.0.4 still has no 
> configure-options for that stuff. 

  Nope, I really don't consider this to be a bug with the upstream source.
It does exactly what it sets out to do, in what is probably the most obvious
way.

> I don't want to fix such minor stuff inside ebuilds, but imho it should be  
> fixed upstream.  

  The whole purpose of this bug report was the broken dep tree in portage,
all I wanted to do with the attached patches was offer up the                   
simplest/smallest(obviously not cleanest) way to support choice in the event    
that you decided you didn't want to fix the dep tree by adding a heap of
gnome libs(especially considering what it actually achieves wrt bluefish).
Really I'm quite ambivalent about the issue as far as portage is concerned.
Comment 7 Petteri Räty (RETIRED) gentoo-dev 2005-11-26 15:00:16 UTC
(In reply to comment #5)
> Did you send your patches to the bluefish-devs? 1.0.4 still has no 
> configure-options for that stuff. 
> I don't want to fix such minor stuff inside ebuilds, but imho it should be  
> fixed upstream.  

Well there is at least for libgnomeui:
  --without-libgnomeui    disable libgnomeui detection
Comment 8 Petteri Räty (RETIRED) gentoo-dev 2005-11-26 15:33:22 UTC
Created attachment 73652 [details, diff]
patch agains bluefish-1.0.4.ebuild

With this patch I was able to reduce the ldd /usr/bin/bluefish output as
follows.
USE="gnome" with libgnomeui installed

pena ~ # wc -l bluefish.after
49 bluefish.after
pena ~ # wc -l bluefish.with
61 bluefish.with
Comment 9 Petteri Räty (RETIRED) gentoo-dev 2005-11-26 15:50:06 UTC
Seems you are missing quite a few deps in bluefish. Use the following script to
test.
http://dev.gentoo.org/~betelgeuse/scripts/checkdeps
Comment 10 Hanno Böck gentoo-dev 2005-12-20 14:34:27 UTC
I've now added a gnome useflag for the libgnomeui-dep, if you want gnome-vfs also configurable, please fill a bug upstream.