On Mon, Mar 20, 2017 at 2:15 PM, Alexis Ballier <aball...@gentoo.org> wrote: > On Mon, 20 Mar 2017 13:40:51 -0400 > Mike Gilbert <flop...@gentoo.org> wrote: > >> On Mon, Mar 20, 2017 at 1:01 PM, Alexis Ballier <aball...@gentoo.org> >> wrote: >> > I just tried and with portage 2.3.5, FILESDIR is unset/empty in >> > global scope here. At least an 'ewarn "${FILESDIR} blah"' outputs >> > only ' blah'. >> >> I cannot reproduce this behavior. > > you made me wonder if i didn't make a typo in the variable name :) > > it seems not: > > $ git diff > diff --git a/media-plugins/alsa-plugins/alsa-plugins-1.1.1.ebuild > b/media-plugins/alsa-plugins/alsa-plugins-1.1.1.ebuild index > f1a03d4280..104de94104 100644 --- > a/media-plugins/alsa-plugins/alsa-plugins-1.1.1.ebuild +++ > b/media-plugins/alsa-plugins/alsa-plugins-1.1.1.ebuild @@ -41,6 +41,7 > @@ PATCHES=( "${FILESDIR}/${PN}-1.0.28-libav10.patch" > ) > > +ewarn "${FILESDIR} blah" > src_prepare() { > default > > > > $ emerge -pv alsa-plugins > > These are the packages that would be merged, in order: > > Calculating dependencies | * blah > -... done! > > > Exiting on signal 2 > > > $ emerge --version > Portage 2.3.5 (python 2.7.13-final-0, default/linux/amd64/13.0/desktop, > gcc-6.3.0, glibc-2.24-r1, 4.10.1 x86_64) >
Portage behavior is different during dependency calculation versus actually executing the ebuild.