Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package tnef for openSUSE:Factory checked in at 2023-04-28 16:23:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/tnef (Old) and /work/SRC/openSUSE:Factory/.tnef.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "tnef" Fri Apr 28 16:23:23 2023 rev:26 rq:1083317 version:1.4.18 Changes: -------- --- /work/SRC/openSUSE:Factory/tnef/tnef.changes 2020-09-17 14:52:20.131996019 +0200 +++ /work/SRC/openSUSE:Factory/.tnef.new.1533/tnef.changes 2023-04-28 16:23:59.498228519 +0200 @@ -1,0 +2,7 @@ +Tue Apr 25 06:19:33 UTC 2023 - Bjørn Lie <bjorn....@gmail.com> + +- Add upstream patchfix: ca0d1a1.patch: Handle missing index/rindex + functions in path.c +- Use autosetup and make_build macros. + +------------------------------------------------------------------- New: ---- ca0d1a1.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ tnef.spec ++++++ --- /var/tmp/diff_new_pack.XdGSW4/_old 2023-04-28 16:23:59.982231344 +0200 +++ /var/tmp/diff_new_pack.XdGSW4/_new 2023-04-28 16:23:59.986231368 +0200 @@ -1,7 +1,7 @@ # # spec file for package tnef # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,22 +22,24 @@ Summary: Uncompress MS-TNEF Archives License: GPL-2.0-or-later Group: Productivity/Archiving/Compression -URL: https://github.com/verdammelt/tnef/ -Source: https://github.com/verdammelt/tnef/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +URL: https://github.com/verdammelt/tnef +Source: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM ca0d1a1.patch -- Handle missing index/rindex functions in path.c +Patch: %{url}/commit/ca0d1a1.patch BuildRequires: libtool %description This tool uncompresses MS-TNEF archives as used by some mailers. %prep -%setup -q +%autosetup -p1 %build if [ ! -x configure ]; then autoreconf -fi fi %configure -make %{?_smp_mflags} +%make_build %install %make_install ++++++ ca0d1a1.patch ++++++ >From ca0d1a161dae70b6fc9a8f4802b1f3a998a350c2 Mon Sep 17 00:00:00 2001 From: Joan Karadimov <joan.karadi...@gmail.com> Date: Fri, 15 Nov 2019 12:16:57 +0200 Subject: [PATCH] Handle missing index/rindex functions in path.c --- configure.ac | 2 +- src/path.c | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 746342d..add5077 100644 --- a/configure.ac +++ b/configure.ac @@ -35,7 +35,7 @@ AC_CHECK_SIZEOF(int) dnl check for library functions AC_REPLACE_FUNCS(strdup getopt_long basename) -AC_CHECK_FUNCS(strrchr memmove memset strtoul) +AC_CHECK_FUNCS(strrchr memmove memset strtoul index rindex) AC_FUNC_VPRINTF AC_FUNC_MALLOC diff --git a/src/path.c b/src/path.c index 2f85e19..b090e2f 100644 --- a/src/path.c +++ b/src/path.c @@ -35,6 +35,14 @@ #include "path.h" #include "debug.h" +#if !HAVE_RINDEX && HAVE_STRRCHR +# define rindex strrchr +#endif + +#if !HAVE_INDEX +# define index strchr +#endif + /* concatenates fname1 with fname2 to make a pathname, adds '/' as needed */ /* strips trailing '/' */