tdb/build_pie.patch
Lars Müller 1b2c8329e7 - Update to version 1.3.0.
+ add TDB_MUTEX_LOCKING support
  + consolidate tdb allocation code - re-use dead records at hash top.
  + don't alter errno on success of tdb_open_ex()
  + introduce tdb->hdr_ofs
  + introduce TDB_SUPPORTED_FEATURE_FLAGS
  + return ENOSYS if the tdb was created with spinlocks.
  + use asprintf() to simplify tdb_summary()
  + test: add a "skip()" macro.
      add marklock deadlock test
      add mutex related tests
      add PING command to external-agent.c
      add shutdown_agent() helper function
      add UNMAP command to external-agent.c
      always call fflush() after [f]printf() in tap-interface.h
      avoid const warnings by using 'discard_const_p(uint8_t,' instead of
		  '(void *)'
      correctly use stderr, not stdout, in fail()
      remove "\n" in diag() arguments
  + tools: add -l option to tdbbackup
      add -l option to tdbtool
      add -m option to tdbtorture
      Allow tdbtool to r/o open mutexed tdbs
      avoid const warnings in tdbdump.c
      explicitly use TDB_NOLOCK in tdbdump
  + tdb_wrap: Remove tdb_wrap_open_ again
  + wscript: maintain a global list of unit tests
- Include stdbool.h in tdb.h; (bso#10625).
  + include_stdbool_bso10625.patch

OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/tdb?expand=0&rev=50
2014-05-23 21:23:11 +00:00

41 lines
1.3 KiB
Diff

Author: David Disseldorp <ddiss@samba.org>
Date: Wed Aug 15 18:33:08 CEST 2012
Build and link binaries with PIE flags.
Index: tdb-1.2.12/wscript
===================================================================
--- tdb-1.2.12.orig/wscript
+++ tdb-1.2.12/wscript
@@ -149,20 +149,27 @@ def build(bld):
bld.SAMBA_BINARY('tdbrestore',
'tools/tdbrestore.c',
- 'tdb', manpages='man/tdbrestore.8')
+ 'tdb',
+ cflags='-fPIE', ldflags='-pie',
+ manpages='man/tdbrestore.8')
bld.SAMBA_BINARY('tdbdump',
'tools/tdbdump.c',
- 'tdb', manpages='man/tdbdump.8')
+ 'tdb',
+ cflags='-fPIE', ldflags='-pie',
+ manpages='man/tdbdump.8')
bld.SAMBA_BINARY('tdbbackup',
'tools/tdbbackup.c',
'tdb',
+ cflags='-fPIE', ldflags='-pie',
manpages='man/tdbbackup.8')
bld.SAMBA_BINARY('tdbtool',
'tools/tdbtool.c',
- 'tdb', manpages='man/tdbtool.8')
+ 'tdb',
+ cflags='-fPIE', ldflags='-pie',
+ manpages='man/tdbtool.8')
# FIXME: This hardcoded list is stupid, stupid, stupid.
bld.SAMBA_SUBSYSTEM('tdb-test-helpers',