1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
Commit Graph

33 Commits

Author SHA1 Message Date
Stefan Metzmacher
22c46d9f41 configure/Makefile: export PYTHONHASHSEED=1 in all 'configure/Makefile' scripts
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2022-03-29 22:32:32 +00:00
Andreas Schneider
2d5d88ff34 buildtools: Reformat shell scripts
shfmt -f buildtools | xargs shfmt -w -p -i 0 -fn

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2022-02-22 15:23:35 +00:00
Andreas Schneider
2b9917d7a3 builtools: Make abi_gen.sh less prone to errors
The mold linker has more hidden symbols and we would need to filter them out
with nm, where objdump tells us which symbols are actually hidden. So we just
need to filter out whatever is hidden.

The use of awk makes it also easier to get what we want.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
2022-02-15 11:35:31 +00:00
Douglas Bagnall
63f4fb615d abi_gen.sh: ignore gdb customisations when comparing signatures
If a .gdbinit file says "set print pretty on", the signatures are printed over
several lines, and the abi_check fails. So let's ignore .gdbinit files.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Sat Feb  2 20:19:05 CET 2019 on sn-devel-144
2019-02-02 20:19:05 +01:00
Alexander Bokovoy
c63dcc97b6 gen_abi.sh: filter out symbols not needed for ABI
gdb does not allow to print definitions of certain section names
and special symbols used for dynamic loading machinery:

__bss_start
_edata
_init
_fini
_end

Please note the space before the pattern, it is needed to avoid
hungry matches of valid symbols with these as substrings (foo_init,
for example).

Without this patch gdb on Fedora 18 breaks when attempting to print
function and struct signature.
2012-09-07 12:31:42 +02:00
Andrew Tridgell
ae1414e796 waf: fixed 'make bin/XXX' for the remaining binaries
this fixes 'make bin/smbd' to work correctly with the waf build. It
didn't work before as smbd is actually 'smbd/smbd' internally and we
tried to use the target name 'smbd'. The new approach reads the
symlink to get the right target.

This also speeds up the null build by quite a lot
2011-06-10 17:21:26 +10:00
Günther Deschner
587cfd1832 waf: bring back shared Makefile and configure (needed by s3-waf).
Guenther

Revert "build: removed unused build scripts"

This reverts commit 2e520ca911.
2011-02-08 20:44:55 +01:00
Andrew Tridgell
2e520ca911 build: removed unused build scripts
each library has its own configure/Makefile now

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 15:03:40 +11:00
Andrew Tridgell
d7c2eb1be3 abi: force TERM=none in abi generation
on Fedora12 gdb puts out a bit of binary garbage at the front of
script output when TERM=xterm, presumably trying something like a
clear screen.

luckily it doesn't do it for unknown terminal types

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Jan 11 06:48:56 CET 2011 on sn-devel-104
2011-01-11 06:48:56 +01:00
Andrew Tridgell
0acc93cc2c waf: added a help target for the other waf builds
this lets the s3 waf build use "make help"

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Dec  1 01:47:50 CET 2010 on sn-devel-104
2010-12-01 01:47:50 +01:00
Andrew Tridgell
fcdbd06136 waf: fixed the build with a space in the source directory 2010-11-21 23:10:14 +11:00
Andrew Tridgell
7dcecbd077 waf: allow for commands like "make bin/smbtorture"
I finally worked out the GNU make syntax for this
2010-10-06 12:18:04 +00:00
Andrew Tridgell
2d77c766fa waf-abi: fixed small uninitialised data on PPC64
on PPC64 Linux systems a 'S' line from nm means "small object
uninitialised data"
2010-09-07 13:45:46 +10:00
Stefan Metzmacher
85f73840b0 s4:buildtools: add 'make show_waf_options'
metze
2010-07-10 09:35:01 +02:00
Stefan Metzmacher
c48ff4c6a9 s4:buildtools: make it possible to use advanced test options via the make waf wrapper
You can to do thinks like this now:
make test TEST_OPTIONS="--valgrind-server" TESTS=wbinfo

metze
2010-07-10 09:35:00 +02:00
Andrew Bartlett
23cafd5569 buildtools: Add 'make testenv' to Samba4 make targets
I'm still too addicted to this as my standard debugging environment, and while I can learn the new command, this helps the muscle-memory.

Andrew Bartlett
2010-05-09 21:18:52 +10:00
Andrew Tridgell
c61f4dcc0f build: added a reconfigure target
this is meant to be used by the s3 build, to allow jelmers work on
smbtorture4 in s3 to avoid re-running configure unless its needed
2010-05-06 14:56:43 +02:00
Andrew Tridgell
f8120ab697 build: added a distcheck target 2010-05-05 16:14:13 +02:00
Andrew Tridgell
fa172c494f build: exit with an error if waf configure fails
We don't want configure in the build farm to show green when it fails
2010-05-05 16:14:13 +02:00
Andrew Tridgell
0a47bf5f15 build: automatically run autogen-waf.sh when needed 2010-04-26 14:36:55 +10:00
Andrew Tridgell
a36c7b8b74 build: use 'waf distclean' for make distclean
this cleans up the more than rm -rf bin
2010-04-23 08:25:01 +10:00
Andrew Tridgell
6669152a4a build: we don't need this makefile magic any more
The waf build now checks for all A=B variables passed via make
and sets the same waf internal variable. This means all waf options
are available via make.

Removing this from the Makefile makes us less reliant on a modern
version of make.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-04-22 19:36:15 +10:00
Andrew Tridgell
cdaac0afc1 build: include uninitialised data in the ABI symbols
This is needed for symbols like tdb_null in tdb, which are part
of the public ABI

Pair-Programmed-With: Rusty Russell <rusty@samba.org>
2010-04-20 15:50:26 +10:00
Andrew Tridgell
3f1ebe805b build: don't depend on the word size of nm output
the first column varies in length for different architectures
2010-04-18 17:32:26 +10:00
Andrew Tridgell
877439e264 build: added a script for generating ABI signatures from shared libraries 2010-04-18 15:00:37 +10:00
Andrew Tridgell
e81e057b6d build: try to honor MAKEFLAGS from make
This means "make -j" and "make -k" now do roughly what is expected

make -j will use the number of CPUs on the system, regardless of the
number after the -j (as MAKEFLAGS doesn't contain that value).

make -k will will continue on errors
2010-04-14 23:37:47 +10:00
Andrew Tridgell
8a2169d674 build: cope with spaces in options passed to ./configure 2010-04-13 13:45:01 +10:00
Andrew Tridgell
98942c8d84 build: use a common autogen-waf.sh for all builds
the symlink will get updated with the right target when waf dist is
used in each directory
2010-04-12 11:17:35 +10:00
Stefan Metzmacher
5beaef7cde s4:autogen-waf: generate 'Makefile' instead of 'makefile'
This hopefully fixes the build on MacOS 10.

metze
2010-04-10 11:15:17 +02:00
Matthias Dieter Wallnöfer
f3f82496ac s4:WAF buildsystem - support out of "source4" directory builds
Bug: https://bugzilla.samba.org/show_bug.cgi?id=4081

With this patch we are able to invoke s4 builds from the outside of the
"source4" directory (but the target remains the "source4/bin" path).

One constraint: all commands: "autogen-waf.sh", "configure", "make" have to be
run from the same directory!
Regarding "make": you have to run it using "make -C <source4 path> [targets]" if
the invoke directory is not "source4" itself.
2010-04-08 14:14:24 +02:00
Jelmer Vernooij
a1e47e3dd2 s4-waf: Add dist target. 2010-04-08 12:21:35 +02:00
Jelmer Vernooij
027adf88ea Support 'make test TESTS=foo' again. 2010-04-07 00:32:24 +02:00
Andrew Tridgell
1e35da6145 s4-waf: new autogen-waf.sh
this one will work with the tdb, talloc, etc directories
2010-04-06 20:27:25 +10:00