public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] what does this equery display show me?
@ 2020-07-08 22:46 n952162
  2020-07-08 23:45 ` Ashley Dixon
  0 siblings, 1 reply; 3+ messages in thread
From: n952162 @ 2020-07-08 22:46 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 714 bytes --]

Is ncurses dependent on gpm?

     $ /equery g  sys-libs/ncurses-6.2-r1/
      * Searching for ncurses6.2-r1 in sys-libs ...

      * dependency graph for sys-libs/ncurses-6.2-r1
      `--  sys-libs/*ncurses*-6.2-r1 amd64
        `--  sys-libs/*gpm*-1.20.7-r2 (sys-libs/gpm) amd64 
[abi_x86_32(-)? abi_x86_64(-)? abi_x86_x32(-)? abi_mips_n32(-)?
abi_mips_n64(-)? abi_mips_o32(-)? abi_riscv_lp64d(-)? abi_riscv_lp64(-)?
abi_s390_32(-)? abi_s390_64(-)?]
     [ sys-libs/ncurses-6.2-r1 stats: packages (2), max depth (1) ]

     $ /qdepends  -d  sys-libs/ncurses-6.2-r1/
     sys-libs/ncurses-6.2-r1:

Note that there's a gpm USE flag for ncurses, but it's *--*


[-- Attachment #2: Type: text/html, Size: 1200 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] what does this equery display show me?
  2020-07-08 22:46 [gentoo-user] what does this equery display show me? n952162
@ 2020-07-08 23:45 ` Ashley Dixon
  2020-07-09 17:21   ` n952162
  0 siblings, 1 reply; 3+ messages in thread
From: Ashley Dixon @ 2020-07-08 23:45 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1865 bytes --]

On Thu, Jul 09, 2020 at 12:46:42AM +0200, n952162 wrote:
> Is ncurses dependent on gpm?
> 
>     $ /equery g  sys-libs/ncurses-6.2-r1/
>      * Searching for ncurses6.2-r1 in sys-libs ...
> 
>      * dependency graph for sys-libs/ncurses-6.2-r1
>      `--  sys-libs/*ncurses*-6.2-r1 amd64
>        `--  sys-libs/*gpm*-1.20.7-r2 (sys-libs/gpm) amd64 
> [abi_x86_32(-)? abi_x86_64(-)? abi_x86_x32(-)? abi_mips_n32(-)?
> abi_mips_n64(-)? abi_mips_o32(-)? abi_riscv_lp64d(-)? abi_riscv_lp64(-)?
> abi_s390_32(-)? abi_s390_64(-)?]
>     [ sys-libs/ncurses-6.2-r1 stats: packages (2), max depth (1) ]

It depends whether the `gpm` USE-flag is set or not.  From the  ncurses  ebuild:
(See [1] for documentation regarding the  ${MULTILIB_USEDEP}  eclass  variable.)
       
        DEPEND="gpm? ( sys-libs/gpm[${MULTILIB_USEDEP}] )" [2]

The list of architectures you're seeing is an  expansion  of  ${MULTILIB_USEDEP}
as defined by the `multilib-build` (or in this case, `multilib-minimal` eclass);
this can be removed from the output by passing the local option -U to  depgraph.
As all of these are disabled,  I'm  guessing  you're  not  running  a  multi-lib
profile.

> Note that there's a gpm USE flag for ncurses, but it's *--*

What do you mean, "but it's *--*" ?  Do you mean it's disabled ?   Equery  lists
dependencies as specified by the DEPEND ebuild variable, regardless of your  own
system's USE-flags.  Try running the same equery command for something with lots
of optional dependencies, such as Firefox, and you'll see  the  same  behaviour.

[1] https://devmanual.gentoo.org/eclass-reference/multilib-build.eclass/index.html#lbAF
[2] https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-libs/ncurses/ncurses-6.2-r1.ebuild#n26

-- 

Ashley Dixon
suugaku.co.uk

2A9A 4117
DA96 D18A
8A7B B0D2
A30E BF25
F290 A8AA


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] what does this equery display show me?
  2020-07-08 23:45 ` Ashley Dixon
@ 2020-07-09 17:21   ` n952162
  0 siblings, 0 replies; 3+ messages in thread
From: n952162 @ 2020-07-09 17:21 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 4464 bytes --]

On 2020-07-09 01:45, Ashley Dixon wrote:
> On Thu, Jul 09, 2020 at 12:46:42AM +0200, n952162 wrote:
>> Is ncurses dependent on gpm?
>>
>>      $ /equery g  sys-libs/ncurses-6.2-r1/
>>       * Searching for ncurses6.2-r1 in sys-libs ...
>>
>>       * dependency graph for sys-libs/ncurses-6.2-r1
>>       `--  sys-libs/*ncurses*-6.2-r1 amd64
>>         `--  sys-libs/*gpm*-1.20.7-r2 (sys-libs/gpm) amd64
>> [abi_x86_32(-)? abi_x86_64(-)? abi_x86_x32(-)? abi_mips_n32(-)?
>> abi_mips_n64(-)? abi_mips_o32(-)? abi_riscv_lp64d(-)? abi_riscv_lp64(-)?
>> abi_s390_32(-)? abi_s390_64(-)?]
>>      [ sys-libs/ncurses-6.2-r1 stats: packages (2), max depth (1) ]
> It depends whether the `gpm` USE-flag is set or not.  From the  ncurses  ebuild:
> (See [1] for documentation regarding the  ${MULTILIB_USEDEP}  eclass  variable.)
>
>          DEPEND="gpm? ( sys-libs/gpm[${MULTILIB_USEDEP}] )" [2]
>
> The list of architectures you're seeing is an  expansion  of  ${MULTILIB_USEDEP}
> as defined by the `multilib-build` (or in this case, `multilib-minimal` eclass);
> this can be removed from the output by passing the local option -U to  depgraph.
> As all of these are disabled,  I'm  guessing  you're  not  running  a  multi-lib
> profile.


You're saying that the architectures are all disabled because there's a
(-) following all the flags?  In that case, it would seem that no
architecture was enabled...

My profile is   default/linux/x86/17.0, wouldn't it have a no-multilib
in it if it were so?

Have I done something to disable all architectures?


>
>> Note that there's a gpm USE flag for ncurses, but it's *--*
> What do you mean, "but it's *--*" ?  Do you mean it's disabled ?

02/var/db/pkg/sys-libs/ncurses-6.1-r2>equery uses ncurses
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
  * Found these USE flags for sys-libs/ncurses-6.2-r1:
  U I
  - - ada         : Add bindings for the ADA programming language
  + - cxx         : Build support for C++ (bindings, extra libraries,
code generation, ...)
  - - debug       : Enable extra debug codepaths, like asserts and extra
output. If you want to get meaningful backtraces see
https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
  - - doc         : Add extra documentation (API, Javadoc, etc). It is
recommended to enable per package instead of globally
  - - gpm         : Add support for sys-libs/gpm (Console-based mouse
driver)
  - - minimal     : Install a very minimal build (disables, for example,
plugins, fonts, most drivers, non-critical features)
  - - profile     : Add support for software performance analysis (will
likely vary from ebuild to ebuild)
  - - static-libs : Build static versions of dynamic libraries as well
  - - test        : Enable dependencies and/or preparations necessary to
run tests (usually controlled by FEATURES=test but can be toggled
independently)
  - - threads     : Add threads support for various packages. Usually
pthreads
  - - trace       : Enable test trace() support in ncurses calls
  + + unicode     : Add support for Unicode


>    Equery  lists
> dependencies as specified by the DEPEND ebuild variable, regardless of your  own
> system's USE-flags.  Try running the same equery command for something with lots
> of optional dependencies, such as Firefox, and you'll see  the  same  behaviour.
>

??? I know for a fact that I have changed USE flags in
/etc/portage/packages.use/* and seen those -/+ flags toggle polarity and
color.

I see in the ebuild (the line before your link):

      IUSE="ada +cxx debug doc *gpm* minimal profile static-libs test
    threads tinfo trace unicode"

The definition of IUSE I find is in ebuild(5):

      IUSE   This  should  be  a  list of any and all USE flags that are
    leveraged within
                   your build script.  The only USE flags that should
    not be  listed  here  are
                   arch  related flags (see KEYWORDS). Beginning with
    EAPI 1, it is possible to
                   prefix flags with + or - in order to create default 
    settings  that  respec-
                   tively  enable or disable the corresponding USE flags.

It seems to me from that that IUSE just catalogs the possible USE flags,
and a USE Flag is only a default if prefixed by -/+.



[-- Attachment #2: Type: text/html, Size: 6505 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-09 17:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-08 22:46 [gentoo-user] what does this equery display show me? n952162
2020-07-08 23:45 ` Ashley Dixon
2020-07-09 17:21   ` n952162

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox