From d7ec4632b50c4102ae08342d8b53ec9881e73f76 Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Wed, 13 Jul 2022 08:19:05 +0800 Subject: databases/rocksdb: Try to find the reason why it is broken on our package building clusters - Locate all shared libraries before running strip - Clean up Makefile: - Use INSTALL_LIB to install librocksdb_tools.so - Remove PKGNAMESUFFIX: it is no-op after decouple rocksdb-lite from rocksdb (09bd0656bb445fed1675360acc33460e6d6fde44 and e4bc1f63b9dbdbde2463e8e4e33687aceb51bf1e) from poudriere log [1]: ... CCLD librocksdb.so.7.3.1 ln -fs librocksdb.so.7.3.1 librocksdb.so.7.3 ln -fs librocksdb.so.7.3.1 librocksdb.so.7 ln -fs librocksdb.so.7.3.1 librocksdb.so ... [ -e librocksdb.so.7.3.1 ] && gmake install-shared || : ... /usr/bin/strip /wrkdirs/usr/ports/databases/rocksdb/work/stage/usr/local/lib/librocksdb.so /wrkdirs/usr/ports/databases/rocksdb/work/stage/usr/local/lib/librocksdb_tools.so strip: open /wrkdirs/usr/ports/databases/rocksdb/work/stage/usr/local/lib/librocksdb.so failed: No such file or directory *** Error code 1 Stop. make: stopped in /usr/ports/databases/rocksdb Reference: http://beefy2.nyi.freebsd.org/data/123amd64-quarterly/3dc475798ba8/logs/rocksdb-7.3.1.log [1] --- databases/rocksdb/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'databases/rocksdb') diff --git a/databases/rocksdb/Makefile b/databases/rocksdb/Makefile index 59f10bcaf383..9a8767f9ab33 100644 --- a/databases/rocksdb/Makefile +++ b/databases/rocksdb/Makefile @@ -73,8 +73,10 @@ post-patch: post-install: ${MKDIR} ${STAGEDIR}${DATADIR}/ cd ${WRKSRC}/ && ${INSTALL_PROGRAM} ${BENCHMARKS} ${TOOLS} ${STAGEDIR}${PREFIX}/bin/ - ${INSTALL_DATA} ${WRKSRC}/librocksdb${PKGNAMESUFFIX}_tools.so ${STAGEDIR}${PREFIX}/lib/ - ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/librocksdb${PKGNAMESUFFIX}.so ${STAGEDIR}${PREFIX}/lib/librocksdb${PKGNAMESUFFIX}_tools.so + # Locate all shared libraries. The STRIP_CMD below failed on our package building clusters. + ${FIND} ${WRKSRC} ${STAGEDIR}${PREFIX} -name '*.so*' + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/librocksdb.so + ${INSTALL_LIB} ${WRKSRC}/librocksdb_tools.so ${STAGEDIR}${PREFIX}/lib/ ${INSTALL_DATA} ${WRKSRC}/make_config.mk ${STAGEDIR}${DATADIR}/ .include -- cgit v1.2.3