ysenda / rpms / rt-setup

Forked from rpms/rt-setup 2 years ago
Clone

Blame SPECS/rt-setup.spec

882775
Name: rt-setup
882775
Version: 2.1
a06f5d
Release: 4%{?dist}
882775
License: GPL+
882775
Summary: Setup RHEL-RT environment details
882775
Group: System Environment/Base
882775
Source: rt-setup-%{version}.tar.bz2
882775
882775
ExclusiveArch: x86_64
882775
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
882775
BuildRequires: gcc
882775
BuildRequires: systemd
882775
BuildRequires: annobin
882775
Requires: pam >= 0.99.6.2-3.26
882775
Requires: /usr/sbin/groupadd
882775
Requires: kexec-tools
882775
Requires: tuna
882775
Requires: tuned
882775
Requires: tuned-profiles-realtime
882775
Requires: systemd
882775
a06f5d
# Patches
a06f5d
Patch1: rt-setup-remove-strip-of-rt-entsk.patch
a06f5d
882775
882775
%description
882775
The 'rt-setup' package configures details required by RHEL-RT environment.
882775
  - creates realtime group
882775
  - adds realtime limits configuration for PAM
882775
  - adds /usr/bin/rt-setup-kdump to config kdump in RT
882775
  - adds udev specific rules for threaded irqs and /dev/rtc access
882775
  - adds /usr/bin/slub_cpu_partial_off to turn off cpu_partials in SLUB
882775
  - adds net-socket timestamp static key daemon (rt-entsk)
882775
882775
%prep
882775
%setup
a06f5d
%patch1 -p1
882775
882775
%build
882775
%set_build_flags
882775
make all
882775
882775
%install
882775
rm -Rf %{buildroot}
882775
make DEST=%{buildroot} install
882775
882775
%post
882775
/usr/sbin/groupadd -f -g 71 realtime
882775
882775
if grep kernel.hung_task_panic /etc/sysctl.conf >/dev/null 2>&1
882775
then
882775
	:
882775
else
882775
	sysctl -w kernel.hung_task_panic=0 >/dev/null 2>&1
882775
	cat <<EOF >>/etc/sysctl.conf
882775
# controls whether the system should reboot if it detects a hung task
882775
# 1 means reboot after hung_task_timeout_secs after a hung task is detected
882775
# default value is 0
882775
kernel.hung_task_panic = 0
882775
EOF
882775
fi
882775
882775
if grep kernel.hung_task_timeout_secs /etc/sysctl.conf >/dev/null 2>&1
882775
then
882775
	:
882775
else
882775
	sysctl -w kernel.hung_task_timeout_secs=600 >/dev/null 2>&1
882775
	cat <<EOF >>/etc/sysctl.conf
882775
# controls how long to reboot after a hung task is detected
882775
# default is 600 seconds.
882775
# note: this only matters if kernel.hung_task_panic=1
882775
kernel.hung_task_timeout_secs = 600
882775
EOF
882775
fi
882775
882775
# turn on the rt-setup startup file
882775
systemctl enable rt-setup
882775
882775
%preun
882775
if [ "$1" = "0" ] ; then # uninstall
882775
systemctl disable rt-setup
882775
fi
882775
882775
%clean
882775
rm -rf %{buildroot}
882775
882775
%files
882775
%defattr(0644,root,root,0755)
882775
%config(noreplace) %{_sysconfdir}/security/limits.d/realtime.conf
882775
%config(noreplace) %{_sysconfdir}/udev/rules.d/99-rhel-rt.rules
882775
%config(noreplace) %{_sysconfdir}/sysconfig/rt-setup
882775
%attr(0755, root, root) %{_bindir}/rt-setup-kdump
882775
%attr(0755, root, root) %{_bindir}/slub_cpu_partial_off
882775
%attr(0755, root, root) %{_sbindir}/rt-entsk
882775
%attr(0755, root, root) %{_sbindir}/kernel-is-rt
882775
%attr(0644, root, root) %{_unitdir}/rt-setup.service
882775
%attr(0755, root, root) %{_bindir}/rt-setup
882775
%attr(0644, root, root) %{_unitdir}/rt-entsk.service
882775
882775
%changelog
a06f5d
* Thu May 19 2022 John Kacur <jkacur@redhat.com> - 2.1-4
a06f5d
- Remove '-s' argument to install to prevent stripping of rt-entsk
a06f5d
Resolves: rhbz#2068537
a06f5d
f63e32
* Wed Jan 19 2022 John Kacur <jkacur@redhat.com> - 2.1-3
f63e32
- Rebuild for rhel-8.6, no functional change
f63e32
Resolves: rhbz#2042221
f63e32
882775
* Mon Apr 01 2019 Clark Williams <williams@redhat.com> 2.1-2
882775
- added gating.yaml to turn on OSCI gating
882775
Resolves: rhbz#1682427
882775
882775
* Wed Mar 27 2019 Clark Williams <williams@redhat.com> 2.1-1
882775
- build for RHEL 8.1.0
882775
- added OSCI gating test framework
882775
Resolves: rhbz#1682427
882775
882775
* Tue Oct 23 2018 Clark Williams <williams@redhat.com> 2.0.10
882775
- rebuild to see if build-id continues to appear in the rpm
882775
882775
* Mon Sep 24 2018 Clark Williams <williams@redhat.com> 2.0.9
882775
- fix annocheck static source analysis errors
882775
Resolves: rhbz#1619407
882775
882775
* Fri Sep 14 2018 Clark Williams <williams@redhat.com> 2.0.8
882775
- fix some coverity complaints about shell scripts
882775
Resolves: rhbz#1619407
882775
882775
* Fri Sep 14 2018 Clark Williams <williams@redhat.com> 2.0.7
882775
- strip rt-entsk executable on installation
882775
Resolves: rhbz#1619407
882775
882775
* Fri Aug 24 2018 Clark Williams <williams@redhat.com> 2.0.6
882775
- check for open failure to make coverity happy
882775
Resolves: rhbz#1619407
882775
882775
* Fri Aug 24 2018 Clark Williams <williams@redhat.com> 2.0.5
882775
- move pidfile write to after daemonize in rt-entsk
882775
Resolves: rhbz#1619407
882775
882775
* Wed Aug 22 2018 Clark Williams <williams@redhat.com> 2.0.4
882775
- add logic to write a pid file in rt-entsk (keep systemd happy)
882775
Resolves: rhbz#1619407
882775
882775
* Wed Aug 22 2018 Clark Williams <williams@redhat.com> 2.0.3
882775
- sync with rhel-7.6 build
882775
Resolves: rhbz#1619407
882775
882775
* Wed Aug 22 2018 Clark Williams <williams@redhat.com> 2.0.2
882775
- fix installation of rt-entsk
882775
Resolves: rhbz#1619407
882775
882775
* Mon Aug 20 2018 Clark Williams <williams@redhat.com> 2.0.1
882775
- build for RHEL 8.0.0
882775
- add rt-entsk program for forcing network timestamps enabled
882775
Resolves: rhbz#1619407
882775
882775
* Wed Aug 08 2018 Clark Williams <williams@redhat.com> 1.59-8
882775
- remove libcgroup requirement
882775
- remove comment about irqbalance
882775
882775
* Fri Jun 01 2018 Luis Claudio R. Goncalves <lgoncalv@redhat.com> 1.59-7
882775
- rt-setup no longer rrequires rtctl (1585198)
882775
Resolves: rhbz#1585198
882775
882775
* Tue Jul 05 2016 John Kacur <jkacur@redhat.com> - 1.59-5
882775
- Rebuild for rhel-7.3
882775
Resolves: rhbz#1341783
882775
882775
* Tue Jun 14 2016 John Kacur <jkacur@redhat.com> - 1.59-3
882775
- Fix some spelling mistakes in the comments in rhel-rt.rules
882775
- Add udev rules to allow the realtime group to access msr and cpuid registers
882775
Resolves: rhbz#1341783
882775
882775
* Fri Jul 10 2015 Clark Williams <williams@redhat.com> - 1.59-2
882775
- removed post-install script that disables irqbalance (1203764)
882775
- fixed typo in requires for tuned-profiles-realtime (1241936)
882775
882775
* Thu Jul  2 2015 Clark Williams <williams@redhat.com> - 1.59-1
882775
- added tuned and tuna dependencies, removed sqlite  (1203764)
882775
882775
* Mon Dec 29 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.58-2
882775
- fixed rt-setup shell script called on startup (1162769)
882775
- removed the unnecessary mrg-rt-firmware logic (1162769)
882775
882775
* Fri Dec 26 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.58-1
882775
- make startup logic work with systemd (1162769)
882775
- product name cleanup (1173312)
882775
882775
* Fri Nov 28 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.57-6
882775
- remove a reference to mrg-rt-release from initscript (1162766)
882775
882775
* Mon Nov 24 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.57-5
882775
- move kernel-is-rt from /sbin to /usr/sbin (1151563)
882775
882775
* Tue Nov 18 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.57-4
882775
- remove the database used by mrg-rt-release (1162766)
882775
882775
* Tue Nov 11 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.57-3
882775
- remove mrg-rt-release (1162766)
882775
882775
* Tue Nov 04 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.57-2
882775
- remove the old dracut rules from RHEL6 (1160440)
882775
882775
* Wed Oct 29 2014 Clark Williams <williams@redhat.com> - 1.57-1
882775
- added mrg-2.5.8 release to mrg-rt-release database
882775
882775
* Tue Sep 30 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.56-2
882775
- added mrg-2.5.7 release to mrg-rt-release database
882775
882775
* Wed Aug 20 2014 Clark Williams <williams@redhat.com> - 1.56-1
882775
- added mrg-2.5.6 release to mrg-rt-release database
882775
- removed dracut rule that caused problems when adding firmware to initramfs
882775
882775
* Fri Jul 25 2014 Clark Williams <williams@redhat.com> - 1.55-8
882775
- added mrg-2.5.2 and mrg-2.5.4 releases to mrg-rt-release database
882775
882775
* Tue Jun 10 2014 John Kacur <jkacur@redhat.com> - 1.55-7
882775
- udev: Add udev rule to give group realtime write access to cpu_dma_latency
882775
882775
* Mon Apr 28 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.55-6
882775
- Added mrg-2.5 GA data to the mrg-rt-release database
882775
882775
* Wed Apr 09 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.55-5
882775
- Added mrg-2.4.6 data to the mrg-rt-release database
882775
882775
* Fri Mar 28 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.55-4
882775
- Trim the kernel version when read from uname -rt
882775
882775
* Tue Feb 18 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.55-3
882775
- Added mrg-2.4.5 data to the mrg-rt-release database
882775
882775
* Wed Jan 22 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.55-2
882775
- Added mrg-2.4.3 data to the mrg-rt-release database
882775
882775
* Tue Dec 10 2013 Clark Williams <williams@redhat.com> - 1.55-1
882775
- First common build for RHEL7 and RHEL6
882775
882775
* Thu Nov 28 2013 Luis Claudio R. Goncalves <lgoncalv@redhat.com> 1.54-2
882775
- Enhanced update-mrg-rt-release
882775
882775
* Thu Nov 28 2013 Luis Claudio R. Goncalves <lgoncalv@redhat.com> 1.54-1
882775
- Update mrg-rt-release on every boot [848433]
882775
882775
* Thu Aug 29 2013 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.53-4
882775
- add /lib/firmware/$(uname -r) to dracut firmware search path (998920)
882775
- ensure rt-firmware files are on udev firmware search path (998920)
882775
882775
* Thu Aug 22 2013 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.53-3
882775
- removed the dracut config file
882775
882775
* Tue Aug 20 2013 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.53-2
882775
- added configuration file for dracut (998920)
882775
- fixed macro usage on the specfile
882775
882775
* Thu Apr  25 2013 Clark Williams <williams@redhat.com> - 1.53-1
882775
- turn off cgroup mounting logic
882775
- added Requires for libcgroup
882775
882775
* Tue Apr   2 2013 Clark Williams <williams@redhat.com> - 1.52-1
882775
- added script slub_cpu_partial_off
882775
- added cgroups to /etc/sysconfig/rt-setup
882775
882775
* Wed Mar  27 2013 Clark Williams <williams@redhat.com> - 1.51-1
882775
- added code to turn off SLUB cpu_partial at startup
882775
882775
* Mon Nov  12 2012 Luis Claudio R. Goncalves  <lgoncalv@redhat.com> - 1.50-1
882775
- rt-setup-kdump: use mrg-2.x as the kdump kernel [868446] [868442] [868329]
882775
- rt-setup-kdump: simplified the script and added --rhel option
882775
882775
* Tue Mar   6 2012 Clark Williams <williams@redhat.com> - 1.11-1
882775
- removed %%post logic that disables bandwidth limiting [BZ# 791371]
882775
- changed rtprio from 100 to 99 in realtime.conf
882775
882775
* Thu Oct  13 2011 Clark Williams <williams@redhat.com> - 1.10-1
882775
- fixed thinko by removing firmware download logic
882775
882775
* Tue Oct  11 2011 Clark Williams <williams@redhat.com> - 1.9-1
882775
- added sysconfig and init script for handling cgroup mounting
882775
- changed script kernel-is-rt to use /sys/kernel/realtime
882775
882775
* Wed May 11 2011 Clark Williams <williams@redhat.com> - 1.8-1
882775
- simplified mrg-rt-firmware.rules to fix boot time hang on
882775
  large core machines (BZ# 698481)
882775
882775
* Fri Feb 11 2011 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.7-4
882775
- Normalized the RHEL6 firmware path search (due to uname -r changes)
882775
882775
* Thu May 27 2010 John Kacur <jkacur@redhat.com> - 1.7-2
882775
- set kernel.hung_task_panic=0 (off) by default
882775
- set kernel.hung_task_timeout_secs=600 by default
882775
- used sysctl to set sched_rt_runtime_us at install time, not just boot time
882775
882775
* Tue May 18 2010 Clark Williams <williams@redhat.com> - 1.7-1
882775
- removed requirement for kernel-rt (circular dependency)
882775
- cleaned up mrg-rt-firmware.rules (added commas between all key/value pairs)
882775
882775
* Wed Nov 25 2009 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.6-3
882775
- rt-setup-kdump: configure kdump on all MRG kernel flavors
882775
- rt-setup-kdump: fix a log entry that was too verbose
882775
882775
* Wed Nov 25 2009 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.6-2
882775
- rt-setup-kdump treats MRG v1 and v2 kernels accordingly (BZ# 517529)
882775
882775
* Mon Nov  2 2009 Clark Williams <williams@redhat.com> - 1.6-1
882775
- removed "@16" specifier from rt-setup-kdump script (BZ# 517529)
882775
882775
* Tue Sep  1 2009 Clark Williams <williams@redhat.com> - 1.5-2
882775
- fixed path mismatches reported by Vernon Maury
882775
882775
* Wed Aug 26 2009 Clark Williams <williams@redhat.com> - 1.5-1
882775
- add udev rules and scripts for handling driver firmware download
882775
882775
* Thu Jul  9 2009 Clark Williams <williams@redhat.com> - 1.4-1
882775
- blow away rtctl udev rule (compatibility problem with RHEL
882775
  version of udev)
882775
- update /dev/rtc udev rule to use PROGRAM rather than SYMLINK
882775
882775
* Tue Jul  7 2009 Clark Williams <williams@redhat.com> - 1.3-1
882775
- added udev rules file to address:
882775
 - BZ 510121 hwclock & /dev/rtc broken in rt-kernel
882775
 - BZ 466929 udev rule for hotplug rtctl
882775
882775
* Thu May 21 2009 Clark Williams <williams@redhat.com> - 1.2-1
882775
- added post section to edit /etc/sysctl.conf and add the
882775
  kernel.sched_rt_runtime_us parameter = -1 line to disable
882775
  the RT scheduler bandwith limiter
882775
882775
* Tue Jul 15 2008 Clark Williams <williams@redhat.com> - 1.1-6%{dist}
882775
- fixed rt-setup-kdump to handle incorrect arguments (BZ 455536)
882775
- added help argument to rt-setup-kdump
882775
882775
* Fri Jun 13 2008 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.1-5%{dist}
882775
- rt-setup-kdump now touches /etc/grub.conf only when requested
882775
882775
* Tue Jun 03 2008 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.1-4%{dist}
882775
- /usr/bin/rt-setup-kdump had wrong permissions
882775
- changed rt-setup-kdump: added a few tests for reserved memory and for the
882775
  absence of /etc/sysconfig/kdump
882775
- now rt-setup requires kexec-tools
882775
882775
* Mon May 12 2008 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.1-3%{dist}
882775
- disables irqbalance as it may hurt determinism in RT
882775
- installs rt-setup-kdump in /usr/bin
882775
882775
* Tue Apr 22 2008 Clark Williams <williams@redhat.com> - 1.1-2%{?dist}
882775
- removed sed script to edit kdump config file (using updated
882775
  kexec-tools instead)
882775
882775
* Mon Apr 21 2008 Clark Williams <williams@redhat.com> - 1.1-1%{?dist}
882775
- removed --args-linux from /etc/sysconfig/kdump (BZ# 432378)
882775
- changed BuildArch to noarch
882775
882775
* Thu Feb 07 2008 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.0-3%{?dist}
882775
- BZ:399591 - Fixed spec issues pointed by Jeremy Katz
882775
- BZ:399591 - @realtime has gid=71.
882775
- FIXES: BZ399591
882775
882775
* Thu Aug 02 2007 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.0-2%{?dist}
882775
- Fixed package description
882775
882775
* Mon Jul 30 2007 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.0-1%{?dist}
882775
- Initial packaging
882775
- Requires all the basic packages for RT
882775
- Requires support for limits.d and no realtime.conf present in PAM package