Package Details: devtools-doas 1:1.3.2-1

Git Clone URL: https://aur.archlinux.org/devtools-doas.git (read-only, click to copy)
Package Base: devtools-doas
Description: Tools for Arch Linux package maintainers (patched for opendoas)
Upstream URL: https://gitlab.archlinux.org/archlinux/devtools
Licenses: GPL-3.0-or-later
Conflicts: devtools
Provides: devtools
Replaces: devtools-git-poc
Submitter: vladaviedov
Maintainer: vladaviedov
Last Packager: vladaviedov
Votes: 2
Popularity: 1.03
First Submitted: 2024-08-24 16:50 (UTC)
Last Updated: 2025-02-26 20:56 (UTC)

Required by (32)

Sources (3)

Latest Comments

vladaviedov commented on 2025-08-11 19:52 (UTC)

@oech3 I cannot understand why this package offends you so much. Yes, I am aware that there are a billion different hacks which will let me bypass the problem. The trend in other Archlinux utils have been to remove the hard dependency on sudo by using PACMAN_AUTH. devtools just happens to be the only one where this has not been implemented yet.

oech3 commented on 2025-08-07 05:47 (UTC)

https://aur.archlinux.org/packages/run0-sudo-shim-git

oech3 commented on 2025-07-19 08:28 (UTC)

Is this only patch shell scripts? If so, is this able to be pacman hook and avoid full build?

vladaviedov commented on 2025-07-13 01:52 (UTC) (edited on 2025-07-13 01:53 (UTC) by vladaviedov)

@oech3 It doesn't matter to me if it's written in C or Rust, I prefer to not use sudo, in general.

I was talking about packages like opendoas-sudo, which provide a symlink and, more importantly, satisfied the dependency for sudo without having the program actually installed on the system. There were a few more which did the same and were removed by AUR maintainers.

There has been some scattered effort to make devtools more agnostic to the different SUID tools. This is something already the case for makepkg, which uses the PACMAN_AUTH variable to choose a SUID program. The patch is something I wrote to contribute to this merge request, but decided to publish as a AUR package meanwhile: https://gitlab.archlinux.org/archlinux/devtools/-/merge_requests/260

oech3 commented on 2025-07-08 04:30 (UTC)

I'm not sure that do you like sudo-rs. But symlinking sudo-rs to $PATH/sudo should work which just ignores --preserve-env.

AUR is not hostile for package with proper upstream URL (e.g. doas-sudo-shim which does not support the flag yet).

It seems there was a requests to support run0 at devtools, but rejected.

vladaviedov commented on 2025-07-08 04:06 (UTC)

@oech3 If I recall correctly, devtools does actually need to pass some environment variables through the sudo calls. Even if that wasn't the case, a wrapper is not an elegant solution, especially with how hostile AUR is to those kind of packages.

oech3 commented on 2025-07-04 16:12 (UTC) (edited on 2025-07-04 16:12 (UTC) by oech3)

I consider most use case of this could be covered by putting $PATH/sudo wrapper removes --preserve-env*.