public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/leveldb/files/
@ 2020-01-01 23:08 Aaron Bauman
  0 siblings, 0 replies; only message in thread
From: Aaron Bauman @ 2020-01-01 23:08 UTC (permalink / raw
  To: gentoo-commits

commit:     b4deeb4c3d6a2971730b177bd0276a4bec095aeb
Author:     Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Wed Jan  1 21:16:20 2020 +0000
Commit:     Aaron Bauman <bman <AT> gentoo <DOT> org>
CommitDate: Wed Jan  1 23:07:29 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4deeb4c

dev-libs/leveldb: remove unused patches

Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/14208
Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>

 .../leveldb/files/leveldb-1.9.0-configure.patch    | 35 ----------
 .../files/leveldb-1.9.0-forwardcompat.patch        | 81 ----------------------
 2 files changed, 116 deletions(-)

diff --git a/dev-libs/leveldb/files/leveldb-1.9.0-configure.patch b/dev-libs/leveldb/files/leveldb-1.9.0-configure.patch
deleted file mode 100644
index d25fe01f683..00000000000
--- a/dev-libs/leveldb/files/leveldb-1.9.0-configure.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-diff --git a/build_detect_platform b/build_detect_platform
-index 5801d20..4b4bb0d 100755
---- a/build_detect_platform
-+++ b/build_detect_platform
-@@ -169,20 +169,30 @@ EOF
- 
-     # Test whether Snappy library is installed
-     # http://code.google.com/p/snappy/
-+if [ "${USE_SNAPPY:-auto}" = "auto" ]; then
-     $CXX $CXXFLAGS -x c++ - -o /dev/null 2>/dev/null  <<EOF
-       #include <snappy.h>
-       int main() {}
- EOF
-     if [ "$?" = 0 ]; then
-+        USE_SNAPPY="yes"
-+    fi
-+fi
-+    if [ "$USE_SNAPPY" = "yes" ]; then
-         COMMON_FLAGS="$COMMON_FLAGS -DSNAPPY"
-         PLATFORM_LIBS="$PLATFORM_LIBS -lsnappy"
-     fi
- 
-     # Test whether tcmalloc is available
-+if [ "${USE_TCMALLOC:-auto}" = "auto" ]; then
-     $CXX $CXXFLAGS -x c++ - -o /dev/null -ltcmalloc 2>/dev/null  <<EOF
-       int main() {}
- EOF
-     if [ "$?" = 0 ]; then
-+        USE_TCMALLOC="yes"
-+    fi
-+fi
-+    if [ "$USE_TCMALLOC" = "yes" ]; then
-         PLATFORM_LIBS="$PLATFORM_LIBS -ltcmalloc"
-     fi
- fi

diff --git a/dev-libs/leveldb/files/leveldb-1.9.0-forwardcompat.patch b/dev-libs/leveldb/files/leveldb-1.9.0-forwardcompat.patch
deleted file mode 100644
index 1c21dbe09ff..00000000000
--- a/dev-libs/leveldb/files/leveldb-1.9.0-forwardcompat.patch
+++ /dev/null
@@ -1,81 +0,0 @@
-diff -ur leveldb-1.9.0.orig/db/db_test.cc leveldb-1.9.0/db/db_test.cc
---- leveldb-1.9.0.orig/db/db_test.cc	2013-01-07 21:07:29.000000000 +0000
-+++ leveldb-1.9.0/db/db_test.cc	2014-03-28 22:58:59.000000000 +0000
-@@ -139,7 +139,7 @@
- 
-     Status s = target()->NewWritableFile(f, r);
-     if (s.ok()) {
--      if (strstr(f.c_str(), ".sst") != NULL) {
-+      if (strstr(f.c_str(), ".sst") != NULL || strstr(f.c_str(), ".ldb") != NULL) {
-         *r = new SSTableFile(this, *r);
-       } else if (strstr(f.c_str(), "MANIFEST") != NULL) {
-         *r = new ManifestFile(this, *r);
-diff -ur leveldb-1.9.0.orig/db/filename.cc leveldb-1.9.0/db/filename.cc
---- leveldb-1.9.0.orig/db/filename.cc	2013-01-07 21:07:29.000000000 +0000
-+++ leveldb-1.9.0/db/filename.cc	2014-03-28 23:07:48.000000000 +0000
-@@ -34,6 +34,11 @@
-   return MakeFileName(name, number, "sst");
- }
- 
-+std::string LDBTableFileName(const std::string& name, uint64_t number) {
-+  assert(number > 0);
-+  return MakeFileName(name, number, "ldb");
-+}
-+
- std::string DescriptorFileName(const std::string& dbname, uint64_t number) {
-   assert(number > 0);
-   char buf[100];
-@@ -106,7 +111,7 @@
-     Slice suffix = rest;
-     if (suffix == Slice(".log")) {
-       *type = kLogFile;
--    } else if (suffix == Slice(".sst")) {
-+    } else if (suffix == Slice(".sst") || suffix == Slice(".ldb")) {
-       *type = kTableFile;
-     } else if (suffix == Slice(".dbtmp")) {
-       *type = kTempFile;
-diff -ur leveldb-1.9.0.orig/db/filename.h leveldb-1.9.0/db/filename.h
---- leveldb-1.9.0.orig/db/filename.h	2013-01-07 21:07:29.000000000 +0000
-+++ leveldb-1.9.0/db/filename.h	2014-03-28 23:07:43.000000000 +0000
-@@ -36,6 +36,7 @@
- // in the db named by "dbname".  The result will be prefixed with
- // "dbname".
- extern std::string TableFileName(const std::string& dbname, uint64_t number);
-+extern std::string LDBTableFileName(const std::string& dbname, uint64_t number);
- 
- // Return the name of the descriptor file for the db named by
- // "dbname" and the specified incarnation number.  The result will be
-diff -ur leveldb-1.9.0.orig/db/repair.cc leveldb-1.9.0/db/repair.cc
---- leveldb-1.9.0.orig/db/repair.cc	2013-01-07 21:07:29.000000000 +0000
-+++ leveldb-1.9.0/db/repair.cc	2014-03-28 23:13:28.000000000 +0000
-@@ -263,6 +263,14 @@
-     std::string fname = TableFileName(dbname_, t->meta.number);
-     int counter = 0;
-     Status status = env_->GetFileSize(fname, &t->meta.file_size);
-+    if (!status.ok()) {
-+      // Try alternate file name.
-+      fname = LDBTableFileName(dbname_, t->meta.number);
-+      Status s2 = env_->GetFileSize(fname, &t->meta.file_size);
-+      if (s2.ok()) {
-+        status = Status::OK();
-+      }
-+    }
-     if (status.ok()) {
-       Iterator* iter = table_cache_->NewIterator(
-           ReadOptions(), t->meta.number, t->meta.file_size);
-diff -ur leveldb-1.9.0.orig/db/table_cache.cc leveldb-1.9.0/db/table_cache.cc
---- leveldb-1.9.0.orig/db/table_cache.cc	2013-01-07 21:07:29.000000000 +0000
-+++ leveldb-1.9.0/db/table_cache.cc	2014-03-28 23:12:39.000000000 +0000
-@@ -54,6 +54,12 @@
-     RandomAccessFile* file = NULL;
-     Table* table = NULL;
-     s = env_->NewRandomAccessFile(fname, &file);
-+    if (!s.ok()) {
-+      std::string ldb_fname = LDBTableFileName(dbname_, file_number);
-+      if (env_->NewRandomAccessFile(ldb_fname, &file).ok()) {
-+        s = Status::OK();
-+      }
-+    }
-     if (s.ok()) {
-       s = Table::Open(*options_, file, file_size, &table);
-     }


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-01 23:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-01 23:08 [gentoo-commits] repo/gentoo:master commit in: dev-libs/leveldb/files/ Aaron Bauman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox