From ec944cc3ab6d26cfdad3c925d86421612a91df2a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:51:18 +0100 Subject: [PATCH] x86_64 rebuild with patch to disable broken tcl support [release 2.8.17-4mamba;Sat Sep 20 2014] --- libsqlite2-2.8.17-no_tcl.patch | 20 ++++++++++++++++++++ libsqlite2.spec | 22 +++++++++++++++++----- 2 files changed, 37 insertions(+), 5 deletions(-) create mode 100644 libsqlite2-2.8.17-no_tcl.patch diff --git a/libsqlite2-2.8.17-no_tcl.patch b/libsqlite2-2.8.17-no_tcl.patch new file mode 100644 index 0000000..b84b648 --- /dev/null +++ b/libsqlite2-2.8.17-no_tcl.patch @@ -0,0 +1,20 @@ +diff -bur sqlite-2.8.17~orig/main.mk sqlite-2.8.17/main.mk +--- sqlite-2.8.17~orig/main.mk 2006-02-13 04:09:33.000000000 -0600 ++++ sqlite-2.8.17/main.mk 2006-02-13 04:15:42.000000000 -0600 +@@ -58,7 +58,7 @@ + expr.o func.o hash.o insert.o \ + main.o opcodes.o os.o pager.o parse.o pragma.o printf.o random.o \ + select.o table.o tokenize.o trigger.o update.o util.o \ +- vacuum.o vdbe.o vdbeaux.o where.o tclsqlite.o ++ vacuum.o vdbe.o vdbeaux.o where.o + + # All of the source code files. + # +@@ -91,7 +91,6 @@ + $(TOP)/src/sqlite.h.in \ + $(TOP)/src/sqliteInt.h \ + $(TOP)/src/table.c \ +- $(TOP)/src/tclsqlite.c \ + $(TOP)/src/tokenize.c \ + $(TOP)/src/trigger.c \ + $(TOP)/src/update.c \ diff --git a/libsqlite2.spec b/libsqlite2.spec index e7c175c..72eb2ff 100644 --- a/libsqlite2.spec +++ b/libsqlite2.spec @@ -1,6 +1,6 @@ Name: libsqlite2 Version: 2.8.17 -Release: 3mamba +Release: 4mamba Summary: An Embeddable SQL Database Engine Group: System/Libraries Vendor: openmamba @@ -8,11 +8,15 @@ Distribution: openmamba Packager: Silvan Calarco URL: http://www.hwaci.com/sw/sqlite Source: http://www.hwaci.com/sw/sqlite/sqlite-%{version}.tar.gz +Patch0: libsqlite2-2.8.17-no_tcl.patch License: Public Domain -BuildRequires: libtcl-devel +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel BuildRequires: libncurses-devel BuildRequires: libreadline-devel -Obsoletes: sqlite +## AUTOBUILDREQ-END +#BuildRequires: libtcl-devel +#Obsoletes: sqlite BuildRoot: %{_tmppath}/%{name}-%{version}-root %description @@ -42,6 +46,7 @@ administer an SQLite database and which serves as an example of how to use the S %prep %setup -q -n sqlite-%{version} +%patch0 -p1 %build %configure \ @@ -50,12 +55,16 @@ administer an SQLite database and which serves as an example of how to use the S %make make doc -make -k fulltest +#make -k fulltest %install [ %{buildroot} != / ] && rm -rf "%{buildroot}" %makeinstall +%ifarch x86_64 +mv %{buildroot}%{_prefix}/lib %{buildroot}%{_prefix}/lib64 +%endif + install -D -m644 sqlite.1 %{buildroot}%{_mandir}/man1/sqlite.1 %clean @@ -64,7 +73,6 @@ install -D -m644 sqlite.1 %{buildroot}%{_mandir}/man1/sqlite.1 %files %defattr(-, root, root) %{_libdir}/*.so.* -%doc README %files devel %defattr(-, root, root) @@ -74,6 +82,7 @@ install -D -m644 sqlite.1 %{buildroot}%{_mandir}/man1/sqlite.1 %{_libdir}/pkgconfig/*.pc %{_includedir}/* %doc doc/* +%doc README %files tools %defattr(-, root, root) @@ -81,6 +90,9 @@ install -D -m644 sqlite.1 %{buildroot}%{_mandir}/man1/sqlite.1 %{_mandir}/man1/* %changelog +* Sat Sep 20 2014 Silvan Calarco 2.8.17-4mamba +- x86_64 rebuild with patch to disable broken tcl support + * Wed Jun 20 2012 Silvan Calarco 2.8.17-3mamba - updated maintainer