summaryrefslogtreecommitdiff
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
* 1.12.11Simon McVittie2018-08-031-1/+1
|
* 1.12.10dbus-1.12.10Simon McVittie2018-08-021-2/+2
|
* build: Disable new gcc 8 warning -Wcast-function-typeSimon McVittie2018-08-021-1/+5
| | | | | | | | | The foreach(list, (DBusForeachFunction) free, NULL) idiom seems too entrenched to remove it from stable branches. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=107349 Signed-off-by: Simon McVittie <smcv@collabora.com> Reviewed-by: Thiago Macieira <thiago@kde.org>
* Start 1.12.10 developmentSimon McVittie2018-04-301-1/+1
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* 1.12.8dbus-1.12.8Simon McVittie2018-04-301-2/+2
|
* 1.12.6dbus-1.12.6Simon McVittie2018-03-011-2/+2
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Add a unit test for the dbus-daemon resetting its fd limitSimon McVittie2018-02-201-1/+2
| | | | | | | | Reviewed-by: David King <dking@redhat.com> [smcv: Fix typo in cmake macro name] Signed-off-by: Simon McVittie <smcv@collabora.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=105165 (cherry picked from commit 49ca421997d91d3e01626b2c92a826e6a5db0b2f)
* Start towards 1.12.6Simon McVittie2018-02-081-1/+1
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* 1.12.4dbus-1.12.4Simon McVittie2018-02-081-2/+2
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Add a simplified backport of g_steal_pointer()Simon McVittie2018-02-071-1/+1
| | | | | | | | | | | | | | | This will be used in tests later in the branch. Sadly we can't use GLIB_VERSION_2_44 unless we are willing to have a hard dependency on GLib 2.44, which would force us to do all our Travis-CI builds in Docker containers rather than in ye olde base system, and that adds 50% to the time taken to do builds. Reviewed-by: Philip Withnall <withnall@endlessm.com> [smcv: Rebase onto 1.13.x branch, fix minor conflicts] Signed-off-by: Simon McVittie <smcv@collabora.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=101354 (cherry picked from commit d5742550ca566317eaddea0ff7db04098f9f044f)
* cmake: Match AC_DEFINE more precisely, respecting [] quotingSimon McVittie2018-02-071-0/+3
| | | | | | | | | | | | | | | | The regular expression previously used here to select the second comma-delimited argument won't work when we introduce an argument containing a comma, which I need to do now. We can address this by recognising Autoconf's quoting mechanism (which uses square brackets). This is not 100% right (it doesn't understand nested square brackets), but it's good enough in practice. Signed-off-by: Simon McVittie <smcv@collabora.com> Acked-by: Philip Withnall <withnall@endlessm.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=101354 (cherry picked from commit 83b439f7b4c6a946e0fe9a0287910ba4f6318143)
* Resolve bindir variable in dbus-1.pc file correctlyBenedikt Heine2017-12-141-1/+1
| | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=104265 Reviewed-by: Simon McVittie <smcv@collabora.com> (cherry picked from commit d5c2e5539fcaf37b9150d2391bcf9d6737931464)
* Start 1.12.4Simon McVittie2017-11-131-1/+1
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* 1.12.2dbus-1.12.2Simon McVittie2017-11-131-2/+2
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Bump version for 1.12.x branchSimon McVittie2017-10-301-1/+1
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Prepare 1.12.0dbus-1.12.0Simon McVittie2017-10-301-3/+3
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Disable deprecation warnings for stable branchSimon McVittie2017-10-301-0/+3
| | | | | | | We're not going to replace deprecated functions here, similar to commit 88e0ccb2 in the dbus-1.10 branch. Signed-off-by: Simon McVittie <smcv@collabora.com>
* Start towards 1.11.24 (or maybe 1.12.0)Simon McVittie2017-10-231-1/+1
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Prepare 1.11.22dbus-1.11.22Simon McVittie2017-10-231-2/+2
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Windows: Check for $RC, not $WINDRESSimon McVittie2017-10-181-4/+2
| | | | | | | | | | | That's what is checked for by LT_LANG([Windows Resource]) further up, and is what we now use during the build. Its value is typically i686-w64-mingw32-windres. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=103015 Signed-off-by: Simon McVittie <smcv@collabora.com> Reviewed-by: Philip Withnall <withnall@endlessm.com> Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
* Post-release version bump (and add release name)Simon McVittie2017-10-031-1/+1
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Prepare 1.11.20dbus-1.11.20Simon McVittie2017-10-031-2/+2
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* unix: Condition Linux-specific abstract sockets on __linux__Simon McVittie2017-09-291-73/+0
| | | | | | | | | | | This is nicer for cross-compiling, because AC_RUN_IFELSE can't work there. In practice abstract sockets are supported on Linux since 2.2 (so, all relevant versions), and on no other platform; so it seems futile to keep this complexity. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34905 Signed-off-by: Simon McVittie <smcv@collabora.com> Reviewed-by: Philip Withnall <withnall@endlessm.com>
* build: Remove unused substitution DBUS_PATH_OR_ABSTRACTSimon McVittie2017-09-291-11/+0
| | | | | | | | | | This was presumably once used in constructs like "unix:" DBUS_PATH_OR_ABSTRACT "=/var/run/dbus/foo", but git grep says there are no remaining uses, so it can go. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34905 Signed-off-by: Simon McVittie <smcv@collabora.com> Reviewed-by: Philip Withnall <withnall@endlessm.com>
* Post-release version bumpSimon McVittie2017-09-261-1/+1
|
* Prepare 1.11.18 releasedbus-1.11.18Simon McVittie2017-09-251-3/+3
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Remove distribution-specific init-scriptsSimon McVittie2017-09-251-36/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LSB-style (SysV-style) init scripts have not historically been portable between distributions, as evidenced by the presence of both "Red Hat" and "Slackware" init scripts in dbus. Many distributors prefer to maintain them downstream, as is done in Debian (and its derivatives) and in Slackware, so that the init script can follow OS conventions (for example regarding boot messages) and make use of OS-provided facilities (for example, the Debian init script uses dpkg's start-stop-daemon utility). The Slackware and Red Hat init scripts removed by this commit are not tested or maintained in practice, and so are likely to have bugs. The Slackware init-script provided here is not used on actual Slackware systems, which provide a different implementation of rc.messagebus in their packaging, while the Red Hat init script has been superseded by the systemd unit in current Fedora, CentOS and RHEL versions. The Cgywin messagebus-config provided here does appear to be used in production in cygwin-ports, but it's full of Cygwin-specifics with which the dbus maintainers are not familiar, so it is probably more appropriate for it to be tracked downstream as part of the Cygwin packaging. The systemd unit is not removed, since it is used on multiple Linux distributions with little or no modification, and receives regular testing and maintenance; this makes it appropriate to maintain upstream. Signed-off-by: Simon McVittie <smcv@collabora.com> Bug: https://bugs.freedesktop.org/101706 Reviewed-by: Philip Withnall <withnall@endlessm.com>
* Deprecate the pam_console/pam_foreground flag-file directorySimon McVittie2017-09-251-11/+5
| | | | | | | | | | | | | | This feature is now compile-time conditional, and off by default. pam_console appears to have been in Fedora and Gentoo until 2007. pam_foreground seems to be specific to Debian and Ubuntu, where it was unmaintained since 2008 and removed in 2010. The replacement for both was ConsoleKit, which has itself been superseded by systemd-logind and ConsoleKit2. Signed-off-by: Simon McVittie <smcv@collabora.com> Bug: https://bugs.freedesktop.org/101629 Reviewed-by: Philip Withnall <withnall@endlessm.com>
* config-loader-expat: Tell Expat not to defend against hash collisionsSimon McVittie2017-07-281-0/+8
| | | | | | | | | | | | | | | | | | | | | By default, Expat uses cryptographic-quality random numbers as a salt for its hash algorithm, and since 2.2.1 it gets them from the getrandom syscall on Linux. That syscall refuses to return any entropy until the kernel's CSPRNG (random pool) has been initialized. Unfortunately, this can take as long as 40 seconds on embedded devices with few entropy sources, which is too long: if the system dbus-daemon blocks for that length of time, important D-Bus clients like systemd and systemd-logind time out and fail to connect to it. We're parsing small configuration files here, and we trust them completely, so we don't need to defend against hash collisions: nobody is going to be crafting them to cause pathological performance. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=101858 Tested-by: Christopher Hewitt <hewitt@ieee.org> [smcv: Adjust build-system changes for 1.11.x] Signed-off-by: Simon McVittie <smcv@debian.org> Reviewed-by: Philip Withnall <withnall@endlessm.com>
* Belatedly bump the libtool versioningSimon McVittie2017-07-271-2/+2
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Start towards 1.11.18Simon McVittie2017-07-271-1/+1
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* 1.11.16dbus-1.11.16Simon McVittie2017-07-271-1/+1
|
* build: Introduce ${runstatedir} and use it for the pid fileSimon McVittie2017-06-301-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By default ${runstatedir} is the same as ${localstatedir}/run, but many Linux distributions configure it to be /run and mount a tmpfs in that location. All other factors being equal, it is preferable to use /run where available because it is guaranteed to be local, whereas traversing /var might involve automounting a networked filesystem (even though /var/run itself is very likely to be a tmpfs). /run or /var/run is currently only used in a few places in dbus, but I plan to make more use of it during the development of <https://bugs.freedesktop.org/show_bug.cgi?id=100344>. The pid file is not part of the API between dbus and other software (other than distribution init scripts for dbus itself), so we do not need to keep it strictly compatible; so it is OK to move it. We do not yet use /run for the system bus socket, because that is part of the API between D-Bus clients and servers, and has always been "officially" /var/run/dbus/system_bus_socket. <https://bugs.freedesktop.org/show_bug.cgi?id=101628> tracks the possibility of changing that. Similarly, we do not replace /var/run/console with /run/console, because that path is part of the API between dbus-daemon and the obsolete PAM modules pam_console and pam_foreground that used /var/run/console. <https://bugs.freedesktop.org/show_bug.cgi?id=101629> tracks the possible future removal of that code path. In the CMake build system, the equivalent of ${runstatedir} remains hard-coded to the equivalent of ${localstatedir}/run for simplicity. For the sort of system-wide installations that would consider redefining ${runstatedir} to /run, the Autotools build system is strongly recommended: in particular this is what Linux distributions are expected to use. Signed-off-by: Simon McVittie <smcv@collabora.com> Reviewed-by: Philip Withnall <withnall@endlessm.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=101569
* Start 1.11.16 developmentSimon McVittie2017-06-291-1/+1
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* 1.11.14dbus-1.11.14Simon McVittie2017-06-291-4/+4
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Install a systemd tmpfiles.d snippet to create /var/lib/dbus/machine-idSimon McVittie2017-06-281-0/+1
| | | | | | | | | | | | | On systemd systems, /etc/machine-id is guaranteed to exist and has the same format as the D-Bus machine ID. The major D-Bus implementations read /etc/machine-id if it exists, but some less up-to-date implementations still only read /var/lib/dbus/machine-id. We can be nice to those implementations by ensuring /var/lib/dbus/machine-id is a symlink; this way, the two files can never get out of sync. Signed-off-by: Simon McVittie <smcv@collabora.com> Reviewed-by: Philip Withnall <withnall@endlessm.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=101570
* Opt-in to deprecation warnings for GLib 2.38 and 2.40Simon McVittie2017-06-121-1/+1
| | | | | | | | | Now that g_test_trap_fork() has gone, we no longer have any calls to GLib functions deprecated in or before 2.40. Signed-off-by: Simon McVittie <smcv@collabora.com> Reviewed-by: Philip Withnall <withnall@endlessm.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=101362
* Bump GLib dependency for tests to 2.40Simon McVittie2017-06-121-2/+2
| | | | | | | | | | | | | | | | | | This is quite old (it's the version in Ubuntu 14.04 LTS, and older than the version in Debian 8) but gives us g_test_skip(), g_test_trap_subprocess() and GVariantDict, all of which will be useful in the regression tests. Remove workarounds for old versions. After this commit we are still using the deprecated g_test_trap_fork(), which will be removed in a subsequent commit. Don't opt-in to the new deprecation warnings from 2.38 and 2.40 yet, because under our recommended settings for dbus developers (-Werror) they would break the build. Signed-off-by: Simon McVittie <smcv@collabora.com> Reviewed-by: Philip Withnall <withnall@endlessm.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=101362
* configure.ac: Drop check for selinux/av_permissions.hLaurent Bigonville2017-05-311-13/+0
| | | | | | | | selinux/av_permissions.h is deprecated and is not even used in the code since commit ba088208bc0c35ca418a097a8482c4a7705f4a43, in 2013. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=100912 Reviewed-by: Simon McVittie <smcv@collabora.com>
* Remove calls to sidget/sidputLaurent Bigonville2017-05-311-3/+3
| | | | | | | | | sidget and sidput functions are noop and deprecated since libselinux 2.0.86. Also use pkg-config to detect libselinux and force version >= 2.0.86 Bug: https://bugs.freedesktop.org/show_bug.cgi?id=100912 Reviewed-by: Simon McVittie <smcv@collabora.com>
* Pass in DBUS_TEST_EXEC via environment, not hard-coded into binariesSimon McVittie2017-04-181-2/+0
| | | | | | | | | | This avoids "capturing" the build directory in the built binaries when built with embedded tests, which is good for reproducible builds. See <https://reproducible-builds.org/> for more information. Signed-off-by: Simon McVittie <smcv@debian.org> Reviewed-by: Philip Withnall <withnall@endlessm.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=100692
* Autotools build: Use pkg-config to find libexpatSimon McVittie2017-04-101-11/+1
| | | | | | | | The version of expat that added the .pc file was released in 2012. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69801 Signed-off-by: Simon McVittie <smcv@collabora.com> Reviewed-by: Philip Withnall <withnall@endlessm.com>
* Start towards 1.11.14Simon McVittie2017-04-071-1/+1
|
* 1.11.12dbus-1.11.12Simon McVittie2017-04-071-1/+1
|
* Stop opting out of -Wswitch-enum and -Wswitch-defaultSimon McVittie2017-04-071-8/+0
| | | | | | Signed-off-by: Simon McVittie <smcv@collabora.com> Reviewed-by: Philip Withnall <withnall@endlessm.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=98191
* autotools: Allow relocatable pkg-config metadata on an opt-in basisSimon McVittie2017-03-201-3/+39
| | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=99721 Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de> Signed-off-by: Simon McVittie <smcv@collabora.com>
* cmake, autotools: Add find package config support for cmake clientsRalf Habacker2017-03-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | With this support cmake and autotools generates cmake equivalent of pkgconfig files on configure time named DBus1Config*.cmake. These files are installed into the related directory where cmake expects find_package related config files. For instructions how to use this feature with clients see readme.cmake. With previous DBus versions each cmake client using DBus as dependency needed a related FindDBus*.cmake in its source distribution or in the cmake binary packages. With the 'config' find package style support provided by this patch this requirement has been removed. The generated config file uses pkgconfig on unix or autotools to fetch package build flags, which is the prefered way. On Windows we do not want to require CMake users to have pkg-config installed so it uses cmake buildin target export support for exporting all targets into DBus1ConfigTargets*.cmake. [smcv: make sure variable substitution works in Autotools too] Bug: https://bugs.freedesktop.org/show_bug.cgi?id=99721 Reviewed-by: Simon McVittie <smcv@collabora.com> Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de> Signed-off-by: Simon McVittie <smcv@collabora.com>
* cmake: Optionally create relocatable dbus-1.pc fileRalf Habacker2017-03-201-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Relocatable pkgconfig files are necessary when using packages installed to a location that does not match the location for which they were compiled. However, using ${pcfiledir} is problematic for system installations in standard locations, because it interferes with pkg-config's ability to filter out -I, -L options that are redundant with compiler defaults (which is important if you are trying to use a newer version of a library than the system copy). In practice operating system vendors installing dbus to standard locations use Autotools, so we enable relocatable builds by default when building with CMake. For simplicity, we're also not relocatable if the library directory is something more complicated than lib or lib64 (e.g. under Debian multiarch); we don't want to have to compute how many ../ to add. This is non-trivial to determine in an Autotools build, so for now there is no support for relocation when built with Autotools, even as an opt-in feature. Going via the ${original_prefix} variable is because under Autotools, both ${prefix} and ${exec_prefix} technically default to NONE, with NONE replaced with their real defaults of /usr/local and '${prefix}' (respectively) later on. If we tried to expand ${prefix} at the time that we choose the value of ${pkgconfig_prefix}, that would cause a broken value "prefix=NONE" to be hard-coded. [smcv: no relocation on Autotools, make it optional in CMake, expand commit message] Bug: https://bugs.freedesktop.org/show_bug.cgi?id=99721 Reviewed-by: Simon McVittie <smcv@collabora.com> Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de> Signed-off-by: Simon McVittie <smcv@collabora.com>
* Start towards 1.11.12Simon McVittie2017-02-161-1/+1
|
* Prepare 1.11.10dbus-1.11.10Simon McVittie2017-02-161-2/+2
| | | | Signed-off-by: Simon McVittie <smcv@debian.org>