[packages/lxcfs] Up to 7.0.0
arekm
arekm at pld-linux.org
Sun Sep 13 01:32:43 CEST 2026
commit a168706114edd5686340891e4fb26559c6b41811
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Sep 13 01:29:56 2026 +0200
Up to 7.0.0
lxcfs-no-gold.patch | 12 ++++++++++++
lxcfs.spec | 28 +++++++++++++++-------------
2 files changed, 27 insertions(+), 13 deletions(-)
---
diff --git a/lxcfs.spec b/lxcfs.spec
index bb678e0..d9c54ea 100644
--- a/lxcfs.spec
+++ b/lxcfs.spec
@@ -1,21 +1,22 @@
Summary: FUSE filesystem for LXC
Name: lxcfs
-Version: 6.0.1
+Version: 7.0.0
Release: 1
License: Apache v2.0
Group: Applications/System
Source0: https://linuxcontainers.org/downloads/lxcfs/%{name}-%{version}.tar.gz
-# Source0-md5: 9c2295915ab2491ab2224515c5624f90
+# Source0-md5: 30987accb7feffe4847354133547cf27
Source1: lxcfs.init
+Patch0: %{name}-no-gold.patch
URL: https://linuxcontainers.org/lxcfs/
BuildRequires: help2man
-BuildRequires: libasan-devel
-BuildRequires: libfuse-devel
-BuildRequires: libubsan-devel
-BuildRequires: pam-devel
+BuildRequires: libfuse3-devel
+BuildRequires: meson >= 0.50
+BuildRequires: ninja >= 1.5
BuildRequires: pkg-config
-BuildRequires: pld-release
-Requires: lxc
+BuildRequires: python3-jinja2
+BuildRequires: rpmbuild(macros) >= 2.042
+BuildRequires: systemd-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -40,11 +41,11 @@ proc masking feature.
%prep
%setup -q
+%patch -P0 -p1
%build
%meson \
- -Dinit-script=sysvinit,systemd \
- -Db_sanitize=address,undefined
+ -Dinit-script=systemd
%meson_build
@@ -55,9 +56,6 @@ install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
%meson_install
-%{__rm} -f $RPM_BUILD_ROOT/etc/init.d/%{name}
-%{__rmdir} $RPM_BUILD_ROOT/etc/init.d
-
%clean
rm -rf $RPM_BUILD_ROOT
@@ -73,6 +71,10 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_datadir}/%{name}/lxc.mount.hook
%attr(755,root,root) %{_datadir}/%{name}/lxc.reboot.hook
%dir %{_localstatedir}/lib/%{name}
+# lxc (if installed) picks the hook config up from here; lxcfs itself does not need lxc
+%dir %{_datadir}/lxc
+%dir %{_datadir}/lxc/config
+%dir %{_datadir}/lxc/config/common.conf.d
%{_datadir}/lxc/config/common.conf.d/00-lxcfs.conf
%attr(755,root,root) %{_libdir}/%{name}/liblxcfs.so
diff --git a/lxcfs-no-gold.patch b/lxcfs-no-gold.patch
new file mode 100644
index 0000000..51a02a1
--- /dev/null
+++ b/lxcfs-no-gold.patch
@@ -0,0 +1,12 @@
+gold is deprecated in binutils and links differently from the default bfd/lld
+the rest of the distro uses; keep lxcfs on the system default linker.
+--- lxcfs-7.0.0/meson.build.orig
++++ lxcfs-7.0.0/meson.build
+@@ -116,7 +116,6 @@
+ '-Wl,--gc-sections',
+ '-Wl,-z,relro',
+ '-Wl,-z,now',
+- '-Wl,-fuse-ld=gold',
+ ]
+
+ if meson.version().version_compare('>=0.46')
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lxcfs.git/commitdiff/a168706114edd5686340891e4fb26559c6b41811
More information about the pld-cvs-commit
mailing list