]> git.ipfire.org Git - thirdparty/dbus.git/log
thirdparty/dbus.git
6 years agoMerge branch 'msys2-fixes' into 'master'
Simon McVittie [Fri, 15 Mar 2019 17:03:35 +0000 (17:03 +0000)] 
Merge branch 'msys2-fixes' into 'master'

cmake: Drop unused iconv dependency

Closes #262

See merge request dbus/dbus!101

6 years agoMerge branch 'cal-fix-cmake-pkgconfig' into 'master'
Ralf Habacker [Thu, 14 Mar 2019 10:57:48 +0000 (10:57 +0000)] 
Merge branch 'cal-fix-cmake-pkgconfig' into 'master'

cmake: Avoid overwriting PKG_CONFIG_PATH env var

See merge request dbus/dbus!96

Reviewed-by: @rhabacker
6 years agocmake: Avoid overwriting PKG_CONFIG_PATH env var
Clemens Lang [Fri, 8 Feb 2019 14:48:15 +0000 (15:48 +0100)] 
cmake: Avoid overwriting PKG_CONFIG_PATH env var

The CMake config file installed by DBus will run in the context of other
projects. Consequently, changing the value of the PKG_CONFIG_DIR,
PKG_CONFIG_PATH or PKG_CONFIG_LIBDIR environment variables will affect
any further calls to pkg-config made by such projects, which can cause
problems.

A common case of this happening are pkg-config files installed in
usr/share/pkgconfig for .pc files that are architecture-independent, as
for example systemd does.

Avoid clobbering the environment variables by saving and restoring their
values. Note that for some of the variables, setting them to an empty
string is different from not setting them at all.

Signed-off-by: Clemens Lang <clemens.lang@bmw-carit.de>
6 years agoMerge branch 'patch-1' into 'master'
Ralf Habacker [Wed, 13 Mar 2019 18:47:19 +0000 (18:47 +0000)] 
Merge branch 'patch-1' into 'master'

Update dbus-specification.xml to remove redundancies in the interface name requirements.

See merge request dbus/dbus!102

Reviewed-by: @rhabacker
6 years agoUpdate dbus-specification.xml to remove redundancies in the interface name requirements.
Felipe Gasper [Wed, 13 Mar 2019 17:26:03 +0000 (17:26 +0000)] 
Update dbus-specification.xml to remove redundancies in the interface name requirements.

6 years agoMerge branch 'fix-cmake-doc-deps' into 'master'
Ralf Habacker [Wed, 13 Mar 2019 10:04:03 +0000 (10:04 +0000)] 
Merge branch 'fix-cmake-doc-deps' into 'master'

Fixes rebuilding of dbus documentation at every make call

See merge request dbus/dbus!94

6 years agoTry to fix doxygen error on CI reporting "Output directory ... does not exist and...
Ralf Habacker [Fri, 25 Jan 2019 21:11:46 +0000 (22:11 +0100)] 
Try to fix doxygen error on CI reporting "Output directory ... does not exist and cannot be created"

6 years agoCreate top level dir for generating doxygon files
Ralf Habacker [Fri, 25 Jan 2019 20:40:49 +0000 (21:40 +0100)] 
Create top level dir for generating doxygon files

6 years agoFix dependency chain for doc files generated from docbook source
Ralf Habacker [Fri, 25 Jan 2019 18:12:32 +0000 (19:12 +0100)] 
Fix dependency chain for doc files generated from docbook source

6 years agoUpdate doxygen doc only if an associated source or Doxyfile has been changed
Ralf Habacker [Fri, 25 Jan 2019 18:05:47 +0000 (19:05 +0100)] 
Update doxygen doc only if an associated source or Doxyfile has been changed

Use doxygen.stamp as output for generating doxygen doc similar to
autotools.

6 years agoTarget devhelp2 does not require dependencies that have already been specified in...
Ralf Habacker [Fri, 25 Jan 2019 17:57:43 +0000 (18:57 +0100)] 
Target devhelp2 does not require dependencies that have already been specified in dbus.devhelp2

6 years agoCleanup dbus.devhelp2 make target pathes
Ralf Habacker [Fri, 25 Jan 2019 17:57:16 +0000 (18:57 +0100)] 
Cleanup dbus.devhelp2 make target pathes

Use absolute paths to avoid confusion about where
the associated file is located.

6 years agoAdd target devhelp2 only when xsltproc has been found
Ralf Habacker [Fri, 25 Jan 2019 17:42:16 +0000 (18:42 +0100)] 
Add target devhelp2 only when xsltproc has been found

It doesn't make sense to add a make target if it can't be created.

6 years agoMake the output directory used by doxygen absolute to avoid dependency on a particula...
Ralf Habacker [Wed, 23 Jan 2019 23:07:07 +0000 (00:07 +0100)] 
Make the output directory used by doxygen absolute to avoid dependency on a particular working directory

6 years agoMerge branch 'cmake-install-fixes' into 'master'
Ralf Habacker [Wed, 13 Mar 2019 09:48:04 +0000 (09:48 +0000)] 
Merge branch 'cmake-install-fixes' into 'master'

CMake install fixes

See merge request dbus/dbus!98

6 years agoDo not let doxygen build man pages on Windows
Ralf Habacker [Wed, 13 Mar 2019 09:13:09 +0000 (10:13 +0100)] 
Do not let doxygen build man pages on Windows

This fixes an issue on gitlab CI not been able to create man page
output dir. Also man pages does not make sense on Windows.

6 years agocmake: generate and install doc for dbus-run-session
Ralf Habacker [Thu, 7 Mar 2019 13:44:10 +0000 (14:44 +0100)] 
cmake: generate and install doc for dbus-run-session

6 years agocmake: install missing files to keep in sync with autotools builds
Ralf Habacker [Thu, 7 Mar 2019 13:25:47 +0000 (14:25 +0100)] 
cmake: install missing files to keep in sync with autotools builds

6 years agocmake: fix dtd installation dir
Ralf Habacker [Thu, 7 Mar 2019 12:57:33 +0000 (13:57 +0100)] 
cmake: fix dtd installation dir

6 years agocmake: Enable pkg-config generating also on Windows
Ralf Habacker [Thu, 7 Mar 2019 12:41:53 +0000 (13:41 +0100)] 
cmake: Enable pkg-config generating also on Windows

pkgconfig support is used by client packages on cross compiled
obs builds.

6 years agoMerge branch 'FGasper/dbus-2ormore'
Ralf Habacker [Wed, 13 Mar 2019 07:54:31 +0000 (08:54 +0100)] 
Merge branch 'FGasper/dbus-2ormore'

6 years agoUpdate dbus-specification.xml to avoid implying that an interface name may consist...
Felipe Gasper [Thu, 14 Feb 2019 15:06:04 +0000 (15:06 +0000)] 
Update dbus-specification.xml to avoid implying that an interface name may consist of only 1 element.

6 years agoMerge branch 'readme-cmake-add-cross-compile-hints' into 'master'
Ralf Habacker [Wed, 13 Mar 2019 07:45:01 +0000 (07:45 +0000)] 
Merge branch 'readme-cmake-add-cross-compile-hints' into 'master'

README.cmake: Add cross compile hints

See merge request dbus/dbus!100

6 years agocmake: Drop unused iconv dependency
Ralf Habacker [Wed, 13 Mar 2019 07:06:14 +0000 (08:06 +0100)] 
cmake: Drop unused iconv dependency

Closes dbus#262

6 years agoREADME.cmake: Fix doc for building on linux
Ralf Habacker [Tue, 12 Mar 2019 11:26:04 +0000 (12:26 +0100)] 
README.cmake: Fix doc for building on linux

Remove -G flag and let user use the default generator.

6 years agoREADME.cmake: Add cross building for Windows
Ralf Habacker [Tue, 12 Mar 2019 11:23:49 +0000 (12:23 +0100)] 
README.cmake: Add cross building for Windows

6 years agoMerge branch 'nss-fds' into 'master'
Simon McVittie [Mon, 28 Jan 2019 11:18:16 +0000 (11:18 +0000)] 
Merge branch 'nss-fds' into 'master'

_dbus_test_main: Exercise NSS modules before running tests

Closes #256

See merge request dbus/dbus!93

Reviewed-by: pwithnall
Tested-by: rhabacker
6 years agoMerge branch 'unused-userdb' into 'master'
Simon McVittie [Fri, 25 Jan 2019 11:52:48 +0000 (11:52 +0000)] 
Merge branch 'unused-userdb' into 'master'

Remove unused bits of userdb

See merge request dbus/dbus!92

Reviewed-by: pwithnall
6 years ago_dbus_test_main: Exercise NSS modules before running tests
Simon McVittie [Fri, 25 Jan 2019 11:49:56 +0000 (11:49 +0000)] 
_dbus_test_main: Exercise NSS modules before running tests

Some NSS modules like those for sssd and LDAP might allocate fds
on a one-per-process basis, for example a socket to talk to sssd.
Make sure those have already been allocated before we enter the code
under test, so that they don't show up as having been "leaked" by the
first module of code under test that happens to do a NSS lookup.

The call to _dbus_test_check_memleaks tears down libdbus' own memory
allocations, but not any hidden state in libc or NSS.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agoMerge branch 'finish-reformat-cmake-files' into 'master'
Simon McVittie [Thu, 24 Jan 2019 16:22:22 +0000 (16:22 +0000)] 
Merge branch 'finish-reformat-cmake-files' into 'master'

Finish formatting cmake files

See merge request dbus/dbus!91

6 years agoFixes remaining indentations that are not covered by the cmake formatting script...
Ralf Habacker [Thu, 24 Jan 2019 07:59:53 +0000 (08:59 +0100)] 
Fixes remaining indentations that are not covered by the cmake formatting script in CMakeLists.txt files

6 years agoAdjust indents of CMakeLists.txt files always to 4 spaces
Ralf Habacker [Thu, 24 Jan 2019 07:57:55 +0000 (08:57 +0100)] 
Adjust indents of CMakeLists.txt files always to 4 spaces

6 years agotools/cmake-format: Add option --check-indents to check indentations independently...
Ralf Habacker [Thu, 24 Jan 2019 07:56:19 +0000 (08:56 +0100)] 
tools/cmake-format: Add option --check-indents to check indentations independently from other options

Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
6 years agoRemove obsolete parameter in end... cmake keywords
Ralf Habacker [Thu, 24 Jan 2019 07:12:19 +0000 (08:12 +0100)] 
Remove obsolete parameter in end... cmake keywords

6 years agoRemove spaces between cmake command and opening bracket
Ralf Habacker [Thu, 24 Jan 2019 07:11:00 +0000 (08:11 +0100)] 
Remove spaces between cmake command and opening bracket

6 years agoUse lower case cmake keywords in CMakeLists.txt files
Ralf Habacker [Thu, 24 Jan 2019 07:09:52 +0000 (08:09 +0100)] 
Use lower case cmake keywords in CMakeLists.txt files

6 years agoReplace tabs by 4 spaces in CMakeLists.txt files
Ralf Habacker [Thu, 24 Jan 2019 07:08:41 +0000 (08:08 +0100)] 
Replace tabs by 4 spaces in CMakeLists.txt files

6 years agoRemove trailing spaces in CMakeLists.txt files
Ralf Habacker [Thu, 24 Jan 2019 07:07:24 +0000 (08:07 +0100)] 
Remove trailing spaces in CMakeLists.txt files

6 years agotools/cmake-format: Do not exclude CMakeLists.txt files
Ralf Habacker [Thu, 24 Jan 2019 07:07:18 +0000 (08:07 +0100)] 
tools/cmake-format: Do not exclude CMakeLists.txt files

This fixes a regression of merge request !82 introduced
with the rebase to !84.

6 years agoMerge branch 'reformat-cmake-files' into 'master'
Simon McVittie [Wed, 23 Jan 2019 20:52:37 +0000 (20:52 +0000)] 
Merge branch 'reformat-cmake-files' into 'master'

Reformat cmake files

Closes #252

See merge request dbus/dbus!82

6 years agoMerge branch 'code-coverage' into 'master'
Simon McVittie [Wed, 23 Jan 2019 20:45:32 +0000 (20:45 +0000)] 
Merge branch 'code-coverage' into 'master'

Adapt to API change in AX_CODE_COVERAGE version 28

Closes #249

See merge request dbus/dbus!88

Reviewed-by: @pwithnall
6 years agoAdjust indents of cmake build system files always to 4 spaces
Ralf Habacker [Mon, 21 Jan 2019 18:39:04 +0000 (19:39 +0100)] 
Adjust indents of cmake build system files always to 4 spaces

6 years agoRemove obsolete parameter in end... cmake keywords
Ralf Habacker [Wed, 23 Jan 2019 20:26:22 +0000 (21:26 +0100)] 
Remove obsolete parameter in end... cmake keywords

6 years agoRemove spaces between cmake command and opening bracket
Ralf Habacker [Mon, 21 Jan 2019 18:37:46 +0000 (19:37 +0100)] 
Remove spaces between cmake command and opening bracket

6 years agoUse lower case cmake keywords
Ralf Habacker [Mon, 21 Jan 2019 18:33:43 +0000 (19:33 +0100)] 
Use lower case cmake keywords

6 years agoReplace tabs by 4 spaces in cmake build system files
Ralf Habacker [Mon, 21 Jan 2019 18:32:57 +0000 (19:32 +0100)] 
Replace tabs by 4 spaces in cmake build system files

6 years agoRemove trailing spaces in cmake related files
Ralf Habacker [Mon, 21 Jan 2019 18:32:00 +0000 (19:32 +0100)] 
Remove trailing spaces in cmake related files

6 years agoAdd script for formatting cmake files
Ralf Habacker [Thu, 10 Jan 2019 09:11:46 +0000 (10:11 +0100)] 
Add script for formatting cmake files

The prefered call order is

  tools/cmake-format --trailing-spaces
  # create git commit
  tools/cmake-format --tabs
  # create git commit
  tools/cmake-format --keyword-case
  # create git commit
  tools/cmake-format --keyword-spaces
  # create git commit
  tools/cmake-format --end-args
  # create git commit
  tools/cmake-format --indents
  # create git commit

Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
6 years agoMerge branch 'move-cmake-toplevel' into 'master'
Ralf Habacker [Wed, 23 Jan 2019 19:50:57 +0000 (19:50 +0000)] 
Merge branch 'move-cmake-toplevel' into 'master'

Move cmake related build system to top level

See merge request dbus/dbus!84

Reviewed-by: @smcv
6 years ago_dbus_user_database_get_groupname: Inline into its only caller
Simon McVittie [Wed, 23 Jan 2019 12:09:27 +0000 (12:09 +0000)] 
_dbus_user_database_get_groupname: Inline into its only caller

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years ago_dbus_user_database_get_gid: Remove unused function
Simon McVittie [Wed, 23 Jan 2019 12:09:04 +0000 (12:09 +0000)] 
_dbus_user_database_get_gid: Remove unused function

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years ago_dbus_parse_uid: Remove unused function
Simon McVittie [Wed, 23 Jan 2019 12:05:54 +0000 (12:05 +0000)] 
_dbus_parse_uid: Remove unused function

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agodbus-userdb: Remove unused _dbus_homedir_from_username()
Simon McVittie [Wed, 23 Jan 2019 11:57:42 +0000 (11:57 +0000)] 
dbus-userdb: Remove unused _dbus_homedir_from_username()

Everything that wants a home directory uses either
_dbus_homedir_from_uid() or _dbus_homedir_from_current_process().

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agodbus-userdb: Remove unimplemented declaration of _dbus_credentials_from_uid()
Simon McVittie [Wed, 23 Jan 2019 11:56:51 +0000 (11:56 +0000)] 
dbus-userdb: Remove unimplemented declaration of _dbus_credentials_from_uid()

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agocmake: Set working directory to be a native path
Simon McVittie [Mon, 21 Jan 2019 20:25:09 +0000 (20:25 +0000)] 
cmake: Set working directory to be a native path

If we're cross-compiling for Windows on Unix, CTest needs to chdir() to
the native Unix path.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agoAdd cmake macros add_executable_version_info and add_library_version_info
Ralf Habacker [Tue, 15 Jan 2019 13:41:14 +0000 (14:41 +0100)] 
Add cmake macros add_executable_version_info and add_library_version_info

This helps to reduce duplicated code.

Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
6 years agoRemove duplicated cmake variable definition
Ralf Habacker [Tue, 15 Jan 2019 10:57:20 +0000 (11:57 +0100)] 
Remove duplicated cmake variable definition

Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
6 years agoInstall devhelp2 and api doc with cmake
Ralf Habacker [Tue, 15 Jan 2019 10:56:36 +0000 (11:56 +0100)] 
Install devhelp2 and api doc with cmake

Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
6 years agoGenerate documentation html index file from doc/index.html.in for autotools and cmake
Ralf Habacker [Tue, 15 Jan 2019 10:56:14 +0000 (11:56 +0100)] 
Generate documentation html index file from doc/index.html.in for autotools and cmake

Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
6 years agoMove cmake related build system to top level
Ralf Habacker [Thu, 10 Jan 2019 18:42:52 +0000 (19:42 +0100)] 
Move cmake related build system to top level

Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
6 years agoConsistently add CODE_COVERAGE_CPPFLAGS everywhere
Simon McVittie [Mon, 21 Jan 2019 18:46:07 +0000 (18:46 +0000)] 
Consistently add CODE_COVERAGE_CPPFLAGS everywhere

We forgot this in a couple of places.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agoConsistently add CODE_COVERAGE_LIBS everywhere
Simon McVittie [Mon, 21 Jan 2019 18:45:38 +0000 (18:45 +0000)] 
Consistently add CODE_COVERAGE_LIBS everywhere

We need to link the code coverage objects, directly or indirectly,
into every executable and every shared library. The rule I've followed
to make it clear that we do this, without too much repetition, is:
each executable, shared library or convenience library has
CODE_COVERAGE_LIBS in its LDADD or LIBADD, unless it is linked to a
convenience library in the same directory that has CODE_COVERAGE_LIBS
in *its* LIBADD.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agoAdapt to API change in AX_CODE_COVERAGE version 28
Simon McVittie [Mon, 21 Jan 2019 17:51:07 +0000 (17:51 +0000)] 
Adapt to API change in AX_CODE_COVERAGE version 28

AX_CODE_COVERAGE recently changed the way it embedded its Makefile rules
in the output file: instead of using @CODE_COVERAGE_RULES@, users
are now meant to include aminclude_static.am.

The new AX_CODE_COVERAGE is only in the latest autoconf-archive release,
version 2019.01.06, which is inconveniently new, so bundle everything
we need for the moment.

This requires us to stop using the deprecated CODE_COVERAGE_LDFLAGS
(which we still used to support older versions of autoconf-archive)
and replace them with CODE_COVERAGE_LIBS.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agoMerge branch 'cmake-dist' into 'master'
Simon McVittie [Mon, 21 Jan 2019 16:23:53 +0000 (16:23 +0000)] 
Merge branch 'cmake-dist' into 'master'

CI: Do the CMake native debug build from an Autotools `make dist`

Closes #255

See merge request dbus/dbus!87

6 years agoMerge branch 'ax-missing' into 'master'
Simon McVittie [Mon, 21 Jan 2019 16:22:14 +0000 (16:22 +0000)] 
Merge branch 'ax-missing' into 'master'

configure.ac: Forbid AX_-prefixed patterns more selectively

Closes #249

See merge request dbus/dbus!86

Reviewed-by: @pwithnall
6 years agoMerge branch 'test-bundling' into 'master'
Simon McVittie [Mon, 21 Jan 2019 15:48:12 +0000 (15:48 +0000)] 
Merge branch 'test-bundling' into 'master'

Move some test code from dbus/ and bus/ into test/

Closes #223

See merge request dbus/dbus!1

Reviewed-by: @rhabacker
[smcv: Use ${TEST_DIR} as requested during review]

6 years agotest: Move _dbus_list_test() here
Simon McVittie [Wed, 3 Oct 2018 17:31:15 +0000 (18:31 +0100)] 
test: Move _dbus_list_test() here

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agotest: Move _dbus_transport_unix_test() here
Simon McVittie [Fri, 28 Sep 2018 16:06:00 +0000 (17:06 +0100)] 
test: Move _dbus_transport_unix_test() here

This requires exposing _dbus_connection_get_address() as an internal
symbol, but that seems worth it.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agotest: Move _dbus_server_test() here
Simon McVittie [Fri, 28 Sep 2018 16:05:26 +0000 (17:05 +0100)] 
test: Move _dbus_server_test() here

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agotest: Move _dbus_misc_test() here
Simon McVittie [Fri, 28 Sep 2018 16:02:38 +0000 (17:02 +0100)] 
test: Move _dbus_misc_test() here

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agotest: Move _dbus_signature_test() here
Simon McVittie [Fri, 28 Sep 2018 16:00:01 +0000 (17:00 +0100)] 
test: Move _dbus_signature_test() here

This is all public API, so there's no need to embed it in the library.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agodbus-signature: Move static assertion outside test code
Simon McVittie [Fri, 28 Sep 2018 15:57:13 +0000 (16:57 +0100)] 
dbus-signature: Move static assertion outside test code

This always needs to be true, even if we're not embedding test goo
in the library. These static assertions have no runtime overhead, only
compile-time, so it's OK to make it unconditional.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agotest: Move sysdeps tests here
Simon McVittie [Fri, 28 Sep 2018 15:46:41 +0000 (16:46 +0100)] 
test: Move sysdeps tests here

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agotest: Move string tests (most of dbus-string-util.c) here
Simon McVittie [Fri, 28 Sep 2018 15:45:50 +0000 (16:45 +0100)] 
test: Move string tests (most of dbus-string-util.c) here

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agotest: Move marshalling tests into test/
Simon McVittie [Fri, 28 Sep 2018 15:36:49 +0000 (16:36 +0100)] 
test: Move marshalling tests into test/

dbus-marshal-recursive-util.c contains utility functions used by the
other two, as well as tests. The others are purely test code.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agodbus-marshal-*-util: Remove all trailing whitespace
Simon McVittie [Mon, 17 Dec 2018 11:34:41 +0000 (11:34 +0000)] 
dbus-marshal-*-util: Remove all trailing whitespace

This is in preparation for moving the files: our commit hook would
object to the delete + add otherwise.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agotest: Move dbus-message-factory and most of dbus-message-util into test/
Simon McVittie [Fri, 28 Sep 2018 15:32:03 +0000 (16:32 +0100)] 
test: Move dbus-message-factory and most of dbus-message-util into test/

As with previous moves, I've tried to extract the possible copyright
holders from the git history.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agodbus-message-factory: Remove all trailing whitespace
Simon McVittie [Mon, 17 Dec 2018 11:31:17 +0000 (11:31 +0000)] 
dbus-message-factory: Remove all trailing whitespace

This is in preparation for moving the files: our commit hook would
object to the delete + add otherwise.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agotest: Move auth, credentials tests from libdbus-internal into test/
Simon McVittie [Fri, 28 Sep 2018 15:27:42 +0000 (16:27 +0100)] 
test: Move auth, credentials tests from libdbus-internal into test/

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agodbus-credentials-util: Remove all trailing whitespace
Simon McVittie [Mon, 17 Dec 2018 11:30:23 +0000 (11:30 +0000)] 
dbus-credentials-util: Remove all trailing whitespace

This is in preparation for moving the file: our commit hook would
object to the delete + add otherwise.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agodbus-auth-util: Remove all trailing whitespace
Simon McVittie [Mon, 17 Dec 2018 11:30:00 +0000 (11:30 +0000)] 
dbus-auth-util: Remove all trailing whitespace

This is in preparation for moving the file: our commit hook would
object to the delete + add otherwise.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agodbus-auth-script: Remove all trailing whitespace
Simon McVittie [Mon, 17 Dec 2018 11:29:29 +0000 (11:29 +0000)] 
dbus-auth-script: Remove all trailing whitespace

This is in preparation for moving the file: our commit hook would
object to the delete + add otherwise.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agotest: Unembed hash test from libdbus and move it into test/
Simon McVittie [Mon, 17 Dec 2018 11:18:35 +0000 (11:18 +0000)] 
test: Unembed hash test from libdbus and move it into test/

This required exposing one additional internal symbol:
_dbus_hash_table_ref(). I think that's a reasonable trade-off for not
compiling this test into the library.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agodbus-hash: Attempt to update copyright holders from git history
Simon McVittie [Mon, 17 Dec 2018 11:17:59 +0000 (11:17 +0000)] 
dbus-hash: Attempt to update copyright holders from git history

This is in preparation for splitting the file, tests vs. non-tests.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agotest: Split slow parts of the former test-dbus into their own executables
Simon McVittie [Thu, 15 Nov 2018 15:48:26 +0000 (15:48 +0000)] 
test: Split slow parts of the former test-dbus into their own executables

This makes it easier for a developer to run just the fast parts while
debugging some issue reproduced by the faster tests.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years ago_dbus_test_main: Move to test-utils
Simon McVittie [Thu, 15 Nov 2018 14:08:03 +0000 (14:08 +0000)] 
_dbus_test_main: Move to test-utils

Now that there is no code outside test/ that calls into this, we can
move it into test/, reducing the size of libdbus.

dbus-test-tap.[ch] still need to stay in dbus/ as long as there is
code in dbus/ or bus/ relying on them, and also need to be linked into
libdbus as long as there is other code in libdbus relying on them,
so they stay where they are for now. Similarly, dbus-tests.h lists
the tests that are still embedded in libdbus, and must stay where
it is for the moment.

With this move, various tests now need to be linked to the dbus-testutils
convenience library.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agotest: Move dbus-daemon-launch-helper-test here, and rename
Simon McVittie [Wed, 3 Oct 2018 18:01:42 +0000 (19:01 +0100)] 
test: Move dbus-daemon-launch-helper-test here, and rename

The -test suffix does not indicate that this is a test, but rather that
it is for tests (similar to the -unix and -win suffixes on modules like
dbus-sysdeps). This seems unnecessarily confusing, so rename it to end
with -for-tests.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agotest: Move libdbus embedded tests from dbus/ to test/
Simon McVittie [Wed, 3 Oct 2018 18:15:38 +0000 (19:15 +0100)] 
test: Move libdbus embedded tests from dbus/ to test/

This groups them with the rest of the tests, and enables parts of
the test code to be unembedded from libdbus and moved to test/ too.

Rename the executable to test-misc-internals, not test-dbus. The name
test-dbus made some sense as "the executable that contains the code in
dbus/", but makes a lot less sense in test/: dbus is the name of the
entire project, so this test has no particular special claim to that
name. test-libdbus doesn't seem right either, because all the tests
exercise libdbus one way or another.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agotest: Break out the slow parts of test-bus into their own executables
Simon McVittie [Mon, 3 Sep 2018 23:57:10 +0000 (16:57 -0700)] 
test: Break out the slow parts of test-bus into their own executables

This makes it more convenient to re-run the rest of test-bus as
required when debugging.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agotest: Move dbus-daemon and d-d-launch-helper tests from bus/
Simon McVittie [Wed, 3 Oct 2018 17:49:56 +0000 (18:49 +0100)] 
test: Move dbus-daemon and d-d-launch-helper tests from bus/

This groups them with the other tests, and avoids having them influence
the test coverage stats in bus/.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agobus tests: Collect possible copyright holders from git history
Simon McVittie [Mon, 17 Dec 2018 11:11:34 +0000 (11:11 +0000)] 
bus tests: Collect possible copyright holders from git history

This is in preparation to move some of this code into the test/
directory. I've ignored changes that appear to be trivial.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agoConvert spawn test into a standalone test executable
Simon McVittie [Fri, 28 Sep 2018 14:53:40 +0000 (15:53 +0100)] 
Convert spawn test into a standalone test executable

This test is sufficiently well-separated that there's no real need
to embed it in libdbus. Move it into the test directory instead.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agobuild: Compile most bus/ files into static libraries
Simon McVittie [Mon, 3 Sep 2018 22:27:29 +0000 (15:27 -0700)] 
build: Compile most bus/ files into static libraries

This means we can share them between tests without having to compile
the same file repeatedly, and makes them easier to share between
directories when we move test executables into test/.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agotest-utils: Add copyright and licensing
Simon McVittie [Mon, 3 Sep 2018 21:37:55 +0000 (14:37 -0700)] 
test-utils: Add copyright and licensing

As far as I can tell, the only significant contributions have been
from Red Hat and Collabora, both of which have given permission to
relicense their parts of the dbus codebase to MIT/X11; so let's go
with that.

I'm assuming here that tree-wide changes from
_DBUS_GNUC_WARN_UNUSED_RESULT to _DBUS_WARN_UNUSED_RESULT, and tree-wide
changes to how we include config.h, are not significant for copyright
purposes.

Signed-off-by: Simon McVittie <smcv@collabora.com>
6 years agoCI: Do the CMake native debug build from an Autotools `make dist`
Simon McVittie [Mon, 21 Jan 2019 15:00:34 +0000 (15:00 +0000)] 
CI: Do the CMake native debug build from an Autotools `make dist`

We officially release dbus in the form of Autotools `make dist` tarballs,
but people who have downloaded those tarballs should be able to choose
the CMake build system. Our CI should assert that they can.

(The Autotools debug build already does a `make distcheck`, which
asserts that tarball releases can be used for an Autotools build.)

Signed-off-by: Simon McVittie <smcv@collabora.com>
Resolves: dbus#255

6 years agoconfigure.ac: Forbid AX_-prefixed patterns more selectively
Simon McVittie [Mon, 21 Jan 2019 14:28:24 +0000 (14:28 +0000)] 
configure.ac: Forbid AX_-prefixed patterns more selectively

We want to make autoconf fail early and with a user-comprehensible
message if autoconf-archive isn't installed, rather than generating
a configure script with syntax errors, or a configure script that runs
successfully but doesn't do what we intended.

However, autoconf-archive doesn't actually guarantee not to use
AX_-prefixed shell variable names without m4_pattern_allow'ing them
(unlike Autoconf, Automake, Libtool and pkg-config, which explicitly use
m4_pattern_allow for variables with AC_, AM_, LT_ and PKG_ prefixes), so
it isn't safe to assume that they won't be used. In particular, recent
versions of AX_CHECK_GNU_MAKE appear to be using
$AX_CHECK_GNU_MAKE_HEADLINE as a shell variable.

Instead, specifically forbid the names of the finite list of macros
that we actually use.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Resolves: dbus#249

6 years agoMerge branch 'fix-ctest-runtime-path-issue' into 'master'
Simon McVittie [Thu, 10 Jan 2019 21:45:55 +0000 (21:45 +0000)] 
Merge branch 'fix-ctest-runtime-path-issue' into 'master'

Make sure ctest on Windows uses the currently built dbus library

See merge request dbus/dbus!83

6 years agoMake sure ctest on Windows uses the currently built dbus library
Ralf Habacker [Thu, 10 Jan 2019 14:29:59 +0000 (15:29 +0100)] 
Make sure ctest on Windows uses the currently built dbus library

The ctest application is usually not installed in the dbus build
directory. If an older dbus library is contained in this path, it will
be used instead of the currently built one, which can lead to runtime
errors (e.g.: c0000139) if the internal dbus API differs.

6 years agoMerge branch 'rename-dbus-socket-set' into 'master'
Ralf Habacker [Wed, 9 Jan 2019 17:54:07 +0000 (17:54 +0000)] 
Merge branch 'rename-dbus-socket-set' into 'master'

Rename structure DBusSocketSet to DBusPollableSet and adjust the corresponding functions/files

See merge request dbus/dbus!81

Reviewed-by: Simon McVittie
6 years agoRename structure DBusSocketSet to DBusPollableSet and adjust the corresponding functi...
Ralf Habacker [Mon, 7 Jan 2019 12:07:12 +0000 (13:07 +0100)] 
Rename structure DBusSocketSet to DBusPollableSet and adjust the corresponding functions/files

Because the implementation of DBusSocketSet already supports non-socket
pollables like pipes and inotify fd on Unix, DBusPollableSet is a better
name.