diff options
author | Paul Howarth <paul@city-fan.org> | 2019-02-04 12:09:52 +0000 |
---|---|---|
committer | Paul Howarth <paul@city-fan.org> | 2019-02-04 12:17:15 +0000 |
commit | ab0e53ac5277f1c0b5551142cc4145c5a4d08eb6 (patch) | |
tree | 847330122f35b3e64d791679fb14a52895203708 /libssh2.spec | |
parent | - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild (diff) | |
download | libssh2-freefilesync-ab0e53ac5277f1c0b5551142cc4145c5a4d08eb6.tar.gz libssh2-freefilesync-ab0e53ac5277f1c0b5551142cc4145c5a4d08eb6.tar.bz2 libssh2-freefilesync-ab0e53ac5277f1c0b5551142cc4145c5a4d08eb6.zip |
Work around mock locale issues in test suite
Explicitly run the test suite in the en_US.UTF-8 locale to work around flaky
locale settings in mock builders.
Diffstat (limited to 'libssh2.spec')
-rw-r--r-- | libssh2.spec | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libssh2.spec b/libssh2.spec index 4728d9d..92b352c 100644 --- a/libssh2.spec +++ b/libssh2.spec @@ -1,6 +1,6 @@ Name: libssh2 Version: 1.8.0 -Release: 9%{?dist} +Release: 10%{?dist} Summary: A library implementing the SSH2 protocol License: BSD URL: http://www.libssh2.org/ @@ -18,6 +18,10 @@ BuildRequires: /usr/bin/man # Test suite requirements - we run the OpenSSH server and try to connect to it BuildRequires: openssh-server +# Need a valid locale to run the mansyntax check +%if 0%{?fedora} > 23 || 0%{?rhel} > 7 +BuildRequires: glibc-langpack-en +%endif # We use matchpathcon to get the correct SELinux context for the ssh server # initialization script so that it can transition correctly in an SELinux # environment @@ -103,7 +107,7 @@ echo "exit 0" > tests/ssh2.sh echo "Skipping mansyntax test on PPC* and aarch64" echo "exit 0" > tests/mansyntax.sh %endif -make -C tests check +LC_ALL=en_US.UTF-8 make -C tests check %ldconfig_scriptlets @@ -127,6 +131,10 @@ make -C tests check %{_libdir}/pkgconfig/libssh2.pc %changelog +* Mon Feb 4 2019 Paul Howarth <paul@city-fan.org> - 1.8.0-10 +- Explicitly run the test suite in the en_US.UTF-8 locale to work around flaky + locale settings in mock builders + * Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild |