Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88065 - Most dependencies for kipi-plugins are only optional
Summary: Most dependencies for kipi-plugins are only optional
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-05 11:41 UTC by Michael Rolf
Modified: 2009-08-12 16:10 UTC (History)
0 users

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


Attachments
Patch to take care of more USE Flags for the kipi-plugin (kipi-plugin-0.1b2-ebuild-patch,743 bytes, patch)
2005-04-06 00:09 UTC, Michael Rolf
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rolf 2005-04-05 11:41:29 UTC
I like the kipi-plugins, but I doesn't need e.g. any video or digikam functionality in a picture viewer.
So I installed the kipi-plugins without media-libs/libgphoto and media-video/mjpegtools dependencies.

It will be really helpfull if they can be used optional by checking some USE FLAGS (e.g. "gphoto2" and "mpeg") in the kipi-plugins ebuild.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
All kipi-plugin parts are installed 

Expected Results:  
Only the needed kipi-plugin parts should be compiled and installed
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-04-05 13:03:24 UTC
If you provide the needed Makefile patches and they get accepted upstream, it's easily possible.
Comment 2 Michael Rolf 2005-04-06 00:09:38 UTC
Created attachment 55444 [details, diff]
Patch to take care of more USE Flags for the kipi-plugin
Comment 3 Michael Rolf 2005-04-06 00:18:48 UTC
I don't now why to change the kipi-plugins Makefile. I applied a patch for the ebuild with the changes to handle more USE Flags.
I'm not an ebuild expert, but the patch looks good to me or missed I something?

BTW I forgot to add another optional kipi-plugin dependency. The following line should be add to the ebuild, too:

tiff? ( libtiff )

Comment 4 Carsten Lohrke (RETIRED) gentoo-dev 2005-04-06 04:45:44 UTC
>I don't now why to change the kipi-plugins Makefile.

Because you may have an optional dependency installed for a reason, but don't want to have it in your kipi-plugins. The autodetection code would add the support, but Portage won't add the dependency as needed. We need strict configure options for all optional stuff without any overriding autodetection code. This is one condition for having proper reverse dependency checking in Portage in some distant future. Just adding a use flag does not suffice.


>tiff? ( libtiff )

Right. I always implied it'd be a hard dependency of kdelibs, but that changed a while ago.
Comment 5 Michael Rolf 2005-04-06 12:11:39 UTC
Thanks for your fast answers.

>>I don't now why to change the kipi-plugins Makefile.
>
>Because you may have an optional dependency installed for a reason, but don't >want to have it in your kipi-plugins. The autodetection code would add the >support, but Portage won't add the dependency as needed. We need strict >configure options for all optional stuff without any overriding autodetection >code. This is one condition for having proper reverse dependency checking in >Portage in some distant future. Just adding a use flag does not suffice.

Reverse dependency checking sounds great, but it doesn't help me at the moment.

Why not split it in two parts. The current kipi-plugin version doesn't support a configuration of all dependencies, so at the moment USE Flags could be added like I described earlier. 
Then I will add a Bug-Report for kipi-plugin at kde.org. If they change there configure in a next version the second part can be added to the ebuild.

Are configure options mandatory for using USE Flags?
I found a lot of ebuilds where all or some USE Flags are used in conjunction with autodetection (e.g. xine-lib, kaffeine, amarok, mkvtoolnix).

At last a pragmatic idea: Instead of changing the configure scripts in many projects why not add support for autodetection handling to portage (e.g. with a new ebuild command). 
Okay the emerged package could have more features than wanted but this is better as to add more features and more packages than wanted as done with the current kipi-plugin ebuild.
Comment 6 Carsten Lohrke (RETIRED) gentoo-dev 2005-04-06 14:42:12 UTC
>Why not split it in two parts.

There are enough broken ebuilds in the tree. If you want it now, put it in your overlay. 


On hold until someone comes up with patches.
Comment 7 Tomáš Chvátal (RETIRED) gentoo-dev 2009-08-12 16:08:30 UTC
bugzie
Comment 8 Tomáš Chvátal (RETIRED) gentoo-dev 2009-08-12 16:10:30 UTC
Checked the ebuilds. Looks fixed and flaged.