From 6507a74fc2f39fba7b2aa5f32e7f3444bd4c58adf29f716e6f30f368dacf9f79 Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Wed, 15 Jan 2020 09:48:19 +0000 Subject: [PATCH] - fillup-fno-common.patch: fix compilation on Tumbleweed (boo#1160871) OBS-URL: https://build.opensuse.org/package/show/Base:System/fillup?expand=0&rev=26 --- fillup-fno-common.patch | 17 +++++++++++++++++ fillup.changes | 6 ++++++ fillup.spec | 8 +++++--- 3 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 fillup-fno-common.patch diff --git a/fillup-fno-common.patch b/fillup-fno-common.patch new file mode 100644 index 0000000..f3efc47 --- /dev/null +++ b/fillup-fno-common.patch @@ -0,0 +1,17 @@ +Index: fillup-1.42/SRC/fillup_cfg.h +=================================================================== +--- fillup-1.42.orig/SRC/fillup_cfg.h ++++ fillup-1.42/SRC/fillup_cfg.h +@@ -23,9 +23,9 @@ + + /*-------------------------------- VARIABLES ---------------------------------*/ + +-const char * cfg_delimiter; +-const char * cfg_commentMarker; +-const char * cfg_quotingMarker; ++extern const char * cfg_delimiter; ++extern const char * cfg_commentMarker; ++extern const char * cfg_quotingMarker; + + /*----------------------------------------------------------------------------*/ + diff --git a/fillup.changes b/fillup.changes index e64398d..d68969a 100644 --- a/fillup.changes +++ b/fillup.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jan 15 09:38:33 UTC 2020 - Adam Majer + +- fillup-fno-common.patch: fix compilation on Tumbleweed + (boo#1160871) + ------------------------------------------------------------------- Thu Nov 23 13:39:57 UTC 2017 - rbrown@suse.com diff --git a/fillup.spec b/fillup.spec index cf8c4c4..b84590b 100644 --- a/fillup.spec +++ b/fillup.spec @@ -1,7 +1,7 @@ # # spec file for package fillup # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -25,7 +25,7 @@ Name: fillup Version: 1.42 Release: 0 Summary: Tool for Merging Config Files -License: GPL-2.0+ +License: GPL-2.0-or-later Group: System/Base Url: http://github.com/openSUSE/fillup Source: fillup-%{version}.tar.bz2 @@ -35,6 +35,7 @@ Patch2: fillup-%{version}.dif Patch3: fillup-retval.dif Patch4: fillup-nodate.patch Patch5: fillup-1.42-cloexec.patch +Patch6: fillup-fno-common.patch Provides: aaa_base:/bin/fillup BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -52,6 +53,7 @@ its variable name. %patch3 %patch4 %patch5 +%patch6 -p1 %build make %{?_smp_mflags} compile COMPILE_OPTION=OPTIMIZE OPTISPLUS="%{optflags}"