* [gentoo-commits] repo/gentoo:master commit in: sys-process/time/files/, sys-process/time/
@ 2017-08-14 13:36 Lars Wendler
0 siblings, 0 replies; 2+ messages in thread
From: Lars Wendler @ 2017-08-14 13:36 UTC (permalink / raw
To: gentoo-commits
commit: 6c217c61bdf05b725d4e9f993ebd457ef78e7fe8
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 14 12:41:26 2017 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Mon Aug 14 13:35:55 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c217c61
sys-process/time: Bump to version 1.7.2
Package-Manager: Portage-2.3.7, Repoman-2.3.3
sys-process/time/Manifest | 1 +
sys-process/time/files/1.7-info-dir-entry.patch | 4 +--
sys-process/time/files/time-1.7-build.patch | 4 +--
.../files/time-1.7-incorrect_memory_usage.patch | 10 +++-----
.../files/time-1.7.2-incorrect_memory_usage.patch | 29 ++++++++++++++++++++++
sys-process/time/time-1.7.2.ebuild | 28 +++++++++++++++++++++
6 files changed, 66 insertions(+), 10 deletions(-)
diff --git a/sys-process/time/Manifest b/sys-process/time/Manifest
index aa5e05278e9..b2122bb1938 100644
--- a/sys-process/time/Manifest
+++ b/sys-process/time/Manifest
@@ -1 +1,2 @@
+DIST time-1.7.2.tar.gz 108371 SHA256 be6927ef6cb08c411b907ac039d9228e1649f4944ef3e0fbe381471d6a61e45b SHA512 dfde8f48a9d52bcc9080596feca6c429556e1e510977503138195d390cb52f27dd171f519d78226b0b48adc404062ec1f9234d92ea9707ec16d1be23ced90afc WHIRLPOOL 2d9bbe909bed2861459fdd2a72104ca754f99439d0ffcd9df1db23969c44b2cfcd334907a560569d552a4ed4184fd9793ad134ccb3eaad24244953c3443a1b7d
DIST time-1.7.tar.gz 103066 SHA256 e37ea79a253bf85a85ada2f7c632c14e481a5fd262a362f6f4fd58e68601496d SHA512 d759b651e343beddc0b3bd06af85881486b72319c979a2e7f752d5a34edd8b7c1c19391c5c7a2e8f6685746cc7a046bf2c8e082b31458a1dd043ed90a4cebcd1 WHIRLPOOL 8102c994a6b5faa60ee51e7343383f307c0d31cbd26177f86fc96b41014e1065b536202a371556af336394ac0bf473db2571a15bc7644247a9a3d8235269880f
diff --git a/sys-process/time/files/1.7-info-dir-entry.patch b/sys-process/time/files/1.7-info-dir-entry.patch
index 1cc057b04ea..eb30029722b 100644
--- a/sys-process/time/files/1.7-info-dir-entry.patch
+++ b/sys-process/time/files/1.7-info-dir-entry.patch
@@ -1,5 +1,5 @@
---- time.info.old 2004-09-11 03:00:39.076871344 -0400
-+++ time.info 2004-09-11 03:00:40.394671008 -0400
+--- a/time.info
++++ b/time.info
@@ -19,6 +19,9 @@
manual into another language, under the above conditions for modified
versions, except that this permission notice may be stated in a
diff --git a/sys-process/time/files/time-1.7-build.patch b/sys-process/time/files/time-1.7-build.patch
index 82d6ae1c758..504643d768e 100644
--- a/sys-process/time/files/time-1.7-build.patch
+++ b/sys-process/time/files/time-1.7-build.patch
@@ -1,5 +1,5 @@
---- configure.in
-+++ configure.in
+--- a/configure.in
++++ b/configure.in
@@ -1,11 +1,6 @@
dnl Process this file with autoconf to produce a configure script.
-AC_INIT(time.c)
diff --git a/sys-process/time/files/time-1.7-incorrect_memory_usage.patch b/sys-process/time/files/time-1.7-incorrect_memory_usage.patch
index 55807100c3a..ab1f4ddfbd5 100644
--- a/sys-process/time/files/time-1.7-incorrect_memory_usage.patch
+++ b/sys-process/time/files/time-1.7-incorrect_memory_usage.patch
@@ -1,9 +1,8 @@
https://bugs.launchpad.net/ubuntu/+source/time/+bug/742248
https://bugs.gentoo.org/332253
-diff -rupN time-1.7-original/ChangeLog time-1.7/ChangeLog
---- time-1.7-original/ChangeLog 2011-11-11 09:17:47.507026731 +0100
-+++ time-1.7/ChangeLog 2011-11-11 09:27:46.751002205 +0100
+--- time-1.7/ChangeLog
++++ time-1.7/ChangeLog
@@ -1,3 +1,9 @@
+Fri Oct 1 00:00:00 2010 Bob Proulx <bob@proulx.com>
+ The struct rusage reports ru_maxrss in kbytes not pages and
@@ -14,9 +13,8 @@ diff -rupN time-1.7-original/ChangeLog time-1.7/ChangeLog
Thu Jul 11 12:37:17 1996 David J MacKenzie <djm@catapult.va.pubnix.com>
* Version 1.7.
-diff -rupN time-1.7-original/time.c time-1.7/time.c
---- time-1.7-original/time.c 2011-11-11 09:17:47.507026731 +0100
-+++ time-1.7/time.c 2011-11-11 09:27:58.167001738 +0100
+--- time-1.7/time.c
++++ time-1.7/time.c
@@ -398,7 +398,7 @@ summarize (fp, fmt, command, resp)
ptok ((UL) resp->ru.ru_ixrss) / MSEC_TO_TICKS (v));
break;
diff --git a/sys-process/time/files/time-1.7.2-incorrect_memory_usage.patch b/sys-process/time/files/time-1.7.2-incorrect_memory_usage.patch
new file mode 100644
index 00000000000..6c83f0bb926
--- /dev/null
+++ b/sys-process/time/files/time-1.7.2-incorrect_memory_usage.patch
@@ -0,0 +1,29 @@
+https://bugs.launchpad.net/ubuntu/+source/time/+bug/742248
+https://bugs.gentoo.org/332253
+
+--- time-1.7.2/ChangeLog
++++ time-1.7.2/ChangeLog
+@@ -1,6 +1,12 @@
+ Fri Dec 21 23:00:00 2012 David C Niemi <gnutime@dcn.tuxers.net>
+ * Version 1.7.1.
+
++Fri Oct 1 00:00:00 2010 Bob Proulx <bob@proulx.com>
++ * time.c (summarize): Do not call ptok on ru_maxrss.
++ The struct rusage reports ru_maxrss in kbytes not pages and
++ should not be converted through pages-to-kbytes again.
++ Reported by Sven Hartrumpf.
++
+ Thu Jul 11 12:37:17 1996 David J MacKenzie <djm@catapult.va.pubnix.com>
+
+ * Version 1.7.
+--- time-1.7.2/time.c
++++ time-1.7.2/time.c
+@@ -394,7 +394,7 @@
+ ptok ((UL) resp->ru.ru_ixrss) / MSEC_TO_TICKS (v));
+ break;
+ case 'M': /* Maximum resident set size. */
+- fprintf (fp, "%lu", ptok ((UL) resp->ru.ru_maxrss));
++ fprintf (fp, "%lu", (UL) resp->ru.ru_maxrss);
+ break;
+ case 'O': /* Outputs. */
+ fprintf (fp, "%ld", resp->ru.ru_oublock);
diff --git a/sys-process/time/time-1.7.2.ebuild b/sys-process/time/time-1.7.2.ebuild
new file mode 100644
index 00000000000..ed96169755c
--- /dev/null
+++ b/sys-process/time/time-1.7.2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="Displays info about resources used by a program"
+HOMEPAGE="https://www.gnu.org/directory/time.html"
+SRC_URI="http://git.savannah.gnu.org/cgit/time.git/snapshot/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND="sys-apps/texinfo"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.7-build.patch
+ "${FILESDIR}"/1.7-info-dir-entry.patch
+ "${FILESDIR}"/${PN}-1.7.2-incorrect_memory_usage.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-process/time/files/, sys-process/time/
@ 2022-09-10 13:30 Sam James
0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2022-09-10 13:30 UTC (permalink / raw
To: gentoo-commits
commit: 819911bb27d9b4f726ee9fb712c022fe3df96f74
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 10 13:17:39 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Sep 10 13:29:54 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=819911bb
sys-process/time: fix implicit function declaration
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../files/time-1.9-implicit-func-decl-clang.patch | 24 ++++++++++++++++++++++
sys-process/time/time-1.9-r1.ebuild | 18 ++++++++++++++++
2 files changed, 42 insertions(+)
diff --git a/sys-process/time/files/time-1.9-implicit-func-decl-clang.patch b/sys-process/time/files/time-1.9-implicit-func-decl-clang.patch
new file mode 100644
index 000000000000..ca76b5a50050
--- /dev/null
+++ b/sys-process/time/files/time-1.9-implicit-func-decl-clang.patch
@@ -0,0 +1,24 @@
+https://lists.gnu.org/archive/html/bug-time/2022-08/msg00001.html
+
+From c8deae54f92d636878097063b411af9fb5262ad3 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Mon, 15 Aug 2022 07:24:24 -0700
+Subject: [PATCH] include string.h for memset()
+
+Fixes implicit function declaration warning e.g.
+
+resuse.c:103:3: error: call to undeclared library function 'memset' with type 'void *(void *, int, unsigned long)'
+
+Upstream-Status: Submitted [https://lists.gnu.org/archive/html/bug-time/2022-08/msg00001.html]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+--- a/src/resuse.c
++++ b/src/resuse.c
+@@ -22,6 +22,7 @@
+ */
+
+ #include "config.h"
++#include <string.h>
+ #include <sys/time.h>
+ #include <sys/wait.h>
+ #include <sys/resource.h>
+
diff --git a/sys-process/time/time-1.9-r1.ebuild b/sys-process/time/time-1.9-r1.ebuild
new file mode 100644
index 000000000000..30f7e998ff2a
--- /dev/null
+++ b/sys-process/time/time-1.9-r1.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Displays info about resources used by a program"
+HOMEPAGE="https://www.gnu.org/directory/time.html"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+
+BDEPEND="sys-apps/texinfo"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.9-implicit-func-decl-clang.patch
+)
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-10 13:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-14 13:36 [gentoo-commits] repo/gentoo:master commit in: sys-process/time/files/, sys-process/time/ Lars Wendler
-- strict thread matches above, loose matches on Subject: below --
2022-09-10 13:30 Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox