Github messages for voidlinux
 help / color / mirror / Atom feed
From: motorto <motorto@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] rocksdb: update to 7.4.3.
Date: Sun, 24 Jul 2022 19:02:01 +0200	[thread overview]
Message-ID: <20220724170201.NoDJZ5zvYZq48DW_bkTXJMk0XbHwBNKl2-hn8nnhTO8@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-38245@inbox.vuxu.org>

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

There is an updated pull request by motorto against master on the void-packages repository

https://github.com/motorto/void-packages rocksdb-7.4.3
https://github.com/void-linux/void-packages/pull/38245

rocksdb: update to 7.4.3.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **Briefly** (recompiled neomutt and used it fine)

#### Local build testing
- I built this PR locally for my native architecture, x86_64-{glibc,musl}

I have also linked rockdb with others compression libraries.

Not sure if another packages need to be rebuilt as well because of the SONAME update, need help on a good way to find this. 
To find the packages that needed to be recompiled I simply used `grep -R rocksdb-devel srcpkgs/` not sure if this is the correct way to do it.

Added patch for arm build but I don't have any hardware with that could someone try it 

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

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

From 97ce099fdf806df00a06a68221b8cd36181648c2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Cerqueira?= <acerqueira021@gmail.com>
Date: Sun, 24 Jul 2022 17:00:38 +0100
Subject: [PATCH 1/2] rocksdb: update to 7.4.3.

---
 srcpkgs/rocksdb/patches/toku_time.patch | 30 +++++++++++++++++++++++++
 srcpkgs/rocksdb/template                | 11 ++++-----
 2 files changed, 36 insertions(+), 5 deletions(-)
 create mode 100644 srcpkgs/rocksdb/patches/toku_time.patch

diff --git a/srcpkgs/rocksdb/patches/toku_time.patch b/srcpkgs/rocksdb/patches/toku_time.patch
new file mode 100644
index 000000000000..6ddc39535e14
--- /dev/null
+++ b/srcpkgs/rocksdb/patches/toku_time.patch
@@ -0,0 +1,30 @@
+https://git.alpinelinux.org/aports/plain/community/rocksdb/30-toku_time.patch
+Fixes build on arm
+
+--- a/utilities/transactions/lock/range/range_tree/lib/portability/toku_time.h
++++ b/utilities/transactions/lock/range/range_tree/lib/portability/toku_time.h
+@@ -58,9 +58,6 @@
+ #include <stdint.h>
+ #include <sys/time.h>
+ #include <time.h>
+-#if defined(__powerpc__)
+-#include <sys/platform/ppc.h>
+-#endif
+ 
+ #if 0
+ static inline float toku_tdiff (struct timeval *a, struct timeval *b) {
+@@ -131,8 +128,12 @@
+   uint64_t result;
+   __asm __volatile__("mrs %[rt], cntvct_el0" : [ rt ] "=r"(result));
+   return result;
++#elif  defined(__arm__)
++  uint32_t lo, hi;
++  __asm __volatile__("mrrc p15, 1, %[lo], %[hi], c14" : [ lo ] "=r" (lo), [hi] "=r" (hi));
++  return (uint64_t)hi << 32 | lo;
+ #elif defined(__powerpc__)
+-  return __ppc_get_timebase();
++  return __builtin_ppc_get_timebase();
+ #elif defined(__s390x__)
+   uint64_t result;
+   asm volatile("stckf %0" : "=Q"(result) : : "cc");
+
diff --git a/srcpkgs/rocksdb/template b/srcpkgs/rocksdb/template
index 2ae7db40ab91..4bfa7f4c89ef 100644
--- a/srcpkgs/rocksdb/template
+++ b/srcpkgs/rocksdb/template
@@ -1,16 +1,17 @@
 # Template file for 'rocksdb'
 pkgname=rocksdb
-version=5.18.3
-revision=2
+version=7.4.3
+revision=1
 build_style=cmake
-configure_args="-DPORTABLE=1 -DWITH_TESTS=0 -DUSE_RTTI=0 -DWITH_LZ4=1"
-makedepends="liblz4-devel"
+configure_args="-DPORTABLE=1 -DWITH_TESTS=0 -DUSE_RTTI=0 -DWITH_LZ4=1 -DWITH_ZLIB=1 -DWITH_BZ2=1 -DWITH_SNAPPY=1 -DWITH_ZSTD=1"
+makedepends="liblz4-devel gflags-devel snappy-devel libzstd-devel bzip2-devel zlib-devel"
 short_desc="RocksDB is a embeddable, persistent key-value store for fast storage"
 maintainer="magenbluten <mb0@codemonkey.cc>"
 license="GPL-2.0-or-later, Apache-2.0, BSD-3-Clause"
 homepage="https://github.com/facebook/rocksdb"
+changelog="https://raw.githubusercontent.com/facebook/rocksdb/main/HISTORY.md"
 distfiles="${homepage}/archive/v${version}.tar.gz"
-checksum=7fb6738263d3f2b360d7468cf2ebe333f3109f3ba1ff80115abd145d75287254
+checksum=ca1fedc931d2232603a84db6120b6e9158bc1f14ef113291624dc357500e48ab
 CFLAGS=-DNDEBUG
 CXXFLAGS=-DNDEBUG
 

From 54bad81a875c0f07e4e1e52ec6574c40be1c7ebd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Cerqueira?= <acerqueira021@gmail.com>
Date: Sun, 24 Jul 2022 17:01:05 +0100
Subject: [PATCH 2/2] neomutt: rebuild for rocksdb-7.3.4.

---
 common/shlibs            | 2 +-
 srcpkgs/neomutt/template | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/shlibs b/common/shlibs
index c0b708dd7a3d..66ce03ff34c1 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3625,7 +3625,7 @@ libOsiCommonTests.so.1 libClp-1.16.11_1
 libOsi.so.1 libClp-1.16.11_1
 libOGDF.so libogdf-2018.03_1
 libCOIN.so libogdf-2018.03_1
-librocksdb.so.5 rocksdb-5.17.2_1
+librocksdb.so.7 rocksdb-7.4.3_1
 libfrr.so.0 libfrr-6.0_1
 libkaccounts.so.2 kaccounts-integration-20.04.3_1
 libfrrospfapiclient.so.0 libfrrospfapiclient-6.0_1
diff --git a/srcpkgs/neomutt/template b/srcpkgs/neomutt/template
index a2320a780b2e..c69c15807185 100644
--- a/srcpkgs/neomutt/template
+++ b/srcpkgs/neomutt/template
@@ -1,7 +1,7 @@
 # Template file for 'neomutt'
 pkgname=neomutt
 version=20220429
-revision=1
+revision=2
 create_wrksrc=true
 build_wrksrc="${pkgname}-${version}"
 build_style=configure

  parent reply	other threads:[~2022-07-24 17:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-24 15:03 [PR PATCH] Rocksdb 7.4.3 motorto
2022-07-24 15:27 ` [PR PATCH] [Updated] rocksdb: update to 7.4.3 motorto
2022-07-24 16:01 ` motorto
2022-07-24 17:02 ` motorto [this message]
2022-07-25 11:44 ` motorto
2022-07-25 11:46 ` motorto
2022-07-25 11:54 ` motorto
2022-08-19 14:54 ` [PR PATCH] [Updated] " motorto
2022-08-19 14:54 ` motorto
2022-08-19 14:55 ` [PR PATCH] [Updated] " motorto
2022-08-19 15:26 ` motorto
2022-08-19 16:09 ` [PR PATCH] [Updated] rocksdb: update to 7.4.5 motorto
2022-08-21 12:45 ` [PR PATCH] [Merged]: " leahneukirchen

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=20220724170201.NoDJZ5zvYZq48DW_bkTXJMk0XbHwBNKl2-hn8nnhTO8@z \
    --to=motorto@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).