commit blog for openSUSE:Factory
Hello community, here is the log from the commit of package blog for openSUSE:Factory checked in at 2020-01-18 12:13:31 Comparing /work/SRC/openSUSE:Factory/blog (Old) and /work/SRC/openSUSE:Factory/.blog.new.26092 (New) Package is "blog" Sat Jan 18 12:13:31 2020 rev:12 rq:762162 version:2.20 Changes: --- /work/SRC/openSUSE:Factory/blog/blog.changes2019-09-20 14:44:35.430985392 +0200 +++ /work/SRC/openSUSE:Factory/.blog.new.26092/blog.changes 2020-01-18 12:13:34.330992215 +0100 @@ -1,0 +2,13 @@ +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 + +--- Old: blog-Remove-unused-header.patch showconsole-2.19.tar.gz New: showconsole-2.20.tar.gz Other differences: -- ++ blog.spec ++ --- /var/tmp/diff_new_pack.5BbEQx/_old 2020-01-18 12:13:36.342993294 +0100 +++ /var/tmp/diff_new_pack.5BbEQx/_new 2020-01-18 12:13:36.342993294 +0100 @@ -1,7 +1,7 @@ # # spec file for package blog # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,17 +17,14 @@ Name: blog -Version:2.19 +Version:2.20 Release:0 Summary:Boot logging License:GPL-2.0-or-later Group: System/Base -Url:https://github.com/bitstreamout/showconsole +URL:https://github.com/bitstreamout/showconsole Source: https://github.com/bitstreamout/showconsole/archive/v%{version}.tar.gz#/showconsole-%{version}.tar.gz Source1:blog-rpmlintrc -# PATCH-FIX-UPSTREAM blog-Remove-unused-header.patch -- Fix build with new glibc -Patch0: blog-Remove-unused-header.patch - BuildRequires: suse-module-tools Requires(post): coreutils BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -76,7 +73,6 @@ %prep %setup -q -n showconsole-%version -%patch0 -p1 %build make %{?_smp_mflags} CC="%__cc" \ ++ showconsole-2.19.tar.gz -> showconsole-2.20.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/showconsole-2.19/README.md new/showconsole-2.20/README.md --- old/showconsole-2.19/README.md 2018-08-02 09:33:35.0 +0200 +++ new/showconsole-2.20/README.md 2020-01-09 12:22:44.0 +0100 @@ -3,7 +3,7 @@ The package showconsole includes several helpers which had been developed over the years for SUSE and openSUSE Linux. There are - * blogd - Doe boot logging on /dev/console + * blogd - Does boot logging on /dev/console * blogctl - Control the boot logging daemon blogd * blogger - Writes messages to a running blogd process * isserial- Determines if the underlying tty of stdin is a serial line diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/showconsole-2.19/blogd.c new/showconsole-2.20/blogd.c --- old/showconsole-2.19/blogd.c2018-08-02 09:33:35.0 +0200 +++ new/showconsole-2.20/blogd.c2020-01-09 12:22:44.0 +0100 @@ -25,7 +25,6 @@ #include #include #include -#include #include #include #include @@ -435,12 +434,13 @@ { const char *msg = "can not get terminal flags of stdin\n"; int flags; + int ret __attribute__ ((unused)); if ((flags = fcntl(0, F_GETFL)) < 0) list_for_each_entry(c, &cons->node, node) { if (c->fd < 0) continue; - (void)write(c->fd, msg, strlen(msg)); + ret = write(c->fd, msg, strlen(msg)); } else { flags &= ~(O_NONBLOCK); @@ -449,7 +449,7 @@ list_for_each_entry(c, &cons->node, node) { if (c->fd < 0) continue; - (void)write(c->fd, msg, strlen(msg)); + ret = write(c->fd, msg, strlen(msg)); } } } @@ -468,11 +468,12 @@ list_for_each_entry(c, &cons->node, node) {
commit blog for openSUSE:Factory
Hello community, here is the log from the commit of package blog for openSUSE:Factory checked in at 2019-09-20 14:44:31 Comparing /work/SRC/openSUSE:Factory/blog (Old) and /work/SRC/openSUSE:Factory/.blog.new.7948 (New) Package is "blog" Fri Sep 20 14:44:31 2019 rev:11 rq:729450 version:2.19 Changes: --- /work/SRC/openSUSE:Factory/blog/blog.changes2019-05-06 13:19:51.208329390 +0200 +++ /work/SRC/openSUSE:Factory/.blog.new.7948/blog.changes 2019-09-20 14:44:35.430985392 +0200 @@ -1,0 +2,6 @@ +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). + +--- New: blog-Remove-unused-header.patch Other differences: -- ++ blog.spec ++ --- /var/tmp/diff_new_pack.ydr530/_old 2019-09-20 14:44:35.978985284 +0200 +++ /var/tmp/diff_new_pack.ydr530/_new 2019-09-20 14:44:35.982985283 +0200 @@ -25,6 +25,9 @@ Url:https://github.com/bitstreamout/showconsole Source: https://github.com/bitstreamout/showconsole/archive/v%{version}.tar.gz#/showconsole-%{version}.tar.gz Source1:blog-rpmlintrc +# PATCH-FIX-UPSTREAM blog-Remove-unused-header.patch -- Fix build with new glibc +Patch0: blog-Remove-unused-header.patch + BuildRequires: suse-module-tools Requires(post): coreutils BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -73,6 +76,7 @@ %prep %setup -q -n showconsole-%version +%patch0 -p1 %build make %{?_smp_mflags} CC="%__cc" \ ++ blog-Remove-unused-header.patch ++ >From 9e1deae58be4391d611c41d89733b5f2678d3212 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Thu, 8 Aug 2019 15:53:04 +0200 Subject: [PATCH] Remove unused header --- blogd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/blogd.c b/blogd.c index c1179ec..3635d4f 100644 --- a/blogd.c +++ b/blogd.c @@ -25,7 +25,6 @@ #include #include #include -#include #include #include #include
commit blog for openSUSE:Factory
Hello community, here is the log from the commit of package blog for openSUSE:Factory checked in at 2019-05-06 13:19:49 Comparing /work/SRC/openSUSE:Factory/blog (Old) and /work/SRC/openSUSE:Factory/.blog.new.5148 (New) Package is "blog" Mon May 6 13:19:49 2019 rev:10 rq:700250 version:2.19 Changes: --- /work/SRC/openSUSE:Factory/blog/blog.changes2018-08-06 11:52:33.313064973 +0200 +++ /work/SRC/openSUSE:Factory/.blog.new.5148/blog.changes 2019-05-06 13:19:51.208329390 +0200 @@ -1,0 +2,5 @@ +Sat Apr 20 12:09:49 UTC 2019 - Jan Engelhardt + +- Implement shared library packaging guideline. + +--- Other differences: -- ++ blog.spec ++ --- /var/tmp/diff_new_pack.h37vBf/_old 2019-05-06 13:19:51.744330611 +0200 +++ /var/tmp/diff_new_pack.h37vBf/_new 2019-05-06 13:19:51.744330611 +0200 @@ -1,7 +1,7 @@ # # spec file for package blog # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -38,6 +38,13 @@ buffer is used to hold the information for writing it to an existing logging file. +%package -n libblogger2 +Summary:FIFO interface used by startproc +Group: System/Libraries + +%description -n libblogger2 +The libaray for the FIFO interface used by the LSB startproc command. + %package plymouth Summary:Replaces plymouth by blogd Group: System/Base @@ -58,7 +65,7 @@ %package devel Summary:Provides library and header for boot logging Group: Development/Libraries/C and C++ -Requires: blog = %{version} +Requires: libblogger2 = %{version} %description devel The libaray and the header file for the FIFO interface used to build @@ -76,24 +83,24 @@ BOOT_OLDLOGFILE=%{_localstatedir}/log/boot.old %install -make %{?_smp_mflags} install \ +%make_install \ MANPATH=%{_mandir} \ INSTBINFLAGS="-m 0744" \ LIBDIR=%{_libdir} \ INCDIR=%{_includedir} \ SYSDUNITS=%{_unitdir} \ BOOT_LOGFILE=%{_localstatedir}/log/boot.log \ -BOOT_OLDLOGFILE=%{_localstatedir}/log/boot.old \ -DESTDIR=%{buildroot} +BOOT_OLDLOGFILE=%{_localstatedir}/log/boot.old %post %{?regenerate_initrd_post} test -x /bin/systemctl && /bin/systemctl daemon-reload >/dev/null 2>&1 || : -test -x /sbin/ldconfig && /sbin/ldconfig || : %postun test -x /bin/systemctl && /bin/systemctl daemon-reload >/dev/null 2>&1 || : -test -x /sbin/ldconfig && /sbin/ldconfig || : + +%post -n libblogger2 -p /sbin/ldconfig +%postun -n libblogger2 -p /sbin/ldconfig %posttrans %{?regenerate_initrd_posttrans} @@ -108,7 +115,6 @@ /sbin/isserial /sbin/setconsole /sbin/showconsole -%{_libdir}/libblogger.so.* %doc %{_mandir}/man8/blogctl.8.gz %doc %{_mandir}/man8/blogd.8.gz %doc %{_mandir}/man8/blogger.8.gz @@ -116,6 +122,9 @@ %doc %{_mandir}/man8/setconsole.8.gz %doc %{_mandir}/man8/showconsole.8.gz +%files -n libblogger2 +%{_libdir}/libblogger.so.* + %files devel %defattr(-,root,root) %{_includedir}/libblogger.h
commit blog for openSUSE:Factory
Hello community, here is the log from the commit of package blog for openSUSE:Factory checked in at 2018-08-06 11:52:32 Comparing /work/SRC/openSUSE:Factory/blog (Old) and /work/SRC/openSUSE:Factory/.blog.new (New) Package is "blog" Mon Aug 6 11:52:32 2018 rev:9 rq:627027 version:2.19 Changes: --- /work/SRC/openSUSE:Factory/blog/blog.changes2018-03-26 12:00:37.760084832 +0200 +++ /work/SRC/openSUSE:Factory/.blog.new/blog.changes 2018-08-06 11:52:33.313064973 +0200 @@ -1,0 +2,19 @@ +Thu Aug 2 08:03:10 UTC 2018 - wer...@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 - sch...@suse.de + +- sysmacros.patch: Include for makedev + +--- Old: libconsole-Add-console-into-the-list-only-when-succe.patch libconsole-Correctly-ignore-early-consoles.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 New: showconsole-2.19.tar.gz Other differences: -- ++ blog.spec ++ --- /var/tmp/diff_new_pack.DFRI03/_old 2018-08-06 11:52:33.977066125 +0200 +++ /var/tmp/diff_new_pack.DFRI03/_new 2018-08-06 11:52:33.977066125 +0200 @@ -17,7 +17,7 @@ Name: blog -Version:2.18 +Version:2.19 Release:0 Summary:Boot logging License:GPL-2.0-or-later @@ -29,14 +29,6 @@ Requires(post): coreutils BuildRoot: %{_tmppath}/%{name}-%{version}-build Provides: sysvinit-tools:/sbin/blogd -# PATCH-FIX-UPSTREAM libconsole-never-return-empty-list-from-getconsoles.patch bsc#1071568 -Patch0: libconsole-never-return-empty-list-from-getconsoles.patch -# PATCH-FIX-UPSTREAM libconsole-Really-allow-to-use-dev-console-as-a-fall.patch bsc#1071568 -Patch1: libconsole-Really-allow-to-use-dev-console-as-a-fall.patch -# PATCH-FIX-UPSTREAM libconsole-Add-console-into-the-list-only-when-succe.patch bsc#1071568 -Patch2: libconsole-Add-console-into-the-list-only-when-succe.patch -# PATCH-FIX-UPSTREAM libconsole-Correctly-ignore-early-consoles.patch bsc#1071568 -Patch3: libconsole-Correctly-ignore-early-consoles.patch %description The blogd daemon determines the real underlying character device of @@ -74,10 +66,6 @@ %prep %setup -q -n showconsole-%version -%patch0 -p1 -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 %build make %{?_smp_mflags} CC="%__cc" \ ++ showconsole-2.18.tar.gz -> showconsole-2.19.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/showconsole-2.18/Makefile new/showconsole-2.19/Makefile --- old/showconsole-2.18/Makefile 2016-04-26 15:04:45.0 +0200 +++ new/showconsole-2.19/Makefile 2018-08-02 09:33:35.0 +0200 @@ -71,7 +71,7 @@ TODO += blog-store-messages.service blogd.8 blogger.8 L := libconsole/ CFLAGS += -I ./ -I ./$(L) -libfiles := $(wildcard $(L)*.c) +libfiles := $(sort $(wildcard $(L)*.c)) all: $(TODO) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/showconsole-2.18/libconsole/console.c new/showconsole-2.19/libconsole/console.c --- old/showconsole-2.18/libconsole/console.c 2016-04-26 15:04:45.0 +0200 +++ new/showconsole-2.19/libconsole/console.c 2018-08-02 09:33:35.0 +0200 @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -531,13 +532,39 @@ return; } +static int consinitIO(struct console *newc) +{ +int tflags; + +if ((newc->fd = open(newc->tty, O_WRONLY|O_NONBLOCK|O_NOCTTY)) < 0) { + if (errno == EACCES) + error("can not open %s", newc->tty); + warn("can not open %s", newc->tty); + return 0; +} + +newc->tlock = 0; +newc->max_canon = _POSIX_MAX_CANON; +memset(&newc->ltio, 0, sizeof(newc->ltio)); +memset(&newc->otio, 0, sizeof(newc->otio)); +memset(&newc->ctio, 0, sizeof(newc->ctio)); +if ((tflags = fcntl(newc->fd, F_GETFL)) < 0) + warn("can not get terminal flags of %s", newc->tty); + +tflags &= ~(O_NONBLOCK); +tflags
commit blog for openSUSE:Factory
Hello community, here is the log from the commit of package blog for openSUSE:Factory checked in at 2018-03-26 12:00:21 Comparing /work/SRC/openSUSE:Factory/blog (Old) and /work/SRC/openSUSE:Factory/.blog.new (New) Package is "blog" Mon Mar 26 12:00:21 2018 rev:8 rq:588693 version:2.18 Changes: --- /work/SRC/openSUSE:Factory/blog/blog.changes2017-12-15 14:01:29.703884564 +0100 +++ /work/SRC/openSUSE:Factory/.blog.new/blog.changes 2018-03-26 12:00:37.760084832 +0200 @@ -1,0 +2,5 @@ +Mon Mar 19 15:31:33 CET 2018 - ku...@suse.de + +- Use %license instead of %doc [bsc#1082318] + +--- Other differences: -- ++ blog.spec ++ --- /var/tmp/diff_new_pack.YGcXPO/_old 2018-03-26 12:00:40.767976315 +0200 +++ /var/tmp/diff_new_pack.YGcXPO/_new 2018-03-26 12:00:40.771976171 +0200 @@ -1,7 +1,7 @@ # # spec file for package blog # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,7 +20,7 @@ Version:2.18 Release:0 Summary:Boot logging -License:GPL-2.0+ +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 @@ -112,7 +112,8 @@ %files %defattr(-,root,root) -%doc README COPYING +%license COPYING +%doc README /sbin/blogctl /sbin/blogd /sbin/blogger
commit blog for openSUSE:Factory
Hello community, here is the log from the commit of package blog for openSUSE:Factory checked in at 2017-12-15 14:01:22 Comparing /work/SRC/openSUSE:Factory/blog (Old) and /work/SRC/openSUSE:Factory/.blog.new (New) Package is "blog" Fri Dec 15 14:01:22 2017 rev:7 rq:556528 version:2.18 Changes: --- /work/SRC/openSUSE:Factory/blog/blog.changes2017-11-10 14:41:25.938714936 +0100 +++ /work/SRC/openSUSE:Factory/.blog.new/blog.changes 2017-12-15 14:01:29.703884564 +0100 @@ -1,0 +2,9 @@ +Tue Dec 12 15:30:53 UTC 2017 - pmla...@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 + +--- New: libconsole-Add-console-into-the-list-only-when-succe.patch libconsole-Correctly-ignore-early-consoles.patch libconsole-Really-allow-to-use-dev-console-as-a-fall.patch libconsole-never-return-empty-list-from-getconsoles.patch Other differences: -- ++ blog.spec ++ --- /var/tmp/diff_new_pack.QDpwVs/_old 2017-12-15 14:01:34.151669850 +0100 +++ /var/tmp/diff_new_pack.QDpwVs/_new 2017-12-15 14:01:34.151669850 +0100 @@ -29,6 +29,14 @@ Requires(post): coreutils BuildRoot: %{_tmppath}/%{name}-%{version}-build Provides: sysvinit-tools:/sbin/blogd +# PATCH-FIX-UPSTREAM libconsole-never-return-empty-list-from-getconsoles.patch bsc#1071568 +Patch0: libconsole-never-return-empty-list-from-getconsoles.patch +# PATCH-FIX-UPSTREAM libconsole-Really-allow-to-use-dev-console-as-a-fall.patch bsc#1071568 +Patch1: libconsole-Really-allow-to-use-dev-console-as-a-fall.patch +# PATCH-FIX-UPSTREAM libconsole-Add-console-into-the-list-only-when-succe.patch bsc#1071568 +Patch2: libconsole-Add-console-into-the-list-only-when-succe.patch +# PATCH-FIX-UPSTREAM libconsole-Correctly-ignore-early-consoles.patch bsc#1071568 +Patch3: libconsole-Correctly-ignore-early-consoles.patch %description The blogd daemon determines the real underlying character device of @@ -66,6 +74,10 @@ %prep %setup -q -n showconsole-%version +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 %build make %{?_smp_mflags} CC="%__cc" \ ++ libconsole-Add-console-into-the-list-only-when-succe.patch ++ From: Petr Mladek Date: Tue, 12 Dec 2017 11:41:19 +0100 Subject: libconsole: Add console into the list only when successfully allocated Git-commit: 34a74a07c05d53f7c71bf7ba44a48f8be32942fd References: bsc#1071568 Upstream: merged consalloc() initializes the console when it is used from blogd (io = 1). This operation might fail when the related tty device cannot be opened. The structure is freed in this case but it was already added into the list before. This might cause access to a freed memory. This patch moves the initialization code into a separate function. The structure is added to the list only when the initialization succeeds. It is freed otherwise. Signed-off-by: Petr Mladek --- libconsole/console.c | 57 +--- 1 file changed, 32 insertions(+), 25 deletions(-) diff --git a/libconsole/console.c b/libconsole/console.c index 600e22608630..47e95a4b9046 100644 --- a/libconsole/console.c +++ b/libconsole/console.c @@ -531,13 +531,39 @@ void closeIO(void) return; } +static int consinitIO(struct console *newc) +{ +int tflags; + +if ((newc->fd = open(newc->tty, O_WRONLY|O_NONBLOCK|O_NOCTTY)) < 0) { + if (errno == EACCES) + error("can not open %s", newc->tty); + warn("can not open %s", newc->tty); + return 0; +} + +newc->tlock = 0; +newc->max_canon = _POSIX_MAX_CANON; +memset(&newc->ltio, 0, sizeof(newc->ltio)); +memset(&newc->otio, 0, sizeof(newc->otio)); +memset(&newc->ctio, 0, sizeof(newc->ctio)); +if ((tflags = fcntl(newc->fd, F_GETFL)) < 0) + warn("can not get terminal flags of %s", newc->tty); + +tflags &= ~(O_NONBLOCK); +tflags |= O_NOCTTY; +if (fcntl(newc->fd, F_SETFL, tflags) < 0) + warn("can not set terminal flags of %s", newc->tty); + +return 1; +} + /* Allocate a console */ static list_t lcons = { &(lcons), &(lcons) }; static int consalloc(struct console **cons, char *name, const int cflags, const dev_t dev, int io) { struct console *newc; list_t *head; -int tflags; if (!cons) error("missing console pointer"); @@ -551,6 +577,11 @@ static int consalloc(struct console **cons, char *name, const int cflags, const newc
commit blog for openSUSE:Factory
Hello community, here is the log from the commit of package blog for openSUSE:Factory checked in at 2017-11-10 14:39:18 Comparing /work/SRC/openSUSE:Factory/blog (Old) and /work/SRC/openSUSE:Factory/.blog.new (New) Package is "blog" Fri Nov 10 14:39:18 2017 rev:6 rq:539230 version:2.18 Changes: --- /work/SRC/openSUSE:Factory/blog/blog.changes2017-05-09 17:58:06.795597042 +0200 +++ /work/SRC/openSUSE:Factory/.blog.new/blog.changes 2017-11-10 14:41:25.938714936 +0100 @@ -1,0 +2,6 @@ +Mon Nov 6 09:28:13 UTC 2017 - wer...@suse.de + +- Change description of blog-plymouth in same manner as used by + the release notes + +--- Other differences: -- ++ blog.spec ++ --- /var/tmp/diff_new_pack.ISSbHS/_old 2017-11-10 14:41:27.022675755 +0100 +++ /var/tmp/diff_new_pack.ISSbHS/_new 2017-11-10 14:41:27.022675755 +0100 @@ -46,13 +46,14 @@ Conflicts: plymouth plymouth-dracut %description plymouth -The Blogd daemon can be used as fully replacement of Plymouth but without using -frame buffer to show any kind of a splash screen. The Blogd is also a Plymouth -agent, that is it is able to handle password ask requests done by the system -password service of systemd. The blogd daemon writes out boot log messages not -only to every terminal device used by /dev/console but also to the log file -/var/log/boot.log and moves at system reboot or halt this file to /var/log/boot.old -appending all log messages upto to point where the file systems become unavailable. +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
commit blog for openSUSE:Factory
Hello community, here is the log from the commit of package blog for openSUSE:Factory checked in at 2017-05-09 17:58:03 Comparing /work/SRC/openSUSE:Factory/blog (Old) and /work/SRC/openSUSE:Factory/.blog.new (New) Package is "blog" Tue May 9 17:58:03 2017 rev:5 rq:491647 version:2.18 Changes: --- /work/SRC/openSUSE:Factory/blog/blog.changes2017-02-03 17:32:04.900422812 +0100 +++ /work/SRC/openSUSE:Factory/.blog.new/blog.changes 2017-05-09 17:58:06.795597042 +0200 @@ -1,0 +2,5 @@ +Thu Apr 27 16:00:31 UTC 2017 - wer...@suse.de + +- Add coreutils as required by post scriptlet (boo#1036436) + +--- Other differences: -- ++ blog.spec ++ --- /var/tmp/diff_new_pack.5umUQh/_old 2017-05-09 17:58:08.967290159 +0200 +++ /var/tmp/diff_new_pack.5umUQh/_new 2017-05-09 17:58:08.971289593 +0200 @@ -26,6 +26,7 @@ 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
commit blog for openSUSE:Factory
Hello community, here is the log from the commit of package blog for openSUSE:Factory checked in at 2017-02-01 09:49:17 Comparing /work/SRC/openSUSE:Factory/blog (Old) and /work/SRC/openSUSE:Factory/.blog.new (New) Package is "blog" Changes: --- /work/SRC/openSUSE:Factory/blog/blog.changes2016-09-05 21:11:25.0 +0200 +++ /work/SRC/openSUSE:Factory/.blog.new/blog.changes 2017-02-03 17:32:04.900422812 +0100 @@ -1,0 +2,10 @@ +Wed Jan 25 12:30:03 UTC 2017 - wer...@suse.de + +- Use github source from tagged version + +--- +Wed Jan 25 12:13:13 UTC 2017 - wer...@suse.de + +- Use https://github.com/bitstreamout/showconsole as URL + +--- Old: showconsole-2.18.tar.bz2 New: showconsole-2.18.tar.gz Other differences: -- ++ blog.spec ++ --- /var/tmp/diff_new_pack.RoKCn4/_old 2017-02-03 17:32:05.232375828 +0100 +++ /var/tmp/diff_new_pack.RoKCn4/_new 2017-02-03 17:32:05.236375262 +0100 @@ -1,7 +1,7 @@ # # spec file for package blog # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,8 +22,8 @@ Summary:Boot logging License:GPL-2.0+ Group: System/Base -Url:https://build.opensuse.org/package/show/Base:System/blog -Source: showconsole-%{version}.tar.bz2 +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 BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -56,7 +56,7 @@ %package devel Summary:Provides library and header for boot logging Group: Development/Libraries/C and C++ -Requires: blog +Requires: blog = %{version} %description devel The libaray and the header file for the FIFO interface used to build
commit blog for openSUSE:Factory
Hello community, here is the log from the commit of package blog for openSUSE:Factory checked in at 2016-09-05 21:11:20 Comparing /work/SRC/openSUSE:Factory/blog (Old) and /work/SRC/openSUSE:Factory/.blog.new (New) Package is "blog" Changes: --- /work/SRC/openSUSE:Factory/blog/blog.changes2016-03-09 19:01:43.0 +0100 +++ /work/SRC/openSUSE:Factory/.blog.new/blog.changes 2016-09-05 21:11:25.0 +0200 @@ -1,0 +2,5 @@ +Thu Aug 11 10:21:35 UTC 2016 - o...@aepfle.de + +- Install binaries with read permissions (bnc#990837) + +--- Other differences: -- ++ blog.spec ++ --- /var/tmp/diff_new_pack.wIWCKx/_old 2016-09-05 21:11:27.0 +0200 +++ /var/tmp/diff_new_pack.wIWCKx/_new 2016-09-05 21:11:27.0 +0200 @@ -76,7 +76,7 @@ %install make %{?_smp_mflags} install \ MANPATH=%{_mandir} \ -INSTBINFLAGS="-m 0700" \ +INSTBINFLAGS="-m 0744" \ LIBDIR=%{_libdir} \ INCDIR=%{_includedir} \ SYSDUNITS=%{_unitdir} \
commit blog for openSUSE:Factory
Hello community, here is the log from the commit of package blog for openSUSE:Factory checked in at 2016-03-09 19:01:41 Comparing /work/SRC/openSUSE:Factory/blog (Old) and /work/SRC/openSUSE:Factory/.blog.new (New) Package is "blog" Changes: --- /work/SRC/openSUSE:Factory/blog/blog.changes2016-02-23 16:53:11.0 +0100 +++ /work/SRC/openSUSE:Factory/.blog.new/blog.changes 2016-03-09 19:01:43.0 +0100 @@ -1,0 +2,13 @@ +Mon Feb 22 12:17:51 UTC 2016 - wer...@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 - sch...@suse.de + +- remove-bad-symbol-use.patch: Remove bad use of internal glibc interface + (bnc#967437) + +--- Old: showconsole-2.17.tar.bz2 New: showconsole-2.18.tar.bz2 Other differences: -- ++ blog.spec ++ --- /var/tmp/diff_new_pack.YuBNlu/_old 2016-03-09 19:01:44.0 +0100 +++ /var/tmp/diff_new_pack.YuBNlu/_new 2016-03-09 19:01:44.0 +0100 @@ -16,10 +16,8 @@ # -%define __filter_GLIBC_PRIVATE 1 - Name: blog -Version:2.17 +Version:2.18 Release:0 Summary:Boot logging License:GPL-2.0+ ++ showconsole-2.17.tar.bz2 -> showconsole-2.18.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/showconsole-2.17/Makefile new/showconsole-2.18/Makefile --- old/showconsole-2.17/Makefile 2016-02-19 17:57:38.0 +0100 +++ new/showconsole-2.18/Makefile 2016-02-22 13:16:07.0 +0100 @@ -14,9 +14,9 @@ #DESTDIR = /tmp/root DEBUG = DESTDIR = -VERSION = 2.17 -MAJOR = 2 -MINOR = 17 +MAJOR := 2 +MINOR := 18 +VERSION := $(MAJOR).$(MINOR) DATE= $(shell date +'%d%b%y' | tr '[:lower:]' '[:upper:]') COPTS= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/showconsole-2.17/libconsole/shm.c new/showconsole-2.18/libconsole/shm.c --- old/showconsole-2.17/libconsole/shm.c 2015-12-16 13:09:26.0 +0100 +++ new/showconsole-2.18/libconsole/shm.c 2016-02-22 13:11:46.0 +0100 @@ -10,30 +10,84 @@ */ #include +#include +#include +#include #include +#include #include #include #include +#include #include #include "libconsole.h" -extern char *__mktemp(char *) __THROW __nonnull ((1)); +/* + * glibc does not provide a shm_mkstemp(char *template) and not + * using shm_open() but hard coded /dev/shm seems to by risky, + * therefore determine the location for POSIX shared memory. + */ + +static const char *devshm; + +static void _locateshm(void) __attribute__((__constructor__)); +static void _locateshm(void) +{ +static const char defaultdir[] = "/dev/shm"; +struct statfs st; +struct mntent *p; +FILE *mounts; +int ret; + +ret = statfs(defaultdir, &st); +if (ret == 0 && (st.f_type == RAMFS_MAGIC || st.f_type == TMPFS_MAGIC)) { + devshm = &defaultdir[0]; + return; +} + +mounts = setmntent("/proc/mounts", "re"); +if (!mounts) + return; /* Ouch! */ + +while((p = getmntent(mounts))) { + + if (strcmp(p->mnt_type, "tmpfs") != 0) + continue; + + if (strlen(p->mnt_dir) <= 0) + continue; + + ret = statfs(p->mnt_dir, &st); + if (ret < 0) + continue; + + if (st.f_type != RAMFS_MAGIC && st.f_type != TMPFS_MAGIC) + continue; + + devshm = strdup(p->mnt_dir); + break; +} + +endmntent(mounts); +} void* shm_malloc(size_t size, int flags) { -static char temp[] = "/blogd-XX"; -char *name; +char *template; void *area; int shmfd = -1; int ret; -name = __mktemp(&temp[0]); -if (!name) - error("can not generate temporay name"); - -shmfd = shm_open(name, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR); -if (shmfd < 0) - error("can not open shared memory object %s", name); +if (!devshm) + error("can not generate shared memory area"); + +ret = asprintf(&template, "%s/blogd-XX", devshm); +if (ret < 0) + error("can not allocate string for shared memory area"); + +shmfd = mkstemp(template); +if (ret < shmfd) + error("can not generate shared memory area"); ret = ftruncate(shmfd, size); if (ret < 0) @@ -43,6 +97,7 @@ if (area == MAP_FAILED) error("can not map shared memory object into memory"); -shm_unlink(na