Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package blog for openSUSE:Factory checked in at 2026-03-20 21:19:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/blog (Old) and /work/SRC/openSUSE:Factory/.blog.new.8177 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "blog" Fri Mar 20 21:19:23 2026 rev:23 rq:1341094 version:2.37 Changes: -------- --- /work/SRC/openSUSE:Factory/blog/blog.changes 2026-03-18 16:49:32.122591307 +0100 +++ /work/SRC/openSUSE:Factory/.blog.new.8177/blog.changes 2026-03-20 21:19:43.501298343 +0100 @@ -1,0 +2,12 @@ +Thu Mar 19 07:30:54 UTC 2026 - Dr. Werner Fink <[email protected]> + +- Update to version 2.37 + * Make release.sh active + * Run klogctl with console massages off only once in the + password asking processes on the main console device only + * Clean up white spaces + * This will help on high console I/O as now blogd uses its epoll + event handler to monitor via a file descriptor open with pidfd_open + the password asking child processes (boo#1259547) + +------------------------------------------------------------------- Old: ---- showconsole-2.36.tar.gz New: ---- showconsole-2.37.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ blog.spec ++++++ --- /var/tmp/diff_new_pack.c34Nc7/_old 2026-03-20 21:19:44.985359826 +0100 +++ /var/tmp/diff_new_pack.c34Nc7/_new 2026-03-20 21:19:45.005360655 +0100 @@ -17,7 +17,7 @@ Name: blog -Version: 2.36 +Version: 2.37 %define sonum 2 Release: 0 Summary: Boot logging ++++++ showconsole-2.36.tar.gz -> showconsole-2.37.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/showconsole-2.36/.gitignore new/showconsole-2.37/.gitignore --- old/showconsole-2.36/.gitignore 2026-03-17 09:32:34.000000000 +0100 +++ new/showconsole-2.37/.gitignore 1970-01-01 01:00:00.000000000 +0100 @@ -1,18 +0,0 @@ -.gdb_history -core -log -isserial -blog-store-messages.service -blog-umount.service -blogctl -blogd -blogd.8 -blogger -blogger.8 -*.o -*.so -*.a -libconsole/*.o -libconsole/*.c.bak -libconsole/x.c -showconsole diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/showconsole-2.36/Makefile new/showconsole-2.37/Makefile --- old/showconsole-2.36/Makefile 2026-03-17 09:32:34.000000000 +0100 +++ new/showconsole-2.37/Makefile 2026-03-18 12:18:33.000000000 +0100 @@ -15,7 +15,7 @@ DEBUG = DESTDIR = MAJOR := 2 -MINOR := 35 +MINOR := 37 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.36/libconsole/console.c new/showconsole-2.37/libconsole/console.c --- old/showconsole-2.36/libconsole/console.c 2026-03-17 09:32:34.000000000 +0100 +++ new/showconsole-2.37/libconsole/console.c 2026-03-18 12:18:33.000000000 +0100 @@ -1055,7 +1055,7 @@ if (info.si_code == CLD_EXITED && info.si_status == 0) { asking = 0; /* Success! */ - + /* 1. Deliver the password and close the socket as well */ if (pwd_client_fd >= 0) { (void)do_answer_password(pwd_client_fd); @@ -1063,10 +1063,10 @@ close(pwd_client_fd); pwd_client_fd = -1; } - + /* 2. Enable Kernel-Logging to the console Konsole */ klogctl(SYSLOG_ACTION_CONSOLE_ON, NULL, 0); - + /* 3. Close other waiting password processes */ list_for_each_entry(c, &cons->node, node) { if (c->pid > 0 && c->pid != info.si_pid) { @@ -1175,6 +1175,18 @@ switch (magic[0]) { case MAGIC_ASK_PWD: +#ifdef DEBUG + warn("Got password request for prompt >%s<", arg); +#endif + if (asking) { + /* + * This should not happen as Systemd serialize password requests + */ + const char *nck = ANSWER_NCK; + safeout(fd, nck, strlen(nck)+1, SSIZE_MAX); + warn("Got further password request with prompt >%s<", arg); + goto job; + } if (!password) { void *tmp = shm_malloc(MAX_PASSLEN+sizeof(int32_t)); @@ -1191,7 +1203,9 @@ goto job; case MAGIC_CACHED_PWD: - +#ifdef DEBUG + warn("Got cached password request"); +#endif ret = do_answer_password(fd); if (ret == 0) goto job; @@ -1444,7 +1458,7 @@ struct console *d; char *message; int eightbit; - int len, fdc, wait; + int len, fdc; if (fdfifo >= 0) close(fdfifo); @@ -1462,7 +1476,7 @@ dup2(1, 2); dup2(c->fd, 0); dup2(c->fd, 1); - currenttty = c->tty; + currenttty = c->tty; /* Used in readpw() in case of an error */ list_for_each_entry(d, &cons->node, node) if (d->fd >= 0) { @@ -1489,14 +1503,17 @@ dup2(fdc, 0); dup2(fdc, 1); - close(fdc); + if (fdc > 1) + close(fdc); - wait = 200; - while (wait > 0 && (len = klogctl(SYSLOG_ACTION_SIZE_UNREAD, NULL, 0)) > 0) { - usleep(1000); - wait--; + if (c->flags & CON_CONSDEV) { + int wait = 200; + while (wait > 0 && (len = klogctl(SYSLOG_ACTION_SIZE_UNREAD, NULL, 0)) > 0) { + usleep(1000); + wait--; + } + klogctl(SYSLOG_ACTION_CONSOLE_OFF, NULL, 0); } - klogctl(SYSLOG_ACTION_CONSOLE_OFF, NULL, 0); again: clear_input(0); #if defined(__s390__) || defined(__s390x__) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/showconsole-2.36/libconsole/libconsole.h new/showconsole-2.37/libconsole/libconsole.h --- old/showconsole-2.36/libconsole/libconsole.h 2026-03-17 09:32:34.000000000 +0100 +++ new/showconsole-2.37/libconsole/libconsole.h 2026-03-18 12:18:33.000000000 +0100 @@ -108,12 +108,12 @@ }; #define CON_PRINTBUFFER (1) -#define CON_CONSDEV (2) /* Last on the command line */ +#define CON_CONSDEV (2) /* Last on the kernel command line */ #define CON_ENABLED (4) #define CON_BOOT (8) -#define CON_ANYTIME (16) /* Safe to call when cpu is offline */ -#define CON_BRL (32) /* Used for a braille device */ -#define CON_SERIAL (64) /* Serial line */ +#define CON_ANYTIME (16) /* Safe to call when cpu is offline */ +#define CON_BRL (32) /* Used for a braille device */ +#define CON_SERIAL (64) /* Serial line */ extern sigset_t omask; extern int final;
