6 Commits

Author SHA256 Message Date
47334c786d Accepting request 1295210 from science:HPC
OBS-URL: https://build.opensuse.org/request/show/1295210
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dapl?expand=0&rev=15
2025-07-23 14:35:22 +00:00
abdf654fb0 - Add dapl-add-missing-attribute.patch to fix an issue with flto
where constructors are not properly called.

OBS-URL: https://build.opensuse.org/package/show/science:HPC/dapl?expand=0&rev=32
2025-07-23 06:25:08 +00:00
aeb111cf42 Accepting request 1292065 from science:HPC
OBS-URL: https://build.opensuse.org/request/show/1292065
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dapl?expand=0&rev=14
2025-07-11 19:31:09 +00:00
9b92e612b4 - Add GCC15-C23-support.patch to fix compilation with GCC >= 15.
OBS-URL: https://build.opensuse.org/package/show/science:HPC/dapl?expand=0&rev=30
2025-07-11 12:53:31 +00:00
aad2d34129 Accepting request 1198992 from science:HPC
OBS-URL: https://build.opensuse.org/request/show/1198992
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dapl?expand=0&rev=13
2024-09-06 15:18:18 +00:00
b88bbd3568 Accepting request 1198985 from home:NMorey:branches:science:HPC
- Add openib-add-missing-include.patch to fix compilation
  with GCC >= 14.

OBS-URL: https://build.opensuse.org/request/show/1198985
OBS-URL: https://build.opensuse.org/package/show/science:HPC/dapl?expand=0&rev=28
2024-09-05 13:05:56 +00:00
5 changed files with 114 additions and 11 deletions

24
GCC15-C23-support.patch Normal file
View File

@@ -0,0 +1,24 @@
commit ba8260733e4929383c447c38c6a7a755b20a43a9
Author: Nicolas Morey <nmorey@suse.com>
Date: Fri Jul 11 08:30:59 2025 +0200
GCC15 C23 support
diff --git test/dapltest/mdep/linux/dapl_mdep_user.h test/dapltest/mdep/linux/dapl_mdep_user.h
index 2eeed9119adc..78fa4183d29c 100755
--- test/dapltest/mdep/linux/dapl_mdep_user.h
+++ test/dapltest/mdep/linux/dapl_mdep_user.h
@@ -52,11 +52,13 @@
/* Default Device Name */
#define DT_MdepDeviceName "ofa-v2-ib0"
+#if __STDC_VERSION__ < 202300L
/* Boolean */
typedef int bool;
#define true (1)
#define false (0)
+#endif
#ifndef __BASE_FILE__
#define __BASE_FILE__ __FILE__

View File

@@ -0,0 +1,34 @@
commit 83dfda46eef190bb5c6910e2365746d5529de5e0
Author: Nicolas Morey <nmorey@suse.com>
Date: Tue Jul 22 13:52:43 2025 +0200
dapl: add missing attribute
With flto=auto, the constructors and destructors are being dropped
as there are not called by anything within the code. It seems that -Wl,-init
is not enough for ld.
Signed-off-by: Nicolas Morey <nmorey@suse.com>
diff --git dapl/udapl/dapl_init.c dapl/udapl/dapl_init.c
index 9ccbaf5d214d..89c08ab3cb0e 100644
--- dapl/udapl/dapl_init.c
+++ dapl/udapl/dapl_init.c
@@ -67,6 +67,7 @@
*
* Return Values:
*/
+__attribute__((constructor))
void dapl_init(void)
{
DAT_RETURN dat_status;
@@ -147,7 +148,8 @@ void dapl_init(void)
*
* Return Values:
*/
-void dapl_fini(void)
+__attribute__((destructor))
+void dapl_fini(void)
{
DAT_RETURN dat_status;

View File

@@ -1,3 +1,20 @@
-------------------------------------------------------------------
Tue Jul 22 12:41:52 UTC 2025 - Nicolas Morey <nicolas.morey@suse.com>
- Add dapl-add-missing-attribute.patch to fix an issue with flto
where constructors are not properly called.
-------------------------------------------------------------------
Fri Jul 11 06:32:56 UTC 2025 - Nicolas Morey <nicolas.morey@suse.com>
- Add GCC15-C23-support.patch to fix compilation with GCC >= 15.
-------------------------------------------------------------------
Thu Sep 5 12:32:44 UTC 2024 - Nicolas Morey <nicolas.morey@suse.com>
- Add openib-add-missing-include.patch to fix compilation
with GCC >= 14.
-------------------------------------------------------------------
Mon Feb 26 07:43:13 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file
# spec file for package dapl
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -31,15 +31,18 @@ Release: 0
Source0: https://www.openfabrics.org/downloads/dapl/dapl-%version.tar.gz
Source1: dapl-rpmlintrc
Source2: baselibs.conf
Patch1: dapl-2.0.30-dat-ia-open-hang.patch
Patch5: dapl-define_NULL.patch
Patch6: dapl-man_page_fixes.patch
Patch7: dapl-fsf_address.patch
Patch12: dapl-s390.patch
Patch13: dapl-add-arm-platform-support.patch
Patch14: ucm-mcm-fix-backlog-parameter-for-socket.patch
# PATCH-FIX-UPSTREAM http://git.openfabrics.org/?p=~ardavis/dapl.git;a=commitdiff;h=f1e05b7adcee629ee7c1d4d86ea55344d9309232
Patch15: reproducible.patch
Patch2: dapl-define_NULL.patch
Patch3: dapl-man_page_fixes.patch
Patch4: dapl-fsf_address.patch
Patch5: dapl-s390.patch
Patch6: dapl-add-arm-platform-support.patch
Patch7: ucm-mcm-fix-backlog-parameter-for-socket.patch
Patch8: reproducible.patch
Patch9: openib-add-missing-include.patch
Patch10: GCC15-C23-support.patch
Patch11: dapl-add-missing-attribute.patch
URL: http://www.openfabrics.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
@@ -60,7 +63,7 @@ Obsoletes: dapl-64bit
%endif
#
Requires(post): /sbin/ldconfig
Requires(postun):/sbin/ldconfig
Requires(postun): /sbin/ldconfig
Requires(post): sed
Requires(post): coreutils

View File

@@ -0,0 +1,25 @@
commit 374032b1777f85cde146fad8c3e557d8d71654de
Author: Nicolas Morey <nmorey@suse.com>
Date: Thu Sep 5 14:30:20 2024 +0200
openib: add missing include
Add include to fix compilation with GCC >= 14:
dapl/openib_scm/cm.c: In function 'dapli_socket_connected':
dapl/openib_scm/cm.c:576:23: error: implicit declaration of function 'writev'; did you mean 'write'? [-Wimplicit-function-declaration]
576 | len = writev(cm_ptr->socket, iov, 2);
Signed-off-by: Nicolas Morey <nmorey@suse.com>
diff --git dapl/openib_scm/cm.c dapl/openib_scm/cm.c
index 29b45dff75dc..167f6fa7a5ab 100644
--- dapl/openib_scm/cm.c
+++ dapl/openib_scm/cm.c
@@ -51,6 +51,7 @@
#define DAPL_FD_SETSIZE FD_SETSIZE
#endif
+#include <sys/uio.h>
#include "dapl.h"
#include "dapl_adapter_util.h"
#include "dapl_evd_util.h"