public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Stefan Schantl <stefan.schantl@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH] qemu: Drop unused firmware files and /var/run
Date: Fri, 17 Mar 2023 19:43:20 +0100	[thread overview]
Message-ID: <20230317184320.540119-1-stefan.schantl@ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1424 bytes --]

* Drop firmware files for platforms we do not support.
* Drop /var/run directory which violetes the FSH.

Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
---
 qemu/qemu.nm | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/qemu/qemu.nm b/qemu/qemu.nm
index 84a9f8d4d..f0ca0b84f 100644
--- a/qemu/qemu.nm
+++ b/qemu/qemu.nm
@@ -5,7 +5,7 @@
 
 name       = qemu
 version    = 7.2.0
-release    = 2
+release    = 3
 
 groups     = Applications/Virtualization
 url        = https://www.qemu.org
@@ -92,6 +92,19 @@ build
 		# Remove ivshm stuff
 		rm -vf %{BUILDROOT}%{bindir}/ivshmem* %{BUILDROOT}%{mandir}/ivshmem*
 
+		# Remove deprecated run directory.
+		rm -rvf %{BUILDROOT}/var/run
+
+		# Remove firmware files for non supported platforms.
+		rm -rvf %{BUILDROOT}%{datadir}/%{name}/hppa-firmware.img
+		rm -rvf %{BUILDROOT}%{datadir}/%{name}/openbios-ppc
+		rm -rvf %{BUILDROOT}%{datadir}/%{name}/openbios-sparc32
+		rm -rvf %{BUILDROOT}%{datadir}/%{name}/openbios-sparc64
+		rm -rvf %{BUILDROOT}%{datadir}/%{name}/palcode-clipper
+		rm -rvf %{BUILDROOT}%{datadir}/%{name}/s390-ccw.img
+		rm -rvf %{BUILDROOT}%{datadir}/%{name}/s390-netboot.img
+		rm -rvf %{BUILDROOT}%{datadir}/%{name}/u-boot.e500
+
 		# Make firmware non-executable
 		find %{BUILDROOT}%{datadir}/%{name} -type f -executable | xargs chmod -v a-x
 	end
-- 
2.30.2


                 reply	other threads:[~2023-03-17 18:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230317184320.540119-1-stefan.schantl@ipfire.org \
    --to=stefan.schantl@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox