From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F01C2158087 for ; Fri, 14 Jan 2022 20:46:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 21D432BC035; Fri, 14 Jan 2022 20:46:27 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1DC892BC035 for ; Fri, 14 Jan 2022 20:46:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B09B0342DD5 for ; Fri, 14 Jan 2022 20:46:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2116DA5 for ; Fri, 14 Jan 2022 20:46:23 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1642193132.46f716736cde3356966f1f3eb97ae1bb4035a9d9.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/icu/files/, dev-libs/icu/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/icu/files/icu-70.1-fix-ucptrietest.patch dev-libs/icu/icu-70.1-r1.ebuild dev-libs/icu/icu-70.1.ebuild X-VCS-Directories: dev-libs/icu/files/ dev-libs/icu/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 46f716736cde3356966f1f3eb97ae1bb4035a9d9 X-VCS-Branch: master Date: Fri, 14 Jan 2022 20:46:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4842b0aa-dbdd-436c-94ac-7d49ae692212 X-Archives-Hash: 8f30f7c01ab9e1ad4bd5ccbc77a14640 commit: 46f716736cde3356966f1f3eb97ae1bb4035a9d9 Author: Sam James gentoo org> AuthorDate: Fri Jan 14 20:41:37 2022 +0000 Commit: Sam James gentoo org> CommitDate: Fri Jan 14 20:45:32 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46f71673 dev-libs/icu: backport test failure fix for ARM; add missing BDEPEND - Backport test failure fix (not within test itself so let's revbump as could affect runtime behaviour). Noticed after Exherbo committed it, so gave the test suite a go on arm, and indeed it failed & this sorts it out. (Only usage is within the test suite but it seems to be an exported function, so let's not take the risk.) - Add missing autoconf-archive BDEPEND (thanks juippis). Closes: https://bugs.gentoo.org/827034 Signed-off-by: Sam James gentoo.org> dev-libs/icu/files/icu-70.1-fix-ucptrietest.patch | 38 ++++++++++++++++++++++ .../icu/{icu-70.1.ebuild => icu-70.1-r1.ebuild} | 6 ++-- 2 files changed, 42 insertions(+), 2 deletions(-) diff --git a/dev-libs/icu/files/icu-70.1-fix-ucptrietest.patch b/dev-libs/icu/files/icu-70.1-fix-ucptrietest.patch new file mode 100644 index 000000000000..05d390a1284a --- /dev/null +++ b/dev-libs/icu/files/icu-70.1-fix-ucptrietest.patch @@ -0,0 +1,38 @@ +Fixes test failure on arm. + +https://github.com/unicode-org/icu/pull/1925 +https://unicode-org.atlassian.net/browse/ICU-21793 + +From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lal?= +Date: Wed, 3 Nov 2021 02:31:18 +0100 +Subject: [PATCH] ICU-21793 Fix ucptrietest golden diff + +--- a/tools/toolutil/toolutil.cpp ++++ b/tools/toolutil/toolutil.cpp +@@ -228,18 +228,19 @@ uprv_compareGoldenFiles( + std::ifstream ifs(goldenFilePath, std::ifstream::in); + int32_t pos = 0; + char c; +- while ((c = ifs.get()) != std::char_traits::eof() && pos < bufferLen) { ++ while (ifs.get(c) && pos < bufferLen) { + if (c != buffer[pos]) { + // Files differ at this position +- return pos; ++ break; + } + pos++; + } +- if (pos < bufferLen || c != std::char_traits::eof()) { +- // Files are different lengths +- return pos; ++ if (pos == bufferLen && ifs.eof()) { ++ // Files are same lengths ++ pos = -1; + } +- return -1; ++ ifs.close(); ++ return pos; + } + + /*U_CAPI UDate U_EXPORT2 + diff --git a/dev-libs/icu/icu-70.1.ebuild b/dev-libs/icu/icu-70.1-r1.ebuild similarity index 95% rename from dev-libs/icu/icu-70.1.ebuild rename to dev-libs/icu/icu-70.1-r1.ebuild index 83163eaec2b6..c2095a985a40 100644 --- a/dev-libs/icu/icu-70.1.ebuild +++ b/dev-libs/icu/icu-70.1-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -17,6 +17,7 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~ IUSE="debug doc examples static-libs" BDEPEND="${PYTHON_DEPS} + sys-devel/autoconf-archive virtual/pkgconfig doc? ( app-doc/doxygen[dot] ) " @@ -29,9 +30,10 @@ PATCHES=( "${FILESDIR}/${PN}-65.1-remove-bashisms.patch" "${FILESDIR}/${PN}-64.2-darwin.patch" "${FILESDIR}/${PN}-68.1-nonunicode.patch" - # Should be in the next rleease, but check + # Should both be in the next release, but check # https://bugs.gentoo.org/788112 "${FILESDIR}/${PN}-69.1-fix-ub-units.patch" + "${FILESDIR}/${PN}-70.1-fix-ucptrietest.patch" ) src_prepare() {