--- /dev/null
+--- db-5.3.28/src/env/env_open.c.old 2017-06-26 10:32:11.011419981 +0200
++++ db-5.3.28/src/env/env_open.c 2017-06-26 10:32:46.893721233 +0200
+@@ -473,7 +473,7 @@
+ env->db_mode = mode == 0 ? DB_MODE_660 : mode;
+
+ /* Read the DB_CONFIG file. */
+- if ((ret = __env_read_db_config(env)) != 0)
++ if (env->db_home != NULL && (ret = __env_read_db_config(env)) != 0)
+ return (ret);
+
+ /*
Summary(pl.UTF-8): Biblioteka C do obsługi baz Berkeley DB
Name: db5.3
Version: %{ver}.%{patchlevel}
-Release: 3
+Release: 4
License: BSD-like (see LICENSE)
Group: Libraries
#Source0Download: http://www.oracle.com/technetwork/products/berkeleydb/downloads/index.html
# Source0-md5: b99454564d5b4479750567031d66fe24
Patch0: %{name}-link.patch
Patch1: %{name}-sql-features.patch
+Patch2: db-5.3.28-cwd-db_config.patch
URL: http://www.oracle.com/technetwork/products/berkeleydb/downloads/index.html
BuildRequires: automake
%if %{with java}
%setup -q -n db-%{ver}
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
cp -f /usr/share/automake/config.sub dist