Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package groff for openSUSE:Factory checked 
in at 2023-10-08 12:17:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/groff (Old)
 and      /work/SRC/openSUSE:Factory/.groff.new.28202 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "groff"

Sun Oct  8 12:17:14 2023 rev:68 rq:1116096 version:1.23.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/groff/groff.changes      2023-09-17 
19:28:49.272560816 +0200
+++ /work/SRC/openSUSE:Factory/.groff.new.28202/groff.changes   2023-10-08 
12:18:55.603469681 +0200
@@ -1,0 +2,15 @@
+Wed Oct  4 23:01:54 UTC 2023 - Luciano Santos <luc1...@opensuse.org>
+
+- Define ext_man="%{?ext_man}%{!?ext_man:.gz}" shell variable in
+  the install directive, and replace "%{?ext_man}" with
+  "${ext_man:-}" to fix groff-gf.7.gz file ending up uncompressed
+  (despite the name) due to the use of %{?ext_man} in the mv/ln
+  TARGET parameter used for the preparation of Alternatives. Also
+  define a simple shell contruct which identifies whether the
+  manpage file is compressed. If not, it unsets the $ext_man
+  variable, then ajdusting the mv/ln calls. That's all necessary
+  because even though ext_man macro is defined, it doesn't mean the
+  file has the extension (which dependes whether the build script
+  compresses it).
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ groff.spec ++++++
--- /var/tmp/diff_new_pack.GgIhl9/_old  2023-10-08 12:18:57.491537564 +0200
+++ /var/tmp/diff_new_pack.GgIhl9/_new  2023-10-08 12:18:57.491537564 +0200
@@ -193,10 +193,17 @@
 # Prepare alternatives
 find %{buildroot}%{_mandir}
 mkdir -p %{buildroot}%{_sysconfdir}/alternatives
-mv -v %{buildroot}%{_mandir}/man7/roff.7* \
-    %{buildroot}%{_mandir}/man7/roff-gf.7%{?ext_man}
-ln -s -f %{_sysconfdir}/alternatives/roff.7%{?ext_man} \
-    %{buildroot}%{_mandir}/man7/roff.7%{?ext_man}
+
+## This construct should help identify whether the manpage is compressed,
+## and the mv/ln TARGET parameter should be adjusted accordingly.
+ext_man="%{?ext_man}%{!?ext_man:.gz}"
+manfile="$(find %{buildroot}%{_mandir}/man7/ -type f -name "roff.7${ext_man}")"
+test -z "${manfile}" && unset ext_man
+
+mv -v "%{buildroot}%{_mandir}/man7/roff.7${ext_man:-}" \
+    "%{buildroot}%{_mandir}/man7/roff-gf.7${ext_man:-}"
+ln -s -f "%{_sysconfdir}/alternatives/roff.7${ext_man:-}" \
+    "%{buildroot}%{_mandir}/man7/roff.7${ext_man:-}"
 # full_build
 %else
 # fix permission for devps/generate/afmname

Reply via email to