Accepting request 1120762 from science:HPC
- Previous fix did not work, revert and use %global instead of %define. The %hpc_cmake and %hpc_ninja macros wrap the %cmake and %ninja macros. The wrapper needs to set all standard variables passed to cmake in these macros to the hpc values. With the mentioned macros this leads to an infinite recursion if using %define. So we use %global instead. (forwarded request 1120761 from eeich) OBS-URL: https://build.opensuse.org/request/show/1120762 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/suse-hpc?expand=0&rev=29
This commit is contained in:
commit
201cf78998
2
_service
2
_service
@ -6,7 +6,7 @@
|
|||||||
<param name="exclude">.git</param>
|
<param name="exclude">.git</param>
|
||||||
<param name="filename">suse-hpc</param>
|
<param name="filename">suse-hpc</param>
|
||||||
<param name="versionformat">0.5.%cd.%h</param>
|
<param name="versionformat">0.5.%cd.%h</param>
|
||||||
<param name="revision">87c7989e7349d543ba33aada425716f6ffcba0fb</param>
|
<param name="revision">36e049da8d5c8bab1e78e15d7a26c91b58b12ff5</param>
|
||||||
<param name="extract">general/dlinfo.c</param>
|
<param name="extract">general/dlinfo.c</param>
|
||||||
<param name="extract">general/macros.hpc</param>
|
<param name="extract">general/macros.hpc</param>
|
||||||
<param name="extract">general/hpc_elf.pl</param>
|
<param name="extract">general/hpc_elf.pl</param>
|
||||||
|
24
macros.hpc
24
macros.hpc
@ -741,15 +741,11 @@ sys.exit(0)" %{1}
|
|||||||
%define _infodir %{hpc_infodir} \
|
%define _infodir %{hpc_infodir} \
|
||||||
%define _libdir %{hpc_libdir} \
|
%define _libdir %{hpc_libdir} \
|
||||||
%define _libexecdir %{hpc_libexecdir} \
|
%define _libexecdir %{hpc_libexecdir} \
|
||||||
%if x%{?hpc_localstatedir} != x%{_localstatedir} \
|
%global _localstatedir %{hpc_localstatedir} \
|
||||||
%define _localstatedir %{hpc_localstatedir} \
|
|
||||||
%endif \
|
|
||||||
%define _mandir %{hpc_mandir} \
|
%define _mandir %{hpc_mandir} \
|
||||||
%define _prefix %{hpc_prefix} \
|
%define _prefix %{hpc_prefix} \
|
||||||
%define _sbindir %{hpc_sbindir} \
|
%define _sbindir %{hpc_sbindir} \
|
||||||
%if x%{?hpc_sharedstatedir} != x%{_sharedstatedir} \
|
%global _sharedstatedir %{hpc_sharedstatedir} \
|
||||||
%define _sharedstatedir %{hpc_sharedstatedir} \
|
|
||||||
%endif \
|
|
||||||
#Do NOT define _sysconfig to %%hpc_sysconfig here!
|
#Do NOT define _sysconfig to %%hpc_sysconfig here!
|
||||||
%cmake \\\
|
%cmake \\\
|
||||||
%undefine __cmake \\\
|
%undefine __cmake \\\
|
||||||
@ -759,15 +755,11 @@ sys.exit(0)" %{1}
|
|||||||
%undefine _infodir \\\
|
%undefine _infodir \\\
|
||||||
%undefine _libdir \\\
|
%undefine _libdir \\\
|
||||||
%undefine _libexecdir \\\
|
%undefine _libexecdir \\\
|
||||||
%if x%{?hpc_localstatedir} != x%{_localstatedir} \\\
|
|
||||||
%undefine _localstatedir \\\
|
%undefine _localstatedir \\\
|
||||||
%endif \\\
|
|
||||||
%undefine _mandir \\\
|
%undefine _mandir \\\
|
||||||
%undefine _prefix \\\
|
%undefine _prefix \\\
|
||||||
%undefine _sbindir \\\
|
%undefine _sbindir \\\
|
||||||
%if x%{?hpc_sharedstatedir} != x%{_sharedstatedir} \\\
|
|
||||||
%undefine _sharedstatedir \\\
|
%undefine _sharedstatedir \\\
|
||||||
%endif \\\
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# wraps macro from macros.meson - paths replaced by HPC paths.
|
# wraps macro from macros.meson - paths replaced by HPC paths.
|
||||||
@ -781,15 +773,11 @@ sys.exit(0)" %{1}
|
|||||||
%define _infodir %{hpc_infodir} \
|
%define _infodir %{hpc_infodir} \
|
||||||
%define _libdir %{hpc_libdir} \
|
%define _libdir %{hpc_libdir} \
|
||||||
%define _libexecdir %{hpc_libexecdir} \
|
%define _libexecdir %{hpc_libexecdir} \
|
||||||
%if x%{?hpc_localstatedir} != x%{_localstatedir} \
|
%global _localstatedir %{hpc_localstatedir} \
|
||||||
%define _localstatedir %{hpc_localstatedir} \
|
|
||||||
%endif \
|
|
||||||
%define _mandir %{hpc_mandir} \
|
%define _mandir %{hpc_mandir} \
|
||||||
%define _prefix %{hpc_prefix} \
|
%define _prefix %{hpc_prefix} \
|
||||||
%define _sbindir %{hpc_sbindir} \
|
%define _sbindir %{hpc_sbindir} \
|
||||||
%if x%{?hpc_sharedstatedir} != x%{_sharedstatedir} \
|
%global _sharedstatedir %{hpc_sharedstatedir} \
|
||||||
%define _sharedstatedir %{hpc_sharedstatedir} \
|
|
||||||
%endif \
|
|
||||||
%define _sysconfdir %{hpc_sysconfdir} \
|
%define _sysconfdir %{hpc_sysconfdir} \
|
||||||
%meson \\\
|
%meson \\\
|
||||||
%undefine __meson \\\
|
%undefine __meson \\\
|
||||||
@ -799,14 +787,10 @@ sys.exit(0)" %{1}
|
|||||||
%undefine _infodir \\\
|
%undefine _infodir \\\
|
||||||
%undefine _libdir \\\
|
%undefine _libdir \\\
|
||||||
%undefine _libexecdir \\\
|
%undefine _libexecdir \\\
|
||||||
%if x%{?hpc_localstatedir} != x%{_localstatedir} \\\
|
|
||||||
%undefine _localstatedir \\\
|
%undefine _localstatedir \\\
|
||||||
%endif \\\
|
|
||||||
%undefine _mandir \\\
|
%undefine _mandir \\\
|
||||||
%undefine _prefix \\\
|
%undefine _prefix \\\
|
||||||
%undefine _sbindir \\\
|
%undefine _sbindir \\\
|
||||||
%if x%{?hpc_sharedstatedir} != x%{_sharedstatedir} \\\
|
|
||||||
%undefine _sharedstatedir \\\
|
%undefine _sharedstatedir \\\
|
||||||
%endif \\\
|
|
||||||
%undefine _sysconfdir \\\
|
%undefine _sysconfdir \\\
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Oct 26 21:07:33 UTC 2023 - Egbert Eich <eich@suse.com>
|
||||||
|
|
||||||
|
- Previous fix did not work, revert and use %global instead of
|
||||||
|
%define.
|
||||||
|
The %hpc_cmake and %hpc_ninja macros wrap the %cmake and %ninja macros.
|
||||||
|
The wrapper needs to set all standard variables passed to cmake in these
|
||||||
|
macros to the hpc values.
|
||||||
|
With the mentioned macros this leads to an infinite recursion if using
|
||||||
|
%define. So we use %global instead.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Oct 24 09:09:47 UTC 2023 - Egbert Eich <eich@suse.com>
|
Tue Oct 24 09:09:47 UTC 2023 - Egbert Eich <eich@suse.com>
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ Summary: SUSE HPC Environment
|
|||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Productivity/Clustering/Computing
|
Group: Productivity/Clustering/Computing
|
||||||
Name: suse-hpc
|
Name: suse-hpc
|
||||||
Version: 0.5.20231024.0226cb7
|
Version: 0.5.20231026.36e049d
|
||||||
Release: 0
|
Release: 0
|
||||||
Source0: macros.hpc
|
Source0: macros.hpc
|
||||||
Source1: dlinfo.c
|
Source1: dlinfo.c
|
||||||
|
Loading…
Reference in New Issue
Block a user