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 -/+.


Reply via email to