Github messages for voidlinux
 help / color / mirror / Atom feed
From: pullmoll <pullmoll@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] db: patch to always use time_t for tv_nsec
Date: Sun, 06 Dec 2020 19:19:00 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-26996@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 324 bytes --]

There is a new pull request by pullmoll against master on the void-packages repository

https://github.com/pullmoll/void-packages db
https://github.com/void-linux/void-packages/pull/26996

db: patch to always use time_t for tv_nsec


A patch file from https://github.com/void-linux/void-packages/pull/26996.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-db-26996.patch --]
[-- Type: text/x-diff, Size: 1134 bytes --]

From e736ae9ed07d78057a54fce9f9c39044ec3ba1fe Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= <pullmoll@t-online.de>
Date: Sun, 6 Dec 2020 19:17:15 +0100
Subject: [PATCH] db: patch to always use time_t for tv_nsec

---
 srcpkgs/db/patches/time64.patch | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/db/patches/time64.patch

diff --git a/srcpkgs/db/patches/time64.patch b/srcpkgs/db/patches/time64.patch
new file mode 100644
index 00000000000..b199e800272
--- /dev/null
+++ b/srcpkgs/db/patches/time64.patch
@@ -0,0 +1,18 @@
+By the comment's own admission, this cannot affect on-disk nor ABI because
+'long' varies per architecture.  So, this change is always correct.
+
+--- src/dbinc/clock.h	2013-09-09 15:35:08.000000000 +0000
++++ src/dbinc/clock.h	2020-01-31 19:22:11.630000000 +0000
+@@ -54,11 +54,7 @@
+  */
+ typedef struct {
+ 	time_t	tv_sec;				/* seconds */
+-#ifdef HAVE_MIXED_SIZE_ADDRESSING
+-	int32_t tv_nsec;
+-#else
+-	long	tv_nsec;			/* nanoseconds */
+-#endif
++	time_t	tv_nsec;			/* nanoseconds */
+ } db_timespec;
+ 
+ /* Operations on timespecs */

             reply	other threads:[~2020-12-06 18:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-06 18:19 pullmoll [this message]
2020-12-06 20:59 ` [PR PATCH] [Merged]: " pullmoll

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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-26996@inbox.vuxu.org \
    --to=pullmoll@users.noreply.github.com \
    --cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).