From a8c1ffe3710b2d4ed45118a8a5547a7e6349c3d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Tue, 19 Dec 2023 14:44:33 +0100 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 blog revision e8ce05e9e1901367b544826219c0e66e --- .gitattributes | 23 +++++ blog-rpmlintrc | 4 + blog.changes | 190 ++++++++++++++++++++++++++++++++++++++++ blog.spec | 189 +++++++++++++++++++++++++++++++++++++++ showconsole-2.27.tar.gz | 3 + 5 files changed, 409 insertions(+) create mode 100644 .gitattributes create mode 100644 blog-rpmlintrc create mode 100644 blog.changes create mode 100644 blog.spec create mode 100644 showconsole-2.27.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/blog-rpmlintrc b/blog-rpmlintrc new file mode 100644 index 0000000..8ab8c6b --- /dev/null +++ b/blog-rpmlintrc @@ -0,0 +1,4 @@ +addFilter(".*systemd-service-without-service_del_p.*") +addFilter(".*systemd-service-without-service_add_p.*") +addFilter(".*suse-missing-rclink.*") +addFilter(".*E:.*unused-rpmlintrc-filter.*suse-missing-rclink.*") diff --git a/blog.changes b/blog.changes new file mode 100644 index 0000000..81fbb60 --- /dev/null +++ b/blog.changes @@ -0,0 +1,190 @@ +------------------------------------------------------------------- +Mon Jul 10 13:37:24 UTC 2023 - Dr. Werner Fink + +- Fix big endian cast problems to be able to read commands + and ansers (blogctl) as well as passphrases (blogd) + +------------------------------------------------------------------- +Tue Dec 27 10:23:56 UTC 2022 - Ludwig Nussel + +- Replace transitional %usrmerged macro with regular version check (boo#1206798) + +------------------------------------------------------------------- +Fri Dec 3 08:20:08 UTC 2021 - Dr. Werner Fink + +- Update to version 2.26 + * On s390/x and PPC64 gcc misses unused arg0 +- Remove patch fcb9e0c2.patch as now part of tar ball + +------------------------------------------------------------------- +Thu Dec 2 15:02:35 UTC 2021 - Dr. Werner Fink + +- Add upstream patch fcb9e0c2.patch + * On s390/x and PPC64 gcc misses unused arg0 + +------------------------------------------------------------------- +Thu Dec 2 13:11:05 UTC 2021 - Dr. Werner Fink + +- Update to version 2.24 + * Avoid install errror due missed directory + +------------------------------------------------------------------- +Thu Dec 2 11:36:36 UTC 2021 - Dr. Werner Fink + +- Update to version 2.22 + * Avoid KillMode=none for newer systemd version as well as rework + the systemd unit files of blog (boo#1186506) + +------------------------------------------------------------------- +Thu Sep 30 10:01:29 UTC 2021 - Dr. Werner Fink + +- Move to /usr for UsrMerge (boo#1191057) + +------------------------------------------------------------------- +Fri Apr 9 08:53:45 UTC 2021 - Dr. Werner Fink + +- Update to version 2.21 + * Merge pull request #4 from samueldr/fix/makefile + Fixup Makefile for better build system support + * Silent new gcc compiler + +------------------------------------------------------------------- +Fri Apr 9 07:19:38 UTC 2021 - Dr. Werner Fink + +- Fix package split done for shared library packaging guideline (bsc#1184479). + +------------------------------------------------------------------- +Thu Jan 9 11:34:47 UTC 2020 - Dr. Werner Fink + +- Update to version 2.20 + * Silent some gcc warnings, also avoid common variable (boo#1160385) + * Include for makedev + * sort input files (boo#1041090) + * libconsole: never return empty list from getconsoles() + * libconsole: Really allow to use /dev/console as a fallback in showconsole + * libconsole: Add console into the list only when successfully allocated + * libconsole: Correctly ignore early consoles +- Remove obsolate patch blog-Remove-unused-header.patch + +------------------------------------------------------------------- +Fri Aug 30 19:45:55 UTC 2019 - Bjørn Lie + +- Add blog-Remove-unused-header.patch: Fix build with new glibc + (gh#bitstreamout/showconsole#3). + +------------------------------------------------------------------- +Sat Apr 20 12:09:49 UTC 2019 - Jan Engelhardt + +- Implement shared library packaging guideline. + +------------------------------------------------------------------- +Thu Aug 2 08:03:10 UTC 2018 - werner@suse.de + +- Update to version 2.19 which integrates the patches now removed: + * sysmacros.patch + * libconsole-Really-allow-to-use-dev-console-as-a-fall.patch + * libconsole-never-return-empty-list-from-getconsoles.patch + * showconsole-2.18.tar.gz + * libconsole-Add-console-into-the-list-only-when-succe.patch + * libconsole-Correctly-ignore-early-consoles.patch + as well as the changes + * Correct wants directory for systemd-ask-password-blog.service + * Sort input files for reproducible builds + +------------------------------------------------------------------- +Wed Aug 1 14:33:06 UTC 2018 - schwab@suse.de + +- sysmacros.patch: Include for makedev + +------------------------------------------------------------------- +Mon Mar 19 15:31:33 CET 2018 - kukuk@suse.de + +- Use %license instead of %doc [bsc#1082318] + +------------------------------------------------------------------- +Tue Dec 12 15:30:53 UTC 2017 - pmladek@suse.com + +- hardening of the console list generation (bsc#1071568): + * libconsole-never-return-empty-list-from-getconsoles.patch + * libconsole-Really-allow-to-use-dev-console-as-a-fall.patch + * libconsole-Add-console-into-the-list-only-when-succe.patch + * libconsole-Correctly-ignore-early-consoles.patch + +------------------------------------------------------------------- +Mon Nov 6 09:28:13 UTC 2017 - werner@suse.de + +- Change description of blog-plymouth in same manner as used by + the release notes + +------------------------------------------------------------------- +Thu Apr 27 16:00:31 UTC 2017 - werner@suse.de + +- Add coreutils as required by post scriptlet (boo#1036436) + +------------------------------------------------------------------- +Wed Jan 25 12:30:03 UTC 2017 - werner@suse.de + +- Use github source from tagged version + +------------------------------------------------------------------- +Wed Jan 25 12:13:13 UTC 2017 - werner@suse.de + +- Use https://github.com/bitstreamout/showconsole as URL + +------------------------------------------------------------------- +Thu Aug 11 10:21:35 UTC 2016 - olaf@aepfle.de + +- Install binaries with read permissions (bnc#990837) + +------------------------------------------------------------------- +Mon Feb 22 12:17:51 UTC 2016 - werner@suse.de + +- Do not use privata glibc API (boo#967437) but implement + missing shared memory mkstemp() +- Remove patch remove-bad-symbol-use.patch + +------------------------------------------------------------------- +Mon Feb 22 10:00:13 UTC 2016 - schwab@suse.de + +- remove-bad-symbol-use.patch: Remove bad use of internal glibc interface + (bnc#967437) + +------------------------------------------------------------------- +Fri Feb 19 16:30:46 UTC 2016 - werner@suse.de + +- Make clear that blog is split off from sysvinit-tools +- Avoid to be tagged with GLIBC_PRIVATE +- Use libblogger.so with version, that is major and minor + +------------------------------------------------------------------- +Fri Feb 19 15:42:23 UTC 2016 - werner@suse.de + +- Bug fix version: Handle chached password request gracefully + +------------------------------------------------------------------- +Wed Feb 10 10:24:10 UTC 2016 - meissner@suse.com + +- add blog-rpmlintrc. The all-manual handling of systemd services + is required according to Werner. + +------------------------------------------------------------------- +Thu Feb 4 10:40:34 UTC 2016 - werner@suse.de + +- Let libblogger become a shared library + +------------------------------------------------------------------- +Fri Jan 22 13:54:45 UTC 2016 - werner@suse.de + +- Clean up service uits for close and umount + +------------------------------------------------------------------- +Fri Jan 15 07:41:24 UTC 2016 - werner@suse.de + +- First initial package after splitting apart from sysvinit + * Now blogd can replace plymouth(9) even from initrd + * Also blogd is able to handle password requests from + from systemd API + * The blogd daemon writes out console messages even on reboot + or halt up to the file systems become unavailable. + * No locking of the console devices, no frame buffer switching. + diff --git a/blog.spec b/blog.spec new file mode 100644 index 0000000..1b2f1d8 --- /dev/null +++ b/blog.spec @@ -0,0 +1,189 @@ +# +# spec file for package blog +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: blog +Version: 2.27 +%define sonum 2 +Release: 0 +Summary: Boot logging +License: GPL-2.0-or-later +Group: System/Base +URL: https://github.com/bitstreamout/showconsole +Source: https://github.com/bitstreamout/showconsole/archive/v%{version}.tar.gz#/showconsole-%{version}.tar.gz +Source1: blog-rpmlintrc +BuildRequires: suse-module-tools +Requires(post): coreutils +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Provides: sysvinit-tools:/sbin/blogd +Suggests: blog-plymouth = %{version} + +%description +The blogd daemon determines the real underlying character device of +/dev/console. Blogd spawns a pty/tty pair to reconnect the current +/dev/console with the slave of the pty/tty pair. During writing +information from this slave to the real character device a ring +buffer is used to hold the information for writing it to an existing +logging file. + +%package -n libblogger%{sonum} +Summary: FIFO interface used by startproc +Group: System/Libraries +%if %sonum == 2 +Provides: %{name}:%{_libdir}/libblogger.so.2 +%endif + +%description -n libblogger%{sonum} +The libaray for the FIFO interface used by the LSB startproc command. + +%package plymouth +Summary: Replaces plymouth by blogd +Group: System/Base +Requires: blog = %{version} +Requires: systemd +Conflicts: plymouth +Conflicts: plymouth-dracut + +%description plymouth +The Blogd daemon can be used as a replacement for Plymouth in situations where +a splash screen and/or usage of a frame buffer is unwanted. The Blogd is also +a Plymouth agent. That means, it can handle requests for a password prompt by +the system password service of systemd. +The blogd daemon writes out boot log messages to every terminal device used by +/dev/console and to the log file /var/log/boot.log. When halting or rebooting +the system, it moves the log file to /var/log/boot.old and appends all log +messages upto to point at which the file systems becomes unavailable. + +%package devel +Summary: Provides library and header for boot logging +Group: Development/Libraries/C and C++ +Requires: libblogger%{sonum} = %{version} + +%description devel +The libaray and the header file for the FIFO interface used to build +the LSB startproc command. + +%prep +%setup -q -n showconsole-%version + +%build +make %{?_smp_mflags} CC="%__cc" \ + LIBDIR=%{_libdir} \ + INCDIR=%{_includedir} \ + SYSDUNITS=%{_unitdir} \ + BOOT_LOGFILE=%{_localstatedir}/log/boot.log \ + BOOT_OLDLOGFILE=%{_localstatedir}/log/boot.old + +%install +%make_install \ + MANPATH=%{_mandir} \ + INSTBINFLAGS="-m 0744" \ +%if 0%{?suse_version} >= 1550 + SBINDIR=%{_sbindir} \ +%endif + LIBDIR=%{_libdir} \ + INCDIR=%{_includedir} \ + SYSDUNITS=%{_unitdir} \ + BOOT_LOGFILE=%{_localstatedir}/log/boot.log \ + BOOT_OLDLOGFILE=%{_localstatedir}/log/boot.old + +rm -vf %{buildroot}%{_unitdir}/systemd-ask-password-blog.service.wants/systemd-vconsole-setup.service + +%post -n libblogger%{sonum} -p /sbin/ldconfig +%postun -n libblogger%{sonum} -p /sbin/ldconfig + +%post plymouth +ln -sf ../systemd-vconsole-setup.service %{_unitdir}/systemd-ask-password-blog.service.wants/ +test -x /bin/systemctl && /bin/systemctl daemon-reload >/dev/null 2>&1 || : +%{?regenerate_initrd_post} + +%postun plymouth +test -x /bin/systemctl && /bin/systemctl daemon-reload >/dev/null 2>&1 || : + +%posttrans plymouth +%{?regenerate_initrd_posttrans} + +%files +%defattr(-,root,root) +%license COPYING +%doc README +%if 0%{?suse_version} < 1550 +/sbin/blogctl +/sbin/blogd +/sbin/blogger +/sbin/isserial +/sbin/setconsole +/sbin/showconsole +%else +%{_sbindir}/blogctl +%{_sbindir}/blogd +%{_sbindir}/blogger +%{_sbindir}/isserial +%{_sbindir}/setconsole +%{_sbindir}/showconsole +%endif +%doc %{_mandir}/man8/blogctl.8.gz +%doc %{_mandir}/man8/blogd.8.gz +%doc %{_mandir}/man8/blogger.8.gz +%doc %{_mandir}/man8/isserial.8.gz +%doc %{_mandir}/man8/setconsole.8.gz +%doc %{_mandir}/man8/showconsole.8.gz + +%files -n libblogger%{sonum} +%{_libdir}/libblogger.so.* + +%files devel +%defattr(-,root,root) +%{_includedir}/libblogger.h +%{_libdir}/libblogger.so + +%files plymouth +%defattr(-,root,root) +%dir %{_prefix}/lib/dracut/ +%dir %{_prefix}/lib/dracut/modules.d/ +%dir %{_prefix}/lib/dracut/modules.d/99blog/ +%dir %{_unitdir}/basic.target.wants/ +%dir %{_unitdir}/default.target.wants/ +%dir %{_unitdir}/emergency.target.wants/ +%dir %{_unitdir}/initrd-switch-root.target.wants/ +%dir %{_unitdir}/rescue.target.wants/ +%dir %{_unitdir}/sysinit.target.wants/ +%dir %{_unitdir}/shutdown.target.wants/ +%dir %{_unitdir}/local-fs-pre.target.wants/ +%dir %{_unitdir}/systemd-ask-password-blog.service.wants/ +%{_prefix}/lib/dracut/modules.d/99blog/module-setup.sh +%{_unitdir}/blog-final.service +%{_unitdir}/blog-quit.service +%{_unitdir}/blog-store-messages.service +%{_unitdir}/blog-switch-root.service +%{_unitdir}/blog.service +%{_unitdir}/systemd-ask-password-blog.path +%{_unitdir}/systemd-ask-password-blog.service +%{_unitdir}/blog-umount.service +%{_unitdir}/basic.target.wants/blog.service +%{_unitdir}/default.target.wants/blog-quit.service +%{_unitdir}/emergency.target.wants/blog-quit.service +%{_unitdir}/initrd-switch-root.target.wants/blog-switch-root.service +%{_unitdir}/initrd-switch-root.target.wants/blog.service +%{_unitdir}/rescue.target.wants/blog-quit.service +%{_unitdir}/sysinit.target.wants/blog-store-messages.service +%{_unitdir}/sysinit.target.wants/systemd-ask-password-blog.path +%{_unitdir}/shutdown.target.wants/blog-final.service +%{_unitdir}/local-fs-pre.target.wants/blog-umount.service +%ghost %{_unitdir}/systemd-ask-password-blog.service.wants/systemd-vconsole-setup.service + +%changelog diff --git a/showconsole-2.27.tar.gz b/showconsole-2.27.tar.gz new file mode 100644 index 0000000..d0b17e4 --- /dev/null +++ b/showconsole-2.27.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3ae1891ee1c4000fa9d35d663110bd109743dcfa22fee289ba94a1bb7831c0e9 +size 41100