public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libfaketime/
Date: Sun,  3 Mar 2024 22:08:54 +0000 (UTC)	[thread overview]
Message-ID: <1709503698.a200322903215647e7ba696ecdbe79788c661245.sam@gentoo> (raw)

commit:     a200322903215647e7ba696ecdbe79788c661245
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Mar  3 22:08:18 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Mar  3 22:08:18 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2003229

Revert "sys-libs/libfaketime: drop 0.9.6-r4, 0.9.9"

This reverts commit e16489c6bce2c1e4712cfdf6f3ca6e9533d346f6.

app-admin/rsyslog needs <0.9.7 for now...

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-libs/libfaketime/Manifest                    |  2 +
 sys-libs/libfaketime/libfaketime-0.9.6-r4.ebuild | 56 ++++++++++++++++++++
 sys-libs/libfaketime/libfaketime-0.9.9.ebuild    | 67 ++++++++++++++++++++++++
 3 files changed, 125 insertions(+)

diff --git a/sys-libs/libfaketime/Manifest b/sys-libs/libfaketime/Manifest
index 681593bfd339..1e76f97098bb 100644
--- a/sys-libs/libfaketime/Manifest
+++ b/sys-libs/libfaketime/Manifest
@@ -1 +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.6-r4.ebuild b/sys-libs/libfaketime/libfaketime-0.9.6-r4.ebuild
new file mode 100644
index 000000000000..0d1e323682b4
--- /dev/null
+++ b/sys-libs/libfaketime/libfaketime-0.9.6-r4.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+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"
+
+PATCHES=( "${FILESDIR}"/${PN}-0.9.8-Treat-unknown-clock_ids-like-CLOCK_REALTIME.patch )
+
+src_prepare() {
+	default
+
+	sed -i 's/-Werror //' "${S}/src/Makefile" || die
+
+	sed -i 's/-Werror //' "${S}/test/Makefile" || die
+
+	# Bug #617624 (GCC-6 compatibility)
+	sed -i 's/-Wno-nonnull-compare //' "${S}/src/Makefile" || die
+
+	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
+}

diff --git a/sys-libs/libfaketime/libfaketime-0.9.9.ebuild b/sys-libs/libfaketime/libfaketime-0.9.9.ebuild
new file mode 100644
index 000000000000..df970bfb51c5
--- /dev/null
+++ b/sys-libs/libfaketime/libfaketime-0.9.9.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+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 's/-Werror //' "${S}/src/Makefile" || die
+
+	sed -i 's/-Werror //' "${S}/test/Makefile" || die
+
+	# Bug #617624 (GCC-6 compatibility)
+	sed -i 's/-Wno-nonnull-compare //' "${S}/src/Makefile" || die
+
+	# upstream doesn't want that we set this by default but
+	# I didn't find a single system where libfaketime passed
+	# CLOCK_MONOTONIC test without that
+	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() {
+	if has usersandbox ${FEATURES} ; then
+		# Tests are using LD_PRELOAD which clashes with FEATURES=usersandbox
+		ewarn "Tests are known to fail with usersandbox enabled."
+	fi
+
+	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
+}


             reply	other threads:[~2024-03-03 22:08 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-03 22:08 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-03-03 21:44 [gentoo-commits] repo/gentoo:master commit in: sys-libs/libfaketime/ Andreas K. Hüttel
2024-03-03 21:44 Andreas K. Hüttel
2023-11-24  9:31 Sam James
2023-03-04  8:18 Arthur Zamarin
2023-03-04  7:47 Arthur Zamarin
2023-03-04  7:28 Arthur Zamarin
2023-03-04  6:29 Arthur Zamarin
2023-03-04  5:49 Arthur Zamarin
2022-08-25  3:50 Sam James
2022-08-25  3:47 Sam James
2022-08-25  3:47 Sam James
2022-05-19  9:27 Yixun Lan
2022-05-19  9:27 Yixun Lan
2021-04-24 16:26 Thomas Deutschmann
2021-04-24 16:26 Thomas Deutschmann
2021-03-01 18:06 Thomas Deutschmann
2021-03-01 18:06 Thomas Deutschmann
2020-06-13 21:09 Matt Turner
2020-05-08  9:36 Sergei Trofimovich
2020-05-03 10:25 Agostino Sarubbo
2020-04-04 10:52 Sergei Trofimovich
2020-03-29 21:21 Sergei Trofimovich
2020-03-28 23:40 Sergei Trofimovich
2020-03-16 20:09 Matt Turner
2020-03-03  0:03 Thomas Deutschmann
2020-03-03  0:03 Thomas Deutschmann
2020-03-03  0:03 Thomas Deutschmann
2020-03-03  0:03 Thomas Deutschmann
2018-06-03  8:00 Mart Raudsepp
2018-03-28  5:05 Markus Meier
2017-11-23 20:48 Thomas Deutschmann
2017-10-01 19:38 Sergei Trofimovich
2017-08-12 19:11 Thomas Deutschmann
2017-05-18 19:16 Thomas Deutschmann
2017-05-07  7:06 Thomas Deutschmann
2016-12-05 16:26 Mike Frysinger
2016-09-25 19:57 Jeroen Roovers
2016-09-14 20:20 Thomas Deutschmann
2016-05-19  9:42 Jeroen Roovers
2016-03-15 17:28 Markus Meier
2015-09-15  0:41 Tim Harder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1709503698.a200322903215647e7ba696ecdbe79788c661245.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox