public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alexis Ballier <aballier@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Re: [PATCH] sys-devel/autoconf: Convert from eblits into an eclass, #586424
Date: Mon, 20 Mar 2017 12:19:37 +0100	[thread overview]
Message-ID: <20170320121937.7fc31770@gentoo.org> (raw)
In-Reply-To: <22735.42420.523393.768428@a1i15.kph.uni-mainz.de>

On Mon, 20 Mar 2017 10:49:40 +0100
Ulrich Mueller <ulm@gentoo.org> wrote:

> >>>>> On Mon, 20 Mar 2017, Mike Frysinger wrote:  
> 
> > obvious NAK until you sort out the open questions already raised
> > about the backwards breaking change you're trying to land in PMS.  
> 
> There are indeed some PMS patches pending about DISTDIR, FILESDIR,
> WORKDIR, and S, but I fail to see where they would break backwards
> compatibility.
> 
> If you look at the last council approved PMS version [1], you'll find
> that DISTDIR and FILESDIR are only valid in src_* phases and are not
> guaranteed to have a consistent value across phases. The problem with
> this is that it would not allow assignment of the PATCHES array in
> global scope, e.g.:
> 
> PATCHES=( "${DISTDIR}"/foo.patch "${WORKDIR}"/bar.patch )
> 
> After the PMS change, we will have the same properties for DISTDIR,
> FILESDIR, WORKDIR, and S. Namely:
> 
> - All four variables will be valid in src_* phases and in global scope
> - They will have a consistent value in the ebuild environment
> - The actual directories must not be accessed in global scope
> 
> One could argue that this was overseen when EAPI 6 was approved.
> In any case, ebuilds will be able to rely on more things than before.

Please correct me if I'm wrong, but then portage's behavior of sending
empty FILESDIR when it should not be used is wrong after that, right ?

The idea behind FILESDIR being valid only in src_* phases is to allow
portage-tree-less binpkgs to work. Not sure if that's even possible
right now, but that is definitely a desirable goal.

If I understand correctly, the change you mention would mean FILESDIR
will be "constant". Which is good since that'd avoid regenerating the
environment. However, this breaks autoconf ebuild relying on FILESDIR
being empty when invalid and this would trigger the 'source
$FILESDIR/... || die' part making the ebuild die in global scope.

There are probably simpler fixes than the proposed patches, but this
does indeed raise the question whether this is a backwards breaking
change or not.

Alexis.


  reply	other threads:[~2017-03-20 11:20 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-16  9:38 [gentoo-dev] [PATCH] sys-devel/autoconf: Convert from eblits into an eclass, #586424 Michał Górny
2017-03-16 10:07 ` Ulrich Mueller
2017-03-16 12:19   ` Alexis Ballier
2017-03-16 12:57     ` Ulrich Mueller
2017-03-16 18:42       ` Alexis Ballier
2017-03-16 18:58         ` Michał Górny
2017-03-16 22:48           ` Alexis Ballier
2017-03-16 20:14         ` Ulrich Mueller
2017-03-16 23:12           ` Alexis Ballier
2017-03-16 12:15 ` Alexis Ballier
2017-03-16 12:59   ` Michał Górny
2017-03-16 13:30 ` [gentoo-dev] [PATCH v2] " Michał Górny
2017-03-20  8:35 ` [gentoo-dev] Re: [PATCH] " Mike Frysinger
2017-03-20  9:49   ` Ulrich Mueller
2017-03-20 11:19     ` Alexis Ballier [this message]
2017-03-20 14:12       ` Ulrich Mueller
2017-03-20 17:01         ` Alexis Ballier
2017-03-20 17:40           ` Mike Gilbert
2017-03-20 18:15             ` Alexis Ballier
2017-03-20 18:26               ` Mike Gilbert
2017-03-20 18:24           ` Michał Górny
2017-03-20 21:12             ` Alexis Ballier
2017-03-20 21:19               ` Michał Górny
2017-03-20 21:30                 ` Alexis Ballier
2017-03-20 19:25           ` Ulrich Mueller
2017-03-20 21:14             ` Alexis Ballier
2017-03-21  8:28             ` Joshua Kinard
2017-03-21  8:43               ` Kristian Fiskerstrand
2017-03-21  9:17                 ` Alexis Ballier
2017-03-21  9:41                   ` Kristian Fiskerstrand
2017-03-21 10:00                     ` Alexis Ballier
2017-03-21 10:16                       ` Kristian Fiskerstrand
2017-03-21 21:54                 ` Joshua Kinard
2017-03-21 10:24   ` Andreas K. Huettel
2017-03-23  9:41     ` Andreas K. Huettel
2017-03-23  9:51       ` Alexis Ballier
2017-03-23 10:55         ` Andreas K. Huettel
2017-03-23 13:36           ` Alexis Ballier
2017-03-23 16:36             ` Michael Orlitzky
2017-03-23 18:41               ` Alexis Ballier
2017-03-23 18:46                 ` Ciaran McCreesh
2017-03-23 19:12                   ` Alexis Ballier
2017-03-23 19:17                     ` Ciaran McCreesh
2017-03-23 19:49                       ` Alexis Ballier
2017-03-23 19:53                         ` Ciaran McCreesh
2017-03-23 16:53         ` Michał Górny
2017-03-23 18:52           ` Alexis Ballier
2017-03-23 19:00             ` Ciaran McCreesh
2017-03-23 19:00             ` Michał Górny
2017-03-23 20:22               ` Alexis Ballier
2017-03-23 20:30                 ` Ciaran McCreesh
2017-03-23 21:37                   ` Alexis Ballier
2017-03-23 21:45                     ` Ciaran McCreesh
2017-03-24 10:23                       ` Alexis Ballier
2017-03-23 21:20                 ` Michael Orlitzky
2017-03-23 21:42                   ` Alexis Ballier
2017-03-23 21:45                     ` David Seifert
2017-03-24  8:57                       ` Alexis Ballier
2017-03-24 10:05                         ` Ulrich Mueller
2017-03-24 10:36                           ` Alexis Ballier
2017-03-24  1:58                     ` M. J. Everitt
2017-03-24 19:43 ` [gentoo-dev] " Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170320121937.7fc31770@gentoo.org \
    --to=aballier@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox