diff options
author | Sam James (sam_c) <sam@cmpct.info> | 2020-03-10 23:38:53 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-03-14 21:42:22 +0000 |
commit | fb38cbd4b7f03e04e3275ce0ab540fff373499ea (patch) | |
tree | 74ef11bf7e9c382c06a260fb62d1b5be082bcfd7 /net-misc/getdate/files | |
parent | dev-python/virtualenv: keyworded 16.7.9 for sparc, bug #700918 (diff) | |
download | gentoo-fb38cbd4b7f03e04e3275ce0ab540fff373499ea.tar.gz gentoo-fb38cbd4b7f03e04e3275ce0ab540fff373499ea.tar.bz2 gentoo-fb38cbd4b7f03e04e3275ce0ab540fff373499ea.zip |
net-misc/getdate: Fix build with glibc-2.31, bump EAPI
* Patches getdate to not use stime (removed in glibc-2.31).
(Tested and adjusts time fine.)
* Bump EAPI from 4 -> 7
Closes: https://bugs.gentoo.org/709642
Signed-off-by: Sam James (sam_c) <sam@cmpct.info>
Closes: https://github.com/gentoo/gentoo/pull/14923
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'net-misc/getdate/files')
-rw-r--r-- | net-misc/getdate/files/getdate-glibc-2.31.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/net-misc/getdate/files/getdate-glibc-2.31.patch b/net-misc/getdate/files/getdate-glibc-2.31.patch new file mode 100644 index 000000000000..2926f7c7a2bc --- /dev/null +++ b/net-misc/getdate/files/getdate-glibc-2.31.patch @@ -0,0 +1,13 @@ +--- a/getdate.c ++++ b/getdate.c +@@ -214,7 +214,9 @@ + /* Dangerous! Could upset cron and other + * timer related events. + */ +- stime(&new_time); ++ struct timespec s = {0}; ++ s.tv_sec = new_time; ++ clock_settime(CLOCK_REALTIME, &s); + print_samples(host, first_sample, second_sample); + printf("getdate: set time to %s to match host %s\n", + time_to_str(new_time), |