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
4 changed files with 74 additions and 3 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,14 @@
-------------------------------------------------------------------
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
# spec file for package dapl
#
# Copyright (c) 2024 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
@@ -41,6 +41,8 @@ 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
@@ -61,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