Compare commits

..

18 Commits

Author SHA1 Message Date
Aaron Rainbolt
7a69402c2a
Drop incompatible environment variable workaround patch 2026-02-20 10:21:33 -05:00
Aaron Rainbolt
42ca6a0f0d
Bump build deps 2026-02-20 10:08:38 -05:00
Aaron Rainbolt
98cbba94c6
Remove Rules-Requires-Root 2026-02-20 10:07:57 -05:00
Aaron Rainbolt
78d261c818
Bump Standards-Version 2026-02-20 10:07:41 -05:00
Aaron Rainbolt
89a3a9b845
Update copyright file 2026-02-20 10:07:18 -05:00
Aaron Rainbolt
e81a7f1a1d
Bump version for new upstream release 2026-02-20 10:06:40 -05:00
Aaron Rainbolt
9c5702dca0
Use debian/watch version 5 (taken from Debian's packages) 2025-11-18 13:21:15 -06:00
Rik Mills
e24bc04d7b Drop recommends on lxqt-qtplugin.
Makes lxqt-sudo usable on flavours other than Lubuntu without
pulling in significant other parts of lxqt onto images.
2025-11-03 15:43:45 +00:00
Aaron Rainbolt
0cb178423e
Update build deps 2025-07-31 16:33:36 -05:00
Aaron Rainbolt
fd268f6b00
Bump Standards-Version 2025-07-31 16:32:49 -05:00
Aaron Rainbolt
fbe3ac6a44
Update copyright file 2025-07-31 16:32:22 -05:00
Aaron Rainbolt
b423a369d7
Bump version for new upstream release 2025-07-31 16:31:23 -05:00
321e0b5077 Update Standards-Version to 4.7.1, no changes needed. 2025-02-21 17:04:13 -06:00
768eb12128 No-change rebuild for lxqt-build-tools C++17 -> C++20. 2025-02-21 16:53:07 -06:00
f7a1bf9ad9 Upload to Plucky 2024-11-15 15:34:45 -06:00
52c1d9a920 Make Lintian happy 2024-11-05 18:21:44 -06:00
03cbed1a58 New upstream version. 2024-11-05 18:15:40 -06:00
146074a151 Update the patch to pass through env vars. 2024-11-05 18:14:07 -06:00
7 changed files with 121 additions and 148 deletions

53
debian/changelog vendored
View File

@ -1,3 +1,56 @@
lxqt-sudo (2.3.0-0ubuntu1) resolute; urgency=medium
* New upstream release.
- Update build dependencies.
- Drop bypass-envvar-allowlist.patch due to incompatibility with sudo-rs.
* Update copyright file.
* Update Standards-Version to 4.7.3, no changes needed.
* Remove unnecessary Rules-Requires-Root.
-- Aaron Rainbolt <arraybolt3@ubuntu.com> Fri, 20 Feb 2026 10:05:56 -0500
lxqt-sudo (2.2.0-0ubuntu2) resolute; urgency=medium
* Drop superfluous recommends on lxqt-qtplugin. Makes lxqt-sudo usable
on flavours other than Lubuntu without pulling in significant other
parts of lxqt onto images.
-- Rik Mills <rikmills@kde.org> Mon, 03 Nov 2025 15:40:14 +0000
lxqt-sudo (2.2.0-0ubuntu1) questing; urgency=medium
* New upstream release.
- Update build dependencies.
* Update copyright file.
* Update Standards-Version to 4.7.2, no changes needed.
-- Aaron Rainbolt <arraybolt3@ubuntu.com> Thu, 31 Jul 2025 16:30:59 -0500
lxqt-sudo (2.1.0-0ubuntu3) plucky; urgency=medium
* Update Standards-Version to 4.7.1, no changes needed.
-- Simon Quigley <tsimonq2@ubuntu.com> Fri, 21 Feb 2025 16:53:25 -0600
lxqt-sudo (2.1.0-0ubuntu2) plucky; urgency=medium
* No-change rebuild for lxqt-build-tools C++17 -> C++20.
-- Simon Quigley <tsimonq2@ubuntu.com> Fri, 03 Jan 2025 03:59:31 -0600
lxqt-sudo (2.1.0-0ubuntu1) plucky; urgency=medium
* New upstream version.
- Bump build dependencies.
-- Simon Quigley <tsimonq2@ubuntu.com> Fri, 15 Nov 2024 15:33:17 -0600
lxqt-sudo (2.0.0-0ubuntu2) plucky; urgency=medium
* Update the patch to pass through env vars.
-- Simon Quigley <tsimonq2@ubuntu.com> Wed, 16 Oct 2024 17:09:37 -0500
lxqt-sudo (2.0.0-0ubuntu1) oracular; urgency=medium lxqt-sudo (2.0.0-0ubuntu1) oracular; urgency=medium
* New upstream release. * New upstream release.

15
debian/control vendored
View File

@ -1,6 +1,6 @@
Source: lxqt-sudo Source: lxqt-sudo
Maintainer: Lubuntu Developers <lubuntu-devel@lists.ubuntu.com> Maintainer: Lubuntu Developers <lubuntu-devel@lists.ubuntu.com>
XSBC-Original-Maintainer: LXQt Packaging Team <pkg-lxqt-devel@lists.alioth.debian.org> Original-Maintainer: LXQt Packaging Team <pkg-lxqt-devel@lists.alioth.debian.org>
Uploaders: Alf Gaida <agaida@siduction.org>, Uploaders: Alf Gaida <agaida@siduction.org>,
ChangZhuo Chen (陳昌倬) <czchen@debian.org>, ChangZhuo Chen (陳昌倬) <czchen@debian.org>,
Andrew Lee (李健秋) <ajqlee@debian.org>, Andrew Lee (李健秋) <ajqlee@debian.org>,
@ -10,21 +10,20 @@ Section: x11
Priority: optional Priority: optional
Build-Depends: debhelper-compat (= 13), Build-Depends: debhelper-compat (= 13),
libkf6windowsystem-dev, libkf6windowsystem-dev,
liblxqt2-dev (>= 1.4.0), liblxqt2-dev (>= 2.3.0),
libx11-dev, libx11-dev,
qt6-svg-dev qt6-svg-dev (>= 6.6.0)
Standards-Version: 4.7.0 Standards-Version: 4.7.3
Vcs-Browser: https://git.lubuntu.me/Lubuntu/lxqt-sudo-packaging Vcs-Browser: https://git.lubuntu.me/Lubuntu/lxqt-sudo-packaging
Vcs-Git: https://git.lubuntu.me/Lubuntu/lxqt-sudo-packaging.git Vcs-Git: https://git.lubuntu.me/Lubuntu/lxqt-sudo-packaging.git
XS-Debian-Vcs-Browser: https://salsa.debian.org/cgit/pkg-team/lxqt-sudo Debian-Vcs-Browser: https://salsa.debian.org/cgit/pkg-team/lxqt-sudo
XS-Debian-Vcs-Git: https://salsa.debian.org/lxqt-team/lxqt-sudo.git Debian-Vcs-Git: https://salsa.debian.org/lxqt-team/lxqt-sudo.git
Homepage: https://github.com/lxqt/lxqt-sudo Homepage: https://github.com/lxqt/lxqt-sudo
Rules-Requires-Root: no
Package: lxqt-sudo Package: lxqt-sudo
Architecture: any Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends} Depends: ${misc:Depends}, ${shlibs:Depends}
Recommends: lxqt-qtplugin, lxqt-sudo-l10n Recommends: lxqt-sudo-l10n
Description: Graphical Qt frontend for plain sudo Description: Graphical Qt frontend for plain sudo
lxqt-sudo is a graphical Qt frontend for plain sudo(8) (for requesting lxqt-sudo is a graphical Qt frontend for plain sudo(8) (for requesting
optional password in GUI fashion). When invoked it simply spawns child sudo optional password in GUI fashion). When invoked it simply spawns child sudo

7
debian/copyright vendored
View File

@ -3,15 +3,16 @@ Upstream-Name: lxqt-sudo
Source: https://github.com/lxqt/lxqt-sudo Source: https://github.com/lxqt/lxqt-sudo
Files: * Files: *
Copyright: 2015-2024 LXQt team Copyright: 2015-2025 LXQt team
2015-2018 Palo Kisa <palo.kisa@gmail.com> 2015-2018 Palo Kisa <palo.kisa@gmail.com>
License: LGPL-2.1+ License: LGPL-2.1+
Files: debian/* Files: debian/*
Copyright: 2021-2024 Lubuntu Developers <lubuntu-devel@lists.ubuntu.com> Copyright: 2021-2025 Lubuntu Developers <lubuntu-devel@lists.ubuntu.com>
2015-2019 Alf Gaida <agaida@siduction.org> 2015-2019 Alf Gaida <agaida@siduction.org>
2015 Andrew Lee (李健秋) <ajqlee@debian.org> 2015 Andrew Lee (李健秋) <ajqlee@debian.org>
2015 ChangZhuo Chen (陳昌倬) <czchen@debian.org> 2015-2025 ChangZhuo Chen (陳昌倬) <czchen@debian.org>
2025-2026 Aaron Rainbolt <arraybolt3@ubuntu.com>
License: LGPL-2.1+ License: LGPL-2.1+
License: LGPL-2.1+ License: LGPL-2.1+

View File

@ -1,80 +0,0 @@
Description: Add a -E option, exposing all environment variables
Some system tools (such as ubuntu-release-upgrader) read XDG* (etc.), so allow the user to opt-in to preserving those.
Author: Simon Quigley <tsimonq2@lubuntu.me>
Origin: upstream
Forwarded: https://github.com/lxqt/lxqt-sudo/pull/204
Last-Update: 2023-10-11
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/sudo.cpp
+++ b/sudo.cpp
@@ -83,6 +83,7 @@ namespace
" -s|--su Use %3(1) as backend.\n"
" -d|--sudo Use %2(8) as backend.\n"
" -a|--doas Use %4(1) as backend.\n"
+ " -E|--keep-env Preserve all existing environment variables.\n"
" command Command to run.\n"
" arguments Optional arguments for command.\n\n").arg(app_master).arg(sudo_prog).arg(su_prog).arg(doas_prog);
if (!err.isEmpty())
@@ -113,8 +114,13 @@ namespace
};
assert_helper h;
- inline std::string env_workarounds()
+ inline std::string env_workarounds(bool preserveEnv)
{
+ if (preserveEnv) {
+ std::cerr << LXQTSUDO << ": Preserving all environment variables.\n";
+ return "";
+ }
+
std::cerr << LXQTSUDO << ": Stripping child environment except for: ";
std::ostringstream left_env_params;
std::copy(ALLOWED_VARS, ALLOWED_END - 1, std::ostream_iterator<const char *>{left_env_params, ","});
@@ -195,6 +201,10 @@ int Sudo::main()
{
mBackend = BACK_DOAS;
mArgs.removeAt(0);
+ } else if (QStringLiteral("-E") == arg1 || QStringLiteral("--keep-env") == arg1)
+ {
+ mPreserveEnv = true;
+ mArgs.removeAt(0);
}
}
//any other arguments we simply forward to su/sudo
@@ -286,11 +296,11 @@ void Sudo::child()
switch (mBackend)
{
case BACK_SUDO:
- preserve_env_param = "--preserve-env=";
-
- preserve_env_param += env_workarounds();
-
- *(param_arg++) = preserve_env_param.c_str(); //preserve environment
+ if(!mPreserveEnv) {
+ preserve_env_param = "--preserve-env=";
+ preserve_env_param += env_workarounds(mPreserveEnv);
+ *(param_arg++) = preserve_env_param.c_str(); //preserve environment
+ }
*(param_arg++) = "/bin/sh";
break;
case BACK_DOAS:
@@ -298,7 +308,7 @@ void Sudo::child()
[[fallthrough]];
case BACK_SU:
case BACK_NONE:
- env_workarounds();
+ env_workarounds(mPreserveEnv);
break;
}
--- a/sudo.h
+++ b/sudo.h
@@ -81,6 +81,7 @@ private:
int mChildPid;
int mPwdFd;
int mRet;
+ bool mPreserveEnv = false;
};
#endif //SUDO_H

View File

@ -1 +0,0 @@
bypass-envvar-allowlist.patch

11
debian/watch vendored
View File

@ -1,5 +1,6 @@
version=4 Version: 5
opts="searchmode=plain, \ Template: GitHub
pgpsigurlmangle=s/$/.asc/, \ Owner: lxqt
uversionmangle=s/(\d+\.\d+\.\d+).*/$1/" \ Project: @PACKAGE@
https://api.github.com/repos/lxqt/@PACKAGE@/releases https:\/\/github.com\/lxqt\/@PACKAGE@\/releases\/download\/@ANY_VERSION@\/@PACKAGE@-@ANY_VERSION@.tar.xz Download-Url-Mangle: s%https://api.github.com/repos/([^/]+)/@PACKAGE@/git/refs/tags/@ANY_VERSION@%https://github.com/$1/@PACKAGE@/releases/download/$2/@PACKAGE@-$2.tar.xz%g
Pgp-Mode: auto