diff --git a/install-info_exitcode.patch b/install-info_exitcode.patch new file mode 100644 index 0000000..57859d5 --- /dev/null +++ b/install-info_exitcode.patch @@ -0,0 +1,41 @@ +Author: Adam Majer +Date: Fri Apr 6 10:59:49 CEST 2018 +Bug: bsc#1084997 +Summary: revert behaviour change since SLE11/SLE12 + +For package that tries to remove non-existent info page. + +/sbin/install-info --quiet --delete --info-dir=/usr/share/info + /usr/share/info/blubber.info.gz ; echo $? +0 + + +in SLE15, + +/sbin/install-info --quiet --delete --info-dir=/usr/share/info + /usr/share/info/blubber.info.gz ; echo $? + +install-info: No such file or directory for + /usr/share/info/blubber.info.gz +1 + + +So, we need to keep return code on failure to be 0 since suse_macros are missing +||: which results in broken packages that worked before to stop working now. This +is affecting upgrade process. + +https://bugzilla.suse.com/show_bug.cgi?id=1084997 + +Index: texinfo-6.5/install-info/install-info.c +=================================================================== +--- texinfo-6.5.orig/install-info/install-info.c ++++ texinfo-6.5/install-info/install-info.c +@@ -249,7 +249,7 @@ fatal (const char *fmt, ...) + va_start (ap, fmt); + vdiag (fmt, NULL, ap); + va_end (ap); +- exit (EXIT_FAILURE); ++ exit (EXIT_SUCCESS); + } + + /* Return a newly-allocated string diff --git a/texinfo.changes b/texinfo.changes index 7bcaf78..87bc962 100644 --- a/texinfo.changes +++ b/texinfo.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Apr 6 09:02:47 UTC 2018 - adam.majer@suse.de + +- install-info_exitcode.patch: install-info needs to return success + when it does nothing. We need 0 return value even on failure as + old packages in SLE-11 and SLE-12 can become uninstallable. + (bsc#1084997) + ------------------------------------------------------------------- Fri Feb 23 08:34:56 UTC 2018 - fvogt@suse.com diff --git a/texinfo.spec b/texinfo.spec index e1e6a5c..348dc1c 100644 --- a/texinfo.spec +++ b/texinfo.spec @@ -30,6 +30,7 @@ Source1: https://ftp.gnu.org/pub/gnu/texinfo/texinfo-%{version}.tar.xz.si Source2: %{name}.keyring Source10: info-dir Patch1: texinfo-zlib.patch +Patch2: install-info_exitcode.patch BuildRequires: automake BuildRequires: help2man BuildRequires: libbz2-devel @@ -91,6 +92,7 @@ or standalone GNU Info. %prep %setup -q %patch1 -p1 +%patch2 -p1 %build LANG=en_GB.UTF-8