public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Ionen Wolkens <ionen@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] [PATCH] 2021-11-23-mariadb-database-restore-maybe-required: add item
Date: Fri, 26 Nov 2021 10:34:54 -0500	[thread overview]
Message-ID: <YaD+njM5hjnV40Rm@eversor> (raw)
In-Reply-To: <76F637E0-58E7-4920-A120-BC25E9A8510F@gentoo.org>

[-- Attachment #1: Type: text/plain, Size: 1350 bytes --]

On Fri, Nov 26, 2021 at 12:55:10AM +0000, Sam James wrote:
> 
> 
> > On 25 Nov 2021, at 17:07, Thomas Deutschmann <whissi@gentoo.org> wrote:
> > 
> > On 2021-11-25 18:01, Piotr Karbowski wrote:
> >>> https://github.com/gentoo/gentoo/blob/master/sys-libs/glibc/glibc-2.34-r2.ebuild#L643
> >> Would you see something like this on more ebuilds, postgres, mysql, elasticsearch, or have proper FEATURE flag for it instead?
> >> It's all cool and giggles until you realize that even such random variable is not even prefixed with PORTAGE_ or anything, meaning it could be taken out of shell and meant for entirely different thing.
> > 
> > Yeah, sounds like the I_KNOW_WHAT_I_AM_DOING thing which you end up having enabled globally for various reasons.
> 
> Just like updating in a cron job is a not-great idea, setting this globally and not per-package via /etc/portage/env sounds rather cavalier.

Generally I don't think there should be a central catch-all variable for
this, ebuilds should use their own unlikely variable as needed if using
this route until a better solution.

e.g. MARIADB_I_ALLOW_THE_DESTRUCTION_OF_MY_DATABASE=yes

Could take it further and require that =yes be =${PV} so that it only
works once if forgotten.

Then users setting this in not-so-great ways are still unlikely to be
bitten by it.
-- 
ionen

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2021-11-26 15:35 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-25  3:21 [gentoo-dev] [PATCH] 2021-11-23-mariadb-database-restore-maybe-required: add item Thomas Deutschmann
2021-11-25  3:49 ` Mike Gilbert
2021-11-25  8:55   ` Marek Szuba
2021-11-25  9:39   ` Ulrich Mueller
2021-11-25 13:59   ` Thomas Deutschmann
2021-11-25 14:20     ` Mike Gilbert
2021-11-25 15:50       ` Pacho Ramos
2021-11-25 16:21         ` Piotr Karbowski
2021-11-25 16:47           ` David Seifert
2021-11-25 17:01             ` Piotr Karbowski
2021-11-25 17:07               ` Thomas Deutschmann
2021-11-26  0:55                 ` Sam James
2021-11-26 15:34                   ` Ionen Wolkens [this message]
2021-11-25 17:14               ` Mike Gilbert
2021-11-25 22:03               ` James Le Cuirot
2021-11-26  0:47     ` Sam James
2021-11-25 10:11 ` Georgy Yakovlev
2021-11-25 13:37 ` [gentoo-dev] " Thomas Deutschmann
2021-11-25 13:46   ` Joonas Niilola
2021-11-26  0:44   ` [gentoo-dev] " Sam James
2021-11-25 18:26 ` [gentoo-dev] [PATCHv2] " Thomas Deutschmann
2021-11-25 18:38   ` Mike Gilbert
2021-11-25 20:54   ` [gentoo-dev] [PATCHv3] " Thomas Deutschmann
2021-11-26 14:00     ` Joonas Niilola
2021-11-26 14:03       ` Ulrich Mueller
2021-11-26  0:49 ` [gentoo-dev] [PATCH] " Sam James

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=YaD+njM5hjnV40Rm@eversor \
    --to=ionen@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