git: 8d99acb1ae3a - main - databases/mdbx: Update to 0.11.9

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Thu, 11 Aug 2022 05:27:07 UTC
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8d99acb1ae3abfe348ace16a34e5c15e2b441a94

commit 8d99acb1ae3abfe348ace16a34e5c15e2b441a94
Author:     Mahlon E. Smith <mahlon@martini.nu>
AuthorDate: 2022-08-10 05:44:18 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2022-08-11 05:23:52 +0000

    databases/mdbx: Update to 0.11.9
    
    PR:     263166
    Reported by:    mahlon@martini.nu (maintainer)
---
 databases/mdbx/Makefile                |  9 +++------
 databases/mdbx/distinfo                |  6 +++---
 databases/mdbx/files/patch-GNUmakefile | 28 ++++++++++++++--------------
 databases/mdbx/files/patch-mdbx.h++    | 11 +++++++++++
 4 files changed, 31 insertions(+), 23 deletions(-)

diff --git a/databases/mdbx/Makefile b/databases/mdbx/Makefile
index 08a32ef10f56..7dda37bdc2f6 100644
--- a/databases/mdbx/Makefile
+++ b/databases/mdbx/Makefile
@@ -1,9 +1,9 @@
 PORTNAME=	mdbx
-PORTVERSION=	0.11.2
-DISTVERSIONPREFIX=	v
+PORTVERSION=	0.11.9
 CATEGORIES=	databases
 MASTER_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/${DISTVERSIONPREFIX}${DISTVERSION}/
-DISTNAME=	${GH_PROJECT}-amalgamated-${DISTVERSION}
+MASTER_SITES=	https://libmdbx.dqdkfa.ru/release/
+DISTNAME=	libmdbx-amalgamated-${DISTVERSION}
 
 MAINTAINER=	mahlon@martini.nu
 COMMENT=	Lightning Memory-Mapped Database (Extended)
@@ -14,9 +14,6 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
 USES=		gmake
-# No USE_GITHUB, we want the amalgamated build.
-GH_ACCOUNT=	erthink
-GH_PROJECT=	libmdbx
 USE_LDCONFIG=	yes
 
 MAKEFILE=	GNUmakefile
diff --git a/databases/mdbx/distinfo b/databases/mdbx/distinfo
index b47d4c887162..f872a795def7 100644
--- a/databases/mdbx/distinfo
+++ b/databases/mdbx/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1639163729
-SHA256 (libmdbx-amalgamated-0.11.2.tar.gz) = efe64856e934621adf104385fad788e679c41e2df3eae96ab35caf19403c75e2
-SIZE (libmdbx-amalgamated-0.11.2.tar.gz) = 664883
+TIMESTAMP = 1660003184
+SHA256 (libmdbx-amalgamated-0.11.9.tar.gz) = 8feb391155de28b0ec8d6f93817b3f6ed3318a7bd7047d212fd24ba59e287a81
+SIZE (libmdbx-amalgamated-0.11.9.tar.gz) = 689520
diff --git a/databases/mdbx/files/patch-GNUmakefile b/databases/mdbx/files/patch-GNUmakefile
index 478c5ef0964c..67b0d11d05b5 100644
--- a/databases/mdbx/files/patch-GNUmakefile
+++ b/databases/mdbx/files/patch-GNUmakefile
@@ -1,24 +1,24 @@
---- GNUmakefile.orig	2021-10-13 09:17:02.000000000 -0700
-+++ GNUmakefile	2021-10-21 14:35:08.340353000 -0700
-@@ -13,7 +13,7 @@
- # in README and source code (see src/options.h) if you do.
+--- GNUmakefile.orig	2022-08-02 10:17:33 UTC
++++ GNUmakefile
+@@ -9,7 +9,7 @@
+ # Basic internal definitios. For a customizable variables and options see below.
  #
- 
--SHELL   := env bash
-+SHELL   := env sh
- 
- # install sandbox
- DESTDIR ?=
-@@ -54,7 +54,7 @@
-     *) echo so;;
+ $(info // The GNU Make $(MAKE_VERSION))
+-SHELL         := $(shell env bash -c 'echo $$BASH')
++SHELL         := sh
+ MAKE_VERx3    := $(shell printf "%3s%3s%3s" $(subst ., ,$(MAKE_VERSION)))
+ make_lt_3_81  := $(shell expr "$(MAKE_VERx3)" "<" "  3 81")
+ ifneq ($(make_lt_3_81),0)
+@@ -117,7 +117,7 @@ define uname2libs
    esac
  endef
+ 
 -SO_SUFFIX  := $(shell $(uname2sosuffix))
-+SO_SUFFIX  := so.0.11.2
++SO_SUFFIX  := so.0.11.9
  HEADERS    := mdbx.h mdbx.h++
  LIBRARIES  := libmdbx.a libmdbx.$(SO_SUFFIX)
  TOOLS      := mdbx_stat mdbx_copy mdbx_dump mdbx_load mdbx_chk mdbx_drop
-@@ -209,16 +209,11 @@
+@@ -284,16 +284,11 @@ mdbx_%.static-lto: mdbx_%.c config.h mdbx.c mdbx.h
  
  install: $(LIBRARIES) $(TOOLS) $(HEADERS)
  	@echo '  INSTALLING...'
diff --git a/databases/mdbx/files/patch-mdbx.h++ b/databases/mdbx/files/patch-mdbx.h++
new file mode 100644
index 000000000000..51538c655c60
--- /dev/null
+++ b/databases/mdbx/files/patch-mdbx.h++
@@ -0,0 +1,11 @@
+--- mdbx.h++.orig	2022-08-02 10:17:33 UTC
++++ mdbx.h++
+@@ -23,6 +23,8 @@
+ 
+ #pragma once
+ 
++#define _LIBCPP_NO_EXPERIMENTAL_DEPRECATION_WARNING_FILESYSTEM
++
+ /* Workaround for modern libstdc++ with CLANG < 4.x */
+ #if defined(__SIZEOF_INT128__) && !defined(__GLIBCXX_TYPE_INT_N_0) &&          \
+     defined(__clang__) && __clang_major__ < 4