Compare commits

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

23 commits

Author SHA1 Message Date
Fedora Release Engineering
5fb1c61c1c Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 08:33:10 +00:00
German Maglione
9e998f4275 Update to version 1.14.0
Signed-off-by: German Maglione <gmaglione@redhat.com>
2026-07-07 12:33:34 +02:00
Fedora Release Engineering
7aff7d88ed Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 19:59:03 +00:00
German Maglione
680b5e2a30 Update to version 1.13.3
Signed-off-by: German Maglione <gmaglione@redhat.com>
2025-12-02 13:56:57 +01:00
Fedora Release Engineering
f5ffc91da2 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 20:09:29 +00:00
German Maglione
c8fe2cb871 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 16:34:24 +02:00
Fedora Release Engineering
f06e3988df Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 14:29:08 +00:00
German Maglione
d5f9a22088 Update to version 1.13.0
Signed-off-by: German Maglione <gmaglione@redhat.com>
2024-11-29 13:26:26 +01:00
German Maglione
c2560d43cb Add a Makefile to create source files
Signed-off-by: German Maglione <gmaglione@redhat.com>
2024-07-17 20:29:33 +02:00
German Maglione
8b0d90e5b9 Update to version 1.11.1
This version unify all branches to the same rpm spec from
the eln branch.

The main changes are:

- Update to version 1.11.1

- 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.

- Rename vhost JSON file
This tool is not part of QEMU, so let's unify the vhost json file
name with upstream.

- Use autorelease and autochangelog macros

- Remove unused logger patch file

Signed-off-by: German Maglione <gmaglione@redhat.com>
2024-07-17 20:24:28 +02:00
German Maglione
657124e408 Remove unused logger patch file
Signed-off-by: German Maglione <gmaglione@redhat.com>
2024-07-17 19:49:11 +02:00
German Maglione
1717fe0563 Add initial RHEL OSCI gating test
Signed-off-by: German Maglione <gmaglione@redhat.com>
2024-04-25 11:16:55 +02:00
Sergio Lopez
5a69fd71eb Update to version 1.10.1 2024-02-05 14:48:28 +01:00
Fedora Release Engineering
8168af879e Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 07:59:02 +00:00
Sergio Lopez
b41db843b3 Update to version 1.10.0 2024-01-23 12:57:48 +00:00
Sergio Lopez
e354758f33 Update to version 1.9.0 2023-12-24 17:23:01 +01:00
Colin Walters
4fdd23db74 Rebuild with latest vhost-user-backend; xref
https://gitlab.com/virtio-fs/virtiofsd/-/issues/62#note_1584371000
2023-09-29 15:15:00 -04:00
Fabio Valentini
ffc630f81c
Rebuild for vm-memory v0.12.2 / CVE-2023-41051 2023-09-19 12:55:56 +02:00
Fedora Release Engineering
e0c2531cb4 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 17:45:39 +00:00
Sergio Lopez
8f1d292811 Update license specification to conform SPDX format
Signed-off-by: Sergio Lopez <slp@redhat.com>
2023-07-19 15:56:42 +02:00
Sergio Lopez
c1b438e7f8 Update to version 1.7.0
- Update to version 1.7.0
- Drop no longer needed temporary patch

Signed-off-by: Sergio Lopez <slp@redhat.com>
2023-07-19 15:33:08 +02:00
Sergio Lopez
fcc05136ee Only use Obsolete/Provides on Fedora 39 and later
The previous commit added Obsolete/Provides entries to ensure an easy
transition from qemu-virtiofsd to virtiofsd when users update to Fedora
39 from previous versions. We don't want this entries in previous
versions, as it may trigger an unnecessary switch between those
packages.

To avoid having divergent branches between rawhide and older versions,
put them behind a "if 0%{?fedora} > 38" conditional.

Suggested-by: Adam Williamson <awilliam@redhat.com>
Signed-off-by: Sergio Lopez <slp@redhat.com>
2023-05-26 12:20:54 +02:00
Daniel P. Berrangé
bd80da81e2 Obsolete qemu-virtiofsd
The qemu-virtiofsd package was deleted in 8.0.0, so to get dnf to
install virtiofsd during upgrade we need an Obsoletes line. If
something had a "Requires: qemu-virtiofsd" line instead of the
more recommended "Requires: vhostuser-backend(fs)", the fake
Provides will satisfy it.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2023-04-26 15:40:50 +01:00
8 changed files with 94 additions and 48 deletions

14
.gitignore vendored
View file

@ -3,3 +3,17 @@
/virtiofsd-1.4.0.crate
/virtiofsd-1.5.0.crate
/virtiofsd-1.5.1.crate
/virtiofsd-1.7.0.crate
/virtiofsd-1.9.0.crate
/virtiofsd-1.10.0.crate
/virtiofsd-1.10.1.crate
/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)

6
gating.yaml Normal file
View file

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View file

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

12
tests/tests.yml Normal file
View file

@ -0,0 +1,12 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
remote_user: root
tests:
- virtiofsd_printcaps:
dir: .
run: ./virtiofsd_printcaps.sh
required_packages:
- virtiofsd

View file

@ -0,0 +1,3 @@
#!/bin/bash -ex
/usr/libexec/virtiofsd --print-capabilities

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,69 +1,69 @@
Name: virtiofsd
Version: 1.5.1
Release: 1%{?dist}
Version: 1.14.0
Release: %autorelease
Summary: Virtio-fs vhost-user device daemon (Rust version)
# Upstream license specification: Apache-2.0 AND BSD-3-Clause
License: ASL 2.0 and BSD
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}
Patch: virtiofsd-relax-env_logger-dep.diff
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
Obsoletes: qemu-virtiofsd <= 2:8.0.0-1
Provides: qemu-virtiofsd = 2:7.2.1-1
%endif
%description
%{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-qemu-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
* 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