1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

149 Commits

Author SHA1 Message Date
Simo Sorce
68a06bf37e r16043: Fix error message
(This used to be commit 2898df2cee22f2d478440e9576bec15140909e45)
2007-10-10 14:08:52 -05:00
Jelmer Vernooij
172a83d724 r15573: Fix build of systems that have iconv headers in non-standard locations
Split of system/locale.h header from system/iconv.h

Previously, iconv wasn't being used on these systems
(This used to be commit aa6d66fda69779d1c2948a1aca85dbd5208f1cba)
2007-10-10 14:05:58 -05:00
Tim Potter
1bf908c062 r15339: Signature for tdb_reopen_all() has changed.
(This used to be commit 4d8fff52360645df12b35cea45fceaa66d6594bf)
2007-10-10 14:05:18 -05:00
Jelmer Vernooij
b00c236906 r15301: Use static libraries internally. This required a few hacks in the build
system - these should be removed later on.
(This used to be commit 06547391669e064d2b92f5841b7df5f101a34cb9)
2007-10-10 14:05:07 -05:00
Jelmer Vernooij
ab8fd44603 r15300: Only enable SWIG shared libs if python is available
(This used to be commit d9f1c19f58578f97e7a20a54c474abfe6525849f)
2007-10-10 14:05:04 -05:00
Jelmer Vernooij
69b51f702a r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacement
for REQUIRED_SUBSYSTEMS.
(This used to be commit adc8a019b6da256f104abed1b82bfde6998a2ac9)
2007-10-10 14:04:18 -05:00
James Peach
7b8e8daa53 r15143: Pull in GNU extensions right at the start of the configure process. This
prevents a warning on comparison_fn_t redefinition every time replace.h
is included.
(This used to be commit 9140a2d266a59c24c1bc101d4cdd7da3cb141106)
2007-10-10 14:04:11 -05:00
Volker Lendecke
de17570446 r15120: Minimize the diff between Samba3 and Samba4 tdb: In Samba3 we don't allow C++
keywords. Change "private" -> "private_data".

Volker
(This used to be commit 047671567173e808fece41485bbeaaeebab7d4a2)
2007-10-10 14:04:10 -05:00
Volker Lendecke
fce0dcf245 r15100: Port the bugfix for #3569 to Samba4
(This used to be commit 5f1d52f232051324082b840f29dd7719a9328bd5)
2007-10-10 14:04:09 -05:00
Tim Potter
6aa32f4217 r15090: Since we wrap the swig wrapper in another layer of Python, there isn't
much point in doing lots of %rename calls in tdb.i so get rid of them.
(This used to be commit 983321f769a6ebc298f1f69bca1ac41ddc860606)
2007-10-10 14:04:07 -05:00
Andrew Tridgell
4b6cec88ae r14972: fix an uninitialised warning from ibm checker
(This used to be commit 9b867d2acffdfdcd5dc1dd5341db19daf11b5e96)
2007-10-10 14:00:48 -05:00
Tim Potter
96247e8059 r14970: Add configure stuff for Python to tdb and ldb standalone builds.
(This used to be commit 5e14e79489c67d55df20ef78ebf0aa168a5dc456)
2007-10-10 14:00:48 -05:00
Tim Potter
8c23f133c4 r14968: Move tdb and ldb swig wrappers in to lib/tdb and lib/ldb directories.
(This used to be commit fa8d0dc14a1af9567401d54a803b34a6498b7cd4)
2007-10-10 14:00:48 -05:00
Andrew Tridgell
b9ccb39c48 r14916: print errno so I can work out why OpenBSD is failing the test for tdb
in the build farm. msync() is failing.
(This used to be commit 4c3f3c414135c2b8fa9ea11a156246b56285b84f)
2007-10-10 14:00:16 -05:00
Andrew Tridgell
3387746c45 r14799: added a tdb_get_seqnum() call, and the TDB_SEQNUM flag. This allows
for an extremely lightweight test to see if a tdb has possibly
changed.
(This used to be commit f325ba605ccceca63712c0f2c98961e35e437b3d)
2007-10-10 13:59:20 -05:00
Andrew Tridgell
3434cd778c r14616: added notify change support to the posix backend
It doesn't fully work yet, and doesn't yet have all the efficiency
that is planned, but it doesn't break anything and I wanted to get the
code in the tree to minimise the chance of collisions with the work
metze is doing.
(This used to be commit 1624ea88e6eef89caacc36e7513aa79df0d579b9)
2007-10-10 13:59:02 -05:00
Jelmer Vernooij
b785a7c40c r14492: Fix shared libs - set SO_VERSION to 0 everywhere for now.
(This used to be commit 4682bc5ce047d81586447b9df82c91ed1fe677cf)
2007-10-10 13:57:32 -05:00
Jelmer Vernooij
71b4fd9792 r14477: Remove the NOPROTO property - it's no longer used as proto.h is gone.
(This used to be commit 9c37f847d32d2f327a88c53a90af0c73126b76be)
2007-10-10 13:57:30 -05:00
Jelmer Vernooij
e153a8099e r14327: Replace MAJOR_VERSION/MINOR_VERSION/RELEASE_VERSION with two parameters:
- VERSION: should contain the current version. Will be made part of the filename.
 - SO_VERSION: should contain the latest version that this on is compatible to. Will be used for setting the soname of the shared library.

Fix sonames and use them on platforms that support them
Remove symlinking code. ldconfig will take care of creating the symlinks now
that we set the soname.
(This used to be commit 7871b07e21c85c63d0ecac4c31b98dc112d18af5)
2007-10-10 13:57:12 -05:00
Jeremy Allison
1562ecf221 r14029: Fix resource leak in error codepath. Coverity CID #64.
Jeremy.
(This used to be commit d2e9d5b34baee90060ee9131b3da903309625a56)
2007-10-10 13:52:37 -05:00
Jelmer Vernooij
ceb6e9717b r13960: Generate makefile rules for installing/removing shared modules.
(This used to be commit 2c746980328431ab04852dc668899e3eb042da99)
2007-10-10 13:52:32 -05:00
Simo Sorce
0efc729318 r13773: Be consistent in the way you get out and free allocated data
(This used to be commit 1113d4caa7bea1a7ffb9a50f42c5672bc1d452b4)
2007-10-10 13:52:11 -05:00
Jelmer Vernooij
7e0e663b3f r13651: Always make sure pkgconfig directory exists
(This used to be commit 45997039148e5d689dacf4d47c09740b937ac379)
2007-10-10 13:52:04 -05:00
Andrew Tridgell
b9e07af822 r13283: added two optimisations to the tdb transactions code. The first is to
more agressively coalesce entries in the linked list of the undo
log. The second is to ensure that writes during a transaction into the
hash table don't cause the size of the undo log linked list to grow.

These optimisations don't affect Samba much, but they make a huge
difference to the use of ldb in kde
(This used to be commit a37d9434d1fa181fd3d060ad032ee4ec5135fc52)
2007-10-10 13:51:42 -05:00
Jelmer Vernooij
d8e35f8828 r12498: Eliminate INIT_OBJ_FILES and ADD_OBJ_FILES. We were not using
the difference between these at all, and in the future the
fact that INIT_OBJ_FILES include smb_build.h will be sufficient to
have recompiles at the right time.
(This used to be commit b24f2583edee38abafa58578d8b5c4b43e517def)
2007-10-10 13:47:45 -05:00
Jelmer Vernooij
ab31a44216 r12254: Add some (hopefully correct) descriptions for libraries that are installed.
Install pkg-config files.
(This used to be commit a86abe84e2cae7c6188c094a92c6b62aace02fdf)
2007-10-10 13:47:24 -05:00
Simo Sorce
5c95905871 r11567: Ldb API change patch.
This patch changes the way lsb_search is called and the meaning of the returned integer.
The last argument of ldb_search is changed from struct ldb_message to struct ldb_result
which contains a pointer to a struct ldb_message list and a count of the number of messages.
The return is not the count of messages anymore but instead it is an ldb error value.

I tryed to keep the patch as tiny as possible bu as you can guess I had to change a good
amount of places. I also tried to double check all my changes being sure that the calling
functions would still behave as before. But this patch is big enough that I fear some bug
may have been introduced anyway even if it passes the test suite. So if you are currently
working on any file being touched please give it a deep look and blame me for any error.

Simo.
(This used to be commit 22c8c97e6fb466b41859e090e959d7f1134be780)
2007-10-10 13:45:53 -05:00
Jelmer Vernooij
67c808f5ff r11304: Add support back in for loading shared modules (not used yet)
(This used to be commit 90f49b6f70c4aaf0e4ab4fad2e6f9caeb0f6f3a6)
2007-10-10 13:45:16 -05:00
Jelmer Vernooij
8ee1ee66ed r11303: Support defining and installing public headers for libraries.
Support installing libraries.
Get rid of pkg-config file (will be autogenerated later on).
(This used to be commit b4745032a2c55752c527026feb221ccc3dce10c8)
2007-10-10 13:45:16 -05:00
Jelmer Vernooij
bf300c8687 r11300: Treat libraries as a special kind of subsystem
(one that can also be built as a library and installed).
(This used to be commit 98d1f9b1dc523ed88c5aa8d066030b33d74f62bf)
2007-10-10 13:45:15 -05:00
Jelmer Vernooij
4c5a4a7e02 r11244: Relative path names in .mk files
(This used to be commit 24e10300906c380919d2d631bfb3b8fd6b3f54ba)
2007-10-10 13:45:06 -05:00
Jelmer Vernooij
f4d590662e r11214: Remove scons files (see http://lists.samba.org/archive/samba-technical/2005-October/043443.html)
(This used to be commit 7fffc5c9178158249be632ac0ca179c13bd1f98f)
2007-10-10 13:45:03 -05:00
Andrew Tridgell
87255dc743 r10893: add configure test for utime (needed for the previous utime patch)
(This used to be commit ef020d599fd2336cbf879920fe3505b97783dfc8)
2007-10-10 13:39:40 -05:00
Andrew Tridgell
5d1bc4fe31 r10891: I noticed that the secrets.db was not being backed up on my system due
to msync/mmap not changing the mtime of the file. This patch ensures
that for successfully completed transactions we update the mtime.

I don't do this on all tdb writes as its too expensive, but doing it
just on transactions is bearable, as those cost quite a lot anyway.
(This used to be commit b2934732dd62f705f59c124f19460c5436a9a422)
2007-10-10 13:39:40 -05:00
Jelmer Vernooij
5058f4b9e8 r10586: Add MergedObject() builder. Default to Library() rather
then StaticLibrary()
(This used to be commit b53313dc517986c69a4e4cb8fe3885b696f8faa1)
2007-10-10 13:39:08 -05:00
Andrew Tridgell
f895df9772 r10524: SAFE_FREE() in tdb does not need the discard_const_p()
the discard_const_p() was causing problems on openbsd where intptr_t is not defined
(This used to be commit f02a92787b179a4070227d87e37b7ac092d9e6eb)
2007-10-10 13:39:01 -05:00
Andrew Tridgell
251aaafe3a r10522: finally got the locking working on solaris10. This adds a read lock on
the transaction lock in tdb_traverse_read(). This prevents a pattern
of locks which triggers the deadlock detection code in solaris10. I
suspect solaris10 is trying to prevent lock starvation by granting
locks in the order they were requested, which makes it much easier to
produce deadlocks.
(This used to be commit 54203aacd138c30826d54c5d9b6cc8d6e9e270f8)
2007-10-10 13:39:00 -05:00
Andrew Tridgell
3545e513f5 r10496: - added configure test for sys/time.h
- print length of failed locks
(This used to be commit 11739ad31d7b3e1cf94ebf395608647e341257c4)
2007-10-10 13:38:56 -05:00
Andrew Tridgell
f2e9db908a r10495: older redhat boxes need sys/time.h for select()
(This used to be commit a11762e7bc139b0280e457e682722d955b81d8e5)
2007-10-10 13:38:56 -05:00
Andrew Tridgell
10de5cc72d r10494: - don't generate a tdb log message for any type of failed lock probe
- if the lock upgrade loop ever fails then log a warning
(This used to be commit 1b03c4e6c7e89452a835ef5ff39c07f58b715a22)
2007-10-10 13:38:55 -05:00
Andrew Tridgell
66ad3ab652 r10493: we need sys/select.h to enable select() in the solaris workaround
(This used to be commit 144cc3da5eadf0dcb28ef722feeed813c033e08a)
2007-10-10 13:38:55 -05:00
Andrew Tridgell
be27946d84 r10492: work around a bug in solaris which cases lock upgrades to fail with
EDEADLK even when progress can be made. This is not a good solution,
but I can't find anything better.
(This used to be commit 980dd17f7d0a622cd772afc9ba15e50007ad9c6e)
2007-10-10 13:38:55 -05:00
Andrew Tridgell
ea801d6520 r10484: try to fix the pread/pwrite declaration problems
(This used to be commit 196995ea38414ce5a57031c4cdf61b3ed548196a)
2007-10-10 13:38:53 -05:00
Andrew Tridgell
6e99b959de r10483: fixed some uninitialised variables warnings
(This used to be commit 315653cf1ecc11c435ee35b20e6cf9c73a67fa68)
2007-10-10 13:38:53 -05:00
Andrew Tridgell
2a9b65cd17 r10475: make sure we report failures in tdbtorture (ie. get the exit status right)
(This used to be commit a795fc0aa141c08af6e37af07c88164bad3db35b)
2007-10-10 13:38:51 -05:00
Andrew Tridgell
60a455dd44 r10471: stratos doesn't have getpagesize(), so guess 8k on systems that don't
have it. Overestimating is harmless.
(This used to be commit ab953c8c72060c496876b6f39d388ad2f7e3c7e0)
2007-10-10 13:38:51 -05:00
Andrew Tridgell
c72afc39f0 r10470: solaris8 has a problem with tdbtorture with 3 processes. To see if
this is just a solaris issue this patch changes the default to 3, and
I'll see how many build farm boxes break
(This used to be commit c85836bafc9c042deac2a02ef6fddbfeaa5f47f1)
2007-10-10 13:38:51 -05:00
Andrew Tridgell
ddf733fc58 r10469: use the older style of structure initialisation for tdb to make it
more portable. tdb is used in more than just Samba4, and I think the
portability/readability balance is a bit different
(This used to be commit fc692dc61f06d61cb9126d2a8ccc240cecd11da6)
2007-10-10 13:38:50 -05:00
Andrew Tridgell
3bcfc68e0d r10468: - terminate tdbtorture quickly when an error is detected
- more workarounds for aix not handling malloc of size 0
(This used to be commit c2b1739c6389503854f55fa8407c55071781eff4)
2007-10-10 13:38:50 -05:00
Andrew Tridgell
6e4ebbed89 r10467: aix doesn't like zero length malloc :(
(This used to be commit 0177c6ca3e9baa223b5f7b29adc12d862dcb19d8)
2007-10-10 13:38:50 -05:00