From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 91C1E1382C5 for ; Sun, 28 Jun 2020 15:26:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 84D01E096B; Sun, 28 Jun 2020 15:26:14 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4A48FE0960 for ; Sun, 28 Jun 2020 15:26:14 +0000 (UTC) Received: by mail-il1-f180.google.com with SMTP id k1so11239861ils.2 for ; Sun, 28 Jun 2020 08:26:13 -0700 (PDT) X-Gm-Message-State: AOAM533nMkc6k8BpDFYL28fKNdR3dHgeD6k+jQbGkSySwC8ozalhM0fN mF6ibH8qbyegFvPKju44zorYwvgASeMD7PzhYWY= X-Google-Smtp-Source: ABdhPJySRXiv3iFfSU4zad+DhG8SNwkzQWhYTrHVgkJf9afulm0QDbkO0O1IDEr8skt43/NnTQpJ2KRis3X2C5n1cfY= X-Received: by 2002:a05:6e02:106a:: with SMTP id q10mr5104249ilj.30.1593357970877; Sun, 28 Jun 2020 08:26:10 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 References: <91a59b26-94e1-9494-3f2c-ca75e8ff1426@gentoo.org> In-Reply-To: <91a59b26-94e1-9494-3f2c-ca75e8ff1426@gentoo.org> From: Mike Gilbert Date: Sun, 28 Jun 2020 11:25:59 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [gentoo-dev] RFC: Standard build environment variables To: Gentoo Dev Cc: frp.bissey@gmail.com, Agostino Sarubbo Content-Type: text/plain; charset="UTF-8" X-Archives-Salt: a4b7c0ba-df75-43b1-b616-14b6306ee060 X-Archives-Hash: 1a7932b1558544202eee37e7941cacbb On Sun, Jun 28, 2020 at 8:18 AM Michael Orlitzky wrote: > > 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. Makes sense to me.