]> git.pld-linux.org Git - packages/db5.3.git/commitdiff
- added link patch (fixes libdb-sql linking)
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 9 Jun 2013 05:18:25 +0000 (07:18 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 9 Jun 2013 09:00:12 +0000 (11:00 +0200)
- added sql-features patch (adds SQLITE_ENABLE_COLUMN_METADATA needed by libgda)

db5.3-link.patch [new file with mode: 0644]
db5.3-sql-features.patch [new file with mode: 0644]
db5.3.spec

diff --git a/db5.3-link.patch b/db5.3-link.patch
new file mode 100644 (file)
index 0000000..a205476
--- /dev/null
@@ -0,0 +1,11 @@
+--- db-5.2.42/dist/Makefile.in.orig    2013-06-09 07:40:47.715060826 +0200
++++ db-5.2.42/dist/Makefile.in 2013-06-09 08:06:06.361695837 +0200
+@@ -882,7 +882,7 @@
+ # Shared SQL library.
+ $(libsqlso_target): $(SQL_OBJS)
+-      $(SOLINK) $(SOFLAGS) $(LDFLAGS) -o $@ $(SQL_OBJS) $(LIBCSO_LIBS)
++      $(SOLINK) $(SOFLAGS) $(LDFLAGS) -o $@ $(SQL_OBJS) $(LIBCSO_LIBS) -ldl
+       $(RM) $(libsql)
+       $(LN) -s .libs/$(libsql_version) $(libsql)
diff --git a/db5.3-sql-features.patch b/db5.3-sql-features.patch
new file mode 100644 (file)
index 0000000..1c52b89
--- /dev/null
@@ -0,0 +1,11 @@
+--- db-5.3.21/dist/Makefile.in.orig    2012-05-11 19:57:48.000000000 +0200
++++ db-5.3.21/dist/Makefile.in 2013-06-09 10:32:16.358179710 +0200
+@@ -106,7 +106,7 @@
+ # SQL support is optional, and can be built with static or shared libraries.
+ ##################################################
+ SQLFLAGS=     -I$(builddir) -I$(builddir)/sql -I$(langdir)/sql/generated \
+-              -D_HAVE_SQLITE_CONFIG_H @SQL_FLAGS@
++              -D_HAVE_SQLITE_CONFIG_H @SQL_FLAGS@ -DSQLITE_ENABLE_COLUMN_METADATA=1
+ libsql_base=  libdb_sql
+ libsql=               $(libsql_base).a
index c04f920801204de4d918335e976a012efbe01b3f..32563e00aaa985aac6225db860424ee8dc106fac 100644 (file)
@@ -23,6 +23,8 @@ Group:                Libraries
 #Source0Download: http://www.oracle.com/technetwork/products/berkeleydb/downloads/index.html
 Source0:       http://download.oracle.com/berkeley-db/db-%{ver}.tar.gz
 # Source0-md5: 3fda0b004acdaa6fa350bfc41a3b95ca
+Patch0:                %{name}-link.patch
+Patch1:                %{name}-sql-features.patch
 URL:           http://www.oracle.com/technetwork/products/berkeleydb/downloads/index.html
 BuildRequires: automake
 %if %{with java}
@@ -245,7 +247,7 @@ Pliki programistyczne biblioteki db-tcl.
 Summary:       SQL layer for Berkeley database library
 Summary(pl.UTF-8):     Wartstwa SQL dla biblioteki baz danych Berkeley
 Group:         Libraries
-%if %{with default_bd}
+%if %{with default_db}
 Provides:      db-sql = %{version}-%{release}
 %endif
 
@@ -260,7 +262,7 @@ Summary:    Development files for db-sql library
 Summary(pl.UTF-8):     Pliki programistyczne biblioteki db-sql
 Group:         Development/Libraries
 Requires:      %{name}-sql = %{version}-%{release}
-%if %{with default_bd}
+%if %{with default_db}
 Provides:      db-sql-devel = %{version}-%{release}
 Obsoletes:     db-sql-devel
 %endif
@@ -368,6 +370,8 @@ poleceÅ„.
 
 %prep
 %setup -q -n db-%{ver}
+%patch0 -p1
+%patch1 -p1
 
 %build
 cp -f /usr/share/automake/config.sub dist
This page took 0.077886 seconds and 4 git commands to generate.