unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#52897] [PATCH] doc: Add instructions on upgrading the build daemon with doas.
@ 2021-12-30 11:11 jgart via Guix-patches via
  2021-12-30 14:55 ` zimoun
  0 siblings, 1 reply; 8+ messages in thread
From: jgart via Guix-patches via @ 2021-12-30 11:11 UTC (permalink / raw)
  To: 52897; +Cc: jgart

* doc/guix.texi (Upgrading Guix): Give instructions on upgrading the
build daemon with doas.
---
 doc/guix.texi | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index ebfcfee7f7..a5ae7dcbe7 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -2025,15 +2025,23 @@ guix pull
 @cindex upgrading the Guix daemon, on a foreign distro
 @cindex @command{guix pull} for the root user, on a foreign distro
 
-On a foreign distro, you can upgrade the build daemon by running:
+On a foreign distro, you can upgrade the build daemon by running the
+following command if using @command{sudo}:
 
 @example
 sudo -i guix pull
 @end example
 
 @noindent
-followed by (assuming your distro uses the systemd service management
-tool):
+Or, the following if using @command{doas}:
+
+@example
+doas -u root guix pull
+@end example
+
+@noindent
+After upgrading the build daemon, (assuming your distro uses the systemd
+service management tool):
 
 @example
 systemctl restart guix-daemon.service
-- 
2.34.1





^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [bug#52897] [PATCH] doc: Add instructions on upgrading the build daemon with doas.
  2021-12-30 11:11 [bug#52897] [PATCH] doc: Add instructions on upgrading the build daemon with doas jgart via Guix-patches via
@ 2021-12-30 14:55 ` zimoun
  2022-01-01  4:49   ` Morgan Smith
  0 siblings, 1 reply; 8+ messages in thread
From: zimoun @ 2021-12-30 14:55 UTC (permalink / raw)
  To: 52897; +Cc: jgart

Hi,

On Thu, 30 Dec 2021 at 06:11, jgart via Guix-patches via <guix-patches@gnu.org> wrote:

> +Or, the following if using @command{doas}:
> +
> +@example
> +doas -u root guix pull
> +@end example

Is it installed by default on some distro?

If not, it implies that ’doas’ user install ’doas’ instead of ’sudo’,
thus it means these users know how to replace ’sudo’ by whatever other
commands they would prefer.

(For instance, it is the first time I heard about this ’doas’
command. :-))

Cheers,
simon




^ permalink raw reply	[flat|nested] 8+ messages in thread

* [bug#52897] [PATCH] doc: Add instructions on upgrading the build daemon with doas.
  2021-12-30 14:55 ` zimoun
@ 2022-01-01  4:49   ` Morgan Smith
  2022-01-03 17:01     ` zimoun
  0 siblings, 1 reply; 8+ messages in thread
From: Morgan Smith @ 2022-01-01  4:49 UTC (permalink / raw)
  To: zimoun; +Cc: jgart, 52897

zimoun <zimon.toutoune@gmail.com> writes:
> Is it installed by default on some distro?

It's originally made by the openBSD guys I think and that's probably the
only place it is pre-installed. (If it matters please fact check me as
that's from memory)

> If not, it implies that ’doas’ user install ’doas’ instead of ’sudo’,
> thus it means these users know how to replace ’sudo’ by whatever other
> commands they would prefer.

Since 99.9% of usecases for sudo and doas are simply "doas thing" I have
no clue how to use either of them and appreciate documentation telling
me what flags to put.

I've explicitly removed sudo from my machine as supposedly sudo is a
large complex codebase that likely has bugs (although that's probably
just openBSD propaganda).

That being said, it is kinda niche.  I say this is a good patch but I
also wouldn't fight dissenters that hard.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* [bug#52897] [PATCH] doc: Add instructions on upgrading the build daemon with doas.
  2022-01-01  4:49   ` Morgan Smith
@ 2022-01-03 17:01     ` zimoun
  2022-07-07 18:27       ` bug#52897: " Maxim Cournoyer
  0 siblings, 1 reply; 8+ messages in thread
From: zimoun @ 2022-01-03 17:01 UTC (permalink / raw)
  To: Morgan Smith; +Cc: jgart, 52897

Hi,

On Fri, 31 Dec 2021 at 23:49, Morgan Smith <Morgan.J.Smith@outlook.com> wrote:

> I've explicitly removed sudo from my machine as supposedly sudo is a
> large complex codebase that likely has bugs (although that's probably
> just openBSD propaganda).

Guix documentation uniquely relies on ’sudo’.  And for instance, I was
not aware of such propaganda. :-)

Well, I do not have an opinion, but AFAIK, Guix does not work on the top
of OpenBSD (yet! who knows if someone will not port a BSD kernel with a
GNU userland as Debian did some time ago [1] ;-))

For me, it is a niche and for consistency, all the commands using ’sudo’
should also provide the ’doas’ way.  And I am not convinced the burden
is worth.  Well, I do not have an opinion.

1: <https://www.debian.org/ports/kfreebsd-gnu/index.en.html>


Cheers,
simon




^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#52897: [PATCH] doc: Add instructions on upgrading the build daemon with doas.
  2022-01-03 17:01     ` zimoun
@ 2022-07-07 18:27       ` Maxim Cournoyer
  2022-07-08  0:15         ` [bug#52897] " jgart via Guix-patches via
  0 siblings, 1 reply; 8+ messages in thread
From: Maxim Cournoyer @ 2022-07-07 18:27 UTC (permalink / raw)
  To: zimoun; +Cc: Morgan Smith, 52897-done, jgart

Hello,

zimoun <zimon.toutoune@gmail.com> writes:

> Hi,
>
> On Fri, 31 Dec 2021 at 23:49, Morgan Smith <Morgan.J.Smith@outlook.com> wrote:
>
>> I've explicitly removed sudo from my machine as supposedly sudo is a
>> large complex codebase that likely has bugs (although that's probably
>> just openBSD propaganda).
>
> Guix documentation uniquely relies on ’sudo’.  And for instance, I was
> not aware of such propaganda. :-)
>
> Well, I do not have an opinion, but AFAIK, Guix does not work on the top
> of OpenBSD (yet! who knows if someone will not port a BSD kernel with a
> GNU userland as Debian did some time ago [1] ;-))
>
> For me, it is a niche and for consistency, all the commands using ’sudo’
> should also provide the ’doas’ way.  And I am not convinced the burden
> is worth.  Well, I do not have an opinion.

I'm also not convinced it brings much, especially since Guix can't be
used where 'doas' is likely to be encountered (BSDs).

Closing.

Thanks for the discussion!

Maxim




^ permalink raw reply	[flat|nested] 8+ messages in thread

* [bug#52897] [PATCH] doc: Add instructions on upgrading the build daemon with doas.
  2022-07-07 18:27       ` bug#52897: " Maxim Cournoyer
@ 2022-07-08  0:15         ` jgart via Guix-patches via
  2022-07-09  1:36           ` Maxim Cournoyer
  0 siblings, 1 reply; 8+ messages in thread
From: jgart via Guix-patches via @ 2022-07-08  0:15 UTC (permalink / raw)
  To: Maxim Cournoyer; +Cc: Morgan Smith, 52897-done, zimoun

On Thu, 07 Jul 2022 14:27:47 -0400 Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:
> Hello,
> 
> zimoun <zimon.toutoune@gmail.com> writes:
> 
> > Hi,
> >
> > On Fri, 31 Dec 2021 at 23:49, Morgan Smith <Morgan.J.Smith@outlook.com> wrote:
> >
> >> I've explicitly removed sudo from my machine as supposedly sudo is a
> >> large complex codebase that likely has bugs (although that's probably
> >> just openBSD propaganda).
> >
> > Guix documentation uniquely relies on ’sudo’.  And for instance, I was
> > not aware of such propaganda. :-)
> >
> > Well, I do not have an opinion, but AFAIK, Guix does not work on the top
> > of OpenBSD (yet! who knows if someone will not port a BSD kernel with a
> > GNU userland as Debian did some time ago [1] ;-))
> >
> > For me, it is a niche and for consistency, all the commands using ’sudo’
> > should also provide the ’doas’ way.  And I am not convinced the burden
> > is worth.  Well, I do not have an opinion.
> 
> I'm also not convinced it brings much, especially since Guix can't be
> used where 'doas' is likely to be encountered (BSDs).

FWIW, I use doas on Debian and alpine linux was considering replacing sudo with doas ;()

But, yes. This is low priority for me right now so that's fine to close it :)

I may experiment with doas in a guix channel instead.

ps

Here's the arch wiki page on doas:

https://wiki.archlinux.org/title/Doas

Some memey resources of questionable merit on doas:

https://www.techwarrant.com/alpine-linux-wants-to-replace-sudo-command-with-openbsds-doas/
https://invidious.projectsegfau.lt/watch?v=brXd12LstgA
https://invidious.nerdvpn.de/watch?v=A5buxcYXp7k









^ permalink raw reply	[flat|nested] 8+ messages in thread

* [bug#52897] [PATCH] doc: Add instructions on upgrading the build daemon with doas.
  2022-07-08  0:15         ` [bug#52897] " jgart via Guix-patches via
@ 2022-07-09  1:36           ` Maxim Cournoyer
  2022-07-09  4:53             ` jgart via Guix-patches via
  0 siblings, 1 reply; 8+ messages in thread
From: Maxim Cournoyer @ 2022-07-09  1:36 UTC (permalink / raw)
  To: jgart; +Cc: Morgan Smith, 52897-done, zimoun

Hi jgart,

jgart <jgart@dismail.de> writes:

> On Thu, 07 Jul 2022 14:27:47 -0400 Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:
>> Hello,
>> 
>> zimoun <zimon.toutoune@gmail.com> writes:
>> 
>> > Hi,
>> >
>> > On Fri, 31 Dec 2021 at 23:49, Morgan Smith <Morgan.J.Smith@outlook.com> wrote:
>> >
>> >> I've explicitly removed sudo from my machine as supposedly sudo is a
>> >> large complex codebase that likely has bugs (although that's probably
>> >> just openBSD propaganda).
>> >
>> > Guix documentation uniquely relies on ’sudo’.  And for instance, I was
>> > not aware of such propaganda. :-)
>> >
>> > Well, I do not have an opinion, but AFAIK, Guix does not work on the top
>> > of OpenBSD (yet! who knows if someone will not port a BSD kernel with a
>> > GNU userland as Debian did some time ago [1] ;-))
>> >
>> > For me, it is a niche and for consistency, all the commands using ’sudo’
>> > should also provide the ’doas’ way.  And I am not convinced the burden
>> > is worth.  Well, I do not have an opinion.
>> 
>> I'm also not convinced it brings much, especially since Guix can't be
>> used where 'doas' is likely to be encountered (BSDs).
>
> FWIW, I use doas on Debian and alpine linux was considering replacing sudo with doas ;()
>
> But, yes. This is low priority for me right now so that's fine to close it :)
>
> I may experiment with doas in a guix channel instead.

Note that me closing this issue was not against having 'doas' in Guix
(you are welcome to contribute a package for it if you like), it was
against offering 'doas' equivalents to 'sudo' in our documentation.

Thanks,

Maxim




^ permalink raw reply	[flat|nested] 8+ messages in thread

* [bug#52897] [PATCH] doc: Add instructions on upgrading the build daemon with doas.
  2022-07-09  1:36           ` Maxim Cournoyer
@ 2022-07-09  4:53             ` jgart via Guix-patches via
  0 siblings, 0 replies; 8+ messages in thread
From: jgart via Guix-patches via @ 2022-07-09  4:53 UTC (permalink / raw)
  To: Maxim Cournoyer; +Cc: Morgan Smith, 52897-done, zimoun

On Fri, 08 Jul 2022 21:36:33 -0400 Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:
> Note that me closing this issue was not against having 'doas' in Guix
> (you are welcome to contribute a package for it if you like), it was
> against offering 'doas' equivalents to 'sudo' in our documentation.

Hi Maxim,

doas is already packaged.

The program is called opendoas.

`guix show opendoas`

But, yes, I understood not including it in the documentation. That's fine.

It might be nice to have a service in the future that allows a user to switch between sudo and doas.

I haven't gotten around to that yet.

all best,

jgart




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-07-09  4:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-30 11:11 [bug#52897] [PATCH] doc: Add instructions on upgrading the build daemon with doas jgart via Guix-patches via
2021-12-30 14:55 ` zimoun
2022-01-01  4:49   ` Morgan Smith
2022-01-03 17:01     ` zimoun
2022-07-07 18:27       ` bug#52897: " Maxim Cournoyer
2022-07-08  0:15         ` [bug#52897] " jgart via Guix-patches via
2022-07-09  1:36           ` Maxim Cournoyer
2022-07-09  4:53             ` jgart via Guix-patches via

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).