Fix partial injection of Fedora build flags
Double the sizeof array fdesc to fix a gcc compiling issue. Resolves: bz1556062 Signed-off-by: Honggang Li <honli@redhat.com>
This commit is contained in:
parent
babfb413fa
commit
3fdde106fb
11
extend-fdesc-array.patch
Normal file
11
extend-fdesc-array.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- psm_utils.c.orig 2018-03-14 21:12:33.678607767 -0400
|
||||
+++ psm_utils.c 2018-03-14 21:11:04.696909162 -0400
|
||||
@@ -951,7 +951,7 @@ struct psmi_faultinj_spec *psmi_faultinj
|
||||
union psmi_envvar_val env_fi;
|
||||
char fvals_str[128];
|
||||
char fname[128];
|
||||
- char fdesc[256];
|
||||
+ char fdesc[512];
|
||||
|
||||
snprintf(fvals_str, sizeof(fvals_str) - 1, "%d:%d:1", num,
|
||||
denom);
|
11
libpsm2.spec
11
libpsm2.spec
@ -53,7 +53,7 @@
|
||||
Summary: Intel PSM Libraries
|
||||
Name: libpsm2
|
||||
Version: 10.3.8
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
License: BSD or GPLv2
|
||||
URL: https://github.com/01org/opa-psm2/
|
||||
|
||||
@ -63,6 +63,7 @@ URL: https://github.com/01org/opa-psm2/
|
||||
# git checkout a96419140a6942a11a1438bbffc4c27475d61030
|
||||
# make dist
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Patch1: extend-fdesc-array.patch
|
||||
|
||||
# The OPA product is supported on x86 64 only:
|
||||
ExclusiveArch: x86_64
|
||||
@ -101,9 +102,10 @@ Support for MPIs linked with PSM versions < 2
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p0
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
%{set_build_flags}
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
@ -140,6 +142,11 @@ make %{?_smp_mflags}
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Thu Mar 15 2018 - 10.3.8-5
|
||||
- Fix partial injection of Fedora build flags.
|
||||
- Double the sizeof array fdesc to fix a gcc compiling issue.
|
||||
- Resolves: bz1556062
|
||||
|
||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 10.3.8-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user