Lukas Fleischer pushed to branch main at Arch Linux / Packaging / Packages /
sudo
Commits:
719347b2 by David Runge at 2026-08-11T23:06:33-04:00
Prevent libtool from overlinking
Prevents overlinking of the shared objects, which leads to the following
namcap output:
```
sudo W: Unused shared library '/usr/lib/libcrypto.so.3' by file
('usr/lib/sudo/audit_json.so')
sudo W: Unused shared library '/usr/lib/libcrypto.so.3' by file
('usr/lib/sudo/group_file.so')
sudo W: Unused shared library '/usr/lib/libcrypto.so.3' by file
('usr/lib/sudo/sudo_intercept.so')
sudo W: Unused shared library '/usr/lib/libcrypto.so.3' by file
('usr/lib/sudo/system_group.so')
```
Related-to:
https://gitlab.archlinux.org/archlinux/packaging/packages/sudo/-/merge_requests/3
Signed-off-by: David Runge <[email protected]>
Signed-off-by: Lukas Fleischer <[email protected]>
- - - - -
50f8a7de by Lukas Fleischer at 2026-08-11T23:09:15-04:00
Update and polish PKGBUILD
- - - - -
1 changed file:
- PKGBUILD
Changes:
=====================================
PKGBUILD
=====================================
@@ -1,4 +1,5 @@
-# Maintainer: Evangelos Foutras <[email protected]>
+# Maintainer: Lukas Fleischer <[email protected]>
+# Contributor: Evangelos Foutras <[email protected]>
# Contributor: Allan McRae <[email protected]>
# Contributor: Tom Newsom <[email protected]>
@@ -24,12 +25,8 @@
sha256sums=('4a38a1ab3adb1199257edc2a7c4a2bd714665eb605b04368843b06dada2cfcfb'
'7ec1c668c10e0f83d00e25f336872212fe04ce2c2563e1d661d34d28852f4649')
validpgpkeys=('59D1E9CCBA2B376704FDD35BA9F4C021CEA470FB')
-prepare() {
- cd $pkgname-$_sudover
-}
-
build() {
- cd $pkgname-$_sudover
+ cd "${pkgname}-${_sudover}"
./configure \
--prefix=/usr \
@@ -47,18 +44,23 @@ build() {
--with-passprompt="[sudo] password for %p: " \
--with-secure-path-value=/usr/local/sbin:/usr/local/bin:/usr/bin \
--with-all-insults
+
+ # Prevent excessive overlinking due to libtool; for details, please refer to
+ #
https://gitlab.archlinux.org/archlinux/packaging/packages/sudo/-/merge_requests/3.
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+
make
}
check() {
- cd $pkgname-$_sudover
- make check
+ make -C "${pkgname}-${_sudover}" check
}
package() {
depends+=('libcrypto.so' 'libssl.so')
- cd $pkgname-$_sudover
+ cd "${pkgname}-${_sudover}"
+
make DESTDIR="$pkgdir" install
# sudo_logsrvd service file (taken from sudo-logsrvd-1.9.0-1.el8.x86_64.rpm)
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/sudo/-/compare/d0d2a620db63797db2a9eed868ab6c427fa787d8...50f8a7de015d11d68ec56c9fee779773e2b9becb
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/sudo/-/compare/d0d2a620db63797db2a9eed868ab6c427fa787d8...50f8a7de015d11d68ec56c9fee779773e2b9becb
You're receiving this email because of your account on gitlab.archlinux.org.
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications
| Help: https://gitlab.archlinux.org/help