lmdb/automake.diff
Klaus Kämpf 5d7692be2a Accepting request 293807 from home:sumski:hazard:to:your:stereo
- Update to 0.9.14:
* Fix to support 64K page size (ITS#7713)
* Fix to persist decreased as well as increased mapsizes (ITS#7789)
* Fix cursor bug when deleting last node of a DUPSORT key
* Fix mdb_env_info to return FIXEDMAP address
* Fix ambiguous error code from writing to closed DBI (ITS#7825)
* Fix mdb_copy copying past end of file (ITS#7886)
* Fix cursor bugs from page_merge/rebalance
* Fix to dirty fewer pages in deletes (mdb_page_loose())
* Fix mdb_dbi_open creating subDBs (ITS#7917)
* Fix mdb_cursor_get(_DUP) with single value (ITS#7913)
* Fix Windows compat issues in mtests (ITS#7879)
* Add compacting variant of mdb_copy
* Add BigEndian integer key compare code
* Add mdb_dump/mdb_load utilities
 - Changes since 0.9.13:
* Fix mdb_page_alloc unlimited overflow page search
* Documentation:
  Re-fix MDB_CURRENT doc (ITS#7793)
  Fix MDB_GET_MULTIPLE/MDB_NEXT_MULTIPLE doc
 - Changes since 0.9.12:
* Fix MDB_GET_BOTH regression (ITS#7875,#7681)
* Fix MDB_MULTIPLE writing multiple keys (ITS#7834)
* Fix mdb_rebalance (ITS#7829)
* Fix mdb_page_split (ITS#7815)
* Fix md_entries count (ITS#7861,#7828,#7793)
* Fix MDB_CURRENT (ITS#7793)
* Fix possible crash on Windows DLL detach
* Misc code cleanup
* Documentation:

OBS-URL: https://build.opensuse.org/request/show/293807
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/lmdb?expand=0&rev=12
2015-03-31 19:08:42 +00:00

68 lines
2.4 KiB
Diff

From: Jan Engelhardt <jengelh@inai.de>
Date: 2014-05-16 21:40:05.570658956 +0200
Upstream: Submitted and rejected
build: use automake for building
The upstream Makefile suffers from some shortcomings, such as:
- Provides no way to set bindir, libdir, docdir/mandir.
- Fails to mkdir the DESTDIR tree on make install.
- Uses the wrong shared library extension on MinGW/Cygwin.
- No way of turning off static library generation at build time.
- There is no shared library versioning of any kind, which does not line up
with the guidelines for openSUSE and other distributions.
Upstream believes it will never change anything in an incompatible way.
While I, the patch author, concur with that expectation, it does not solve
the issue with compatible changes (such as adding functions), for which
symbol version maps would come into play. As I do not want to also maintain
a symvers patch, I will apply the naming guidelines of section
http://en.opensuse.org/openSUSE:Shared_library_packaging_policy#When_there_is_no_versioning
meaning the use of -release ${PACKAGE_VERSION}.
LMDB is a very simple project without many source files or compile-time flag
combinations; working with the original Makefile does not need all that many
hoops. But it is a tie IMO, and so, the casting vote shall be the AM route.
---
Makefile.am | 16 ++++++++++++++++
configure.ac | 13 +++++++++++++
2 files changed, 29 insertions(+)
--- /dev/null
+++ liblmdb/Makefile.am
@@ -0,0 +1,17 @@
+# -*- Makefile -*-
+
+ACLOCAL_AMFLAGS = -I m4
+AM_CFLAGS = -W -Wall -Wno-unused-parameter -Wbad-function-cast -pthread
+AM_CPPFLAGS = -include config.h
+LDADD = liblmdb.la
+
+bin_PROGRAMS = mdb_copy mdb_stat
+check_PROGRAMS = mtest mtest2 mtest3 mtest4 mtest5
+man_MANS = mdb_copy.1 mdb_stat.1
+include_HEADERS = lmdb.h
+lib_LTLIBRARIES = liblmdb.la
+liblmdb_la_SOURCES = mdb.c midl.c
+liblmdb_la_LDFLAGS = -release ${PACKAGE_VERSION}
+
+clean-local:
+ rm -Rf testdb
--- /dev/null
+++ liblmdb/configure.ac
@@ -0,0 +1,15 @@
+AC_INIT([liblmdb], [0.9.14], [http://symas.com/mdb/])
+AC_CONFIG_AUX_DIR([build-aux])
+AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_MACRO_DIR([m4])
+AM_INIT_AUTOMAKE([-Wall foreign subdir-objects tar-pax])
+AC_USE_SYSTEM_EXTENSIONS
+AC_SYS_LARGEFILE
+AC_PROG_CC_STDC
+AM_PROG_CC_C_O
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
+LT_INIT
+AC_CHECK_HEADERS([sys/file.h])
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT