On 2026/12/01 22:13, Martijn van Duren wrote:
> databases/leveldb failed to build on my alpha, since it had snappy
> installed by chance. Somehow it finds the library, but can't find the
> header.
With ports-gcc IIRC libraries are searched for in /usr/local/lib.
> Since snappy isn't listed as a dependency for leveldb, let's explicitly
> disable it.
>
> This is probably what kmos@ previously hit.
Same thing for crc32c as well, but I think it might make sense to
enable properly instead, i.e. the diff below.
Or alternatively as it's a library only and unused by other ports,
perhaps it makes sense to drop it instead.
Index: Makefile
===================================================================
RCS file: /cvs/ports/databases/leveldb/Makefile,v
diff -u -p -r1.26 Makefile
--- Makefile 20 Sep 2026 16:17:10 -0000 1.26
+++ Makefile 2 Dec 2026 11:17:33 -0000
@@ -1,8 +1,7 @@
GH_ACCOUNT= google
GH_PROJECT= leveldb
GH_TAGNAME= 1.23
-
-REVISION= 0
+REVISION= 1
COMMENT= fast key-value storage library
CATEGORIES= databases devel
@@ -12,17 +11,22 @@ SHARED_LIBS= leveldb 3.0 # 0.0
# BSD3
PERMIT_PACKAGE= Yes
-WANTLIB= ${COMPILER_LIBCXX} m pthread
+WANTLIB= ${COMPILER_LIBCXX} crc32c m pthread snappy
-# C++11
+# C++17
COMPILER= base-clang ports-gcc
MODULES= devel/cmake
-CONFIGURE_ARGS+= -DBUILD_SHARED_LIBS=on \
+CONFIGURE_ARGS= -DBUILD_SHARED_LIBS=on \
-DLEVELDB_INSTALL=on \
-DLEVELDB_BUILD_TESTS=off \
-DLEVELDB_BUILD_BENCHMARKS=off
+CXXFLAGS += -I${LOCALBASE}/include
+MODCMAKE_LDFLAGS= -L${LOCALBASE}/lib
+
+LIB_DEPENDS= archivers/snappy \
+ devel/crc32c
# Tests are broken right now due to googletest weirdness.
NO_TEST= Yes
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/databases/leveldb/pkg/PLIST,v
diff -u -p -r1.9 PLIST
--- pkg/PLIST 11 Mar 2022 18:31:20 -0000 1.9
+++ pkg/PLIST 2 Dec 2026 11:17:33 -0000
@@ -14,7 +14,6 @@ include/leveldb/status.h
include/leveldb/table.h
include/leveldb/table_builder.h
include/leveldb/write_batch.h
-lib/cmake/
lib/cmake/leveldb/
lib/cmake/leveldb/leveldbConfig.cmake
lib/cmake/leveldb/leveldbConfigVersion.cmake