Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
passt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
staging
rpms
passt
Commits
a484e26a
Commit
a484e26a
authored
11 months ago
by
Rocky Automation
Browse files
Options
Downloads
Patches
Plain Diff
import passt-0%5E20231204.gb86afe3-1.el9
parent
8b7eed6d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.passt.checksum
+1
-1
1 addition, 1 deletion
.passt.checksum
.passt.metadata
+1
-1
1 addition, 1 deletion
.passt.metadata
SPECS/passt.spec
+23
-15
23 additions, 15 deletions
SPECS/passt.spec
with
25 additions
and
17 deletions
.passt.checksum
+
1
−
1
View file @
a484e26a
5b805f6a835993eca790e2a566e16a7b8716a215aaa59285bdf28cd309d92722
9a420fce64dd5d55bd6b30ef4c781c8caaeda7f2148d14b318c356dab767bb94
This diff is collapsed.
Click to expand it.
.passt.metadata
+
1
−
1
View file @
a484e26a
ffea54a8b23b01a4fe7f1c79a02c6c020de5910cef14caef09b208e8903637ab SOURCES/passt-0af928eaa020c1062fdc91598dfdc533966e2afe
.tar.xz
b8748957d3ea8a09145438087e2527cc687e188c6df6010cab80b4b58cd6601d SOURCES/passt-b86afe3559c0bd3d24bc6fed7c60466cf141224c
.tar.xz
This diff is collapsed.
Click to expand it.
SPECS/passt.spec
+
23
−
15
View file @
a484e26a
...
@@ -7,12 +7,12 @@
...
@@ -7,12 +7,12 @@
# Copyright (c) 2022 Red Hat GmbH
# Copyright (c) 2022 Red Hat GmbH
# Author: Stefano Brivio <sbrivio@redhat.com>
# Author: Stefano Brivio <sbrivio@redhat.com>
%global git_hash
0af928eaa020c1062fdc91598dfdc533966e2afe
%global git_hash
b86afe3559c0bd3d24bc6fed7c60466cf141224c
%global selinuxtype targeted
%global selinuxtype targeted
Name: passt
Name: passt
Version: 0^2023
0818.g0af928e
Version: 0^2023
1204.gb86afe3
Release:
4
%{?dist}
Release:
1
%{?dist}
Summary: User-mode networking daemons for virtual machines and namespaces
Summary: User-mode networking daemons for virtual machines and namespaces
License: GPLv2+ and BSD
License: GPLv2+ and BSD
Group: System Environment/Daemons
Group: System Environment/Daemons
...
@@ -53,25 +53,30 @@ This package adds SELinux enforcement to passt(1) and pasta(1).
...
@@ -53,25 +53,30 @@ This package adds SELinux enforcement to passt(1) and pasta(1).
%build
%build
%set_build_flags
%set_build_flags
%make_build VERSION="%{version}-%{release}.%{_arch}"
# The Makefile creates symbolic links for pasta, but we need actual copies for
# SELinux file contexts to work as intended. Same with pasta.avx2 if present.
# Build twice, changing the version string, to avoid duplicate Build-IDs.
%make_build VERSION="%{version}-%{release}.%{_arch}-pasta"
mv -f passt pasta
%ifarch x86_64
mv -f passt.avx2 pasta.avx2
%make_build passt passt.avx2 VERSION="%{version}-%{release}.%{_arch}"
%else
%make_build passt VERSION="%{version}-%{release}.%{_arch}"
%endif
%install
%install
# Already built (not as symbolic links), see above
touch pasta
%ifarch x86_64
touch pasta.avx2
%endif
%make_install DESTDIR=%{buildroot} prefix=%{_prefix} bindir=%{_bindir} mandir=%{_mandir} docdir=%{_docdir}/%{name}
%make_install DESTDIR=%{buildroot} prefix=%{_prefix} bindir=%{_bindir} mandir=%{_mandir} docdir=%{_docdir}/%{name}
# The Makefile creates symbolic links for pasta, but we need hard links for
# SELinux file contexts to work as intended. Same with pasta.avx2 if present.
#
# RHEL 9 note: switch from hard links to copies -- given that the behaviour
# differs depending on filesystems and how cpio builds archives. This leads to
# "Duplicate build-ids" warnings for rpmbuild at the moment, we need to find a
# better solution upstream.
rm %{buildroot}%{_bindir}/pasta
cp %{buildroot}%{_bindir}/passt %{buildroot}%{_bindir}/pasta
%ifarch x86_64
%ifarch x86_64
rm %{buildroot}%{_bindir}/pasta.avx2
cp %{buildroot}%{_bindir}/passt.avx2 %{buildroot}%{_bindir}/pasta.avx2
ln -sr %{buildroot}%{_mandir}/man1/passt.1 %{buildroot}%{_mandir}/man1/passt.avx2.1
ln -sr %{buildroot}%{_mandir}/man1/passt.1 %{buildroot}%{_mandir}/man1/passt.avx2.1
ln -sr %{buildroot}%{_mandir}/man1/pasta.1 %{buildroot}%{_mandir}/man1/pasta.avx2.1
ln -sr %{buildroot}%{_mandir}/man1/pasta.1 %{buildroot}%{_mandir}/man1/pasta.avx2.1
install -p -m 755 %{buildroot}%{_bindir}/passt.avx2 %{buildroot}%{_bindir}/pasta.avx2
%endif
%endif
pushd contrib/selinux
pushd contrib/selinux
...
@@ -121,6 +126,9 @@ fi
...
@@ -121,6 +126,9 @@ fi
%{_datadir}/selinux/packages/%{selinuxtype}/pasta.pp
%{_datadir}/selinux/packages/%{selinuxtype}/pasta.pp
%changelog
%changelog
* Fri Dec 15 2023 Stefano Brivio <sbrivio@redhat.com> - 0^20231204.gb86afe3-1
- Resolves: RHEL-19590
* Tue Aug 22 2023 Stefano Brivio <sbrivio@redhat.com> - 0^20230818.g0af928e-4
* Tue Aug 22 2023 Stefano Brivio <sbrivio@redhat.com> - 0^20230818.g0af928e-4
- Switch to copies instead of links for pasta: previous workaround unreliable
- Switch to copies instead of links for pasta: previous workaround unreliable
- Resolves: RHELPLAN-155811
- Resolves: RHELPLAN-155811
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment