]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
lldpd: Disable seccomp support on aarch64
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 8 Mar 2023 13:55:07 +0000 (13:55 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 8 Mar 2023 14:05:10 +0000 (14:05 +0000)
lldpd does not support seccomp on aarch64 and aborts with
an corresponding error during compile time when enabled.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lldpd/lldpd.nm

index 9d35918e6bf12c6af48962f33c0246f0d3e2b66a..54f00168d11be67dc1df4173a0918f4273810616 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = lldpd
 version    = 1.0.16
-release    = 1
+release    = 1.1
 
 groups     = Networking/Tools
 url        = https://lldpd.github.io
@@ -23,7 +23,7 @@ build
        requires
                libcap-devel
                libevent-devel
-               libseccomp-devel
+               (libseccomp-devel if arch(x86_64))
                libxml2-devel
                pkg-config
                readline-devel
@@ -33,11 +33,17 @@ build
        configure_options += \
                --without-embedded-libevent \
                --with-readline \
-               --with-seccomp \
                --with-xml \
                --with-privsep-user=lldpd \
                --with-privsep-group=lldpd
 
+       # lldpd does not support seccomp on aarch64.
+       if "%{DISTRO_ARCH}" == "aarch64"
+               configure_options += --without-seccomp
+       else
+               configure_options += --with-seccomp
+       end
+
        prepare_cmds
                %{create_user}
        end