Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 317447 - dev-lang/orc-0.4.4: add USE="examples" (or disable building and installing them)
Summary: dev-lang/orc-0.4.4: add USE="examples" (or disable building and installing them)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-27 10:30 UTC by MT
Modified: 2010-06-16 11:23 UTC (History)
0 users

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


Attachments
orc-0.4.4-r1.ebuild.patch (orc-0.4.4-r1.ebuild.patch,1019 bytes, patch)
2010-04-27 10:31 UTC, MT
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description MT 2010-04-27 10:30:01 UTC
Attached there is an ebuild patch that adds these enhancements:

1- added USE 'static-libs' to correctly handle .la/.a files (the actual ebuild just disable static archives and delete libtool archives unconditionally, making the ebuild itself useless for static compilations and/or Gentoo embedded setups);
2- added USE 'doc' that installs the html documentation only if enabled (very useful for embedded targets where the API docs isn't necessary at all);

Hope it's useful.
Mauro

p.s.: Orc isn't a programming language, it's a C/asm library framework (it's the successor of dev-libs/liboil) so it belongs to the dev-libs category and not to the dev-lang IMHO).
Comment 1 MT 2010-04-27 10:31:13 UTC
Created attachment 229373 [details, diff]
orc-0.4.4-r1.ebuild.patch
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-04-27 10:40:30 UTC
I'm not adding the USE doc hack in the ebuild, you can use INSTALL_MASK if you don't want docs.

As for .la files, the package has pkg-config file, so they are not useful either.

And what for you need static libs from orc? 
Comment 3 MT 2010-04-27 11:32:17 UTC
(In reply to comment #2)
> I'm not adding the USE doc hack in the ebuild, you can use INSTALL_MASK if you
> don't want docs.

I don't see the flexibility of INSTALL_MASK + Portage's environment profiles for the final users (most of them don't know the existance of /etc/portage/env at all) and, correct me if I'm wrong, I see a lot of ebuilds in Portage that have USE 'doc', 'html' and 'html-api', are you telling me that they are all wrong?

However isn't so important to me, feel free to not add the USE 'doc'.

p.s.: there is a recent (24 Apr 2010) discussion on ML -devel about a potential removal of the Portage's environment profiles.

 
> And what for you need static libs from orc? 

for personal usage, I'm deploying softwares on embedded targets that use static libs from liboil and Orc; in portage there aren't dev-libs/liboild-static dev-libs/orc-static ebuilds so I'm obliged to manually tweak the ebuilds (and I dont' see the need to create a parallel ebuild for static purposes when there is the USE 'static-libs' and the package honours the autoconf --enable-static option). Just to be more clear, other distro have liboil-static and liborc-static for these purposes, so why not Gentoo?

p.s.: files /usr/lib/orc/example1, /usr/lib/orc/mt19937ar and /usr/lib/orc/volscale aren't libraries but just examples/tests, maybe a USE 'examples' is more appropriated here, however they are useless for daily usage.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2010-05-15 17:27:32 UTC
+  15 May 2010; Samuli Suominen <ssuominen@gentoo.org> orc-0.4.4.ebuild:
+  USE static-libs wrt #317447 by Toffanin Mauro.

and adjusted summary... will fix the examples issue soon
Comment 5 MT 2010-05-22 07:04:07 UTC
(In reply to comment #4)
> +  15 May 2010; Samuli Suominen <ssuominen@gentoo.org> orc-0.4.4.ebuild:
> +  USE static-libs wrt #317447 by Toffanin Mauro.
> 
> and adjusted summary... will fix the examples issue soon

Thank you very much Samuli, I really appreciate it.
Comment 6 Markos Chandras (RETIRED) gentoo-dev 2010-06-16 11:23:18 UTC
Bumped to 0.4.5 and added examples use flag