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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2C550158094 for ; Thu, 25 Aug 2022 03:47:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 67B55E08F7; Thu, 25 Aug 2022 03:47:38 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3DE76E08F7 for ; Thu, 25 Aug 2022 03:47:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 795BD34111E for ; Thu, 25 Aug 2022 03:47:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1BAB9569 for ; Thu, 25 Aug 2022 03:47:36 +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: <1661399158.4c6266fb95f70f22164bc5030134a9cf11b3c9bf.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libfaketime/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-libs/libfaketime/Manifest sys-libs/libfaketime/libfaketime-0.9.10.ebuild X-VCS-Directories: sys-libs/libfaketime/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 4c6266fb95f70f22164bc5030134a9cf11b3c9bf X-VCS-Branch: master Date: Thu, 25 Aug 2022 03:47:36 +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: c5f1c391-81fd-4e73-8be0-5ed09a0fc9dc X-Archives-Hash: 676dc9350900ea49348387c1ee220d20 commit: 4c6266fb95f70f22164bc5030134a9cf11b3c9bf Author: Sam James gentoo org> AuthorDate: Thu Aug 25 03:44:37 2022 +0000 Commit: Sam James gentoo org> CommitDate: Thu Aug 25 03:45:58 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c6266fb sys-libs/libfaketime: add 0.9.10 Dropping workaround b/c of upstream changes [0][1] [0] https://github.com/wolfcw/libfaketime/commit/40edcc7ca087a8118fe5a2d27152617fa233e0e2 [1] https://github.com/wolfcw/libfaketime/commit/0e61d3d1917f530b5e3f66db2ed5dd6acd20e798 Signed-off-by: Sam James gentoo.org> sys-libs/libfaketime/Manifest | 1 + sys-libs/libfaketime/libfaketime-0.9.10.ebuild | 64 ++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/sys-libs/libfaketime/Manifest b/sys-libs/libfaketime/Manifest index ab71085c4be9..1e76f97098bb 100644 --- a/sys-libs/libfaketime/Manifest +++ b/sys-libs/libfaketime/Manifest @@ -1,2 +1,3 @@ +DIST libfaketime-0.9.10.tar.gz 88908 BLAKE2B 0faa7b1fd0ef7fe99bb586bb4e68e8172f799a2cdca680c75b08145d84f3602ab10b84853589df19398e92fa5f248190624e5585b156c06e99cec7bc332925ab SHA512 07c431bee21e31343b680d1322dd529ea276e3cc4dbec61646c12bf5d0263163faf6186efeb36b199e24b655578a493c43e3b7a7acf8eba8b9ff84a1e94d618b DIST libfaketime-0.9.6.tar.gz 53540 BLAKE2B 5559e683d9d513fe60fe4b7f22a2ee794bccd8b1fe2a58735876fb9a0f05e1157d20485cfc2f0bcefa0b1f642f3b981de00471a36998867b0024dd8ac5a77466 SHA512 22cd796d4c6f7b327c664895df5b93b72a7243d886bf5241f932cc23fd54049c5fb6a8351078d036d78d12cb6f530ff66b98ef75df6eba5339ebfef1e7561225 DIST libfaketime-0.9.9.tar.gz 78610 BLAKE2B 863e3aaf5f26a7b4d6104bdf5dd8fc0ac70547770d01cad302e476a7eeee63f0900ddc825aa75f6db7be08155d7ceb05f3b730fffb9e4928147fbdc097ee0df8 SHA512 b1aecf456753ccf771f0f80c92d57ffcd2c8349dde93a575862b4570a06812d4bce104f2efbcfd627a85a80fed99dbc37cb156dda0389892bfb4e71df816191f diff --git a/sys-libs/libfaketime/libfaketime-0.9.10.ebuild b/sys-libs/libfaketime/libfaketime-0.9.10.ebuild new file mode 100644 index 000000000000..246a168f4a5a --- /dev/null +++ b/sys-libs/libfaketime/libfaketime-0.9.10.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic toolchain-funcs multilib-minimal + +DESCRIPTION="Report faked system time to programs" +HOMEPAGE="http://www.code-wizards.com/projects/libfaketime/ https://github.com/wolfcw/libfaketime" +SRC_URI="https://github.com/wolfcw/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" + +src_prepare() { + default + + sed -i -e 's/-Werror //' {src,test}/Makefile || die + + # Bug #617624 (GCC-6 compatibility) + sed -i 's/-Wno-nonnull-compare //' src/Makefile || die + + # We used to always set this, but see: + # 1. https://github.com/wolfcw/libfaketime/commit/40edcc7ca087a8118fe5a2d27152617fa233e0e2 + # i.e. we should report cases which end up needing it, rather than always setting it. + # + # 2. As of 0.9.10, libfaketime tries to detect at runtime if it's needed. + #append-cflags -DFORCE_MONOTONIC_FIX + + # bug #844958 + use riscv && append-cflags -DFORCE_PTHREAD_NONVER + + multilib_copy_sources +} + +multilib_src_compile() { + local target=all + + pushd src > /dev/null || die + multilib_is_native_abi || target="${PN}.so.1 ${PN}MT.so.1" + # ${target} is intentionally not quoted + emake CC="$(tc-getCC)" LIBDIRNAME="/$(get_libdir)" PREFIX=/usr ${target} + popd > /dev/null || die +} + +multilib_src_test() { + multilib_is_native_abi && emake CC="$(tc-getCC)" test +} + +multilib_src_install() { + multilib_is_native_abi && dobin src/faketime + + exeinto /usr/$(get_libdir) + doexe src/${PN}*.so.* + + dosym ${PN}.so.1 /usr/$(get_libdir)/${PN}.so + dosym ${PN}MT.so.1 /usr/$(get_libdir)/${PN}MT.so +} + +multilib_src_install_all() { + doman man/faketime.1 + dodoc NEWS README TODO +}