The package rpms/mongodb.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/mongodb.git/commit/?id=44dd07b92fe98....
Change: -%ifarch ppc64le
Thanks.
Full change: ============
commit aae63a1e28d901adcd5ec6b1da874bcef5d900f4 Author: Marek Skalický mskalick@redhat.com Date: Thu Feb 22 11:45:41 2018 +0100
Use numactl for service starting
diff --git a/mongod.service b/mongod.service index c5d6cc6..1281d4c 100644 --- a/mongod.service +++ b/mongod.service @@ -6,7 +6,7 @@ After=syslog.target network.target Type=forking User=mongodb EnvironmentFile=/etc/sysconfig/mongod -ExecStart=/usr/bin/mongod $OPTIONS run +ExecStart=/bin/sh -c "exec $NUMACTL /usr/bin/mongod $OPTIONS run" PrivateTmp=true LimitNOFILE=64000 TimeoutStartSec=180 diff --git a/mongod.sysconf b/mongod.sysconf index e8f9cb6..e2e3587 100644 --- a/mongod.sysconf +++ b/mongod.sysconf @@ -1 +1,5 @@ OPTIONS="-f /etc/mongod.conf" + +# To run numactl before starting mongodb server +# https://docs.mongodb.com/manual/administration/production-notes/#configuring... +#NUMACTL="/usr/bin/numactl --interleave=all" diff --git a/mongodb.spec b/mongodb.spec index 577524f..7d52eb1 100644 --- a/mongodb.spec +++ b/mongodb.spec @@ -46,7 +46,7 @@
Name: mongodb Version: 3.6.2 -Release: 6%{?dist} +Release: 7%{?dist} Summary: High-performance, schema-free document-oriented database Group: Applications/Databases License: AGPLv3 and zlib and ASL 2.0 @@ -312,7 +312,6 @@ scons-3 $(cat build-target) $(cat build-options)
%install -#scons-3 install --prefix=%{buildroot}%{_prefix} $(cat build-options) install -p -D -m 755 mongod %{buildroot}%{_bindir}/mongod install -p -D -m 755 mongos %{buildroot}%{_bindir}/mongos install -p -D -m 755 mongo %{buildroot}%{_bindir}/mongo @@ -572,6 +571,9 @@ fi
%changelog +* Wed Feb 21 2018 Marek Skalický mskalick@redhat.com - 3.6.2-7 +- Use numactl for service starting + * Tue Feb 20 2018 Marek Skalický mskalick@redhat.com - 3.6.2-6 - Workaround for unicode test fails on ppc64le
diff --git a/mongos.service b/mongos.service index b34c799..6dae7aa 100644 --- a/mongos.service +++ b/mongos.service @@ -6,7 +6,7 @@ After=syslog.target network.target Type=forking User=mongodb EnvironmentFile=/etc/sysconfig/mongos -ExecStart=/usr/bin/mongos $OPTIONS +ExecStart=/bin/sh -c "exec $NUMACTL /usr/bin/mongos $OPTIONS" PrivateTmp=true LimitNOFILE=64000 TimeoutStartSec=180 diff --git a/mongos.sysconf b/mongos.sysconf index 11a1ead..8741ddd 100644 --- a/mongos.sysconf +++ b/mongos.sysconf @@ -1 +1,5 @@ OPTIONS="-f /etc/mongos.conf" + +# To run numactl before starting mongodb server +# https://docs.mongodb.com/manual/administration/production-notes/#configuring... +#NUMACTL="/usr/bin/numactl --interleave=all"
commit 44dd07b92fe98f6dd2235a1e7ba612176b32f3fc Author: Marek Skalický mskalick@redhat.com Date: Tue Feb 20 14:46:56 2018 +0100
Workaround for unicode test fails on ppc64le
diff --git a/mongodb.spec b/mongodb.spec index 2d49a00..577524f 100644 --- a/mongodb.spec +++ b/mongodb.spec @@ -46,7 +46,7 @@
Name: mongodb Version: 3.6.2 -Release: 5%{?dist} +Release: 6%{?dist} Summary: High-performance, schema-free document-oriented database Group: Applications/Databases License: AGPLv3 and zlib and ASL 2.0 @@ -74,7 +74,6 @@ Source11: README Patch0: use-system-mozjs-icu-asio.patch
# Convert build scripts and testsuite to support python3 -# TODO - convert generators (invoked using PYTHON variable in build scripts) # https://jira.mongodb.org/browse/SERVER-32295 Patch1: python3-buildscripts-tests.patch
@@ -82,6 +81,10 @@ Patch1: python3-buildscripts-tests.patch # https://jira.mongodb.org/browse/SERVER-32516 Patch2: boost-1.66.patch
+# Few tests fail because of error in altivec implementation of ByteVector +# https://jira.mongodb.org/browse/SERVER-33395 +Patch3: ppc64le-disable-altivec.patch + # Fedora specific - adding support for rest of Fedora architectures # Upstream doesn't support it and isn't considering merging # @@ -108,7 +111,6 @@ BuildRequires: zlib-devel BuildRequires: mozjs%{mozjsVersion}-devel %endif BuildRequires: valgrind-devel -BuildRequires: mongo-c-driver-devel %if 0%{?fedora} >= 15 || 0%{?rhel} >= 7 BuildRequires: systemd %endif @@ -119,8 +121,6 @@ BuildRequires: python3-requests %if %runselftest BuildRequires: python3-pymongo %endif -#TODO -# Some code generators used during build still requires python2 BuildRequires: python3-cheetah
# Mongodb must run on a 64-bit CPU (see bug #630898) @@ -200,6 +200,7 @@ the MongoDB sources. %setup -q -n %{MONGO_DISTNAME} %patch1 -p1 %patch2 -p1 +%patch3 -p1 # Patch only Fedora specific architectures %ifnarch %{upstream_arches} %patch0 -p1 @@ -235,6 +236,7 @@ sed -i 's|engine = "wiredTiger"|engine = "mmapv1"|' src/mongo/db/storage/storage
%build +export LANG="en_US.UTF-8" # Prepare variables for building cat > variables.list << EOF CCFLAGS="%{?optflags} -fvisibility=hidden" @@ -377,7 +379,7 @@ done < ./build/unittests.txt
%check -export LC_ALL="C.UTF-8" +export LANG="en_US.UTF-8" %if %runselftest # More info about testing: # http://www.mongodb.org/about/contributors/tutorial/test-the-mongodb-server/ @@ -399,12 +401,6 @@ sed -i "/mongo_uri_test/d" build/unittests.txt sed -i "/service_entry_point_mock_test/d" build/unittests.txt # Crashing on armv7hl due to optimizations sed -i "/chunk_diff_test/d" build/unittests.txt - -%endif -%ifarch ppc64le -sed -i "/fts_test/d" build/unittests.txt -sed -i "/byte_vector_test/d" build/unittests.txt -sed -i "/string_test/d" build/unittests.txt %endif %ifarch %{arm} # TODO @@ -422,7 +418,6 @@ rm -f jstests/core/hostinfo.js %endif %ifarch ppc64le rm -f jstests/core/shelltypes.js -rm -f jstests/core/fts_diacritic_and_caseinsensitive.js %endif
for engine in %{storageEngines}; do @@ -577,6 +572,9 @@ fi
%changelog +* Tue Feb 20 2018 Marek Skalický mskalick@redhat.com - 3.6.2-6 +- Workaround for unicode test fails on ppc64le + * Wed Feb 14 2018 Richard Shaw hobbes1069@gmail.com - 3.6.2-5 - Rebuild for yaml-cpp 0.6.0.
diff --git a/ppc64le-disable-altivec.patch b/ppc64le-disable-altivec.patch new file mode 100644 index 0000000..85f7d5c --- /dev/null +++ b/ppc64le-disable-altivec.patch @@ -0,0 +1,13 @@ +diff --git a/src/mongo/db/fts/unicode/byte_vector.h b/src/mongo/db/fts/unicode/byte_vector.h +index 2404e15dfd..d361a857ff 100644 +--- a/src/mongo/db/fts/unicode/byte_vector.h ++++ b/src/mongo/db/fts/unicode/byte_vector.h +@@ -33,8 +33,6 @@ + // TODO replace this with #if BOOST_HW_SIMD_X86 >= BOOST_HW_SIMD_X86_SSE2_VERSION in boost 1.60 + #if defined(_M_AMD64) || defined(__amd64__) + #include "mongo/db/fts/unicode/byte_vector_sse2.h" +-#elif defined(__powerpc64__) +-#include "mongo/db/fts/unicode/byte_vector_altivec.h" + #else // Other platforms go above here. + #undef MONGO_HAVE_FAST_BYTE_VECTOR + #endif
arch-excludes@lists.fedoraproject.org