Hello community, here is the log from the commit of package casync for openSUSE:Factory checked in at 2019-03-18 10:41:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/casync (Old) and /work/SRC/openSUSE:Factory/.casync.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "casync" Mon Mar 18 10:41:59 2019 rev:3 rq:685572 version:2 Changes: -------- --- /work/SRC/openSUSE:Factory/casync/casync.changes 2018-02-13 10:31:32.120484549 +0100 +++ /work/SRC/openSUSE:Factory/.casync.new.28833/casync.changes 2019-03-18 10:42:00.183225759 +0100 @@ -1,0 +2,5 @@ +Sat Mar 16 12:44:53 UTC 2019 - Sebastian Wagner <[email protected]> + +- add fix-gcc9-renameat.patch from upstream PR#160 to fix boo#1121387 + +------------------------------------------------------------------- New: ---- fix-gcc9-renameat.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ casync.spec ++++++ --- /var/tmp/diff_new_pack.eLnNmr/_old 2019-03-18 10:42:01.939223612 +0100 +++ /var/tmp/diff_new_pack.eLnNmr/_new 2019-03-18 10:42:01.939223612 +0100 @@ -1,7 +1,7 @@ # # spec file for package casync # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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/ # @@ -20,12 +20,14 @@ Version: 2 Release: 0 Summary: Content Addressable Data Synchronization Tool -License: LGPL-2.1+ +License: LGPL-2.1-or-later Group: Productivity/Networking/File-Sharing -URL: https://github.com/systemd/casync +Url: https://github.com/systemd/casync Source0: https://github.com/systemd/casync/archive/v%{version}/%{name}-%{version}.tar.gz # PATH-FIX-OPENSUSE compiler_error_nonnull.patch -- fix for nonnull gcc error, see https://github.com/systemd/casync/issues/83 Patch0: compiler_error_nonnull.patch +# PATCH-FIX-UPSTREAM fix-gcc9-renameat.patch bnc#1121387 +Patch1: https://github.com/systemd/casync/pull/160.patch#/fix-gcc9-renameat.patch BuildRequires: diffutils BuildRequires: gcc >= 5 BuildRequires: libacl-devel @@ -55,6 +57,7 @@ %prep %setup -q %patch0 -p1 +%patch1 -p1 %build %meson ++++++ fix-gcc9-renameat.patch ++++++ >From fe440cf5f4c9a177e025dda870ace8f093f6632b Mon Sep 17 00:00:00 2001 From: Igor Gnatenko <[email protected]> Date: Mon, 9 Jul 2018 12:34:14 +0200 Subject: [PATCH] build: check for renameat2()/copy_file_range() with _GNU_SOURCE The config.h which we generate doesn't apply for checks and those functions are available only when _GNU_SOURCE is defined. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1599252 Signed-off-by: Igor Gnatenko <[email protected]> --- meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index f42ed16..9dd3ba0 100644 --- a/meson.build +++ b/meson.build @@ -74,8 +74,10 @@ conf.set('SIZEOF_UID_T', cc.sizeof('uid_t', prefix : '#include <sys/types.h>')) conf.set('SIZEOF_GID_T', cc.sizeof('gid_t', prefix : '#include <sys/types.h>')) foreach ident : [ - ['renameat2', '''#include <stdio.h>'''], - ['copy_file_range', '''#include <sys/syscall.h> + ['renameat2', '''#define _GNU_SOURCE + #include <stdio.h>'''], + ['copy_file_range', '''#define _GNU_SOURCE + #include <sys/syscall.h> #include <unistd.h>'''], ] have = cc.has_function(ident[0], prefix : ident[1])
