From 0da1bcc7ae183ce356f93ceb9c9528c3d7d81302 Mon Sep 17 00:00:00 2001 From: "Z. Liu" Date: Tue, 6 May 2025 12:28:24 +0800 Subject: [PATCH] net-misc/clockspeed: build w/ -std=gnu17 * and don't call AR/RANLIB directly * add myself as proxy maintainer Closes: https://bugs.gentoo.org/730002 Closes: https://bugs.gentoo.org/730004 Closes: https://bugs.gentoo.org/946519 Signed-off-by: Z. Liu Part-of: https://github.com/gentoo/gentoo/pull/41952 Closes: https://github.com/gentoo/gentoo/pull/41952 Signed-off-by: Sam James --- net-misc/clockspeed/clockspeed-0.62-r9.ebuild | 6 ++++++ net-misc/clockspeed/metadata.xml | 19 +++++++++++++------ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/net-misc/clockspeed/clockspeed-0.62-r9.ebuild b/net-misc/clockspeed/clockspeed-0.62-r9.ebuild index ff6856a5012ee..795bbec63e2d4 100644 --- a/net-misc/clockspeed/clockspeed-0.62-r9.ebuild +++ b/net-misc/clockspeed/clockspeed-0.62-r9.ebuild @@ -30,9 +30,15 @@ PATCHES=( ) src_configure() { + append-cflags -std=gnu17 # XXX https://bugs.gentoo.org/946519, workaround for gcc15 + echo "$(tc-getCC) ${CFLAGS} ${ASFLAGS}" > conf-cc || die use static && append-ldflags -static echo "$(tc-getCC) ${LDFLAGS}" > conf-ld || die + sed -i \ + -e "s:^echo 'ar cr :echo '$(tc-getAR) cr :g" \ + -e "s:^ echo 'ranlib : echo '$(tc-getRANLIB) :g" \ + make-makelib.sh || die } src_install() { diff --git a/net-misc/clockspeed/metadata.xml b/net-misc/clockspeed/metadata.xml index 2c98407046f3e..498248f969d4e 100644 --- a/net-misc/clockspeed/metadata.xml +++ b/net-misc/clockspeed/metadata.xml @@ -1,10 +1,17 @@ - - -clockspeed uses a hardware tick counter to compensate for a persistently fast or -slow system clock. Given a few time measurements from a reliable source, it -computes and then eliminates the clock skew. - + + zhixu.liu@gmail.com + Z. Liu + + + proxy-maint@gentoo.org + Proxy Maintainers + + + clockspeed uses a hardware tick counter to compensate for a persistently fast or + slow system clock. Given a few time measurements from a reliable source, it + computes and then eliminates the clock skew. +