public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/netcdf-cxx4] epel10.3: Fix test on big-endian (ppc64)
@ 2026-10-15 14:11 Orion Poplawski
0 siblings, 0 replies; only message in thread
From: Orion Poplawski @ 2026-10-15 14:11 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/netcdf-cxx4
Branch : epel10.3
Commit : 658748b53794f3dec28c4feba566c1cfe6ed86f4
Author : Orion Poplawski <orion@cora.nwra.com>
Date : 2017-02-14T14:28:41-07:00
Stats : +23/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/netcdf-cxx4/c/658748b53794f3dec28c4feba566c1cfe6ed86f4?branch=epel10.3
Log:
Fix test on big-endian (ppc64)
---
diff --git a/netcdf-cxx4-bigendian.patch b/netcdf-cxx4-bigendian.patch
new file mode 100644
index 0000000..acccb51
--- /dev/null
+++ b/netcdf-cxx4-bigendian.patch
@@ -0,0 +1,16 @@
+diff -up netcdf-cxx4-4.3.0/cxx4/test_type.cpp.bigendian netcdf-cxx4-4.3.0/cxx4/test_type.cpp
+--- netcdf-cxx4-4.3.0/cxx4/test_type.cpp.bigendian 2016-05-13 17:14:42.000000000 -0600
++++ netcdf-cxx4-4.3.0/cxx4/test_type.cpp 2017-02-14 14:26:12.246923900 -0700
+@@ -267,9 +267,9 @@ try
+ cout <<" ----------- passed\n";
+
+ cout <<left<<setw(57)<<"Testing NcEnumType::addMember()";
+- enumType1.addMember("Monday",1);
+- enumType1.addMember("Tuesday",7);
+- enumType1.addMember("Wednesday",-20);
++ enumType1.addMember("Monday",(short)1);
++ enumType1.addMember("Tuesday",(short)7);
++ enumType1.addMember("Wednesday",(short)-20);
+ cout <<" ----------- passed\n";
+
+ cout <<left<<setw(57)<<"Testing NcEnumType::getBaseType() == and !=";
diff --git a/netcdf-cxx4.spec b/netcdf-cxx4.spec
index fa83cc3..7c54ffa 100644
--- a/netcdf-cxx4.spec
+++ b/netcdf-cxx4.spec
@@ -7,7 +7,9 @@ Group: Applications/Engineering
License: NetCDF
URL: http://www.unidata.ucar.edu/software/netcdf/
Source0: https://github.com/Unidata/netcdf-cxx4/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+# Fix tests on big-endian
+# https://github.com/Unidata/netcdf-cxx4/issues/45
+Patch0: netcdf-cxx4-bigendian.patch
BuildRequires: netcdf-devel
#mpiexec segfaults if ssh is not present
@@ -133,6 +135,7 @@ NetCDF parallel openmpi static libraries
%prep
%setup -q
+%patch0 -p1 -b .bigendian
# Fix line endings
sed -i -e 's/\r//' examples/*.cpp
@@ -249,6 +252,9 @@ rm -rf ${RPM_BUILD_ROOT}
%changelog
+* Tue Feb 14 2017 Orion Poplawski <orion@cora.nwra.com> - 4.3.0-3
+- Fix test on big-endian (ppc64)
+
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-15 14:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-15 14:11 [rpms/netcdf-cxx4] epel10.3: Fix test on big-endian (ppc64) Orion Poplawski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox