Remove '-s' argument to install to prevent stripping of realtime-entsk

Remove '-s' argument to install to prevent stripping of realtime-entsk

Resolves: rhbz#2068534
Signed-off-by: John Kacur <jkacur@redhat.com>
This commit is contained in:
John Kacur 2022-05-19 13:51:03 -04:00
parent 5a83695c51
commit c397bc7409
2 changed files with 58 additions and 5 deletions

View File

@ -1,6 +1,6 @@
Name: realtime-setup
Version: 2.2
Release: 5%{?dist}
Release: 6%{?dist}
License: GPLv2
Summary: Setup RT/low-latency environment details
Source0: https://jcwillia.fedorapeople.org/realtime-setup-%{version}.tar.bz2
@ -18,10 +18,9 @@ Requires: tuned
Requires: tuned-profiles-realtime
Requires: systemd
# disable generation of debuginfo packages for this package
# the only executable from this package is realtime-entsk and it's not really
# something that requires debugging.
%global debug_package %{nil}
# Patches
Patch1: remove-strip-of-realtime-entsk-and-generate-debuginf.patch
%description
Configure details useful for low-latency environments.
@ -47,6 +46,7 @@ Neither the slub script or realtime-entsk are active by default.
%prep
%setup -q
%patch1 -p1
%build
@ -74,6 +74,10 @@ Neither the slub script or realtime-entsk are active by default.
%license gpl-2.0.txt
%changelog
* Thu May 19 2022 John Kacur <jkacur@redhat.com> - 2.2-6
- Remove '-s' argument to install to prevent stripping of realtime-entsk
Resolves: rhbz#2068534
* Mon Jan 17 2022 John Kacur <jkacur@redhat.com> - 2.2-5
- Rebuild for rhel-9.0
Resolves: rhbz#2041542

View File

@ -0,0 +1,49 @@
From 9fce13856a7c4dbd55fed37edd9d5a8102bd98de Mon Sep 17 00:00:00 2001
From: Clark Williams <williams@redhat.com>
Date: Wed, 11 May 2022 16:28:46 -0500
Subject: [PATCH] remove strip of realtime-entsk and generate debuginfo
Resolves: rhbz#2068534
Removed '-s' argument to install to prevent stripping of realtime-entsk
Removed %global definition of debug_package to '%{nil}' that explicitly
turned off debuginfo generation
Signed-off-by: Clark Williams <williams@redhat.com>
---
Makefile | 2 +-
realtime-setup.spec | 5 -----
2 files changed, 1 insertion(+), 6 deletions(-)
diff --git a/Makefile b/Makefile
index f4a6f030c8a2..8e8a74d1e5d0 100644
--- a/Makefile
+++ b/Makefile
@@ -55,7 +55,7 @@ install:
install -m 755 -D realtime-setup.systemd $(DEST)/usr/bin/realtime-setup
install -m 644 -D realtime.conf $(DEST)/etc/security/limits.d/realtime.conf
install -m 644 -D realtime-entsk.service $(DEST)/usr/lib/systemd/system/realtime-entsk.service
- install -m 755 -D -s realtime-entsk $(DEST)/usr/sbin/realtime-entsk
+ install -m 755 -D realtime-entsk $(DEST)/usr/sbin/realtime-entsk
install -m 644 -D realtime-setup.service $(DEST)/usr/lib/systemd/system/realtime-setup.service
dist-git: tarball
diff --git a/realtime-setup.spec b/realtime-setup.spec
index 64c3f3a3fa52..402f66de24bf 100644
--- a/realtime-setup.spec
+++ b/realtime-setup.spec
@@ -18,11 +18,6 @@ Requires: tuned
Requires: tuned-profiles-realtime
Requires: systemd
-# disable generation of debuginfo packages for this package
-# the only executable from this package is realtime-entsk and it's not really
-# something that requires debugging.
-%global debug_package %{nil}
-
%description
Configure details useful for low-latency environments.
--
2.36.1