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 <zhixu.liu@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/41952
Closes: https://github.com/gentoo/gentoo/pull/41952
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Z. Liu
2025-05-06 12:28:24 +08:00
committed by Sam James
parent 8ec0b6e52f
commit 0da1bcc7ae
2 changed files with 19 additions and 6 deletions

View File

@@ -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() {

View File

@@ -1,10 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<longdescription lang="en">
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.
</longdescription>
<maintainer type="person" proxied="yes">
<email>zhixu.liu@gmail.com</email>
<name>Z. Liu</name>
</maintainer>
<maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<longdescription lang="en">
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.
</longdescription>
</pkgmetadata>