git: 8e8a66ab9c71 - 2023Q3 - databases/rocksdb: Do not delete built shared libraries before building static library

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 06 Sep 2023 20:01:39 UTC
The branch 2023Q3 has been updated by sunpoet:

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

commit 8e8a66ab9c7135cab030704486fe4c5487155151
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-09-04 21:39:13 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-09-06 20:01:21 +0000

    databases/rocksdb: Do not delete built shared libraries before building static library
    
    Hope it would fix the build on the package building cluster.
    
    (cherry picked from commit b5c33f2db3696971ee290078164828d589062f2c)
---
 databases/rocksdb/files/patch-Makefile | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/databases/rocksdb/files/patch-Makefile b/databases/rocksdb/files/patch-Makefile
index b77add08e6c1..f6dd90351cbe 100644
--- a/databases/rocksdb/files/patch-Makefile
+++ b/databases/rocksdb/files/patch-Makefile
@@ -42,3 +42,12 @@
  
  all_but_some_tests: $(LIBRARY) $(BENCHMARKS) tools tools_lib test_libs $(ROCKSDBTESTS_SUBSET)
  
+@@ -1273,7 +1273,7 @@ package:
+ # 	Unit tests and tools
+ # ---------------------------------------------------------------------------
+ $(STATIC_LIBRARY): $(LIB_OBJECTS)
+-	$(AM_V_AR)rm -f $@ $(SHARED1) $(SHARED2) $(SHARED3) $(SHARED4)
++	$(AM_V_AR)rm -f $@
+ 	$(AM_V_at)$(AR) $(ARFLAGS) $@ $(LIB_OBJECTS)
+ 
+ $(STATIC_TEST_LIBRARY): $(TEST_OBJECTS)