diff options
author | Sam James <sam@gentoo.org> | 2022-08-25 04:44:37 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-08-25 04:45:58 +0100 |
commit | 4c6266fb95f70f22164bc5030134a9cf11b3c9bf (patch) | |
tree | 5b2bc3356dae3ac37d62fd72a2d4cb71cdf56508 /sys-libs/libfaketime | |
parent | dev-lang/python: Stabilize 3.10.6_p2 amd64, #864741 (diff) | |
download | gentoo-4c6266fb95f70f22164bc5030134a9cf11b3c9bf.tar.gz gentoo-4c6266fb95f70f22164bc5030134a9cf11b3c9bf.tar.bz2 gentoo-4c6266fb95f70f22164bc5030134a9cf11b3c9bf.zip |
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 <sam@gentoo.org>
Diffstat (limited to 'sys-libs/libfaketime')
-rw-r--r-- | sys-libs/libfaketime/Manifest | 1 | ||||
-rw-r--r-- | sys-libs/libfaketime/libfaketime-0.9.10.ebuild | 64 |
2 files changed, 65 insertions, 0 deletions
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 +} |