public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] RFC: Standard build environment variables
@ 2020-06-28 12:18 Michael Orlitzky
  2020-06-28 14:52 ` Kent Fredric
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Michael Orlitzky @ 2020-06-28 12:18 UTC (permalink / raw
  To: gentoo-dev; +Cc: frp.bissey, ago

As many of you probably know, ago@ has been expanding the scope of our
CFLAGS/CC support to include some other common build variables:

  * CC
  * CXX
  * AR
  * CPP
  * NM
  * RANLIB
  * AS
  * LD

Some of those are POSIX standards[0],

  * CC
  * AR

Others are de-facto GNU make standards[1],

  * CXX
  * CPP
  * AS

and a few are de-facto GNU libtool standards[2]:

  * NM
  * RANLIB
  * LD

If we expect them all to work properly in Gentoo, we have to agree on
what they mean, and thus how they should be injected into build systems.
For example, we had a problem with sci-mathematics/pari, whose upstream
is using the LD environment variable for something other than what GNU
libtool uses it for. With LD set to something libtooly in the
environment, the pari build fails. We can solve that by unsetting LD in
the ebuild, but for that to be The Right Thing To Do, we should be
expecting LD to contain something libtooly, and thus something
inappropriate to be passed to the pari build.

To avoid these issues, I suggest creating a list of "Gentoo environment
variables" in the devmanual with descriptions of how they should be used
and pointers to the references (for why we chose that meaning). That way
a user can export LD, for example, and know that it will be used how he
thinks it will be used.


[0] https://pubs.opengroup.org/onlinepubs/009695399/utilities/make.html

[1]
https://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html

[2] https://www.gnu.org/software/libtool/manual/libtool.html


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

end of thread, other threads:[~2020-07-01 19:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-28 12:18 [gentoo-dev] RFC: Standard build environment variables Michael Orlitzky
2020-06-28 14:52 ` Kent Fredric
2020-06-28 15:25 ` Mike Gilbert
2020-06-29  8:44 ` [gentoo-dev] " Agostino Sarubbo
2020-06-29 10:04   ` Ulrich Mueller
2020-06-30 16:22 ` [gentoo-dev] " Matthew Thode
2020-07-01 13:36   ` Michael Orlitzky
2020-07-01 19:04     ` Rich Freeman

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