Compare commits

...
Sign in to create a new pull request.

20 commits

Author SHA1 Message Date
German Maglione
419eabef80 Update to version 1.14.0
Signed-off-by: German Maglione <gmaglione@redhat.com>
2026-07-07 14:06:32 +02:00
German Maglione
778987b82e Update to version 1.13.3
Signed-off-by: German Maglione <gmaglione@redhat.com>
2025-12-02 14:23:51 +01:00
German Maglione
31fd7db284 Update to version 1.13.2
Bump version to 1.13.2
Add missing dependency shadow-utils, since virtiofsd might
execute newuidmap and/or newgidmap binaries.

Signed-off-by: German Maglione <gmaglione@redhat.com>
2025-06-12 17:05:05 +02:00
German Maglione
cf7fc9fc8b Update to version 1.13.0
Signed-off-by: German Maglione <gmaglione@redhat.com>
2024-11-29 15:19:04 +01:00
German Maglione
191a2515cb Add new sources
Signed-off-by: German Maglione <gmaglione@redhat.com>
2024-07-17 19:25:39 +02:00
German Maglione
03d9cbf2c5 Add a Makefile to create source files
Signed-off-by: German Maglione <gmaglione@redhat.com>
2024-07-17 16:51:33 +02:00
German Maglione
6b344865ac Remove unused logger patch file
Signed-off-by: German Maglione <gmaglione@redhat.com>
2024-07-17 15:44:52 +02:00
German Maglione
a93f3950c0 Use autorelease and autochangelog macros
Signed-off-by: German Maglione <gmaglione@redhat.com>
2024-07-17 15:36:20 +02:00
German Maglione
c3cd909b33 Update to version 1.11.1
Signed-off-by: German Maglione <gmaglione@redhat.com>
2024-07-17 15:15:21 +02:00
German Maglione
987f194515 Rename vhost JSON file
This tool is not part of QEMU, so let's unify the vhost json file
name with upstream.

Signed-off-by: German Maglione <gmaglione@redhat.com>
2024-07-17 15:13:35 +02:00
German Maglione
6246efe28d Always vendor dependencies
We currently depend on crates that are not available on fedora.
This plus the the API instability of some of our critical dependencies
(I'm looking at you rust-vmm), leave us no choice but to vendorize.

Signed-off-by: German Maglione <gmaglione@redhat.com>
2024-07-17 14:26:25 +02:00
Yaakov Selkowitz
9cc5dfd20f Merge branch 'rawhide' into eln 2024-06-20 22:05:12 -04:00
Yaakov Selkowitz
9088584d5a Update Rust macro usage
The rust-toolset macros in RHEL 10 are now compatible with Fedora's
in terms of handling vendoring and automatic generation of license
information and bundled provides.
2024-02-01 13:39:37 -05:00
Yaakov Selkowitz
7bcbaae2de Revendor 2024-01-28 19:13:13 -05:00
Yaakov Selkowitz
38839d6eab Merge branch 'rawhide' into eln 2024-01-28 19:07:08 -05:00
Yaakov Selkowitz
39c6121201 Revendor 2024-01-03 23:50:19 -05:00
Yaakov Selkowitz
52f77d8aef Merge branch 'rawhide' into eln 2024-01-03 23:43:35 -05:00
Yaakov Selkowitz
766d22b4e1 Update to version 1.7.0
Update license specification to conform SPDX format
Fix qemu common directory requirement for RHEL
2023-07-21 09:44:15 -04:00
Yaakov Selkowitz
6ca18f4ab0 Revbump 2023-06-14 11:21:22 -04:00
Yaakov Selkowitz
2ca6c788b5 Use vendored dependencies in RHEL builds
RHEL does not package individual Rust dependencies.
2023-05-30 13:03:48 -04:00
5 changed files with 69 additions and 80 deletions

15
.gitignore vendored
View file

@ -3,7 +3,22 @@
/virtiofsd-1.4.0.crate
/virtiofsd-1.5.0.crate
/virtiofsd-1.5.1.crate
/virtiofsd-1.5.1-vendor.tar.xz
/virtiofsd-1.7.0.crate
/virtiofsd-1.7.0-vendor.tar.xz
/virtiofsd-1.9.0.crate
/virtiofsd-1.9.0-vendor.tar.xz
/virtiofsd-1.10.0.crate
/virtiofsd-1.10.0-vendor.tar.xz
/virtiofsd-1.10.1.crate
/virtiofsd-1.10.1-vendor.tar.xz
/virtiofsd-1.11.1.crate
/virtiofsd-1.11.1-vendor.tar.xz
/virtiofsd-1.13.0.crate
/virtiofsd-1.13.0-vendor.tar.xz
/virtiofsd-1.13.2.crate
/virtiofsd-1.13.2-vendor.tar.xz
/virtiofsd-1.13.3.crate
/virtiofsd-1.13.3-vendor.tar.xz
/virtiofsd-1.14.0.crate
/virtiofsd-1.14.0-vendor.tar.xz

23
Makefile Normal file
View file

@ -0,0 +1,23 @@
NAME := virtiofsd
VERSION ?= $(shell grep Version: virtiofsd.spec | tr -d ' ' | cut -f2 -d:)
.PHONY: all down-crate vendor clean
all: down-crate vendor clean
down-crate:
@echo Downloading version $(VERSION)
curl -L https://crates.io/api/v1/crates/$(NAME)/$(VERSION)/download -o $(NAME)-$(VERSION).crate
vendor:
# After vendorize we need to remove winapi/windows binaries
tar xf $(NAME)-$(VERSION).crate && \
pushd $(NAME)-$(VERSION) && \
cargo vendor && \
find vendor/ -name *.a -print0 | xargs -0 rm && \
tar Jcvf ../$(NAME)-$(VERSION)-vendor.tar.xz vendor/ && \
popd
clean:
rm -rf $(NAME)-$(VERSION)

View file

@ -1 +1,2 @@
SHA512 (virtiofsd-1.10.1.crate) = cc4628595eb0a71b1147b00e2ebefe87cf26bba3ebcd907d6bde6a4c7a6f9125d67ebac24a862a07ad7af5b14a0680f3c526b947f28db3ed99fde3a551dc2284
SHA512 (virtiofsd-1.14.0.crate) = 8961384262144c98993808707cf832937217808a84cc5ac2cba375c2bb0f6fe108738dba4fa3d84d837422e59a27859ba2ea42ce40321eccb6ae9822eb319536
SHA512 (virtiofsd-1.14.0-vendor.tar.xz) = e5d9d0bd8bfd764a85b98136ee940512b16aeec807c7847ed104d018a1f3966bdb92c04534c875ec17ae3d66189fbf1404a202dec0372616951e758d3e190960

View file

@ -1,13 +0,0 @@
diff --git a/Cargo.toml b/Cargo.toml
index cedd3f4..082cd68 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -31,7 +31,7 @@ version = "1.2"
version = "0.2.2"
[dependencies.env_logger]
-version = "0.10.0"
+version = "0.9.0"
[dependencies.futures]
version = "0.3"

View file

@ -1,20 +1,36 @@
Name: virtiofsd
Version: 1.10.1
Release: 1%{?dist}
Version: 1.14.0
Release: %autorelease
Summary: Virtio-fs vhost-user device daemon (Rust version)
License: Apache-2.0 AND BSD-3-Clause
URL: https://gitlab.com/virtio-fs/virtiofsd
# To create/dowload the source files (i.e., crate and vendor files),
# set the version in the spec and then:
# make
# if you need to get a different version:
# make VERSION=<version>
#
Source: %{crates_source}
Source1: %{name}-%{version}-vendor.tar.xz
ExclusiveArch: %{rust_arches}
# Some of our deps (i.e. vm-memory) are not available on 32 bits targets.
ExcludeArch: i686
%if 0%{?rhel}
BuildRequires: rust-toolset
%else
BuildRequires: rust-packaging >= 21
%endif
BuildRequires: libcap-ng-devel
BuildRequires: libseccomp-devel
%if 0%{?rhel}
Requires: qemu-kvm-common
%else
Requires: qemu-common
%endif
Requires: shadow-utils
Provides: vhostuser-backend(fs)
Conflicts: qemu-virtiofsd
%if 0%{?fedora} > 38
@ -26,81 +42,28 @@ Provides: qemu-virtiofsd = 2:7.2.1-1
%{summary}.
%prep
%autosetup -n %{name}-%{version_no_tilde} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%autosetup -n %{name}-%{version_no_tilde} -p1 -a1
%cargo_prep -v vendor
rm -f Cargo.lock
%build
%cargo_build
%cargo_license_summary
%{cargo_license} > LICENSE.dependencies
%cargo_vendor_manifest
%install
mkdir -p %{buildroot}%{_libexecdir}
install -D -p -m 0755 target/release/virtiofsd %{buildroot}%{_libexecdir}/virtiofsd
install -D -p -m 0644 50-virtiofsd.json %{buildroot}%{_datadir}/qemu/vhost-user/50-qemu-virtiofsd.json
install -D -p -m 0644 50-virtiofsd.json %{buildroot}%{_datadir}/qemu/vhost-user/50-virtiofsd.json
%files
%license LICENSE-APACHE LICENSE-BSD-3-Clause
%license LICENSE.dependencies
%license cargo-vendor.txt
%doc README.md
%{_libexecdir}/virtiofsd
%{_datadir}/qemu/vhost-user/50-qemu-virtiofsd.json
%{_datadir}/qemu/vhost-user/50-virtiofsd.json
%changelog
* Mon Feb 05 2024 Sergio Lopez <slp@redhat.com> - 1.10.1-1
- Update to version 1.10.1
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Tue Jan 23 2024 Sergio Lopez <slp@redhat.com> - 1.10.0-1
- Update to version 1.10.0
* Sun Dec 24 2023 Sergio Lopez <slp@redhat.com> - 1.9.0-1
- Update to version 1.9.0
* Fri Sep 29 2023 Colin Walters <walters@verbum.org> - 1.7.0-5
- Rebuild with latest vhost-user-backend; xref
https://gitlab.com/virtio-fs/virtiofsd/-/issues/62#note_1584371000
* Tue Sep 19 2023 Fabio Valentini <decathorpe@gmail.com> - 1.7.0-4
- Rebuild for vm-memory v0.12.2 / CVE-2023-41051.
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Wed Jul 19 2023 Sergio Lopez <slp@redhat.com> - 1.7.0-2
- Update license specification to conform SPDX format
* Tue Jul 18 2023 Sergio Lopez <slp@redhat.com> - 1.7.0-1
- Update to version 1.7.0
- Drop no longer needed temporary patch
* Tue May 09 2023 Sergio Lopez <slp@redhat.com> - 1.5.1-3
- Only use Obsoletes/Provides on Fedora 39 and later
* Wed Apr 26 2023 Daniel P. Berrangé <berrange@redhat.com> - 1.5.1-2
- Add Obsoletes/Provides for qemu-virtiofsd to get an upgrade path (rhbz #2189368)
* Thu Feb 09 2023 Sergio Lopez <slp@redhat.com> - 1.5.1-1
- Update to version 1.5.1
* Sun Feb 05 2023 Fabio Valentini <decathorpe@gmail.com> - 1.4.0-3
- Rebuild for fixed frame pointer compiler flags in Rust RPM macros.
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Tue Jul 26 2022 Sergio Lopez <slp@redhat.com> - 1.4.0-1
- Update to version 1.4.0
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 06 2022 Sergio Lopez <slp@redhat.com> - 1.3.0-1
- Update to version 1.3.0
- Build on all rust arches except i686 (32-bit targets are not supported)
* Mon May 16 2022 Sergio Lopez <slp@redhat.com> - 1.2.0-1
- Initial package
%autochangelog