summaryrefslogtreecommitdiff
path: root/dev-libs/libfmt
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-04-12 03:41:30 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-04-12 03:41:30 +0100
commit623ee73d661e5ed8475cb264511f683407d87365 (patch)
tree993eb27c93ec7a2d2d19550300d888fc1fed9e69 /dev-libs/libfmt
parentceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (diff)
gentoo Easter resync : 12.04.2020
Diffstat (limited to 'dev-libs/libfmt')
-rw-r--r--dev-libs/libfmt/Manifest7
-rw-r--r--dev-libs/libfmt/files/libfmt-6.2.0-unsigned-char-strings-in-printf.patch46
-rw-r--r--dev-libs/libfmt/libfmt-6.1.2.ebuild2
-rw-r--r--dev-libs/libfmt/libfmt-6.2.0-r1.ebuild (renamed from dev-libs/libfmt/libfmt-5.3.0.ebuild)20
4 files changed, 63 insertions, 12 deletions
diff --git a/dev-libs/libfmt/Manifest b/dev-libs/libfmt/Manifest
index f3674855facb..b2891c63e99e 100644
--- a/dev-libs/libfmt/Manifest
+++ b/dev-libs/libfmt/Manifest
@@ -1,6 +1,7 @@
-DIST libfmt-5.3.0.tar.gz 662493 BLAKE2B 462c54c227132b2398977ff575f74e63e973825968b106e09cb0f3da859f1d851a6dd1799c05e3ae6adff2ac972f4af259c42fdf8429346b2830134571c31480 SHA512 9ef0f3d328681253c1e1776576d54d67dec49c19fd7fc422ae63c3610b01a3f05f6e83cdf5e913dfd09bac42e52fe35c38ebe1ea91f4207d226a32aaf69eb4a8
+AUX libfmt-6.2.0-unsigned-char-strings-in-printf.patch 1478 BLAKE2B e5ffa271437d944d634c9296e5fd2c23e7de05e68e1e65acd660e2389378f0adfda0cc491bfadb5c6bd22166a4888f5d06d57300a71f4aad13b76dc277ba6e44 SHA512 2a8c25cff102236ccad7809a943f3bde823f2bd20277994aaf5325b4af1c9a35f3c4437703fcdbd728598a0d4a83988919b5b0706570ce85d90dc13f617260a2
DIST libfmt-6.1.2.tar.gz 723160 BLAKE2B 36e7451a8732c62dcbf47e6d287ea582827b6196a468b8648803ea1bc9a37a5f681d87488f748d749183d97783ac7fb47a3f2aeed64fc6a684f9ee85b67ae28d SHA512 8770bf4bd2bb6d938e75e0cf1e665c41930dbd9d2a6825274a5a43cd1d85b9c9ca621bb040ed099429f0e16bddbc3399361c453eb1bf3fc01376e6ad9dd875b7
-EBUILD libfmt-5.3.0.ebuild 792 BLAKE2B 2bc5485380c222af65a0948098394feb750838d19340b393bb23b51670a052082a24d8fc48250041f4199e7bc21fe55c2202d029097bb7eaf034d6cd266aae43 SHA512 340b90b24035993670dc769a5a47cc009c8017afbc0ae3e5de4167e4973b267688d40c19c2a4a49c74fd5ff3472203e071522916d523925ccd2a8a492ee8e618
-EBUILD libfmt-6.1.2.ebuild 775 BLAKE2B efae60ca62eb525fae1fb25f18d43abde0f9ff71cd0da58f791b6bdcf610e1f80ab3b07150acb47c33191c973b19d7938ce8050b1dc9f4e5a864dbc70327f6b5 SHA512 8175587b9a1072bd7e209caffe90bb592047319ed7c8e9f8edfe8e5729165b16e2cb3efa0c5079b4233f60b76928a8f247c246cf33557b295bc7ff97c8e7cb81
+DIST libfmt-6.2.0.tar.gz 733403 BLAKE2B c7ff69a56b90ec8df7d1af5c9934592449f2052046192aa498a6440d2aab76f10c17fa2833a41475b777dca2e3a1ae671021530bf0ef8be12443541f0f5212b3 SHA512 0003543f437bae416600a2b982eb133f65588bd36d7506fa7d883ae3133fcaf7ad825904af9b588ea22e5d91e56560aaf4243a6afa11ff6d8aace2e4bb1b0cee
+EBUILD libfmt-6.1.2.ebuild 780 BLAKE2B 39b407844dae2f714850f0c0b5c03c2048ff8c0c50e711a974d55bb84cdbfa01a97859c48e5ac52abdeda691d5ebe1ef925990301fe55ef9efb4a20f6134b2e6 SHA512 25ddc394e6d4b5f17875a00eaf4f5df8aade0874dfb0e4621c3a11510243b248a4e0659a2737a3720d1479a092745728ede4d50dd7c65a87a88f13c81424312f
+EBUILD libfmt-6.2.0-r1.ebuild 843 BLAKE2B bb2d750324db52df30d3f21c3141ae9d871527871d37a4ce26f7bf6364ad5152f59e100f4fc880ad588aa81cfd141378365a5537c619037f19b22a51317b7cba SHA512 d1cfbd8023705dc6e8456ea7c2412b3885ff0434803ceb1665477fff9b1c44d565bc4cc024036a9cf4be4801e5ab10db5b7fdfe182373e97f8b8b2847e58af44
EBUILD libfmt-9999.ebuild 772 BLAKE2B 53eaf21c8e01d31c44adc443812fa21ca3e48db4914131ce3a56e52cfa04bedc44e44fc1a7bdf11865336bbb0fee4d364b6521d60945aa5b87c153c5e8019b14 SHA512 0dfb8292beaa1a0f9cc942b303fe5bbfe391d6f6b59cd2399ba5c47d6549eb2077101af54f034a2bfcdcd99c39aad4b5fd3acc545e8a4a2b873fe0f598ebd755
MISC metadata.xml 381 BLAKE2B f38f6a7691ef81c18b1170b7ca29264dac3c621f8de446d065d65b6e022e21fbb2475c4e2d3210e00254339d09681030c7e7b8fc41cec5549663b4086bb0c983 SHA512 200bb79fc448f40acf8a1be9a907a51461d82db3b5e6e92df1cef4b96418fa6217ebe1e5c8d4228d34bd9bc633022a34f399521a875c92232fb2254350a7605c
diff --git a/dev-libs/libfmt/files/libfmt-6.2.0-unsigned-char-strings-in-printf.patch b/dev-libs/libfmt/files/libfmt-6.2.0-unsigned-char-strings-in-printf.patch
new file mode 100644
index 000000000000..2ce27c83e622
--- /dev/null
+++ b/dev-libs/libfmt/files/libfmt-6.2.0-unsigned-char-strings-in-printf.patch
@@ -0,0 +1,46 @@
+From 7d01859ef16e6b65bc023ad8bebfedecb088bf81 Mon Sep 17 00:00:00 2001
+From: Victor Zverovich <viz@fb.com>
+Date: Wed, 8 Apr 2020 12:32:34 -0700
+Subject: [PATCH] Fix handling of unsigned char strings in printf
+
+---
+ include/fmt/core.h | 8 ++++++++
+ test/printf-test.cc | 6 ++++++
+ 2 files changed, 14 insertions(+)
+
+diff --git a/include/fmt/core.h b/include/fmt/core.h
+index 6df2875ac..dc10722bf 100644
+--- a/include/fmt/core.h
++++ b/include/fmt/core.h
+@@ -972,6 +972,14 @@ template <typename Context> struct arg_mapper {
+ static_assert(std::is_same<char_type, char>::value, "invalid string type");
+ return reinterpret_cast<const char*>(val);
+ }
++ FMT_CONSTEXPR const char* map(signed char* val) {
++ const auto* const_val = val;
++ return map(const_val);
++ }
++ FMT_CONSTEXPR const char* map(unsigned char* val) {
++ const auto* const_val = val;
++ return map(const_val);
++ }
+
+ FMT_CONSTEXPR const void* map(void* val) { return val; }
+ FMT_CONSTEXPR const void* map(const void* val) { return val; }
+diff --git a/test/printf-test.cc b/test/printf-test.cc
+index 5aaa27b13..545e02aab 100644
+--- a/test/printf-test.cc
++++ b/test/printf-test.cc
+@@ -447,6 +447,12 @@ TEST(PrintfTest, String) {
+ EXPECT_PRINTF(L" (null)", L"%10s", null_wstr);
+ }
+
++TEST(PrintfTest, UCharString) {
++ unsigned char str[] = "test";
++ unsigned char* pstr = str;
++ EXPECT_EQ("test", fmt::sprintf("%s", pstr));
++}
++
+ TEST(PrintfTest, Pointer) {
+ int n;
+ void* p = &n;
diff --git a/dev-libs/libfmt/libfmt-6.1.2.ebuild b/dev-libs/libfmt/libfmt-6.1.2.ebuild
index 35ee6242ee74..e3dfe088fc67 100644
--- a/dev-libs/libfmt/libfmt-6.1.2.ebuild
+++ b/dev-libs/libfmt/libfmt-6.1.2.ebuild
@@ -18,7 +18,7 @@ if [[ ${PV} == *9999 ]] ; then
inherit git-r3
else
SRC_URI="https://github.com/fmtlib/fmt/archive/${PV}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="amd64 ~arm64 ppc ppc64 x86"
+ KEYWORDS="amd64 ~arm ~arm64 ppc ppc64 x86"
S="${WORKDIR}/fmt-${PV}"
fi
diff --git a/dev-libs/libfmt/libfmt-5.3.0.ebuild b/dev-libs/libfmt/libfmt-6.2.0-r1.ebuild
index c8550ae57056..f5dcf196261c 100644
--- a/dev-libs/libfmt/libfmt-5.3.0.ebuild
+++ b/dev-libs/libfmt/libfmt-6.2.0-r1.ebuild
@@ -1,16 +1,16 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
-inherit cmake-multilib eapi7-ver
+CMAKE_ECLASS=cmake
+inherit cmake-multilib
DESCRIPTION="Small, safe and fast formatting library"
HOMEPAGE="https://github.com/fmtlib/fmt"
-LICENSE="BSD-2"
+LICENSE="MIT"
IUSE="test"
-RESTRICT="!test? ( test )"
SLOT="0/$(ver_cut 1)"
if [[ ${PV} == *9999 ]] ; then
@@ -18,19 +18,23 @@ if [[ ${PV} == *9999 ]] ; then
inherit git-r3
else
SRC_URI="https://github.com/fmtlib/fmt/archive/${PV}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="amd64 ppc ppc64 x86"
+ KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
S="${WORKDIR}/fmt-${PV}"
fi
DEPEND=""
RDEPEND=""
+RESTRICT="!test? ( test )"
+
+PATCHES=(
+ "${FILESDIR}/${P}-unsigned-char-strings-in-printf.patch"
+)
multilib_src_configure() {
local mycmakeargs=(
-DFMT_CMAKE_DIR="$(get_libdir)/cmake/fmt"
-DFMT_LIB_DIR="$(get_libdir)"
-DFMT_TEST=$(usex test)
- -DBUILD_SHARED_LIBS=ON
)
- cmake-utils_src_configure
+ cmake_src_configure
}