public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Orion Poplawski <orion@cora.nwra.com>
To: git-commits@fedoraproject.org
Subject: [rpms/netcdf-cxx4] epel10.3: Fix test on big-endian (ppc64)
Date: Thu, 15 Oct 2026 14:11:00 GMT [thread overview]
Message-ID: <179207346086.1.18018375326642235520.rpms-netcdf-cxx4-658748b53794@fedoraproject.org> (raw)
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
reply other threads:[~2026-10-15 14:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179207346086.1.18018375326642235520.rpms-netcdf-cxx4-658748b53794@fedoraproject.org \
--to=orion@cora.nwra.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox