Robin Candau pushed to branch main at Arch Linux / Packaging / Packages / abuild


Commits:
0bfc3cd3 by Robin Candau at 2026-11-22T11:28:50+01:00
upgpkg: 3.18.0-2: Cleanup obsolete / non-required binaries, paths and 
documentation

- The `abuild-sudo` binary and the `abuild` group are not required by 
`abuild-rootbld` anymore.
  See 
https://gitlab.alpinelinux.org/alpine/abuild/-/commit/4c4c11131f4e5bc9c5877373cc266308648b1671

- The `abuild-{apk,adduser,addgroup}` symlinks are pointing to `abuild-sudo` 
but `abuild` now fallbacks to
  `$SUDO` / `doas` / `sudo` if they are absent.
  See 
https://gitlab.alpinelinux.org/sertonix/abuild/-/commit/dff6fc6251a0060373e9e0097d8dda97cb0d8371

- The default `abuild` cache directories now use `XDG` specification, notably 
the default `/var/cache/distfiles`
  path has been moved to `${XDG_CACHE_HOME:-$HOME/.cache}/abuild`.
  See 
https://gitlab.alpinelinux.org/alpine/abuild/-/commit/101596380043077a51060491a18d06f4c6379903

Thanks to Sertonix (https://gitlab.alpinelinux.org/sertonix/) for the heads up!

- - - - -


5 changed files:

- .SRCINFO
- PKGBUILD
- abuild.install
- − abuild.sysusers
- − abuild.tmpfiles


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = abuild
        pkgdesc = Alpine build tools
        pkgver = 3.18.0
-       pkgrel = 1
+       pkgrel = 2
        url = https://gitlab.alpinelinux.org/alpine/abuild
        install = abuild.install
        arch = x86_64
@@ -32,10 +32,6 @@ pkgbase = abuild
        optdepends = ruby-augeas: for gem resolver
        backup = etc/abuild.conf
        source = 
https://gitlab.alpinelinux.org/alpine/abuild/-/archive/3.18.0/abuild-3.18.0.tar.gz
-       source = abuild.sysusers
-       source = abuild.tmpfiles
        sha512sums = 
7c2919874659ce94d98431db9149a59ea4373eb7dc6001c45fa235779a304a817c2c9e5be283cb57b9d3e5d03f7dae6ba0f581bc369536bc1f6f726d18c65fd2
-       sha512sums = 
b6099d7dd0ce1128e1e5263c2fc95bfb8d0e26e02b4f7255f066f65ce405c19bf519fce90420e796a510b51c228a515415bdb021d32814271b11f9306b1ff62b
-       sha512sums = 
f070f0dfb0b4c0ba443851f7e1115e42f76b0d1c6f866101df9dd3dda5ba2280065e50d459e7eda6262a42d10c2460f2ad0f88f02faf69a2188c02773bbbe423
 
 pkgname = abuild


=====================================
PKGBUILD
=====================================
@@ -4,7 +4,7 @@
 
 pkgname=abuild
 pkgver=3.18.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Alpine build tools"
 url="https://gitlab.alpinelinux.org/alpine/abuild";
 arch=('x86_64')
@@ -21,12 +21,8 @@ optdepends=('perl: for cpan resolver'
             'ruby-augeas: for gem resolver')
 backup=("etc/${pkgname}.conf")
 install="${pkgname}.install"
-source=("${url}/-/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz"
-        "${pkgname}.sysusers"
-        "${pkgname}.tmpfiles")
-sha512sums=('7c2919874659ce94d98431db9149a59ea4373eb7dc6001c45fa235779a304a817c2c9e5be283cb57b9d3e5d03f7dae6ba0f581bc369536bc1f6f726d18c65fd2'
-            
'b6099d7dd0ce1128e1e5263c2fc95bfb8d0e26e02b4f7255f066f65ce405c19bf519fce90420e796a510b51c228a515415bdb021d32814271b11f9306b1ff62b'
-            
'f070f0dfb0b4c0ba443851f7e1115e42f76b0d1c6f866101df9dd3dda5ba2280065e50d459e7eda6262a42d10c2460f2ad0f88f02faf69a2188c02773bbbe423')
+source=("${url}/-/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('7c2919874659ce94d98431db9149a59ea4373eb7dc6001c45fa235779a304a817c2c9e5be283cb57b9d3e5d03f7dae6ba0f581bc369536bc1f6f726d18c65fd2')
 
 prepare() {
        cd "${pkgname}-${pkgver}"
@@ -47,6 +43,14 @@ package() {
        cd "${pkgname}-${pkgver}"
        make install VERSION="${pkgver}" DESTDIR="${pkgdir}"
        install -Dm 644 "${pkgname}.conf" "${pkgdir}/etc/${pkgname}.conf"
-       install -Dm 644 "${srcdir}/${pkgname}.sysusers" 
"${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
-       install -Dm 644 "${srcdir}/${pkgname}.tmpfiles" 
"${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
+
+       # The `rootbld` subcommand and its default cache location do not
+       # require `abuild-sudo` (and the abuild group) anymore, so we can 
safely get rid of it.
+       # See 
https://gitlab.alpinelinux.org/alpine/abuild/-/commit/4c4c11131f4e5bc9c5877373cc266308648b1671
+       rm -fv "${pkgdir}/usr/bin/abuild-sudo"
+
+       # These are symlinks pointing to `abuild-sudo` (which we get rid of in 
the above command),
+       # but `abuild` now fallbacks to `$SUDO` / `doas` / `sudo` if they are 
not found, so we can safely get rid of these as well.
+       # See 
https://gitlab.alpinelinux.org/sertonix/abuild/-/commit/dff6fc6251a0060373e9e0097d8dda97cb0d8371
+       rm -fv "${pkgdir}/usr/bin/abuild-"{apk,adduser,addgroup}
 }


=====================================
abuild.install
=====================================
@@ -2,11 +2,9 @@ post_install() {
        cat <<EOM
 
 :: To be able to build Alpine packages in a clean chroot with "abuild rootbld",
-   you need to generate a public / private rsa key pair with the 
"abuild-keygen" tool,
-   and add your user to the "abuild" group (requires a logout / login to take 
effect):
+   you need to generate a public / private rsa key pair with the 
"abuild-keygen" tool:
 
    $ abuild-keygen -a -i
-   # usermod -aG abuild "username"
 
    See https://wiki.archlinux.org/title/Abuild for more details.
 


=====================================
abuild.sysusers deleted
=====================================
@@ -1 +0,0 @@
-g abuild -


=====================================
abuild.tmpfiles deleted
=====================================
@@ -1 +0,0 @@
-d /var/cache/distfiles 0775 root abuild -



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/abuild/-/commit/0bfc3cd31a13e2c62bbb71d08e04fc1711296e29

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/abuild/-/commit/0bfc3cd31a13e2c62bbb71d08e04fc1711296e29
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


Reply via email to