Andreas Radke pushed to branch main at Arch Linux / Packaging / Packages / rpcbind
Commits: bd6f784b by tuxxx at 2026-09-13T12:46:58+02:00 Fix rpcinfo host queries with the IANA sunrpc service name Patch rpcinfo to resolve sunrpc instead of rpcbind, matching the existing daemon patch, while retaining the portmapper fallback. Fixes: https://gitlab.archlinux.org/archlinux/packaging/packages/rpcbind/-/work_items/4 - - - - - 4 changed files: - .SRCINFO - PKGBUILD - REUSE.toml - + rpcinfo-sunrpc.patch Changes: ===================================== .SRCINFO ===================================== @@ -13,18 +13,21 @@ pkgbase = rpcbind backup = etc/conf.d/rpcbind source = https://downloads.sourceforge.net/sourceforge/rpcbind/rpcbind-1.3.1.tar.bz2 source = rpcbind-sunrpc.patch + source = rpcinfo-sunrpc.patch source = rpcbind.conf source = systemd_service.diff source = tmpfiles.d source = sysusers.d sha1sums = 17fc27ab73ae9d73a77324e9282fe601534c724c sha1sums = 1b997ce76f9727efc8c72fc5f97189591c9a60e2 + sha1sums = 566397a511003df35f0cc6af240fb96299222f62 sha1sums = ce58b8fccf0440aa81eeb21c99ef7dd654f03b7f sha1sums = 8f6615f023fcfa5c91922a9630e858d22816575b sha1sums = eb8b7375a4ca31b3f61fa726f387884d5e4ca7a3 sha1sums = b81b2d3798fc88359aaa0f08b2d3c2f809a19fc1 sha256sums = 8e551b445f5172f8ef218845af342fb2a2d741b57ce8c777c781a01ea92f92a5 sha256sums = 7a32111c74e708ad431b7114580c60d7405c591273e6cc00baf5baff05952573 + sha256sums = 746a508593e7cb7ae9353146557e4b0f9a4e6e2f32218426a9b83fa3040a12b6 sha256sums = 7d13186a6dfdc855cf9c6d41de56aa1efd04bd4a6bd7ab36f81bb29e4699a976 sha256sums = 6d06cba0775570ab031b9c5f747f7bf130c5cc9a4839323c8c915a3d92be88e9 sha256sums = 08b04f4da12b34d66cc8fefa0a6dcac239019b0de0090e08d61cb18cc36a6045 ===================================== PKGBUILD ===================================== @@ -8,25 +8,28 @@ pkgdesc="portmap replacement which supports RPC over various protocols" arch=(x86_64) url="http://rpcbind.sourceforge.net" license=('BSD-3-Clause') -backup=('etc/conf.d/rpcbind') depends=('glibc' 'libtirpc' 'systemd-libs') makedepends=('systemd') replaces=('portmap') +backup=('etc/conf.d/rpcbind') # see also http://git.linux-nfs.org/?p=steved/rpcbind.git;a=summary source=(https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2 rpcbind-sunrpc.patch + rpcinfo-sunrpc.patch rpcbind.conf systemd_service.diff tmpfiles.d sysusers.d) sha1sums=('17fc27ab73ae9d73a77324e9282fe601534c724c' '1b997ce76f9727efc8c72fc5f97189591c9a60e2' + '566397a511003df35f0cc6af240fb96299222f62' 'ce58b8fccf0440aa81eeb21c99ef7dd654f03b7f' '8f6615f023fcfa5c91922a9630e858d22816575b' 'eb8b7375a4ca31b3f61fa726f387884d5e4ca7a3' 'b81b2d3798fc88359aaa0f08b2d3c2f809a19fc1') sha256sums=('8e551b445f5172f8ef218845af342fb2a2d741b57ce8c777c781a01ea92f92a5' '7a32111c74e708ad431b7114580c60d7405c591273e6cc00baf5baff05952573' + '746a508593e7cb7ae9353146557e4b0f9a4e6e2f32218426a9b83fa3040a12b6' '7d13186a6dfdc855cf9c6d41de56aa1efd04bd4a6bd7ab36f81bb29e4699a976' '6d06cba0775570ab031b9c5f747f7bf130c5cc9a4839323c8c915a3d92be88e9' '08b04f4da12b34d66cc8fefa0a6dcac239019b0de0090e08d61cb18cc36a6045' @@ -36,6 +39,8 @@ prepare() { cd $pkgname-$pkgver # patch for iana services file # FS#20273 patch -Np1 -i ../rpcbind-sunrpc.patch + # avoid requiring rpcbind/portmapper aliases in /etc/services + patch -Np1 -i ../rpcinfo-sunrpc.patch # use distro config file; FS#52058 patch -Np1 -i ../systemd_service.diff ===================================== REUSE.toml ===================================== @@ -29,6 +29,7 @@ SPDX-License-Identifier = "0BSD" [[annotations]] path = [ "rpcbind-sunrpc.patch", + "rpcinfo-sunrpc.patch", ] SPDX-FileCopyrightText = "rpcbind contributors" SPDX-License-Identifier = "BSD-3-Clause" ===================================== rpcinfo-sunrpc.patch ===================================== @@ -0,0 +1,17 @@ +Use the official IANA service name, matching the rpcbind daemon patch. + +Arch's services database names port 111 sunrpc, so resolving rpcbind or +portmapper fails before rpcinfo can contact the daemon. + +--- a/src/rpcinfo.c ++++ b/src/rpcinfo.c +@@ -1835,8 +1835,8 @@ + + /* Get the address of the rpcbind */ + memset (&hints, 0, sizeof hints); +- if ((getaddrinfo (host, "rpcbind", &hints, &res) != 0) && ++ if ((getaddrinfo (host, "sunrpc", &hints, &res) != 0) && + (getaddrinfo (host, "portmapper",&hints, &res) != 0)) + { + rpc_createerr.cf_stat = RPC_N2AXLATEFAILURE; + return (NULL); View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/rpcbind/-/commit/bd6f784b41db9e0fcbce3ea8159036b3ef28530f -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/rpcbind/-/commit/bd6f784b41db9e0fcbce3ea8159036b3ef28530f 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
