Skip to content

Commit 7d7b899

Browse files
author
JkLondon
committed
get cached upd
1 parent 4f55f44 commit 7d7b899

File tree

16 files changed

+279
-590
lines changed

16 files changed

+279
-590
lines changed

libmdbx/CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
#
44
# Donations are welcome to ETH `0xD104d8f8B2dC312aaD74899F83EBf3EEBDC1EA3A`. Всё будет хорошо!
55

6-
# libmdbx = { Revised and extended descendant of Symas LMDB. } Please see README.md at
7-
# https://gitflic.ru/project/erthink/libmdbx
6+
# libmdbx = { Revised and extended descendant of Symas LMDB. }
7+
# Please see README.md at https://sourcecraft.dev/dqdkfa/libmdbx
88
#
99
# Libmdbx is superior to LMDB in terms of features and reliability, not inferior in performance. libmdbx works on Linux,
1010
# FreeBSD, MacOS X and other systems compliant with POSIX.1-2008, but also support Windows as a complementary platform.
@@ -763,7 +763,7 @@ endif()
763763

764764
# sources list
765765
set(LIBMDBX_PUBLIC_HEADERS mdbx.h)
766-
set(LIBMDBX_SOURCES mdbx.h "${CMAKE_CURRENT_BINARY_DIR}/config.h")
766+
set(LIBMDBX_SOURCES mdbx.h "${CMAKE_CURRENT_BINARY_DIR}/config-cmake.h")
767767
if(MDBX_AMALGAMATED_SOURCE)
768768
list(APPEND LIBMDBX_SOURCES mdbx.c)
769769
else()
@@ -1253,10 +1253,10 @@ foreach(item IN LISTS options)
12531253
message(STATUS "${item}: ${value}")
12541254
endforeach(item)
12551255

1256-
# provide config.h for library build info
1257-
file(REMOVE "${MDBX_SOURCE_DIR}/config.h")
1258-
configure_file("${MDBX_SOURCE_DIR}/config.h.in" "${CMAKE_CURRENT_BINARY_DIR}/config.h" ESCAPE_QUOTES)
1259-
add_definitions(-DMDBX_CONFIG_H="${CMAKE_CURRENT_BINARY_DIR}/config.h")
1256+
# provide config-cmake.h for library build info
1257+
file(REMOVE "${MDBX_SOURCE_DIR}/config-cmake.h")
1258+
configure_file("${MDBX_SOURCE_DIR}/config.h.in" "${CMAKE_CURRENT_BINARY_DIR}/config-cmake.h" ESCAPE_QUOTES)
1259+
add_definitions(-DMDBX_CONFIG_H="${CMAKE_CURRENT_BINARY_DIR}/config-cmake.h")
12601260

12611261
# ######################################################################################################################
12621262

libmdbx/ChangeLog.md

Lines changed: 33 additions & 49 deletions
Large diffs are not rendered by default.

libmdbx/GNUmakefile

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ clean:
246246
@echo ' REMOVE ...'
247247
$(QUIET)rm -rf $(MDBX_TOOLS) mdbx_test @* *.[ao] *.[ls]o *.$(SO_SUFFIX) *.dSYM *~ tmp.db/* \
248248
*.gcov *.log *.err src/*.o test/*.o mdbx_example dist @dist-check \
249-
config.h src/config.h src/version.c *.tar* @buildflags.tag @dist-checked.tag \
249+
config-gnumake.h src/config-gnumake.h src/version.c *.tar* @buildflags.tag @dist-checked.tag \
250250
mdbx_*.static mdbx_*.static-lto CMakeFiles
251251

252252
MDBX_BUILD_FLAGS =$(strip MDBX_BUILD_CXX=$(MDBX_BUILD_CXX) $(MDBX_BUILD_OPTIONS) $(call select_by,MDBX_BUILD_CXX,$(CXXFLAGS) $(LDFLAGS) $(LIB_STDCXXFS) $(LIBS),$(CFLAGS) $(LDFLAGS) $(LIBS)))
@@ -284,7 +284,7 @@ ctest: cmake-build
284284
# Amalgamated source code, i.e. distributed after `make dist`
285285
MAN_SRCDIR := man1/
286286

287-
config.h: @buildflags.tag $(WAIT) mdbx.c $(lastword $(MAKEFILE_LIST)) LICENSE NOTICE
287+
config-gnumake.h: @buildflags.tag $(WAIT) mdbx.c $(lastword $(MAKEFILE_LIST)) LICENSE NOTICE
288288
@echo ' MAKE $@'
289289
$(QUIET)(echo '#define MDBX_BUILD_TIMESTAMP "$(MDBX_BUILD_TIMESTAMP)"' \
290290
&& echo "#define MDBX_BUILD_FLAGS \"$$(cat @buildflags.tag)\"" \
@@ -294,33 +294,33 @@ config.h: @buildflags.tag $(WAIT) mdbx.c $(lastword $(MAKEFILE_LIST)) LICENSE NO
294294
&& echo '#define MDBX_BUILD_METADATA "$(MDBX_BUILD_METADATA)"' \
295295
) >$@
296296

297-
mdbx-dylib.o: config.h mdbx.c mdbx.h $(lastword $(MAKEFILE_LIST)) LICENSE NOTICE
297+
mdbx-dylib.o: config-gnumake.h mdbx.c mdbx.h $(lastword $(MAKEFILE_LIST)) LICENSE NOTICE
298298
@echo ' CC $@'
299-
$(QUIET)$(CC) $(CFLAGS) $(MDBX_BUILD_OPTIONS) '-DMDBX_CONFIG_H="config.h"' -DLIBMDBX_EXPORTS=1 -c mdbx.c -o $@
299+
$(QUIET)$(CC) $(CFLAGS) $(MDBX_BUILD_OPTIONS) '-DMDBX_CONFIG_H="config-gnumake.h"' -DLIBMDBX_EXPORTS=1 -c mdbx.c -o $@
300300

301-
mdbx-static.o: config.h mdbx.c mdbx.h $(lastword $(MAKEFILE_LIST)) LICENSE NOTICE
301+
mdbx-static.o: config-gnumake.h mdbx.c mdbx.h $(lastword $(MAKEFILE_LIST)) LICENSE NOTICE
302302
@echo ' CC $@'
303-
$(QUIET)$(CC) $(CFLAGS) $(MDBX_BUILD_OPTIONS) '-DMDBX_CONFIG_H="config.h"' -ULIBMDBX_EXPORTS -c mdbx.c -o $@
303+
$(QUIET)$(CC) $(CFLAGS) $(MDBX_BUILD_OPTIONS) '-DMDBX_CONFIG_H="config-gnumake.h"' -ULIBMDBX_EXPORTS -c mdbx.c -o $@
304304

305-
mdbx++-dylib.o: config.h mdbx.c++ mdbx.h mdbx.h++ $(lastword $(MAKEFILE_LIST)) LICENSE NOTICE
305+
mdbx++-dylib.o: config-gnumake.h mdbx.c++ mdbx.h mdbx.h++ $(lastword $(MAKEFILE_LIST)) LICENSE NOTICE
306306
@echo ' CC $@'
307-
$(QUIET)$(CXX) $(CXXFLAGS) $(MDBX_BUILD_OPTIONS) '-DMDBX_CONFIG_H="config.h"' -DLIBMDBX_EXPORTS=1 -c mdbx.c++ -o $@
307+
$(QUIET)$(CXX) $(CXXFLAGS) $(MDBX_BUILD_OPTIONS) '-DMDBX_CONFIG_H="config-gnumake.h"' -DLIBMDBX_EXPORTS=1 -c mdbx.c++ -o $@
308308

309-
mdbx++-static.o: config.h mdbx.c++ mdbx.h mdbx.h++ $(lastword $(MAKEFILE_LIST)) LICENSE NOTICE
309+
mdbx++-static.o: config-gnumake.h mdbx.c++ mdbx.h mdbx.h++ $(lastword $(MAKEFILE_LIST)) LICENSE NOTICE
310310
@echo ' CC $@'
311-
$(QUIET)$(CXX) $(CXXFLAGS) $(MDBX_BUILD_OPTIONS) '-DMDBX_CONFIG_H="config.h"' -ULIBMDBX_EXPORTS -c mdbx.c++ -o $@
311+
$(QUIET)$(CXX) $(CXXFLAGS) $(MDBX_BUILD_OPTIONS) '-DMDBX_CONFIG_H="config-gnumake.h"' -ULIBMDBX_EXPORTS -c mdbx.c++ -o $@
312312

313313
mdbx_%: mdbx_%.c mdbx-static.o
314314
@echo ' CC+LD $@'
315-
$(QUIET)$(CC) $(CFLAGS) $(MDBX_BUILD_OPTIONS) '-DMDBX_CONFIG_H="config.h"' $^ $(EXE_LDFLAGS) $(LIBS) -o $@
315+
$(QUIET)$(CC) $(CFLAGS) $(MDBX_BUILD_OPTIONS) '-DMDBX_CONFIG_H="config-gnumake.h"' $^ $(EXE_LDFLAGS) $(LIBS) -o $@
316316

317317
mdbx_%.static: mdbx_%.c mdbx-static.o
318318
@echo ' CC+LD $@'
319-
$(QUIET)$(CC) $(CFLAGS) $(MDBX_BUILD_OPTIONS) '-DMDBX_CONFIG_H="config.h"' $^ $(EXE_LDFLAGS) -static -Wl,--strip-all -o $@
319+
$(QUIET)$(CC) $(CFLAGS) $(MDBX_BUILD_OPTIONS) '-DMDBX_CONFIG_H="config-gnumake.h"' $^ $(EXE_LDFLAGS) -static -Wl,--strip-all -o $@
320320

321-
mdbx_%.static-lto: mdbx_%.c config.h mdbx.c mdbx.h
321+
mdbx_%.static-lto: mdbx_%.c config-gnumake.h mdbx.c mdbx.h
322322
@echo ' CC+LD $@'
323-
$(QUIET)$(CC) $(CFLAGS) -Os -flto $(MDBX_BUILD_OPTIONS) '-DLIBMDBX_API=' '-DMDBX_CONFIG_H="config.h"' \
323+
$(QUIET)$(CC) $(CFLAGS) -Os -flto $(MDBX_BUILD_OPTIONS) '-DLIBMDBX_API=' '-DMDBX_CONFIG_H="config-gnumake.h"' \
324324
$< mdbx.c $(EXE_LDFLAGS) $(LIBS) -static -Wl,--strip-all -o $@
325325

326326
install: $(LIBRARIES) $(MDBX_TOOLS) $(HEADERS)

libmdbx/NOTICE

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,13 @@ As a result of what has happened, I will never, under any circumstances,
3030
post the primary sources (aka origins) of my projects on Github, or rely
3131
in any way on the Github infrastructure.
3232

33-
Nevertheless, realizing that it is more convenient for users of
34-
_libmdbx_ and other my projects to access ones on Github, I do not want
35-
to restrict their freedom or create inconvenience, and therefore I place
36-
mirrors (aka mirrors) of such repositories on Github since 2025. At the
37-
same time, I would like to emphasize once again that these are only
38-
mirrors that can be frozen, blocked or deleted at any time, as was the
39-
case in 2022.
33+
Nonetheless, taking into account that it is more convenient for users of
34+
my projects to access them on Github, I did not want to restrict their
35+
freedom or create inconvenience, and therefore I posted mirrors on
36+
Github. However, it was noticed that despite the development of
37+
_libmdbx_, free support and consultations, many projects and users
38+
deviated from the rules of a fair deal and instead of helping and
39+
building relationships, they began to adjust links and delete references
40+
in violation of the license. Therefore, in protest against such unworthy
41+
actions, on December 10, 2025, I decided to abandon the placement of
42+
mirrors on Github.

0 commit comments

Comments
 (0)