use flags

Anything that pertains to Entropy, Equo or Sulfur

Moderator: Moderators

Post Reply
pavel.stratil
Baby Hen
Posts: 3
Joined: Thu Aug 18, 2011 11:57

use flags

Post by pavel.stratil » Thu Aug 18, 2011 21:40

Hi all!

I wonder, the prebuilt binaries have all useflags enabled? what about i.e. the debug flag?

thanks!

User avatar
Fitzcarraldo
Sagely Hen
Posts: 8091
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom
Contact:

Re: use flags

Post by Fitzcarraldo » Thu Aug 18, 2011 22:55

No, they don't. You can check the situation of each package yourself by using the eix utility:

Code: Select all

# equo install git
# emerge --sync
# layman -a sabayon
# equo install eix
# eix-update
# eix <package name>

micia
Sagely Hen
Posts: 2718
Joined: Wed Nov 26, 2008 16:41
Contact:

Re: use flags

Post by micia » Fri Aug 19, 2011 9:15

If you don't want to install eix, you can also use equo for the same purpose, just run:

Code: Select all

equo query installed --verbose <package-name>
for example:

Code: Select all

equo query installed --verbose wget
>>  @@ Searching...
>>      @@ Package: net-misc/wget-1.12-r3 branch: 5, [__system__] 
>>         Category:        net-misc
>>         Name:            wget
>>         Masked:          False
>>         Installed:       version: 1.12-r3 ~ tag: NoTag ~ revision: 0
>>         Slot:            0
>>         Size:            567.1kB
>>         Download:        packages/amd64/5/net-misc:wget-1.12-r3~0.tbz2
>>         Checksum:        f86b7a5d09b5f3d880831f192be6fcff
>>         ## Dependencies:
>>         ##               [0] >=dev-libs/openssl-0.9.6b
>>         ##               [3] sys-devel/gettext
>>         ##               Legend:
>>         ##               {0} Runtime dependency
>>         ##               {1} Post dependency
>>         ##               {2} Manually added (by staff) dependency
>>         ##               {3} Build dependency
>>         Homepage:        http://www.gnu.org/software/wget/ 
>>         Description:     Network utility to retrieve files 
>>                          from the WWW 
>>         USE flags:       amd64 elibc_glibc ipv6 kernel_linux 
>>                          multilib nls ssl userland_GNU 
>>         CHOST:           x86_64-pc-linux-gnu
>>         CFLAGS:          -O2 -march=x86-64 -pipe
>>         CXXFLAGS:        -O2 -march=x86-64 -pipe
>>         Sources:
>>                          mirror://gnu/wget/wget-1.12.tar.bz2
>>         Entry API:       3
>>         Compiled with:   -O2 -march=x86-64 -pipe
>>         Keywords:        alpha amd64 arm hppa ia64 m68k ppc 
>>                          s390 sh sparc x86 ~mips ~ppc64 ~sparc-fbsd 
>>                          ~x86-fbsd 
>>         Created:         2011-05-12 16:23:36.730000
>>         License:         GPL-3
>>  Keyword:  wget
>>  Found:    1 entries
it gives you some more detail, like amd64 or multilib.

joost
Sagely Hen
Posts: 2675
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands
Contact:

Re: use flags

Post by joost » Fri Aug 19, 2011 9:36

Everything is build with split-debug.
You can enable a setting in Entropy to also install debug files.

/etc/entropy/client.conf

Code: Select all

# Enable the installation of debug files
# Also known as "splitdebug" support
# Valid parameters: disable, enable, true, false, disabled, enabled, 0, 1
# Default parameter if unset: disable
# splitdebug = disable
# HOW SPLITDEBUG WORKS with Entropy
# Once you enable the "splitdebug" feature
# you just need to (re)install packages in order to
# get /usr/lib/debug metadata files installed. That's it.
# You can safely remove /usr/lib/debug without affecting
# Operating System functionality, at any time.
Image
My blog | Twitter

Please support Sabayon: Image

pavel.stratil
Baby Hen
Posts: 3
Joined: Thu Aug 18, 2011 11:57

Re: use flags

Post by pavel.stratil » Sat Aug 20, 2011 12:20

thanks for the explanations! just to make sure, for standard useflags enabling/disabling features at build time: if equo or the http://packages.sabayon.org/show/wget,5 ... -show-what site tell

Code: Select all

USE flags:       amd64 elibc_glibc ipv6 kernel_linux
                      multilib nls ssl userland_GNU 
then these are the useflags the binary is build with and if I want for example (eix output on gentoo)

Code: Select all

[I] net-misc/wget
     Available versions:  1.12-r2 1.12-r3 {debug idn ipv6 nls ntlm +ssl static}
     Installed versions:  1.12-r3(08:55:02 PM 05/04/2011)(idn ipv6 nls ssl -debug ntlm -static)
     Homepage:            http://www.gnu.org/software/wget/
     Description:         Network utility to retrieve files from the WWW
the ntlm flag enabled, i have to use portage for that particular package/useflag combination, right?

User avatar
Fitzcarraldo
Sagely Hen
Posts: 8091
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom
Contact:

Re: use flags

Post by Fitzcarraldo » Sat Aug 20, 2011 13:07

Yes.

pavel.stratil
Baby Hen
Posts: 3
Joined: Thu Aug 18, 2011 11:57

Re: use flags

Post by pavel.stratil » Mon Aug 22, 2011 13:43

cool! now, having skimmed through the docs, esp. http://wiki.sabayon.org/index.php?title ... nd_Portage, i have a suggestion on enhancing entropy:

why not make entropy /equo also a wrapper for portage and flaggie? it would be, imho, awesome, it you could install packages with equo as usual and for the special cases when you would have to use portage, use equo with a --build-source or whatever parameter which would take care of properly setting stuff in /etc/portage and masking things in /etc/entropy and installing system dependencies with equo first when such are required?

Post Reply