Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package openucx for openSUSE:Factory checked in at 2021-03-02 12:25:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/openucx (Old) and /work/SRC/openSUSE:Factory/.openucx.new.2378 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "openucx" Tue Mar 2 12:25:29 2021 rev:19 rq:874910 version:1.9.0 Changes: -------- --- /work/SRC/openSUSE:Factory/openucx/openucx.changes 2020-10-11 20:15:15.484382682 +0200 +++ /work/SRC/openSUSE:Factory/.openucx.new.2378/openucx.changes 2021-03-02 12:25:29.643318270 +0100 @@ -1,0 +2,5 @@ +Wed Feb 24 16:34:54 UTC 2021 - Nicolas Morey-Chaisemartin <nmoreychaisemar...@suse.com> + +- Update openucx-s390x-support.patch to fix mmap syscall on s390x (bsc#1182691) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ openucx.spec ++++++ --- /var/tmp/diff_new_pack.WHArr8/_old 2021-03-02 12:25:30.135318733 +0100 +++ /var/tmp/diff_new_pack.WHArr8/_new 2021-03-02 12:25:30.135318733 +0100 @@ -1,7 +1,7 @@ # # spec file for package openucx # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed ++++++ openucx-s390x-support.patch ++++++ --- /var/tmp/diff_new_pack.WHArr8/_old 2021-03-02 12:25:30.159318755 +0100 +++ /var/tmp/diff_new_pack.WHArr8/_new 2021-03-02 12:25:30.159318755 +0100 @@ -1,4 +1,4 @@ -commit a8b24a8cd4124e3ffb7b682b94b3a1192e48c9c7 +commit b47dad27703f0b59072f5a8d8fba99c1d173f8f0 Author: Nicolas Morey-Chaisemartin <nmoreychaisemar...@suse.com> Date: Thu Aug 9 07:41:24 2018 +0200 @@ -407,3 +407,27 @@ + +#endif + +diff --git src/ucs/sys/sys.c src/ucs/sys/sys.c +index 62e555b409d1..8adc26241781 100644 +--- src/ucs/sys/sys.c ++++ src/ucs/sys/sys.c +@@ -1134,8 +1134,19 @@ void *ucs_sys_realloc(void *old_ptr, size_t old_length, size_t new_length) + if (old_ptr == NULL) { + /* Note: Must pass the 0 offset as "long", otherwise it will be + * partially undefined when converted to syscall arguments */ ++#if defined(__s390x__) ++ long int _args[6] = { ++ (long int) NULL, ++ (long int) new_length, ++ (long int) PROT_READ|PROT_WRITE, ++ (long int) MAP_PRIVATE|MAP_ANONYMOUS, ++ (long int) -1, ++ (long int) 0ul}; ++ ptr = (void*)syscall(__NR_mmap, _args); ++#else + ptr = (void*)syscall(__NR_mmap, NULL, new_length, PROT_READ|PROT_WRITE, + MAP_PRIVATE|MAP_ANONYMOUS, -1, 0ul); ++#endif + if (ptr == MAP_FAILED) { + ucs_log_fatal_error("mmap(NULL, %zu, READ|WRITE, PRIVATE|ANON) failed: %m", + new_length);