diff --git a/libdb.spec b/libdb.spec index 483e03919de2d67d3257853caf86c97483e17b48..5484ac584a53e88eb8007c32060a5ed46bb90138 100644 --- a/libdb.spec +++ b/libdb.spec @@ -1,6 +1,6 @@ Name: libdb Version: 5.3.28 -Release: 41 +Release: 42 Summary: The Berkeley DB database library for C License: BSD and LGPLv2 and Sleepycat URL: https://www.oracle.com/database/berkeley-db/ @@ -40,6 +40,7 @@ patch40: libdb-cbd-race.patch Patch41: fix-a-potential-infinite-loop.patch Patch42: add-check-for-device-number-in-__check_lock_fn.patch Patch43: db-5.3.28-sw.patch +patch44: support-clang-build.patch BuildRequires: gcc gcc-c++ perl-interpreter libtool tcl-devel >= 8.5.2-3 BuildRequires: java-1.8.0-openjdk-devel chrpath zlib-devel @@ -124,7 +125,7 @@ popd %ifarch sw_64 %patch43 -p1 %endif - +%patch44 -p1 pushd dist ./s_config @@ -217,6 +218,9 @@ mv man/* %{buildroot}%{_mandir}/man1/ %{_mandir}/man1 %changelog +* Fri Mar 22 2024 luofeng - 5.3.28-42 +- support clang build + * Wed Oct 19 2022 wuzx - 5.3.28-41 - add sw64 patch diff --git a/support-clang-build.patch b/support-clang-build.patch new file mode 100644 index 0000000000000000000000000000000000000000..0cbb539c22c1d3d3b0696279a30311d0ba659aca --- /dev/null +++ b/support-clang-build.patch @@ -0,0 +1,33 @@ +From ba70232521c53b4f32733ba023b82157e6de6cdd Mon Sep 17 00:00:00 2001 +From: luofeng +Date: Thu, 21 Mar 2024 21:00:42 +0800 +Subject: [PATCH] support clang build + +--- + db.1.85/PORT/Makefile | 2 +- + db.1.85/PORT/linux/Makefile | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/db.1.85/PORT/Makefile b/db.1.85/PORT/Makefile +index 383b259..fc7518e 100644 +--- a/db.1.85/PORT/Makefile ++++ b/db.1.85/PORT/Makefile +@@ -99,4 +99,4 @@ memmove.o: + mktemp.o: + ${CC} -c -O -I. -Iinclude clib/mktemp.c + snprintf.o: +- ${CC} -c -O -I. -Iinclude clib/snprintf.c ++ ${CC} -c $(CFLAGS) -O -I. -Iinclude clib/snprintf.c +diff --git a/db.1.85/PORT/linux/Makefile b/db.1.85/PORT/linux/Makefile +index 40b7c55..6a70e2c 100644 +--- a/db.1.85/PORT/linux/Makefile ++++ b/db.1.85/PORT/linux/Makefile +@@ -98,4 +98,4 @@ memmove.o: + mktemp.o: + ${CC} -c -O -I. -Iinclude clib/mktemp.c + snprintf.o: +- ${CC} -c -O -I. -Iinclude clib/snprintf.c ++ ${CC} -c $(CFLAGS) -O -I. -Iinclude clib/snprintf.c +-- +2.19.1 +