* [gentoo-user] No 'libs' in world file?
@ 2015-03-02 14:29 Tanstaafl
2015-03-02 14:42 ` Jc García
` (4 more replies)
0 siblings, 5 replies; 23+ messages in thread
From: Tanstaafl @ 2015-03-02 14:29 UTC (permalink / raw
To: gentoo-user
Hi all,
Googling on a minor issue with perl-cleaner after the 5.20 upgrade, I
ran across this post:
On 2/14/2015 7:39 AM, Mick <michaelkintzios@gmail.com> wrote:
> Yes, you shouldn't really have any libs in your world file. Any
> required would be pulled in as dependencies.
Is this in fact true?
I checked mine, and found:
# grep -i libs /var/lib/portage/world
app-emulation/emul-linux-x86-baselibs
dev-libs/apr
dev-libs/apr-util
dev-libs/boost
dev-libs/elfutils
dev-libs/glib
dev-libs/gmp
dev-libs/libaio
dev-libs/libdnet
dev-libs/libevent
dev-libs/libffi
dev-libs/libgcrypt
dev-libs/libgpg-error
dev-libs/libksba
dev-libs/libpcre
dev-libs/libyaml
dev-libs/oniguruma
dev-libs/openssl
media-libs/libjpeg-turbo
media-libs/libpng
net-libs/libtirpc
net-libs/serf
sys-libs/cracklib
sys-libs/glibc
sys-libs/libcap
sys-libs/timezone-data
So, should I delete all of these? Even glib and glibc?
Also - is there a definitive guide (preferably for non programmer types)
on just how to properly clean the world file?
Thanks.
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] No 'libs' in world file?
2015-03-02 14:29 [gentoo-user] No 'libs' in world file? Tanstaafl
@ 2015-03-02 14:42 ` Jc García
2015-03-02 14:47 ` Peter Humphrey
` (3 subsequent siblings)
4 siblings, 0 replies; 23+ messages in thread
From: Jc García @ 2015-03-02 14:42 UTC (permalink / raw
To: gentoo-user
2015-03-02 8:29 GMT-06:00 Tanstaafl <tanstaafl@libertytrek.org>:
> So, should I delete all of these? Even glib and glibc?
>
Ideally you only want the applications you actually use directly in
your world file, and let portage solve the dependencies for those. If
you really need to emerge a library installed by hand use 'emerge
--oneshot' so it doesn't get added to the world file. I would bet
glibc is already in the @system set or pulled as a dependency for
that. so yes remove it from your world.
> Also - is there a definitive guide (preferably for non programmer types)
> on just how to properly clean the world file?
>
Choose the applications from your world file and "emerge --deselect"
everything else, this wont uninstall anything, just delete some lines
from the world file.
From my own experience, you could get portage to show errors of 100+
lines for not having a proper world file(and some stupid stuff in
package.accept_keywords), and untangle those is not fun at all.
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] No 'libs' in world file?
2015-03-02 14:29 [gentoo-user] No 'libs' in world file? Tanstaafl
2015-03-02 14:42 ` Jc García
@ 2015-03-02 14:47 ` Peter Humphrey
2015-03-02 15:08 ` Neil Bothwick
2015-03-02 14:53 ` Neil Bothwick
` (2 subsequent siblings)
4 siblings, 1 reply; 23+ messages in thread
From: Peter Humphrey @ 2015-03-02 14:47 UTC (permalink / raw
To: gentoo-user
On Monday 02 March 2015 09:29:15 Tanstaafl wrote:
> Googling on a minor issue with perl-cleaner after the 5.20 upgrade, I
> ran across this post:
>
> On 2/14/2015 7:39 AM, Mick <michaelkintzios@gmail.com> wrote:
> > Yes, you shouldn't really have any libs in your world file. Any
> > required would be pulled in as dependencies.
>
> Is this in fact true?
>
> I checked mine, and found:
>
> # grep -i libs /var/lib/portage/world
> app-emulation/emul-linux-x86-baselibs
> dev-libs/apr
> dev-libs/apr-util
> dev-libs/boost
> dev-libs/elfutils
> dev-libs/glib
> dev-libs/gmp
> dev-libs/libaio
> dev-libs/libdnet
> dev-libs/libevent
> dev-libs/libffi
> dev-libs/libgcrypt
> dev-libs/libgpg-error
> dev-libs/libksba
> dev-libs/libpcre
> dev-libs/libyaml
> dev-libs/oniguruma
> dev-libs/openssl
> media-libs/libjpeg-turbo
> media-libs/libpng
> net-libs/libtirpc
> net-libs/serf
> sys-libs/cracklib
> sys-libs/glibc
> sys-libs/libcap
> sys-libs/timezone-data
>
> So, should I delete all of these? Even glib and glibc?
Yes, by all means. The only lib I have in my world file is sys-libs/gpm.
(I'm not even convinced that should be in the sys-libs category.)
By the way, app-emulation/emul-linux-x86-baselibs will be called in by
whatever package needs it, along with all the others in your list, so
don't worry about losing multilib capability.
It could be that all those libs have found their way into world by
accident, presumably by you forgetting to include -1 when updating them.
--
Rgds
Peter.
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] No 'libs' in world file?
2015-03-02 14:29 [gentoo-user] No 'libs' in world file? Tanstaafl
2015-03-02 14:42 ` Jc García
2015-03-02 14:47 ` Peter Humphrey
@ 2015-03-02 14:53 ` Neil Bothwick
2015-03-02 15:05 ` Tanstaafl
2015-03-02 15:14 ` Alan McKinnon
2015-03-02 23:01 ` Andreas K. Huettel
4 siblings, 1 reply; 23+ messages in thread
From: Neil Bothwick @ 2015-03-02 14:53 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1301 bytes --]
On Mon, 02 Mar 2015 09:29:15 -0500, Tanstaafl wrote:
> > Yes, you shouldn't really have any libs in your world file. Any
> > required would be pulled in as dependencies.
>
> Is this in fact true?
Yes. The world file is for the software you want installed. Portage will
take care of its dependencies. Putting dependencies in world stops
portage doing its job properly and can cause blockers at a leter dTE.
>
> I checked mine, and found:
>
> # grep -i libs /var/lib/portage/world
[LOTS]
>
> So, should I delete all of these? Even glib and glibc?
Absolutely, especially glibc. When was the last time YOU used glibc, it
is a dependencies, not a user application.
> Also - is there a definitive guide (preferably for non programmer types)
> on just how to properly clean the world file?
Load it into an editor and remove everything that you do not run yourself,
or need as a startup daemon in the case of a server.
The run emerge --depclean -p and read the output carefully. If there is
anything in there you need, add it with emerge -n pkgname and run
depclean again.
Rinse and repeat until depclean shows only packages you know you don't
need yourself, then run it again without -p.
--
Neil Bothwick
Secret hacker rule #11: hackers read manuals.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] No 'libs' in world file?
2015-03-02 14:53 ` Neil Bothwick
@ 2015-03-02 15:05 ` Tanstaafl
2015-03-02 15:11 ` Neil Bothwick
0 siblings, 1 reply; 23+ messages in thread
From: Tanstaafl @ 2015-03-02 15:05 UTC (permalink / raw
To: gentoo-user
Many thanks to all for the responses, will work on cleaning this up next
weekend (don't like doing things like this on a production server during
the week)...
On 3/2/2015 9:53 AM, Neil Bothwick <neil@digimed.co.uk> wrote:
> On Mon, 02 Mar 2015 09:29:15 -0500, Tanstaafl wrote:
>
>>> Yes, you shouldn't really have any libs in your world file. Any
>>> required would be pulled in as dependencies.
>>
>> Is this in fact true?
>
> Yes. The world file is for the software you want installed. Portage will
> take care of its dependencies. Putting dependencies in world stops
> portage doing its job properly and can cause blockers at a leter dTE.
>
>>
>> I checked mine, and found:
>>
>> # grep -i libs /var/lib/portage/world
> [LOTS]
>>
>> So, should I delete all of these? Even glib and glibc?
>
> Absolutely, especially glibc. When was the last time YOU used glibc, it
> is a dependencies, not a user application.
>
>> Also - is there a definitive guide (preferably for non programmer types)
>> on just how to properly clean the world file?
>
> Load it into an editor and remove everything that you do not run yourself,
> or need as a startup daemon in the case of a server.
>
> The run emerge --depclean -p and read the output carefully. If there is
> anything in there you need, add it with emerge -n pkgname and run
> depclean again.
>
> Rinse and repeat until depclean shows only packages you know you don't
> need yourself, then run it again without -p.
>
>
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] No 'libs' in world file?
2015-03-02 14:47 ` Peter Humphrey
@ 2015-03-02 15:08 ` Neil Bothwick
0 siblings, 0 replies; 23+ messages in thread
From: Neil Bothwick @ 2015-03-02 15:08 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 750 bytes --]
On Mon, 02 Mar 2015 14:47:28 +0000, Peter Humphrey wrote:
> It could be that all those libs have found their way into world by
> accident, presumably by you forgetting to include -1 when updating them.
Most likely. Another way of overfilling world is by installing aoftware
to try it out than forgetting to uninstall it, leaving you with
unnecessary software. I avid this by creating a set file
at /etc/portage/sets/temp running emerge -n @temp.
Then I can add any experimental packages to that file and regularly
reviews its contents, either removing packages or transferring them to
world (most often the former) and running emerge -ca.
--
Neil Bothwick
Being politically correct means always having to say you're sorry.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] No 'libs' in world file?
2015-03-02 15:05 ` Tanstaafl
@ 2015-03-02 15:11 ` Neil Bothwick
2015-03-02 15:14 ` Tanstaafl
0 siblings, 1 reply; 23+ messages in thread
From: Neil Bothwick @ 2015-03-02 15:11 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 580 bytes --]
On Mon, 02 Mar 2015 10:05:16 -0500, Tanstaafl wrote:
You've been on the list long enough to know how well top-posting is
received.
> Many thanks to all for the responses, will work on cleaning this up next
> weekend (don't like doing things like this on a production server during
> the week)...
As long as you don't depclean in anger, removing entries from the world
file will not affect the installed software on your system.
--
Neil Bothwick
If the bank returns your cheque marked "Insufficient Funds," call them
and ask if they mean you or them. :-)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] No 'libs' in world file?
2015-03-02 14:29 [gentoo-user] No 'libs' in world file? Tanstaafl
` (2 preceding siblings ...)
2015-03-02 14:53 ` Neil Bothwick
@ 2015-03-02 15:14 ` Alan McKinnon
2015-03-02 23:01 ` Andreas K. Huettel
4 siblings, 0 replies; 23+ messages in thread
From: Alan McKinnon @ 2015-03-02 15:14 UTC (permalink / raw
To: gentoo-user
On Mon, 02 Mar 2015 09:29:15 -0500
Tanstaafl <tanstaafl@libertytrek.org> wrote:
> Hi all,
>
> Googling on a minor issue with perl-cleaner after the 5.20 upgrade, I
> ran across this post:
>
> On 2/14/2015 7:39 AM, Mick <michaelkintzios@gmail.com> wrote:
> > Yes, you shouldn't really have any libs in your world file. Any
> > required would be pulled in as dependencies.
>
> Is this in fact true?
>
> I checked mine, and found:
>
> # grep -i libs /var/lib/portage/world
> app-emulation/emul-linux-x86-baselibs
> dev-libs/apr
> dev-libs/apr-util
> dev-libs/boost
> dev-libs/elfutils
> dev-libs/glib
> dev-libs/gmp
> dev-libs/libaio
> dev-libs/libdnet
> dev-libs/libevent
> dev-libs/libffi
> dev-libs/libgcrypt
> dev-libs/libgpg-error
> dev-libs/libksba
> dev-libs/libpcre
> dev-libs/libyaml
> dev-libs/oniguruma
> dev-libs/openssl
> media-libs/libjpeg-turbo
> media-libs/libpng
> net-libs/libtirpc
> net-libs/serf
> sys-libs/cracklib
> sys-libs/glibc
> sys-libs/libcap
> sys-libs/timezone-data
>
> So, should I delete all of these? Even glib and glibc?
NO!!!!
You can't blindly use grep for this and equally blindly delete the
resulting list.
You have to consider what world is: A list of packages that YOU want
installed. Portage will pull in all the dependencies by itself to build
those packages. To decide is fomething should or should not be in
world, answer this question:
did you really intend to add the package to world directly, or did you
just emerge it because something else needed it?
Every package in world is there because you put it there, and the libs
are there becuase you should have used -1 and didn't.
You have to examine every entry in world and decide if you need it or
not. Also run --depclean to see if portage then wants to remove it or
not.
It's not easy, it's hard.
>
> Also - is there a definitive guide (preferably for non programmer
> types) on just how to properly clean the world file?
No. See above.
>
> Thanks.
>
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] No 'libs' in world file?
2015-03-02 15:11 ` Neil Bothwick
@ 2015-03-02 15:14 ` Tanstaafl
2015-03-02 23:04 ` Neil Bothwick
0 siblings, 1 reply; 23+ messages in thread
From: Tanstaafl @ 2015-03-02 15:14 UTC (permalink / raw
To: gentoo-user
On 3/2/2015 10:11 AM, Neil Bothwick <neil@digimed.co.uk> wrote:
> On Mon, 02 Mar 2015 10:05:16 -0500, Tanstaafl wrote:
>
> You've been on the list long enough to know how well top-posting is
> received.
Yes, and you've been around the internet long enough to know that there
are always exceptoions to the rules.
Sending a general 'Thanks', without any follow-ups requested or needed,
is one of those - at least imnsho... ;)
>> Many thanks to all for the responses, will work on cleaning this up next
>> weekend (don't like doing things like this on a production server during
>> the week)...
> As long as you don't depclean in anger, removing entries from the world
> file will not affect the installed software on your system.
Noted, and thanks again...
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] No 'libs' in world file?
2015-03-02 14:29 [gentoo-user] No 'libs' in world file? Tanstaafl
` (3 preceding siblings ...)
2015-03-02 15:14 ` Alan McKinnon
@ 2015-03-02 23:01 ` Andreas K. Huettel
2015-03-03 2:10 ` Philip Webb
2015-03-04 6:06 ` Walter Dnes
4 siblings, 2 replies; 23+ messages in thread
From: Andreas K. Huettel @ 2015-03-02 23:01 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Am Montag, 2. März 2015, 15:29:15 schrieb Tanstaafl:
> Hi all,
>
> Googling on a minor issue with perl-cleaner after the 5.20 upgrade, I
> ran across this post:
>
> On 2/14/2015 7:39 AM, Mick <michaelkintzios@gmail.com> wrote:
> > Yes, you shouldn't really have any libs in your world file. Any
> > required would be pulled in as dependencies.
>
> Is this in fact true?
>
Well... let's say it like this:
If you look at your world file, you should for each line be able to
immediately say "yes I know what this is and I need it". Where "I need it"
means "I need it directly", and *not* "I need it because some other package
needs it".
In most cases this means that libraries should not be in the world file.
You'll rarely say "Yes I need Boost." Instead you may need LibreOffice, and
that needs Boost...
The smaller your world file is, the more freedom portage has to resolve
dependencies.
- --
Andreas K. Huettel
Gentoo Linux developer
dilfridge@gentoo.org
http://www.akhuettel.de/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0
iQJ8BAEBCgBmBQJU9Ou2XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQwNzlCRDk4QzA4RENBRkYzQUEwRjQzMDlF
QkU2QTMzNkJFMTkwMzlDAAoJEOvmoza+GQOcBOkP/3J5yMqXKuY0iCGgk5sJQLQk
0oCq1lRrkieQ3alIqn5bG/vjMAk0EMt/NkxJ4bJpUvskpPt6klizsQRz9iMV/riO
TimC8IlnpQDUnt8nNgbGtf4gvfU962HFSNhjnFdnbWKnCxIBaJobGtC5Cmu6KFvD
VIcwvV/6/u8Clg0nmc3iEUeA5vnIBfQgkINrDeVCO9w5lv3MicWsRyWVdLHAYoyI
SjcVd+qjSbfEoEsWJK6+avdk8hJBV69BrUFR/mGWCcDw1gwTq4xd2piuMGZw4egJ
ZNq5vMqyrggSjl7k116HkXutYzNSl4xlWJ9AfmNfYq7AHDL67l6ZzznoQgR5OKAj
gKqK4zLs1aXEexTw/PoGJEW1BdqWqWYup+bRv6MhZ3E/rEuMyd77fCcGl+MFC81q
B/olAIhAl2Fj7VsiJilVDkZs6QtsriBn/dVLAM3L5kzxcIg6hw+Mdlc2U/hdKgiv
t7rLQutyqngB3O/IRqf2CxeAGWiEOcCOU+ynvZ2RUXGvGNEDsqoKZfNaCO2Pz8eS
lkn5JiOnb4ldbzdDsdOwcXKeIdRZBFcvnARjFUTNbcRD7QEC/5hiZXAX3F02KOo/
/Pz2BUGv9I7RaprgZNBssqGo/Ks9qf0gyiPpKI7Vq9dokbjtniFut/SM+/rVDHEy
mBz+bdhSJG295ypYdq8I
=lYmi
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] No 'libs' in world file?
2015-03-02 15:14 ` Tanstaafl
@ 2015-03-02 23:04 ` Neil Bothwick
2015-03-03 13:38 ` Tanstaafl
0 siblings, 1 reply; 23+ messages in thread
From: Neil Bothwick @ 2015-03-02 23:04 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 662 bytes --]
On Mon, 02 Mar 2015 10:14:54 -0500, Tanstaafl wrote:
> > You've been on the list long enough to know how well top-posting is
> > received.
>
> Yes, and you've been around the internet long enough to know that there
> are always exceptoions to the rules.
>
> Sending a general 'Thanks', without any follow-ups requested or needed,
> is one of those - at least imnsho... ;)
I'd say it was not only not an exception to that rule, it is also not an
exception to the rule of not excessively quoting. If you only want to say
thanks, why quote anything?
--
Neil Bothwick
Not one shred of evidence supports the notion that life is serious.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] No 'libs' in world file?
2015-03-02 23:01 ` Andreas K. Huettel
@ 2015-03-03 2:10 ` Philip Webb
2015-03-03 11:19 ` Francisco Ares
2015-03-04 6:06 ` Walter Dnes
1 sibling, 1 reply; 23+ messages in thread
From: Philip Webb @ 2015-03-03 2:10 UTC (permalink / raw
To: gentoo-user
150303 Andreas K. Huettel wrote:
> If you look at your world file, you should for each line
> be able to immediately say "yes I know what this is and I need it".
> Where "I need it" means "I need it directly"
> and *not* "I need it because some other package needs it".
> In most cases this means that libraries should not be in the world file.
> You'll rarely say "Yes I need Boost" : instead you may need LibreOffice
> and that needs Boost ... The smaller your world file,
> the more freedom portage has to resolve dependencies.
I was going to comment that I had 3 'lib' pkgs in 'world',
but then checked via 'emerge -cpv <pkg>'
& found that all of them -- /sys-libs/readline ncurses zlib --
were in fact requirements for eg bash python vim kdelibs cups LO ,
so now I've removed them & hope it will simplify Portage activities a bit.
--
========================,,============================================
SUPPORT ___________//___, Philip Webb
ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto
TRANSIT `-O----------O---' purslowatchassdotutorontodotca
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] No 'libs' in world file?
2015-03-03 2:10 ` Philip Webb
@ 2015-03-03 11:19 ` Francisco Ares
2015-03-03 15:23 ` Neil Bothwick
0 siblings, 1 reply; 23+ messages in thread
From: Francisco Ares @ 2015-03-03 11:19 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1761 bytes --]
2015-03-02 23:10 GMT-03:00 Philip Webb <purslow@ca.inter.net>:
> 150303 Andreas K. Huettel wrote:
> > If you look at your world file, you should for each line
> > be able to immediately say "yes I know what this is and I need it".
> > Where "I need it" means "I need it directly"
> > and *not* "I need it because some other package needs it".
> > In most cases this means that libraries should not be in the world file.
> > You'll rarely say "Yes I need Boost" : instead you may need LibreOffice
> > and that needs Boost ... The smaller your world file,
> > the more freedom portage has to resolve dependencies.
>
> I was going to comment that I had 3 'lib' pkgs in 'world',
> but then checked via 'emerge -cpv <pkg>'
> & found that all of them -- /sys-libs/readline ncurses zlib --
> were in fact requirements for eg bash python vim kdelibs cups LO ,
> so now I've removed them & hope it will simplify Portage activities a bit.
>
> --
> ========================,,============================================
> SUPPORT ___________//___, Philip Webb
> ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto
> TRANSIT `-O----------O---' purslowatchassdotutorontodotca
>
>
>
Just my 2 cents: AFAIK, only if you are developing a new software that
requires a specific library (or some of them, like "opencv", for example,
which might not have yet been pulled by any other package) , then, and only
then, you might add them to "world". Then, when your software is ready,
please ( ;-) ) create a package for distributing your work, with those
libraries as dependencies, and remove them from "world", as they will be
pulled in by such package.
As already remembered on this thread, each case must be checked.
Best regards,
Francisco
[-- Attachment #2: Type: text/html, Size: 2674 bytes --]
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] No 'libs' in world file?
2015-03-02 23:04 ` Neil Bothwick
@ 2015-03-03 13:38 ` Tanstaafl
0 siblings, 0 replies; 23+ messages in thread
From: Tanstaafl @ 2015-03-03 13:38 UTC (permalink / raw
To: gentoo-user
On 3/2/2015 6:04 PM, Neil Bothwick <neil@digimed.co.uk> wrote:
> On Mon, 02 Mar 2015 10:14:54 -0500, Tanstaafl wrote:
>>> You've been on the list long enough to know how well top-posting is
>>> received.
>>
>> Yes, and you've been around the internet long enough to know that there
>> are always exceptoions to the rules.
>>
>> Sending a general 'Thanks', without any follow-ups requested or needed,
>> is one of those - at least imnsho... ;)
> I'd say it was not only not an exception to that rule, it is also not an
> exception to the rule of not excessively quoting. If you only want to say
> thanks, why quote anything?
Context...
Someone encountering the thread will see the result, ie, why I am
thanking them.
I think it is silly to argue about this, so I'll leave it at that... if
you disagree, no worries, it is a free internet (for now)...
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] No 'libs' in world file?
2015-03-03 11:19 ` Francisco Ares
@ 2015-03-03 15:23 ` Neil Bothwick
0 siblings, 0 replies; 23+ messages in thread
From: Neil Bothwick @ 2015-03-03 15:23 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 964 bytes --]
On Tue, 3 Mar 2015 08:19:15 -0300, Francisco Ares wrote:
> Just my 2 cents: AFAIK, only if you are developing a new software that
> requires a specific library (or some of them, like "opencv", for
> example, which might not have yet been pulled by any other package) ,
> then, and only then, you might add them to "world". Then, when your
> software is ready, please ( ;-) ) create a package for distributing
> your work, with those libraries as dependencies, and remove them from
> "world", as they will be pulled in by such package.
This also applies if you need to install anything from outside of
portage. I deal with that by having a separate set calls deps that
includes all such dependencies, and comments showing what needs them. I
find this easier to manage than just bunging it all in one file and
assuming I will remember what was for what in six month's time.
--
Neil Bothwick
0 and 1. Now what could be so hard about that?
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] No 'libs' in world file?
2015-03-04 6:06 ` Walter Dnes
@ 2015-03-04 1:30 ` Daniel Frey
2015-03-04 9:17 ` Walter Dnes
2015-03-04 8:59 ` Peter Humphrey
2015-03-05 16:20 ` Alexander Kapshuk
2 siblings, 1 reply; 23+ messages in thread
From: Daniel Frey @ 2015-03-04 1:30 UTC (permalink / raw
To: gentoo-user
On 03/03/2015 10:06 PM, Walter Dnes wrote:
> And a "lib" is not necessarily always a direct dependancy. E.g. my
> HDHomerun OTA TV tuner requires the media-libs/libhdhomerun ebuild to be
> explicitly installed.
>
Wait, really? I've had mine since 2010 and I've never had that package
installed (media-libs/libhdhomerun). MythTV detected and used it without
complaints. Or is it required for other programs?
I just tried genlop and it is saying I've never had any version of
libhdhomerun installed.
Dan
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] No 'libs' in world file?
2015-03-02 23:01 ` Andreas K. Huettel
2015-03-03 2:10 ` Philip Webb
@ 2015-03-04 6:06 ` Walter Dnes
2015-03-04 1:30 ` Daniel Frey
` (2 more replies)
1 sibling, 3 replies; 23+ messages in thread
From: Walter Dnes @ 2015-03-04 6:06 UTC (permalink / raw
To: gentoo-user
On Tue, Mar 03, 2015 at 12:01:04AM +0100, Andreas K. Huettel wrote
> Well... let's say it like this:
>
> If you look at your world file, you should for each line be able to
> immediately say "yes I know what this is and I need it". Where "I need it"
> means "I need it directly", and *not* "I need it because some other package
> needs it".
>
> In most cases this means that libraries should not be in the world file.
> You'll rarely say "Yes I need Boost." Instead you may need LibreOffice, and
> that needs Boost...
Rather than try to remember everything, let the computer do some of
the work for you (novel idea <G>). Use the command...
xargs -a /var/lib/portage/world -n 1 equery d
to determine which files would be pulled in as dependancies.
***WARNING: DO NOT REDIRECT OR PIPE***. It won't work. Use a 2nd term
for the output, along with {CTRL-S} and {CTRL-Q} to stop and restart the
output. You'l have to run the command with root privileges to see the
file /var/lib/portage/world Here's how it starts off for me...
[d531][root][~] xargs -a /var/lib/portage/world -n 1 equery d
* These packages depend on app-admin/localepurge:
* These packages depend on app-admin/logrotate:
* These packages depend on app-admin/sudo:
* These packages depend on app-admin/syslog-ng:
* These packages depend on app-arch/zip:
sys-devel/gcc-4.8.3 (app-arch/zip)
www-client/seamonkey-2.32 (app-arch/zip)
There are no ebuilds depending on localepurge, logrotate, sudo, or
syslog-ng. It's up to you whether or not you want them. However, zip
is an absolute dependancy of gcc and seamonkey, and can be removed from
my world file. Absolute dependancies are easy. *BEWARE OF CONDITIONAL
DEPENDANCIES*; e.g.
* These packages depend on dev-perl/File-MimeInfo:
x11-misc/xdg-utils-1.1.0_rc2 (perl ? dev-perl/File-MimeInfo)
That says if you've built x11-misc/xdg-utils-1.1.9_rc2 withe the
"perl" USE flag, then dev-perl/File-MimeInfo will be pulled in as a
dependancy. You have to check whether you've used that USE flag on that
ebuilds.
And a "lib" is not necessarily always a direct dependancy. E.g. my
HDHomerun OTA TV tuner requires the media-libs/libhdhomerun ebuild to be
explicitly installed.
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] No 'libs' in world file?
2015-03-04 6:06 ` Walter Dnes
2015-03-04 1:30 ` Daniel Frey
@ 2015-03-04 8:59 ` Peter Humphrey
2015-03-04 10:48 ` Philip Webb
2015-03-05 16:20 ` Alexander Kapshuk
2 siblings, 1 reply; 23+ messages in thread
From: Peter Humphrey @ 2015-03-04 8:59 UTC (permalink / raw
To: gentoo-user
On Wednesday 04 March 2015 01:06:58 Walter Dnes wrote:
> ... zip is an absolute dependancy of gcc and seamonkey ...
A word to the wise: dependency. No As.
:)
--
Rgds
Peter.
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] No 'libs' in world file?
2015-03-04 1:30 ` Daniel Frey
@ 2015-03-04 9:17 ` Walter Dnes
0 siblings, 0 replies; 23+ messages in thread
From: Walter Dnes @ 2015-03-04 9:17 UTC (permalink / raw
To: gentoo-user
On Tue, Mar 03, 2015 at 05:30:34PM -0800, Daniel Frey wrote
> On 03/03/2015 10:06 PM, Walter Dnes wrote:
> > And a "lib" is not necessarily always a direct dependancy. E.g. my
> > HDHomerun OTA TV tuner requires the media-libs/libhdhomerun ebuild to be
> > explicitly installed.
> >
>
> Wait, really? I've had mine since 2010 and I've never had that package
> installed (media-libs/libhdhomerun). MythTV detected and used it without
> complaints. Or is it required for other programs?
>
> I just tried genlop and it is saying I've never had any version of
> libhdhomerun installed.
/usr/portage/distfiles/libhdhomerun_20140121.tgz is all of 47,685
bytes. It provides a ***COMMAND LINE INTERFACE***. I happen to be a
"command line commando"" Using that command line interface, I've rigged
up a bash script and a text config file that allows me to fire up the
local CBC station, on tuner 0, with the command...
tv 0 cbc
Similarly, I can launch the local CTV station with the command
tv 0 ctv
The other option is to "save 47,685 bytes" and emerge MythTV instead
USE="mysql" emerge -pv mythtv
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] media-libs/libogg-1.3.1 USE="-static-libs" 398 KiB
[ebuild N ] dev-libs/libaio-0.3.110 USE="-static-libs {-test}" 42 KiB
[ebuild N ] media-libs/xvid-1.3.3 USE="threads -examples -pic" 0 KiB
[ebuild N ] media-fonts/liberation-fonts-2.00.0-r1 USE="X -fontforge" 2,249 KiB
[ebuild N ] app-admin/eselect-qtgraphicssystem-1.1.1 2 KiB
[ebuild N ] media-libs/libmp4v2-2.0.0 USE="-static-libs {-test} -utils" 485 KiB
[ebuild N ] dev-perl/TermReadKey-2.300.200-r1 37 KiB
[ebuild N ] dev-perl/Net-Daemon-0.480.0-r1 29 KiB
[ebuild N ] virtual/perl-Sys-Syslog-0.320.0-r2 0 KiB
[ebuild N ] virtual/perl-Time-HiRes-1.972.500-r3 0 KiB
[ebuild N ] virtual/perl-Term-ANSIColor-4.20.0-r2 0 KiB
[ebuild N ] virtual/perl-Getopt-Long-2.390.0-r1 0 KiB
[ebuild N ] dev-qt/qtcore-4.8.5-r2:4 USE="exceptions glib ssl (-aqua) -debug -iconv -icu -pch -qt3support" 235,832 KiB
[ebuild N ] media-libs/libvorbis-1.3.4 USE="-static-libs" 1,066 KiB
[ebuild N ] media-libs/taglib-1.9.1-r2 USE="asf mp4 -debug -examples {-test}" 639 KiB
[ebuild N ] media-sound/lame-3.99.5-r1 USE="-debug -mp3rtp -sndfile -static-libs" CPU_FLAGS_X86="(-mmx)" 568 KiB
[ebuild N ] x11-misc/wmctrl-1.07-r1 86 KiB
[ebuild N ] media-libs/faac-1.28-r4 USE="-static-libs" 663 KiB
[ebuild N ] x11-libs/libXinerama-1.1.3 USE="-static-libs" 272 KiB
[ebuild N ] dev-db/mysql-init-scripts-2.0-r1 0 KiB
[ebuild N ] dev-perl/PlRPC-0.202.0-r2 18 KiB
[ebuild N ] dev-qt/qtscript-4.8.5:4 USE="exceptions jit (-aqua) -debug -iconv -pch" 0 KiB
[ebuild N ] dev-qt/qtdbus-4.8.5:4 USE="exceptions (-aqua) -debug -pch" 0 KiB
[ebuild N ] media-libs/libtheora-1.1.1-r1 USE="encode -doc -examples -static-libs" 1,859 KiB
[ebuild N ] dev-qt/qtxmlpatterns-4.8.5:4 USE="(-aqua) -debug -pch" 0 KiB
[ebuild N ] dev-perl/DBI-1.628.0 USE="{-test}" 573 KiB
[ebuild N ] dev-qt/qtgui-4.8.5-r3:4 USE="accessibility exceptions glib xv (-aqua) -cups -debug -egl -gtkstyle -mng -nas -nis -pch -qt3support -tiff -trace -xinerama" 51 KiB
[ebuild N ] dev-qt/qtwebkit-4.8.5:4 USE="exceptions jit (-aqua) -debug -gstreamer -icu -pch" 0 KiB
[ebuild N ] dev-qt/qtopengl-4.8.5:4 USE="exceptions (-aqua) -debug -egl -pch -qt3support" 0 KiB
[ebuild N ] dev-db/mariadb-10.0.15-r1 USE="bindist community perl ssl -cluster -debug -embedded -extraengine -jemalloc -latin1 -minimal -odbc -oqgraph -pam -profiling (-selinux) -sphinx -static -static-libs -systemtap -tcmalloc {-test} -tokudb -xml" 55,691 KiB
[ebuild N ] virtual/mysql-5.6-r2:0/18 USE="-embedded -minimal -static -static-libs" 0 KiB
[ebuild N ] dev-perl/DBD-mysql-4.20.0-r1 USE="-embedded" 135 KiB
[ebuild N ] dev-qt/qtsql-4.8.5:4 USE="exceptions mysql sqlite
(-aqua) -debug (-firebird) -freetds -oci8 -odbc -pch -postgres -qt3support" 0 KiB
[ebuild N ] media-tv/mythtv-0.27_p20140321 USE="hls theora vorbis xml xvid -alsa (-altivec) -autostart -bluray -cec -crystalhd -debug -dvb -dvd -egl -fftw -ieee1394 -jack -lcd -libass -lirc -perl -pulseaudio -python -raop -vaapi -vdpau -xmltv" INPUT_DEVICES="-joystick" 84,182 KiB
total: 34 packages (34 new), Size of downloads: 384,869 KiB
No thanks.
--
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] No 'libs' in world file?
2015-03-04 8:59 ` Peter Humphrey
@ 2015-03-04 10:48 ` Philip Webb
2015-03-04 11:19 ` [OT] " Peter Humphrey
2015-03-04 12:04 ` Neil Bothwick
0 siblings, 2 replies; 23+ messages in thread
From: Philip Webb @ 2015-03-04 10:48 UTC (permalink / raw
To: gentoo-user
150304 Peter Humphrey wrote:
> On Wednesday 04 March 2015 01:06:58 Walter Dnes wrote:
>> ... zip is an absolute dependancy of gcc and seamonkey ...
> A word to the wise: dependency. No As.
You mean "A's" or more accurately "A" ... (grin).
Otherwise, why do Gentooers say 'dependency' when they mean 'requirement' ?
-- eg above, while Zip is not required for Gcc or Seamonkey or VICE VERSA,
Zip could hardly depend on Seamonkey, but Seamonkey could require it.
Making sense of Portage output + dox is difficult enough, as it is.
--
========================,,============================================
SUPPORT ___________//___, Philip Webb
ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto
TRANSIT `-O----------O---' purslowatchassdotutorontodotca
^ permalink raw reply [flat|nested] 23+ messages in thread
* [OT] Re: [gentoo-user] No 'libs' in world file?
2015-03-04 10:48 ` Philip Webb
@ 2015-03-04 11:19 ` Peter Humphrey
2015-03-04 12:04 ` Neil Bothwick
1 sibling, 0 replies; 23+ messages in thread
From: Peter Humphrey @ 2015-03-04 11:19 UTC (permalink / raw
To: gentoo-user
On Wednesday 04 March 2015 05:48:15 Philip Webb wrote:
> 150304 Peter Humphrey wrote:
> > On Wednesday 04 March 2015 01:06:58 Walter Dnes wrote:
> >> ... zip is an absolute dependancy of gcc and seamonkey ...
> >
> > A word to the wise: dependency. No As.
>
> You mean "A's" or more accurately "A" ... (grin).
Nope. Certainly not "A's" (ugh!), and not "A" either, since the only
number that's singular is 1. (You wouldn't say "my fruit bowl's empty -
it contains no apple.")
> Otherwise, why do Gentooers say 'dependency' when they mean
> 'requirement' ? -- eg above, while Zip is not required for Gcc or
> Seamonkey or VICE VERSA, Zip could hardly depend on Seamonkey, but
> Seamonkey could require it.
>
> Making sense of Portage output + dox is difficult enough, as it is.
No argument there. I could say something rude about Americans and
English, but I'll contain myself. P)
--
Rgds
Peter.
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] No 'libs' in world file?
2015-03-04 10:48 ` Philip Webb
2015-03-04 11:19 ` [OT] " Peter Humphrey
@ 2015-03-04 12:04 ` Neil Bothwick
1 sibling, 0 replies; 23+ messages in thread
From: Neil Bothwick @ 2015-03-04 12:04 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 584 bytes --]
On Wed, 4 Mar 2015 05:48:15 -0500, Philip Webb wrote:
> Otherwise, why do Gentooers say 'dependency' when they mean
> 'requirement' ?
It's a general Linux thing, not only Gentoo.
> -- eg above, while Zip is not required for Gcc or
> Seamonkey or VICE VERSA, Zip could hardly depend on Seamonkey, but
> Seamonkey could require it.
Seamonkey depends on zip, so zip is a dependency of Seamonkey. In this
context dependency is a synonym of requirement, unlike the political
context.
--
Neil Bothwick
Most software is about as user-friendly as a cornered rat!
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] No 'libs' in world file?
2015-03-04 6:06 ` Walter Dnes
2015-03-04 1:30 ` Daniel Frey
2015-03-04 8:59 ` Peter Humphrey
@ 2015-03-05 16:20 ` Alexander Kapshuk
2 siblings, 0 replies; 23+ messages in thread
From: Alexander Kapshuk @ 2015-03-05 16:20 UTC (permalink / raw
To: Gentoo mailing list
[-- Attachment #1: Type: text/plain, Size: 2670 bytes --]
On Wed, Mar 4, 2015 at 8:06 AM, Walter Dnes <waltdnes@waltdnes.org> wrote:
> On Tue, Mar 03, 2015 at 12:01:04AM +0100, Andreas K. Huettel wrote
>
> > Well... let's say it like this:
> >
> > If you look at your world file, you should for each line be able to
> > immediately say "yes I know what this is and I need it". Where "I need
> it"
> > means "I need it directly", and *not* "I need it because some other
> package
> > needs it".
> >
> > In most cases this means that libraries should not be in the world file.
> > You'll rarely say "Yes I need Boost." Instead you may need LibreOffice,
> and
> > that needs Boost...
>
> Rather than try to remember everything, let the computer do some of
> the work for you (novel idea <G>). Use the command...
>
> xargs -a /var/lib/portage/world -n 1 equery d
>
Just thought of using 'equery d $(</var/lib/portage/world)' as an
alternative to the command line above. Not that there's something wrong
with the original suggestion.
>
> to determine which files would be pulled in as dependancies.
> ***WARNING: DO NOT REDIRECT OR PIPE***. It won't work. Use a 2nd term
> for the output, along with {CTRL-S} and {CTRL-Q} to stop and restart the
> output. You'l have to run the command with root privileges to see the
> file /var/lib/portage/world Here's how it starts off for me...
>
>
> [d531][root][~] xargs -a /var/lib/portage/world -n 1 equery d
> * These packages depend on app-admin/localepurge:
> * These packages depend on app-admin/logrotate:
> * These packages depend on app-admin/sudo:
> * These packages depend on app-admin/syslog-ng:
> * These packages depend on app-arch/zip:
> sys-devel/gcc-4.8.3 (app-arch/zip)
> www-client/seamonkey-2.32 (app-arch/zip)
>
> There are no ebuilds depending on localepurge, logrotate, sudo, or
> syslog-ng. It's up to you whether or not you want them. However, zip
> is an absolute dependancy of gcc and seamonkey, and can be removed from
> my world file. Absolute dependancies are easy. *BEWARE OF CONDITIONAL
> DEPENDANCIES*; e.g.
>
> * These packages depend on dev-perl/File-MimeInfo:
> x11-misc/xdg-utils-1.1.0_rc2 (perl ? dev-perl/File-MimeInfo)
>
> That says if you've built x11-misc/xdg-utils-1.1.9_rc2 withe the
> "perl" USE flag, then dev-perl/File-MimeInfo will be pulled in as a
> dependancy. You have to check whether you've used that USE flag on that
> ebuilds.
>
> And a "lib" is not necessarily always a direct dependancy. E.g. my
> HDHomerun OTA TV tuner requires the media-libs/libhdhomerun ebuild to be
> explicitly installed.
>
>
> Walter Dnes <waltdnes@waltdnes.org>
> I don't run "desktop environments"; I run useful applications
>
>
[-- Attachment #2: Type: text/html, Size: 3568 bytes --]
^ permalink raw reply [flat|nested] 23+ messages in thread
end of thread, other threads:[~2015-03-05 16:20 UTC | newest]
Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-02 14:29 [gentoo-user] No 'libs' in world file? Tanstaafl
2015-03-02 14:42 ` Jc García
2015-03-02 14:47 ` Peter Humphrey
2015-03-02 15:08 ` Neil Bothwick
2015-03-02 14:53 ` Neil Bothwick
2015-03-02 15:05 ` Tanstaafl
2015-03-02 15:11 ` Neil Bothwick
2015-03-02 15:14 ` Tanstaafl
2015-03-02 23:04 ` Neil Bothwick
2015-03-03 13:38 ` Tanstaafl
2015-03-02 15:14 ` Alan McKinnon
2015-03-02 23:01 ` Andreas K. Huettel
2015-03-03 2:10 ` Philip Webb
2015-03-03 11:19 ` Francisco Ares
2015-03-03 15:23 ` Neil Bothwick
2015-03-04 6:06 ` Walter Dnes
2015-03-04 1:30 ` Daniel Frey
2015-03-04 9:17 ` Walter Dnes
2015-03-04 8:59 ` Peter Humphrey
2015-03-04 10:48 ` Philip Webb
2015-03-04 11:19 ` [OT] " Peter Humphrey
2015-03-04 12:04 ` Neil Bothwick
2015-03-05 16:20 ` Alexander Kapshuk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox