Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package man for openSUSE:Factory checked in at 2022-08-19 17:53:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/man (Old) and /work/SRC/openSUSE:Factory/.man.new.2083 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "man" Fri Aug 19 17:53:19 2022 rev:91 rq:997718 version:2.10.0 Changes: -------- --- /work/SRC/openSUSE:Factory/man/man.changes 2022-08-17 18:20:22.670833554 +0200 +++ /work/SRC/openSUSE:Factory/.man.new.2083/man.changes 2022-08-19 17:54:28.543848517 +0200 @@ -1,0 +2,64 @@ +Thu Aug 18 10:25:21 UTC 2022 - Dr. Werner Fink <wer...@suse.de> + +- Avoid that mandb-symlink-target-timestamp fools us + +------------------------------------------------------------------- +Thu Aug 18 09:44:06 UTC 2022 - Dr. Werner Fink <wer...@suse.de> + +- Workaround missing groff-full to get refer(1), the bibliographic + preprocessor found + +------------------------------------------------------------------- +Thu Aug 18 08:14:54 UTC 2022 - Dr. Werner Fink <wer...@suse.de> + +- Update to man-db 2.10.0 (4 February 2022) + * Manpath deduplication no longer mishandles the case where another entry + in the manpath is a suffix of a candidate path to append. + * Fix potential crash in path searching if `getcwd` fails for reasons other + than running out of memory. + * Fix crash in `globbing` test tool if run with no non-option arguments. + * `lexgrog` now produces output in the user's locale. + * Downgrade "malformed .lf request" warning to a debug message and rephrase + it somewhat, since `.lf` requests can use `*roff` arithmetic expressions + and we can't reasonably parse those. + * Avoid modifying the database without changing its mtime, which had been + possible since 2.7.0 if `mandb`'s purge phase found work to do but the + main phase didn't, and which confused some backup systems into reporting + possible filesystem corruption. + * `man` no longer inadvertently modifies the `MANSECT` environment variable + before passing it on to its subprocesses. + * `mandb` now stores the mtime of link targets as the mtime of their + corresponding database entries, rather than sometimes storing the mtime + of the link instead. + * Since man-db 2.4.2, `man` has behaved as if the `-l` option was given if + a manual page argument contains a slash. Since man-db 2.5.6, this has + interacted slightly poorly with the subpage feature, emitting spurious + error messages if given multiple manual page arguments some of which + include a slash. `man` no longer emits spurious error messages in this + case. + * Reduce overhead of `MAN_DISABLE_SECCOMP=1` compared to building without + `libseccomp`. + * Document `MAN_DISABLE_SECCOMP` and `PIPELINE_DEBUG` environment variables + in `man(1)`. + * Add `man-pages(7)` reference to `man(1)`. + * Recognize Arabic and Persian translations of the `NAME` section. + * Delay the `systemd` timer using `RandomizedDelaySec`, so that multiple + containers/VMs on the same host are less prone to running `mandb` all at + the same time. + * Significantly improve `mandb(8)` and `man -K` performance in the common + case where pages are of moderate size and compressed using `zlib`: `mandb + -c` goes from 344 seconds to 10 seconds on a test system. +- Remove patch man-db-2.7.1-security4.dif as now upstream creates + any missing database +- Remove gnulib-ppc64le.patch as gnulib is uptodate even on ppc64le +- Port patches + * man-db-2.6.3-chinese.dif + * man-db-2.6.3-listall.dif + * man-db-2.6.3-man0.dif + * man-db-2.7.1-zio.dif + * man-db-2.9.4-alternitive.dif + * man-db-2.9.4-no-chown.patch + * man-db-2.9.4.patch + * reproducible.patch + +------------------------------------------------------------------- Old: ---- gnulib-ppc64le.patch man-db-2.7.1-security4.dif man-db-2.9.4.tar.xz man-db-2.9.4.tar.xz.asc New: ---- man-db-2.10.0.tar.xz man-db-2.10.0.tar.xz.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ man.spec ++++++ --- /var/tmp/diff_new_pack.aIhJWY/_old 2022-08-19 17:54:29.491850504 +0200 +++ /var/tmp/diff_new_pack.aIhJWY/_new 2022-08-19 17:54:29.499850520 +0200 @@ -26,7 +26,7 @@ %global optflags %{optflags} %{**} %bcond_without sdtimer Name: man -Version: 2.9.4 +Version: 2.10.0 Release: 0 Summary: A Program for Displaying man Pages License: GPL-2.0-or-later @@ -43,7 +43,6 @@ Source8: manpath.csh Source9: manpath.sh Patch0: man-db-2.3.19deb4.0-groff.dif -Patch1: man-db-2.7.1-security4.dif Patch2: man-db-2.7.1-firefox.dif Patch3: man-db-2.6.3-chinese.dif # PATCH-FEATURE-OPENSUSE man-db-2.7.1-zio.dif -- Allow using libzio for decompression @@ -60,8 +59,6 @@ Patch9: man-db-2.6.3-man0.dif Patch10: man-db-2.9.4-alternitive.dif Patch11: harden_man-db.service.patch -# PATCH-FIX-SUSE ppc64le float128 transition -Patch12: gnulib-ppc64le.patch BuildRequires: automake BuildRequires: flex BuildRequires: gdbm-devel @@ -72,6 +69,7 @@ BuildRequires: libalternatives-devel BuildRequires: libpipeline-devel >= 1.5.0 BuildRequires: libzio-devel +BuildRequires: lzip BuildRequires: man-pages BuildRequires: pkgconfig BuildRequires: po4a @@ -101,21 +99,17 @@ %prep %setup -q -n man-db-%{version} %patch0 -b .groff -%patch1 -b .secu4 %patch2 -b .firefox %patch3 -b .chinese %patch4 -b .zio %patch5 -b .listall -%patch6 -p1 -b .p12 -%patch7 -p1 -%patch8 -p1 -%patch9 -b .s10 +%patch6 -p1 -b .p6 +%patch7 -p1 -b .p7 +%patch8 -p1 -b .p8 +%patch9 -b .p9 %patch10 -b .libalernative rm -f configure -%patch11 -p1 -%ifarch ppc64le -%patch12 -%endif +%patch11 -p1 -b .p11 %build %global optflags %{optflags} -funroll-loops -pipe -Wall @@ -150,6 +144,15 @@ LIBS="-lalternatives" export LINGUAS LIBS +# Hack as otherwise +# BuildRequires: groff-full +# is required +mkdir bin +ln -sf /bin/true bin/refer +ln -sf /bin/true bin/w3m +PATH=$PATH:${PWD}/bin +export PATH + # Create configure aclocal -I ${PWD} -I ${PWD}/m4 -I ${PWD}/gl/m4 autoconf -B ${PWD} -B ${PWD}/m4 -B ${PWD}/gl/m4 @@ -321,7 +324,7 @@ fi %files -f man-db.lang -%license docs/COPYING +%license COPYING %doc ChangeLog %doc %{_docdir}/man/man-db-manual* %config %{_sysconfdir}/manpath.config ++++++ man-db-2.9.4.tar.xz -> man-db-2.10.0.tar.xz ++++++ ++++ 250113 lines of diff (skipped) ++++++ man-db-2.6.3-chinese.dif ++++++ --- /var/tmp/diff_new_pack.aIhJWY/_old 2022-08-19 17:54:30.671852977 +0200 +++ /var/tmp/diff_new_pack.aIhJWY/_new 2022-08-19 17:54:30.675852985 +0200 @@ -4,7 +4,7 @@ --- lib/encodings.c +++ lib/encodings.c 2016-12-15 14:07:01.072034899 +0000 -@@ -224,6 +224,7 @@ static struct charset_entry charset_tabl +@@ -228,6 +228,7 @@ static struct charset_entry charset_tabl { "EUC-CN", "nippon" }, { "EUC-JP", "nippon" }, { "EUC-TW", "nippon" }, @@ -12,7 +12,7 @@ { "GBK", "nippon" }, # else /* !MULTIBYTE_GROFF */ /* If we have a smarter version of groff, this is better dealt with -@@ -311,6 +312,7 @@ static struct less_charset_entry less_ch +@@ -315,6 +316,7 @@ static struct less_charset_entry less_ch #ifdef MULTIBYTE_GROFF { "CP1251", "windows", NULL }, @@ -20,7 +20,7 @@ { "EUC-JP", "iso8859", "japanese-ujis" }, { "KOI8-R", "koi8-r", NULL }, /* close enough? */ -@@ -502,6 +504,13 @@ char *get_page_encoding (const char *lan +@@ -453,6 +455,13 @@ char *get_page_encoding (const char *lan * roff encoding = ISO-8859-15 * output encoding = ISO-8859-15 * ISO-8859-15 -> groff -Tascii8 -> ISO-8859-15 -> iconv -> UTF-8 @@ -34,7 +34,7 @@ */ const char *get_source_encoding (const char *lang) { -@@ -667,7 +676,7 @@ static int compatible_encodings (const c +@@ -620,7 +629,7 @@ static int compatible_encodings (const c */ if ((STREQ (input, "BIG5") || STREQ (input, "BIG5HKSCS") || STREQ (input, "EUC-JP") || @@ -43,7 +43,7 @@ STREQ (input, "EUC-KR") || STREQ (input, "EUC-TW")) && STREQ (output, "UTF-8")) -@@ -771,7 +780,7 @@ const char *get_roff_encoding (const cha +@@ -724,7 +733,7 @@ const char *get_roff_encoding (const cha STRNEQ (ctype, "zh_HK", 5) || STRNEQ (ctype, "zh_SG", 5) || STRNEQ (ctype, "zh_TW", 5)) ++++++ man-db-2.6.3-listall.dif ++++++ --- /var/tmp/diff_new_pack.aIhJWY/_old 2022-08-19 17:54:30.687853010 +0200 +++ /var/tmp/diff_new_pack.aIhJWY/_new 2022-08-19 17:54:30.687853010 +0200 @@ -1,10 +1,28 @@ --- - src/man.c | 180 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- - 1 file changed, 178 insertions(+), 2 deletions(-) + man/man1/man.man1 | 8 ++ + src/man.c | 180 +++++++++++++++++++++++++++++++++++++++++++++++++++++- + 2 files changed, 186 insertions(+), 2 deletions(-) +--- man/man1/man.man1 ++++ man/man1/man.man1 2022-08-17 13:11:29.974677243 +0000 +@@ -1226,6 +1226,14 @@ However, some users want to see them any + .RB $ MAN_KEEP_STDERR + is set to any non-empty value, error output will be displayed as usual. + .TP ++.if !'po4a'hide' .BR MAN_POSIXLY_CORRECT ++If many man pages are available corresponding to the requested one, ++.B %man% ++will display them in a list, unless ++.RB $ MAN_POSIXLY_CORRECT ++is set, in which case the first page in the list will be displayed ++automatically. ++.TP + .if !'po4a'hide' .B MAN_DISABLE_SECCOMP + On Linux, + .B %man% --- src/man.c -+++ src/man.c 2018-11-23 13:56:09.131098574 +0000 -@@ -3573,12 +3573,141 @@ static int locate_page (const char *manp ++++ src/man.c 2022-08-17 13:10:07.436205495 +0000 +@@ -3572,12 +3572,141 @@ static int locate_page (const char *manp return found; } @@ -146,7 +164,7 @@ global_manpath = is_global_mandir (candp->path); if (!global_manpath) drop_effective_privs (); -@@ -3600,9 +3729,56 @@ static int display_pages (struct candida +@@ -3599,9 +3728,56 @@ static int display_pages (struct candida regain_effective_privs (); if (found && !findall) @@ -205,21 +223,4 @@ return found; } ---- man/man1/man.man1 -+++ man/man1/man.man1 2016-12-15 14:10:47.883461034 +0000 -@@ -1344,6 +1344,14 @@ However, some users want to see them any - .RB $ MAN_KEEP_STDERR - is set to any non-empty value, error output will be displayed as usual. - .TP -+.if !'po4a'hide' .BR MAN_POSIXLY_CORRECT -+If many man pages are available corresponding to the requested one, -+.B %man% -+will display them in a list, unless -+.RB $ MAN_POSIXLY_CORRECT -+is set, in which case the first page in the list will be displayed -+automatically. -+.TP - .if !'po4a'hide' .BR LANG , " LC_MESSAGES" - Depending on system and implementation, either or both of - .RB $ LANG ++++++ man-db-2.6.3-man0.dif ++++++ --- /var/tmp/diff_new_pack.aIhJWY/_old 2022-08-19 17:54:30.699853036 +0200 +++ /var/tmp/diff_new_pack.aIhJWY/_new 2022-08-19 17:54:30.703853044 +0200 @@ -1,6 +1,6 @@ --- man/man1/man.man1 +++ man/man1/man.man1 2018-11-23 14:23:22.531297359 +0000 -@@ -186,6 +186,9 @@ numbers of the manual followed by the ty +@@ -93,6 +93,9 @@ numbers of the manual followed by the ty .TS tab (@); l lx. ++++++ man-db-2.7.1-zio.dif ++++++ --- /var/tmp/diff_new_pack.aIhJWY/_old 2022-08-19 17:54:30.715853069 +0200 +++ /var/tmp/diff_new_pack.aIhJWY/_new 2022-08-19 17:54:30.719853078 +0200 @@ -1,24 +1,24 @@ --- config.h.in | 3 ++ - configure.ac | 52 ++++++++++++++++++++++++++++++++++++++++++++ - lib/decompress.c | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ - 3 files changed, 120 insertions(+) + configure.ac | 52 ++++++++++++++++++++++++++++++++++++++++ + src/decompress.c | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- + 3 files changed, 124 insertions(+), 1 deletion(-) --- config.h.in -+++ config.h.in 2018-11-23 13:11:12.684900437 +0000 -@@ -896,6 +896,9 @@ ++++ config.h.in 2022-08-18 06:45:49.997898305 +0000 +@@ -1003,6 +1003,9 @@ /* Define to 1 if you have the `z' library (-lz). */ #undef HAVE_LIBZ +/* Define to 1 if you have libzio for opening compressed manuals */ +#undef HAVE_ZIO + - /* Define to 1 if you have the <limits.h> header file. */ - #undef HAVE_LIMITS_H + /* Define to 1 if the bcrypt library is guaranteed to be present. */ + #undef HAVE_LIB_BCRYPT --- configure.ac -+++ configure.ac 2018-11-23 13:09:58.982262008 +0000 -@@ -34,6 +34,18 @@ MAN_ARG_DEVICE ++++ configure.ac 2022-08-18 06:45:49.997898305 +0000 +@@ -35,6 +35,18 @@ MAN_ARG_DEVICE MAN_ARG_DB MAN_ARG_CONFIG_FILE MAN_ARG_SECTIONS @@ -37,9 +37,9 @@ MAN_ARG_AUTOMATIC_CREATE MAN_ARG_AUTOMATIC_UPDATE MAN_ARG_CATS -@@ -346,6 +358,46 @@ AC_SUBST([unxz]) - AC_SUBST([unlzip]) - AC_SUBST([unzstd]) +@@ -388,6 +400,46 @@ AC_DEFINE_UNQUOTED([PROG_UNXZ], ["$unxz" + AC_DEFINE_UNQUOTED([PROG_UNLZIP], ["$unlzip"], [Program to use as unlzip.]) + AC_DEFINE_UNQUOTED([PROG_UNZSTD], ["$unzstd"], [Program to use as unzstd.]) MAN_COMPRESS_LIB([z], [gzopen]) +dnl Check for zlib and libbz2 libraries to use this together +dnl with SUSE's libzio to open compressed info files. @@ -85,9 +85,16 @@ # Check for various header files and associated libraries. --- src/decompress.c -+++ src/decompress.c 2018-11-23 13:12:59.714923151 +0000 -@@ -38,6 +38,10 @@ ++++ src/decompress.c 2022-08-18 06:54:42.008671417 +0000 +@@ -38,12 +38,17 @@ + # include "zlib.h" + #endif /* HAVE_LIBZ */ ++#include "appendstr.h" + #include "attribute.h" + #include "minmax.h" + #include "xalloc.h" + #include "xstrndup.h" #include "xvasprintf.h" +#ifdef HAVE_ZIO @@ -97,7 +104,7 @@ #include "manconfig.h" #include "comp_src.h" #include "pipeline.h" -@@ -69,6 +73,32 @@ static void decompress_zlib (void *data +@@ -183,6 +188,33 @@ static decompress *decompress_try_zlib ( #endif /* HAVE_LIBZ */ @@ -107,11 +114,11 @@ +{ + const char *what = (const char*)data; + FILE *file; -+ ++ + file = fdzopen(dup (fileno (stdin)), "r", what); + if (!file) + return; -+ ++ + for (;;) { + char buffer[4096]; + int r = fread(buffer, sizeof(char), sizeof(buffer), file); @@ -120,17 +127,18 @@ + if (fwrite (buffer, 1, (size_t) r, stdout) < (size_t) r) + break; + } -+ ++ + fclose(file); + return; +} + +#endif /* HAVE_ZIO */ + ++ extern man_sandbox *sandbox; - pipeline *decompress_open (const char *filename) -@@ -85,6 +115,37 @@ pipeline *decompress_open (const char *f + decompress *decompress_open (const char *filename, int flags) +@@ -199,6 +231,38 @@ decompress *decompress_open (const char if (stat (filename, &st) < 0 || S_ISDIR (st.st_mode)) return NULL; @@ -138,7 +146,7 @@ + ext = strrchr (filename, '.'); + if (ext) { + const char *opt; -+ char *name; ++ char *name = NULL; + + if (STREQ (ext, ".gz")) + opt = "g"; @@ -156,11 +164,12 @@ + goto nozio; + + /* informational only; no shell quoting concerns */ -+ name = appendstr (NULL, "libzio < ", filename, NULL); ++ name = appendstr (NULL, "libzio < ", filename, (void *) 0); + cmd = pipecmd_new_function (name, &decompress_zio, NULL, -+ opt); ++ (void *)opt); ++ pipecmd_pre_exec (cmd, sandbox_load, sandbox_free, sandbox); ++ p = pipeline_new_commands (cmd, (void *) 0); + free (name); -+ p = pipeline_new_commands (cmd, NULL); + goto got_pipeline; + } +#endif /* HAVE_ZIO */ @@ -168,7 +177,7 @@ #ifdef HAVE_LIBZ filename_len = strlen (filename); if (filename_len > 3 && STREQ (filename + filename_len - 3, ".gz")) { -@@ -96,7 +157,11 @@ pipeline *decompress_open (const char *f +@@ -216,7 +280,11 @@ decompress *decompress_open (const char } #endif /* HAVE_LIBZ */ @@ -180,4 +189,13 @@ if (ext) { ++ext; +@@ -309,7 +377,7 @@ void decompress_inprocess_replace (decom + + void decompress_start (decompress *d) + { +- if (d->tag == DECOMPRESS_PIPELINE) ++ if (d && d->tag == DECOMPRESS_PIPELINE) + pipeline_start (d->u.p); + } + ++++++ man-db-2.9.4-alternitive.dif ++++++ --- /var/tmp/diff_new_pack.aIhJWY/_old 2022-08-19 17:54:30.735853111 +0200 +++ /var/tmp/diff_new_pack.aIhJWY/_new 2022-08-19 17:54:30.739853120 +0200 @@ -1,6 +1,9 @@ -diff -u orig/man.c patch/man.c ---- src/man.c 2021-06-07 22:06:42.937525661 +0200 -+++ src/man.c 2021-06-08 11:46:40.369916468 +0200 +--- + src/man.c | 23 ++++++++++++++++++++--- + 1 file changed, 20 insertions(+), 3 deletions(-) + +--- src/man.c ++++ src/man.c 2022-08-17 13:59:26.937398386 +0000 @@ -57,6 +57,7 @@ #include <sys/types.h> #include <sys/stat.h> @@ -8,34 +11,33 @@ +#include <libalternatives.h> #include "argp.h" - #include "dirname.h" -@@ -4066,11 +4067,25 @@ - int *found) + #include "attribute.h" +@@ -4080,9 +4081,25 @@ static void locate_page_in_manpath (cons { char *mp; -+ int count = 0; -- GL_LIST_FOREACH_START (manpathlist, mp) +- GL_LIST_FOREACH (manpathlist, mp) - *found += locate_page (mp, page_section, page_name, - candidates); -- GL_LIST_FOREACH_END (manpathlist); -+ GL_LIST_FOREACH_START (manpathlist, mp) { -+ count = locate_page (mp, page_section, page_name, candidates); -+ if (count == 0) { -+ /* Checking if there has been defined another manpage defined in the */ -+ /* priorities of libalternatives. */ -+ char **alternitives = libalts_get_default_manpages(page_name); -+ for (char **alter = alternitives; *alter; alter++){ -+ char *p_name, *p_section; -+ split_page_name (*alter, &p_name, &p_section); -+ if (p_name && strlen(p_name)>0 && p_section && strlen(p_section)>0) -+ count = locate_page (mp, p_section, p_name, candidates); -+ free(*alter); -+ } -+ free(alternitives); -+ } -+ *found += count; -+ } GL_LIST_FOREACH_END (manpathlist); ++ GL_LIST_FOREACH (manpathlist, mp) { ++ int count = locate_page (mp, page_section, page_name, candidates); ++ if (count == 0) { ++ /* Checking if there has been defined another manpage defined in the ++ * priorities of libalternatives. ++ */ ++ char **alternitives = libalts_get_default_manpages(page_name); ++ for (char **alter = alternitives; *alter; alter++) { ++ char *p_name, *p_section; ++ split_page_name (*alter, &p_name, &p_section); ++ if (p_name && strlen(p_name) > 0 && ++ p_section && strlen(p_section) > 0) ++ count = locate_page (mp, p_section, p_name, candidates); ++ free(*alter); ++ } ++ free(alternitives); ++ } ++ *found += count; ++ } } /* ++++++ man-db-2.9.4-no-chown.patch ++++++ --- /var/tmp/diff_new_pack.aIhJWY/_old 2022-08-19 17:54:30.755853153 +0200 +++ /var/tmp/diff_new_pack.aIhJWY/_new 2022-08-19 17:54:30.759853161 +0200 @@ -1,7 +1,7 @@ diff -Nur man-db-2.9.4/src/Makefile.am new/src/Makefile.am --- man-db-2.9.4/src/Makefile.am 2020-01-01 16:11:59.000000000 +0100 +++ new/src/Makefile.am 2021-05-31 23:36:22.062144466 +0200 -@@ -192,16 +192,7 @@ +@@ -211,16 +211,7 @@ all-am: apropos$(EXEEXT) install-exec-hook: ++++++ man-db-2.9.4.patch ++++++ ++++ 650 lines (skipped) ++++ between /work/SRC/openSUSE:Factory/man/man-db-2.9.4.patch ++++ and /work/SRC/openSUSE:Factory/.man.new.2083/man-db-2.9.4.patch ++++++ reproducible.patch ++++++ --- /var/tmp/diff_new_pack.aIhJWY/_old 2022-08-19 17:54:30.871853397 +0200 +++ /var/tmp/diff_new_pack.aIhJWY/_new 2022-08-19 17:54:30.875853404 +0200 @@ -1,9 +1,13 @@ Index: man-db-2.7.1/manual/man_db.me =================================================================== ---- man-db-2.7.1.orig/manual/man_db.me -+++ man-db-2.7.1/manual/man_db.me +--- + man-db-2.10.0/manual/man_db.me | 1 + + 1 file changed, 1 insertion(+) + +--- man-db-2.10.0/manual/man_db.me ++++ man-db-2.10.0/manual/man_db.me 2022-08-17 13:19:13.782077593 +0000 @@ -8,6 +8,7 @@ - .\" Thu Sep 21 19:22:47 BST 1995 Wilf. (g.wilf...@ee.surrey.ac.uk) + .\" Thu Sep 21 19:22:47 BST 1995 Wilf. (g.wilf...@ee.surrey.ac.uk) .\" .so version +.ds td -