Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: Gentoo Dev <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] [PATCH] 2021-11-23-mariadb-database-restore-maybe-required: add item
Date: Thu, 25 Nov 2021 17:14:36
Message-Id: CAJ0EP40kZsSOU-zANr0NWOVsYL8Qzn472_WspdTakVzkD+_1QA@mail.gmail.com
In Reply to: Re: [gentoo-dev] [PATCH] 2021-11-23-mariadb-database-restore-maybe-required: add item by Piotr Karbowski
1 On Thu, Nov 25, 2021 at 12:01 PM Piotr Karbowski <slashbeast@g.o> wrote:
2 >
3 > > https://github.com/gentoo/gentoo/blob/master/sys-libs/glibc/glibc-2.34-r2.ebuild#L643
4 >
5 > Would you see something like this on more ebuilds, postgres, mysql,
6 > elasticsearch, or have proper FEATURE flag for it instead?
7 >
8 > It's all cool and giggles until you realize that even such random
9 > variable is not even prefixed with PORTAGE_ or anything, meaning it
10 > could be taken out of shell and meant for entirely different thing.
11
12 Another problem with such magic variables is that they are ineffective
13 when installing binpkgs. During pkg_preinst, portage will restore the
14 environment variables that were present when the package was built,
15 and ignore anything you have set in the environment since then.