GNU bug report logs - #75529
Support `nixos-rebuild --use-remote-sudo` in `comint-password-prompt-regexp`

Previous Next

Package: emacs;

Reported by: s.walinder <at> gmail.com

Date: Mon, 13 Jan 2025 00:45:02 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#75529: closed (Support `nixos-rebuild --use-remote-sudo` in
 `comint-password-prompt-regexp`)
Date: Mon, 13 Jan 2025 12:45:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 13 Jan 2025 14:43:28 +0200
with message-id <868qrex4sv.fsf <at> gnu.org>
and subject line Re: bug#75529: Support `nixos-rebuild --use-remote-sudo` in `comint-password-prompt-regexp`
has caused the debbugs.gnu.org bug report #75529,
regarding Support `nixos-rebuild --use-remote-sudo` in `comint-password-prompt-regexp`
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
75529: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=75529
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: s.walinder <at> gmail.com
To: bug-gnu-emacs <at> gnu.org
Subject: Support `nixos-rebuild --use-remote-sudo` in
 `comint-password-prompt-regexp`
Date: Mon, 13 Jan 2025 01:44:20 +0100
[Message part 3 (text/plain, inline)]
Tags: patch

Hello!

In NixOS, when running the command `nixos-rebuild` with the argument `--use-remote-sudo`, the password is asked for with the prompt "bash Password:".

This adds support for this in `comint-password-prompt-regexp`.

I added a test also.

Thoughts?

In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.43, cairo version 1.18.2)
Repository revision: e41a7d8127423307018f369e8739319f1de9b3fa
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101014
System Description: NixOS 24.11 (Vicuna)

Configured using:
 'configure
 --prefix=/nix/store/wv2ap96hvr0ilf575mwszsva6rvgqdi1-emacs-git-20250107.0
 --disable-build-details --with-modules --with-x-toolkit=gtk3
 --with-cairo --with-xft --with-compress-install
 --with-toolkit-scroll-bars --with-native-compilation
 --without-imagemagick --with-mailutils --without-small-ja-dic
 --with-tree-sitter --with-xinput2 --without-xwidgets --with-dbus
 --with-selinux'

[0001-Added-nixos-rebuild-use-remote-sudo-password-prompt.patch (text/patch, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Sebastian <s.walinder <at> gmail.com>
Cc: 75529-done <at> debbugs.gnu.org
Subject: Re: bug#75529: Support `nixos-rebuild --use-remote-sudo` in
 `comint-password-prompt-regexp`
Date: Mon, 13 Jan 2025 14:43:28 +0200
> From: Sebastian <s.walinder <at> gmail.com>
> Date: Mon, 13 Jan 2025 02:59:04 +0100
> 
> Yeah, this is wrong, my bad.
> 
> Please close this patch.

Done, thanks.


This bug report was last modified 161 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.