Package Details: autofs 5.1.9-5.1

Git Clone URL: https://aur.archlinux.org/autofs.git (read-only, click to copy)
Package Base: autofs
Description: A kernel-based automounter for Linux
Upstream URL: https://www.kernel.org/pub/linux/daemons/autofs/
Keywords: autofs,auto mount
Licenses: GPL2
Submitter: arojas
Maintainer: ajacocks
Last Packager: ajacocks
Votes: 48
Popularity: 1.73
First Submitted: 2021-05-08 08:58 (UTC)
Last Updated: 2025-06-01 02:24 (UTC)

Dependencies (10)

Sources (43)

Latest Comments

1 2 3 4 5 6 .. 9 Next › Last »

PeteAnderson commented on 2025-10-24 19:17 (UTC) (edited on 2025-10-24 19:17 (UTC) by PeteAnderson)

@gawity:

Yup, you're absolutely right, this is a bug in ALARM's pacman build. Sorry I didn't recognize that before. I'm a novice when it comes to Arch packaging.

I've submitted a PR to ALARM to get this fixed. So the only thing the autofs package needs is to add 'aarch64' 'armv7h' to arch.

grawity commented on 2025-10-23 06:23 (UTC)

PeteAnderson – but the initial CFLAGS and CXXFLAGS come from your own makepkg.conf, not from autofs. Are you saying that ArchARM's /etc/makepkg.conf includes an option that their own GCC doesn't recognize?

PeteAnderson commented on 2025-10-23 03:39 (UTC)

I got it to build on armv7 (RPi2) by stripping that invalid option. It installed and works great.

From 62780a4cee7f69d63392f32ee0f899ef7e237160 Mon Sep 17 00:00:00 2001
From: Pete Anderson <pete.the.anderson@gmail.com>
Date: Wed, 22 Oct 2025 10:03:47 -0400
Subject: [PATCH] support ARM platforms

---
 .SRCINFO | 2 ++
 PKGBUILD | 8 +++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/.SRCINFO b/.SRCINFO
index d9489c2..24bb9ce 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -4,6 +4,8 @@ pkgbase = autofs
    pkgrel = 5.1
    url = https://www.kernel.org/pub/linux/daemons/autofs/
    arch = x86_64
+   arch = aarch64
+   arch = armv7h
    license = GPL2
    makedepends = libldap
    makedepends = krb5
diff --git a/PKGBUILD b/PKGBUILD
index e06f39a..daf8f40 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,7 +10,7 @@ pkgname=autofs
 pkgver=5.1.9
 pkgrel=5.1
 pkgdesc='A kernel-based automounter for Linux'
-arch=('x86_64')
+arch=('x86_64' 'aarch64' 'armv7h')
 url='https://www.kernel.org/pub/linux/daemons/autofs/'
 license=('GPL2')
 depends=('libxml2')
@@ -117,6 +117,12 @@ prepare() {
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"

+  if [[ $CARCH = armv7* ]]; then
+    # GCC for 32-bit ARM rejects -mno-omit-leaf-frame-pointer, so strip it out
+    CFLAGS=${CFLAGS// -mno-omit-leaf-frame-pointer/}
+    CXXFLAGS=${CXXFLAGS// -mno-omit-leaf-frame-pointer/}
+  fi
+
   ./configure --prefix=/usr \
    --sysconfdir=/etc/autofs \
    --sbindir=/usr/bin \
-- 
2.51.1.dirty

PeteAnderson commented on 2025-10-22 16:48 (UTC)

Would you mind adding ARM support? I tested locally and on AArch64 (ALARM VM on an M4 Mac), it builds, installs, and works. It doesn't work on AArch32, because they use one or more GCC options that are AArch64-only (-momit-leaf-frame-pointer).

grawity commented on 2025-05-27 07:29 (UTC)

The only way to cause rebuilds is to watch when libxml2 gets an update, then manually bump the AUR package's pkgrel every time (and maybe add a versioned dependency on libxml2>=2.14 to ensure users will upgrade the new libxml before doing any rebuilds – but specifically >=, not =).

e.g. I do the pkgrel bump for some of my own packages (although without the versioned dep) because I'm adding them to an internal pacman repo which makes it necessary to increment pkgrel for each new build anyway.

ajacocks commented on 2025-05-22 15:57 (UTC)

If anyone is having issues with libxml2 references, this isn't a problem with autofs, this means that you need to rebuild autofs after the libxml2 update. There isn't a way to cause those rebuilds automatically, that I am aware of.

Cornelicorn commented on 2025-05-19 07:50 (UTC)

@jackycxh I don't have any problems on my machine with "libxml2 2.14.3-1", but I had to rebuild after the 2.14 update, like @nicknight commented here directly below your comment.

jackycxh commented on 2025-05-18 07:47 (UTC) (edited on 2025-05-18 07:47 (UTC) by jackycxh)

Error after libxml2 updated recently: automount: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory.

Workaround: manual install "libxml2-legacy"

the dependencies need to be updated from libxml2 to libxml2-legacy

nicknight commented on 2025-05-06 20:51 (UTC)

FYI

With the update libxml2 2.13.8-1 -> 2.14.2-2 autofs stop to work automount: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory

One has to rebuild autofs

Cheers

nicknight commented on 2025-05-06 20:24 (UTC)

That is because ls auto* will list the contens of /etc/autofs/ in the directory there is a file autofs.conf but not in /etc