Hello community,
here is the log from the commit of package man for openSUSE:Factory checked in at 2018-12-03 10:08:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/man (Old)
and /work/SRC/openSUSE:Factory/.man.new.19453 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "man"
Mon Dec 3 10:08:53 2018 rev:72 rq:652353 version:2.8.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/man/man.changes 2018-04-22 14:31:40.130274984 +0200
+++ /work/SRC/openSUSE:Factory/.man.new.19453/man.changes 2018-12-03 10:08:56.199789484 +0100
@@ -1,0 +2,99 @@
+Mon Nov 26 11:37:32 UTC 2018 - Dr. Werner Fink
+
+- Update to man-db 2.8.4
+ * Major changes since man-db 2.8.3:
+ + Rely on decompressors reading from their standard input rather
+ than redundantly passing them the input file on their command
+ line. This works better with downstream AppArmor confinement of
+ decompressors.
+ + Fix invalid syntax in tmpfiles.d/man-db.conf when configured with
+ --disable-cache-owner.
+ + Make seccomp sandbox allow sched_getaffinity, sometimes used by
+ xz.
+ + Check for mandb_nfmt and mandb_tfmt in the manual page hierarchy
+ as documented, not in the current directory. This was broken by
+ the working-directory-handling changes in 2.8.3. Note that this
+ change means that "man -l" will never use an external formatter
+ (which was never documented behaviour and was surely a bad idea).
+ + Make seccomp sandbox allow some shared memory operations across
+ the board rather than just when ESET File Security is in use; the
+ Astrill VPN seems to require something similar, and there are
+ doubtless other such preload hacks.
+ + Some versions of ESET File Security call msgget and msgsnd; if
+ this program is in use, then allow those.
+ * Major changes since man-db 2.8.2:
+ + Make seccomp sandbox allow madvise, since that's used by lbzip2.
+ + Make seccomp sandbox allow kill and tgkill outright, since groff
+ uses kill to pass on signals to its child processes.
+ + Make seccomp sandbox allow sibling architectures on
+ x86/x86_64/x32, since people sometimes mix and match architectures
+ there for performance reasons.
+ + Fix version check in locale macro loading to tolerate groff
+ release candidates.
+ + man now only changes working directory in child processes, so
+ never fails due to being unable to change back to its original
+ working directory.
+ + accessdb, apropos, and lexgrog no longer emit spurious gettext
+ headers in their --help output when localised.
+ * Major changes since man-db 2.8.1:
+ + Make seccomp sandbox allow kill and tgkill when the signal is
+ directed at the current process or one of its threads; this is
+ needed by xz.
+ + Make seccomp sandbox allow ioctl(fd, TIOCGWINSZ), since that's used
+ by musl.
+ + Work around the proprietary "ESET File Security" antivirus program in
+ seccomp sandbox: if this is in use then we need to allow some
+ socket-related system calls.
+ + Work around the "snoopy" execve() wrapper and logger in seccomp
+ sandbox: if this is in use then we need to allow some
+ socket-related system calls.
+ + Interpret EFAULT from seccomp_load as meaning that seccomp is
+ unavailable, since this can be returned by some versions of
+ qemu-user.
+ * Major changes since man-db 2.8.0:
+ + Fix seccomp sandbox build on Linux/POWER.
+ + Fix manconv execution under seccomp when man is installed setuid.
+ + Make seccomp sandbox allow mremap (used by iconv, for example).
+ + configure now has a --without-libseccomp option to disable the use
+ of seccomp even if the library is available.
+ * Major changes since man-db 2.7.6.1:
+ + Fix locale macro loading for Chinese to load the macro file
+ corresponding to just the language part of the user's locale.
+ + Honour --enable-cache-owner in generated systemd tmpfiles snippet
+ rather than hardcoding "man".
+ + If man adds prefixes to a page to handle such things as disabling
+ hyphenation, then take account of those when looking for a
+ preprocessor line at the start of the page.
+ + Fix a segfault in 'man -D --help'.
+ + Treat "\(en" as another synonym for "\-" in NAME sections.
+ + Confine most subprocesses that handle untrusted data using
+ seccomp. This mainly deals with subprocesses that perform
+ encoding conversions, (de)compressors, groff programs, and a few
+ other odds and ends. groff programs use a slightly more
+ permissive filter since they need to create temporary files, so
+ additional path-based confinement (e.g. using AppArmor) is still
+ useful.
+ If this goes wrong, then MAN_DISABLE_SECCOMP=1 can be set in the
+ environment to disable it, but please report any such problem as a
+ bug.
+ + man now falls back to cat if the compile-time default pager is not
+ executable.
+ * Major changes since man-db 2.7.6:
+ + Don't chmod CACHEDIR.TAG if it doesn't exist.
+ + Correct installation of Swedish manual pages.
+- Modify the patches
+ *man-db-2.6.3-listall.dif
+ * man-db-2.6.3-man0.dif
+ * man-db-2.6.3-section.dif
+ * man-db-2.7.1-firefox.dif
+ * man-db-2.7.1-security4.dif
+ * man-db-2.7.1-zio.dif
+- Rename patch man-db-2.7.6.dif which is now man-db-2.8.4.dif
+
+-------------------------------------------------------------------
+Fri Nov 9 13:37:43 UTC 2018 - Dr. Werner Fink
+
+- Add systemd timer service and its timer unit to refresh man
+ data base daily without using cron (bsc#1115406)
+
+-------------------------------------------------------------------
Old:
----
man-db-2.7.6.dif
man-db-2.7.6.tar.xz
New:
----
man-db-2.8.4.dif
man-db-2.8.4.tar.xz
mandb.service
mandb.timer
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ man.spec ++++++
--- /var/tmp/diff_new_pack.KsfMM4/_old 2018-12-03 10:08:56.903788835 +0100
+++ /var/tmp/diff_new_pack.KsfMM4/_new 2018-12-03 10:08:56.903788835 +0100
@@ -32,22 +32,24 @@
BuildRequires: groff
BuildRequires: less
BuildRequires: libbz2-devel
-BuildRequires: libpipeline-devel
+BuildRequires: libpipeline-devel >= 1.5.0
BuildRequires: libzio-devel
BuildRequires: man-pages
BuildRequires: pkg-config
BuildRequires: po4a
BuildRequires: xz-devel
BuildRequires: zlib-devel
-Version: 2.7.6
+Version: 2.8.4
Release: 0
Summary: A Program for Displaying man Pages
-License: GPL-2.0+
+License: GPL-2.0-or-later
Group: System/Base
Url: https://savannah.nongnu.org/projects/man-db
PreReq: coreutils fillup
Provides: man_db
+%if 0%{suse_version} < 1500
Requires: cron
+%endif
Requires: glibc-locale
%if 0%{suse_version} > 1300
Recommends: groff-full
@@ -63,8 +65,10 @@
Source5: wrapper.c
Source6: man-rpmlintrc
Source7: man-db-create.service
-Patch0: man-db-2.7.6.dif
-Patch1: man-db-2.6.3-man0.dif
+Source8: mandb.timer
+Source9: mandb.service
+Source10: man-db-2.6.3-man0.dif
+Patch0: man-db-2.8.4.dif
Patch2: man-db-2.3.19deb4.0-groff.dif
Patch4: man-db-2.6.3-section.dif
Patch5: man-db-2.7.1-security4.dif
@@ -93,7 +97,7 @@
Colin Watson
%prep
-%setup -n man-db-%{version}
+%setup -q -n man-db-%{version}
%patch2 -p0 -b .groff
%patch4 -p0 -b .sect
%patch5 -p0 -b .secu4
@@ -143,8 +147,8 @@
LINGUAS="${LINGUAS:+$LINGUAS }$d"
done
export CFLAGS LDFLAGS LIBS LINGUAS
- aclocal -I ${PWD} -I ${PWD}/m4 -I ${PWD}/gnulib/m4
- autoconf -B ${PWD} -B ${PWD}/m4 -B ${PWD}/gnulib/m4
+ aclocal -I ${PWD} -I ${PWD}/m4 -I ${PWD}/gl/m4
+ autoconf -B ${PWD} -B ${PWD}/m4 -B ${PWD}/gl/m4
automake --add-missing
find -name 'Makefile.*' | xargs \
sed -ri -e '/^pkglibdir/{ s@^(pkglibdir[[:blank:]]+=[[:blank:]]+\$\(libdir\)).*@\1@p }'
@@ -181,9 +185,9 @@
" $man
esac
done
- patch -p0 < %{P:1}
- gcc $CFLAGS -I gnulib/lib/ -I include/ --include config.h --include configmake.h \
- -o wrapper %{S:5} -L gnulib/lib/.libs/ -lgnu
+ patch --backup --suffix=.s10 ${FUZZ+"--fuzz=$FUZZ"} -p0 < %{S:10}
+ gcc $CFLAGS -I gl/lib/ -I include/ --include config.h -D LOCALEDIR="\"%{_datarootdir}/locale\"" \
+ -o wrapper %{S:5} -L gl/lib/.libs/ -lgnu
%check
if ! make check; then
@@ -236,30 +240,53 @@
install -m 0644 groff/tmac.andb %{buildroot}%{_datadir}/groff/site-tmac/
install -m 0644 groff/tmac.andocdb %{buildroot}%{_datadir}/groff/site-tmac/
mkdir -p %{buildroot}%{_fillupdir}
+ mkdir -p %{buildroot}%{_unitdir}/
+%if 0%{suse_version} < 1500
mkdir -p %{buildroot}/etc/cron.daily
+%endif
install -m 0644 %{SOURCE1} %{buildroot}%{_fillupdir}
+%if 0%{suse_version} < 1500
install -m 0744 %{SOURCE2} %{buildroot}/etc/cron.daily/suse-do_mandb
- mkdir -p %{buildroot}%{_unitdir}/
+%else
+ install -m 0744 %{SOURCE2} %{buildroot}/%{_libexecdir}/man-db/do_mandb
+%endif
install -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}/
+%if 0%{suse_version} >= 1500
+ install -m 0644 %{SOURCE8} %{buildroot}%{_unitdir}/
+ install -m 0644 %{SOURCE9} %{buildroot}%{_unitdir}/
+%endif
%find_lang man-db --all-name --with-man
%pre
test -d var/catman/ && rm -rf var/catman/ || true
+%if 0%{suse_version} >= 1500
+%service_add_pre man-db-create.service mandb.service mandb.timer
+%else
%service_add_pre man-db-create.service
+%endif
%post
%{?tmpfiles_create:%tmpfiles_create %{_libexecdir}/tmpfiles.d/man-db.conf}
%{fillup_only -an cron}
/sbin/ldconfig
%service_add_post man-db-create.service
+%if 0%{suse_version} >= 1500
+%service_add_post mandb.service mandb.timer
+%endif
%preun
%service_del_preun man-db-create.service
+%if 0%{suse_version} >= 1500
+%service_del_preun mandb.service mandb.timer
+%endif
%postun
/sbin/ldconfig
%service_del_postun man-db-create.service
+%if 0%{suse_version} >= 1500
+%service_del_postun mandb.service mandb.timer
+%endif
%posttrans
test -d /var/cache/man && mandb --quiet --create ||:
@@ -270,7 +297,9 @@
%doc ChangeLog
%doc %{_datadir}/doc/packages/man/man-db-manual.*
%config /etc/manpath.config
+%if 0%{suse_version} < 1500
%attr(0744,root,root) /etc/cron.daily/suse-do_mandb
+%endif
%{_bindir}/apropos
%{_bindir}/catman
%{_bindir}/lexgrog
@@ -285,6 +314,9 @@
%attr(0755,root,root) %{_libexecdir}/man-db/mandb
%attr(0755,man,man) %{_libexecdir}/man-db/manconv
%attr(0755,man,man) %{_libexecdir}/man-db/globbing
+%if 0%{suse_version} >= 1500
+%attr(0744,man,man) %{_libexecdir}/man-db/do_mandb
+%endif
%{_sbindir}/accessdb
%{_libdir}/libman*.so
%{_libexecdir}/man-db/zsoelim
@@ -293,6 +325,10 @@
%endif
%{_libexecdir}/tmpfiles.d/man-db.conf
%{_unitdir}/man-db-create.service
+%if 0%{suse_version} >= 1500
+%{_unitdir}/mandb.service
+%{_unitdir}/mandb.timer
+%endif
%dir %{_datadir}/groff/site-tmac
%{_datadir}/groff/site-tmac/tmac.andb
%{_datadir}/groff/site-tmac/tmac.andocdb
@@ -300,6 +336,8 @@
%doc %{_mandir}/man5/*.5.gz
%doc %{_mandir}/man8/*.8.gz
%dir %{_mandir}/id
+%dir %{_mandir}/sr
+%dir %{_mandir}/tr
%{_fillupdir}/sysconfig.cron-man
%defattr(-,man,man)
%ghost %{_localstatedir}/cache/man
++++++ man-db-2.6.3-listall.dif ++++++
--- /var/tmp/diff_new_pack.KsfMM4/_old 2018-12-03 10:08:56.947788795 +0100
+++ /var/tmp/diff_new_pack.KsfMM4/_new 2018-12-03 10:08:56.947788795 +0100
@@ -3,8 +3,8 @@
1 file changed, 178 insertions(+), 2 deletions(-)
--- src/man.c
-+++ src/man.c 2016-12-15 14:08:57.993676527 +0000
-@@ -3514,12 +3514,141 @@ static int locate_page (const char *manp
++++ src/man.c 2018-11-23 13:56:09.131098574 +0000
+@@ -3573,12 +3573,141 @@ static int locate_page (const char *manp
return found;
}
@@ -146,7 +146,7 @@
global_manpath = is_global_mandir (candp->path);
if (!global_manpath)
drop_effective_privs ();
-@@ -3541,9 +3670,56 @@ static int display_pages (struct candida
+@@ -3600,9 +3729,56 @@ static int display_pages (struct candida
regain_effective_privs ();
if (found && !findall)
++++++ man-db-2.6.3-man0.dif ++++++
--- /var/tmp/diff_new_pack.KsfMM4/_old 2018-12-03 10:08:56.955788787 +0100
+++ /var/tmp/diff_new_pack.KsfMM4/_new 2018-12-03 10:08:56.955788787 +0100
@@ -1,6 +1,14 @@
+---
+ man/de/man1/man.1 | 3 +++
+ man/es/man1/man.1 | 3 +++
+ man/it/man1/man.1 | 3 +++
+ man/ja/man1/man.1 | 3 +++
+ man/man1/man.1 | 3 +++
+ 5 files changed, 15 insertions(+)
+
--- man/de/man1/man.1
-+++ man/de/man1/man.1
-@@ -79,6 +79,9 @@ und den Typ der dort zu findenden Seiten
++++ man/de/man1/man.1 2018-11-23 14:23:22.531297359 +0000
+@@ -83,6 +83,9 @@ und den Typ der dort zu findenden Seiten
.TS
tab (@);
l lx.
@@ -11,8 +19,8 @@
Ausführbare Programme oder Shell\-Befehle
T}
--- man/es/man1/man.1
-+++ man/es/man1/man.1
-@@ -101,6 +101,9 @@ del manual y los tipos de páginas que c
++++ man/es/man1/man.1 2018-11-23 14:23:22.531297359 +0000
+@@ -80,6 +80,9 @@ seguidos por el tipo de página que cont
.TS
tab (@);
l lx.
@@ -20,10 +28,10 @@
+Ficheros (se encuentran generalmente en \fI/usr/include\fR)
+T}
1@T{
- Programas ejecutables y guiones del intérprete de órdenes
+ Programa ejecutable o mandatos del shell
T}
--- man/it/man1/man.1
-+++ man/it/man1/man.1
++++ man/it/man1/man.1 2018-11-23 14:23:22.531297359 +0000
@@ -124,6 +124,9 @@ del manuale seguiti dai tipi di pagine c
.TS
tab (@);
@@ -35,8 +43,8 @@
Programmi eseguibili e comandi della shell
T}
--- man/ja/man1/man.1
-+++ man/ja/man1/man.1
-@@ -73,6 +73,9 @@ man \- オンラインマニュアルの
++++ man/ja/man1/man.1 2018-11-23 14:23:22.531297359 +0000
+@@ -78,6 +78,9 @@ default, unless overridden by the \fBSEC
.TS
tab (@);
l lx.
@@ -47,8 +55,8 @@
実行プログラムまたはシェルコマンド
T}
--- man/man1/man.1
-+++ man/man1/man.1
-@@ -179,6 +179,9 @@ numbers of the manual followed by the ty
++++ man/man1/man.1 2018-11-23 14:23:22.531297359 +0000
+@@ -186,6 +186,9 @@ numbers of the manual followed by the ty
.TS
tab (@);
l lx.
++++++ man-db-2.6.3-section.dif ++++++
--- /var/tmp/diff_new_pack.KsfMM4/_old 2018-12-03 10:08:56.963788780 +0100
+++ /var/tmp/diff_new_pack.KsfMM4/_new 2018-12-03 10:08:56.963788780 +0100
@@ -3,8 +3,8 @@
1 file changed, 4 insertions(+), 4 deletions(-)
--- src/man.c
-+++ src/man.c 2016-12-15 13:49:52.184819971 +0000
-@@ -961,7 +961,7 @@ static const char *is_section (const cha
++++ src/man.c 2018-11-23 12:42:32.280720195 +0000
+@@ -978,7 +978,7 @@ static const char *is_section (const cha
{
const char **vs;
@@ -13,7 +13,7 @@
if (STREQ (*vs, name))
return name;
/* allow e.g. 3perl but disallow 8139too and libfoo */
-@@ -2714,7 +2714,7 @@ static int compare_candidates (const str
+@@ -2776,7 +2776,7 @@ static int compare_candidates (const str
/* Find out whether lsource->ext is ahead of rsource->ext in
* section_list.
*/
@@ -22,7 +22,7 @@
if (!*(*sp + 1)) {
/* No extension */
if (!sec_left && **sp == *(lsource->ext))
-@@ -3679,7 +3679,7 @@ static int do_global_apropos (const char
+@@ -3738,7 +3738,7 @@ static int do_global_apropos (const char
} else
my_section_list = section_list;
@@ -31,7 +31,7 @@
for (mp = manpathlist; *mp; mp++)
*found += do_global_apropos_section (*mp, *sp, name);
-@@ -3879,7 +3879,7 @@ static int man (const char *name, int *f
+@@ -3927,7 +3927,7 @@ static int man (const char *name, int *f
else {
const char **sp;
++++++ man-db-2.7.1-firefox.dif ++++++
--- /var/tmp/diff_new_pack.KsfMM4/_old 2018-12-03 10:08:56.971788773 +0100
+++ /var/tmp/diff_new_pack.KsfMM4/_new 2018-12-03 10:08:56.971788773 +0100
@@ -1,47 +1,17 @@
---
- src/man.c | 22 ++++++++++++----------
- 1 file changed, 12 insertions(+), 10 deletions(-)
+ src/man.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
--- src/man.c
-+++ src/man.c 2016-12-15 14:02:44.261219082 +0000
-@@ -1949,16 +1949,6 @@ static void format_display (pipeline *de
- if (!disp_status)
- break;
- }
-- if (!candidate) {
-- if (html_pager && *html_pager)
-- error (CHILD_FAIL, 0,
-- "couldn't execute any browser from %s",
-- html_pager);
-- else
-- error (CHILD_FAIL, 0,
-- "no browser configured, so cannot show "
-- "HTML output");
++++ src/man.c 2018-11-23 13:08:52.119497206 +0000
+@@ -2020,7 +2020,9 @@ static void format_display (pipeline *de
+ error (CHILD_FAIL, 0,
+ "no browser configured, so cannot show "
+ "HTML output");
- }
++ } else if (!disp_status)
++ sleep (5); /* firefox runs into background to fast */
++
free (browser_list);
- if (have_old_cwd && restore_cwd (&old_cwd) < 0) {
- error (0, errno,
-@@ -1967,11 +1957,23 @@ static void format_display (pipeline *de
- if (chdir ("/")) { /* ignore errors */ }
- }
- free_cwd (&old_cwd);
-+ if (!disp_status)
-+ sleep (5); /* firefox runs into background to fast */
if (remove_directory (htmldir, 0) == -1)
error (0, errno, _("can't remove directory %s"),
- htmldir);
- free (htmlfile);
- free (htmldir);
-+ if (!candidate) {
-+ if (html_pager && *html_pager)
-+ error (CHILD_FAIL, 0,
-+ "couldn't execute any browser from %s",
-+ html_pager);
-+ else
-+ error (CHILD_FAIL, 0,
-+ "no browser configured, so cannot show "
-+ "HTML output");
-+ }
- } else
- #endif /* TROFF_IS_GROFF */
- {
++++++ man-db-2.7.1-security4.dif ++++++
--- /var/tmp/diff_new_pack.KsfMM4/_old 2018-12-03 10:08:56.979788765 +0100
+++ /var/tmp/diff_new_pack.KsfMM4/_new 2018-12-03 10:08:56.979788765 +0100
@@ -3,8 +3,8 @@
1 file changed, 11 insertions(+), 1 deletion(-)
--- src/mandb.c
-+++ src/mandb.c 2016-12-16 07:14:50.995017235 +0000
-@@ -439,17 +439,26 @@ static int mandb (struct dbpaths *dbpath
++++ src/mandb.c 2018-11-23 12:50:40.139688661 +0000
+@@ -442,18 +442,27 @@ static int mandb (struct dbpaths *dbpath
int ret, amount;
char *dbname;
int should_create;
@@ -27,15 +27,16 @@
if (!STREQ (catpath, manpath)) {
char *cachedir_tag;
- int fd;
+ int cachedir_tag_exists = 0;
+ drop_effective_privs ();
cachedir_tag = xasprintf ("%s/CACHEDIR.TAG", catpath);
fd = open (cachedir_tag, O_RDONLY);
if (fd < 0) {
-@@ -467,6 +476,7 @@ static int mandb (struct dbpaths *dbpath
- if (global_manpath)
- chown_if_possible (cachedir_tag);
- check_chmod (cachedir_tag, DBMODE);
+@@ -476,6 +485,7 @@ static int mandb (struct dbpaths *dbpath
+ chown_if_possible (cachedir_tag);
+ check_chmod (cachedir_tag, DBMODE);
+ }
+ regain_effective_privs ();
free (cachedir_tag);
}
++++++ man-db-2.7.1-zio.dif ++++++
--- /var/tmp/diff_new_pack.KsfMM4/_old 2018-12-03 10:08:56.987788758 +0100
+++ /var/tmp/diff_new_pack.KsfMM4/_new 2018-12-03 10:08:56.987788758 +0100
@@ -5,20 +5,20 @@
3 files changed, 120 insertions(+)
--- config.h.in
-+++ config.h.in 2016-12-15 14:07:41.579217715 +0000
-@@ -740,6 +740,9 @@
++++ config.h.in 2018-11-23 13:11:12.684900437 +0000
+@@ -896,6 +896,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 header file. */
- #undef HAVE_LINEWRAP_H
+ /* Define to 1 if you have the header file. */
+ #undef HAVE_LIMITS_H
--- configure.ac
-+++ configure.ac 2016-12-15 14:07:41.579217715 +0000
-@@ -32,6 +32,18 @@ MAN_ARG_DEVICE
++++ configure.ac 2018-11-23 13:09:58.982262008 +0000
+@@ -34,6 +34,18 @@ MAN_ARG_DEVICE
MAN_ARG_DB
MAN_ARG_CONFIG_FILE
MAN_ARG_SECTIONS
@@ -37,7 +37,7 @@
MAN_ARG_AUTOMATIC_CREATE
MAN_ARG_AUTOMATIC_UPDATE
MAN_ARG_CATS
-@@ -321,6 +333,46 @@ AC_SUBST([unlzma])
+@@ -325,6 +337,46 @@ AC_SUBST([unlzma])
AC_SUBST([unxz])
AC_SUBST([unlzip])
MAN_COMPRESS_LIB([z], [gzopen])
@@ -85,7 +85,7 @@
# Check for various header files and associated libraries.
--- lib/decompress.c
-+++ lib/decompress.c 2016-12-15 14:07:41.579217715 +0000
++++ lib/decompress.c 2018-11-23 13:12:59.714923151 +0000
@@ -38,6 +38,10 @@
#include "xvasprintf.h"
@@ -97,7 +97,7 @@
#include "manconfig.h"
#include "comp_src.h"
#include "pipeline.h"
-@@ -68,6 +72,32 @@ static void decompress_zlib (void *data
+@@ -69,6 +73,32 @@ static void decompress_zlib (void *data
#endif /* HAVE_LIBZ */
@@ -107,11 +107,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 +120,17 @@
+ if (fwrite (buffer, 1, (size_t) r, stdout) < (size_t) r)
+ break;
+ }
-+
-+ fclose(file);
++
++ fclose(file);
+ return;
+}
+
+#endif /* HAVE_ZIO */
+
+ extern man_sandbox *sandbox;
+
pipeline *decompress_open (const char *filename)
- {
- pipecmd *cmd;
-@@ -82,6 +112,37 @@ pipeline *decompress_open (const char *f
+@@ -85,6 +115,37 @@ pipeline *decompress_open (const char *f
if (stat (filename, &st) < 0 || S_ISDIR (st.st_mode))
return NULL;
@@ -168,7 +168,7 @@
#ifdef HAVE_LIBZ
filename_len = strlen (filename);
if (filename_len > 3 && STREQ (filename + filename_len - 3, ".gz")) {
-@@ -95,7 +156,11 @@ pipeline *decompress_open (const char *f
+@@ -96,7 +157,11 @@ pipeline *decompress_open (const char *f
}
#endif /* HAVE_LIBZ */
++++++ man-db-2.7.6.dif -> man-db-2.8.4.dif ++++++
++++ 836 lines (skipped)
++++ between /work/SRC/openSUSE:Factory/man/man-db-2.7.6.dif
++++ and /work/SRC/openSUSE:Factory/.man.new.19453/man-db-2.8.4.dif
++++++ man-db-2.7.6.tar.xz -> man-db-2.8.4.tar.xz ++++++
++++ 402288 lines of diff (skipped)
++++++ man-rpmlintrc ++++++
--- /var/tmp/diff_new_pack.KsfMM4/_old 2018-12-03 10:08:57.887787929 +0100
+++ /var/tmp/diff_new_pack.KsfMM4/_new 2018-12-03 10:08:57.887787929 +0100
@@ -1,2 +1,7 @@
addFilter(".*W:.*patch-not-applied.*Patch1:.*man-db-2.6.3-man0.dif.*")
addFilter(".*W:.*tmpfile-not-in-filelist.*/var/cache/man.*")
+addFilter(".*W:.*name-repeated-in-summary.*C.*man.*")
+addFilter(".*W:.*no-version-in-last-changelog.*")
+addFilter(".*W:.*permissions-incorrect-owner.*/var/cache/man/.*")
+addFilter(".*W:.*shared-lib-calls-exit.*/usr/lib.*/libman-2\.8\.4\.so.*")
+addFilter(".*W:.*suse-missing-rclink.*")
++++++ mandb.service ++++++
[Unit]
Description=Do daily mandb update
Documentation=man:mandb(8) man:catman(8)
ConditionACPower=true
[Service]
Type=oneshot
Nice=5
IOSchedulingClass=idle
ExecStart=/usr/lib/man-db/do_mandb
++++++ mandb.timer ++++++
[Unit]
Description=Do daily mandb update
Documentation=man:mandb(8) man:catman(8)
[Timer]
OnCalendar=daily
AccuracySec=12h
Persistent=true
[Install]
WantedBy=timers.target
++++++ sysconfig.cron-man ++++++
--- /var/tmp/diff_new_pack.KsfMM4/_old 2018-12-03 10:08:57.939787881 +0100
+++ /var/tmp/diff_new_pack.KsfMM4/_new 2018-12-03 10:08:57.939787881 +0100
@@ -6,18 +6,3 @@
# Should mandb and whatis be recreated by cron.daily ("yes" or "no")
#
REINIT_MANDB=yes
-
-## Type: yesno
-## Default: yes
-#
-# Should old preformatted man pages (in /var/cache/man) be deleted? (yes/no)
-#
-DELETE_OLD_CATMAN=yes
-
-## Type: integer
-## Default: 7
-#
-# How long should old preformatted man pages be kept before deletion? (days)
-#
-CATMAN_ATIME=7
-