SHA256
6
0
forked from pool/dapl

2 Commits

5 changed files with 3 additions and 87 deletions

View File

@@ -1,24 +0,0 @@
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

@@ -1,12 +0,0 @@
## Build Results
Current state of dapl in openSUSE:Factory is
![Factory build results](https://br.opensuse.org/status/openSUSE:Factory/dapl/standard)
The current state of dapl in the devel project build (science:HPC)
![Devel project build results](https://br.opensuse.org/status/science:HPC/dapl)

View File

@@ -1,34 +0,0 @@
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,14 +1,3 @@
-------------------------------------------------------------------
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>

View File

@@ -1,7 +1,7 @@
#
# spec file for package dapl
# spec file
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -31,7 +31,6 @@ Release: 0
Source0: https://www.openfabrics.org/downloads/dapl/dapl-%version.tar.gz
Source1: dapl-rpmlintrc
Source2: baselibs.conf
Source100: README.md
Patch1: dapl-2.0.30-dat-ia-open-hang.patch
Patch2: dapl-define_NULL.patch
@@ -42,8 +41,6 @@ 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
@@ -64,7 +61,7 @@ Obsoletes: dapl-64bit
%endif
#
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Requires(postun):/sbin/ldconfig
Requires(post): sed
Requires(post): coreutils