summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* test: Exercise handling of invalid/negative Unix fdswip/smcv/invalid-unix-fdSimon McVittie2022-09-062-1/+58
| | | | | Reproduces: https://github.com/firewalld/firewalld/issues/985 Signed-off-by: Simon McVittie <smcv@collabora.com>
* unixfd: Fix assertion failure constructing UnixFd for invalid fdSimon McVittie2022-09-061-3/+3
| | | | | | | | | | | | | File descriptors are represented as the C int type, but only non-negative values represent a valid fd, with all negative values representing the absence of a fd (a NULL-like value). Previously, make_fd() accepted negative fds, but then UnixFd_tp_new would crash with an assertion failure. Instead, range-check the value according to the semantically valid range. If it isn't, raise the same error we previously raised for values that don't fit in an int. Signed-off-by: Simon McVittie <smcv@collabora.com>
* message: Fix assertion failure unpacking handle to an out-of-range fdSimon McVittie2022-09-061-0/+8
| | | | | | | | | | | | | | | | | | In the D-Bus wire protocol, the representation of a Unix fd is a simple integer in the message body (referred to as the "handle" in GDBus) which acts as an index into the array of out-of-band fds attached to the message. The libdbus API (and therefore the dbus-python API) automatically translates handles into fds, but the GDBus API does not, making it possible for a GDBus sender to send a message containing handles that are out-of-range for the number of attached fds. The message bus also does not prevent such messages from being sent. dbus-python services need to cope with this and fail gracefully while unpacking the message, rather than crashing with an assertion failure in UnixFd_tp_new when the fd turns out to be invalid. Resolves: https://github.com/firewalld/firewalld/issues/985 Signed-off-by: Simon McVittie <smcv@collabora.com>
* build: Stop including egg-info in sdistSimon McVittie2022-09-062-5/+3
| | | | | | This seems to be obsolete when using PEP 517. Signed-off-by: Simon McVittie <smcv@collabora.com>
* setup.py: Build using Meson instead of Autotools by defaultSimon McVittie2022-09-067-89/+175
| | | | | | | This requires mostly dropping support for Python 3.5 and 3.6, both of which are EOL anyway. Signed-off-by: Simon McVittie <smcv@collabora.com>
* meson: Make installed-tests from multiple builds co-installableSimon McVittie2022-09-052-2/+9
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Update NEWSSimon McVittie2022-09-051-7/+21
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* CI: Exercise Meson buildSimon McVittie2022-09-054-44/+78
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Add a Meson build systemSimon McVittie2022-09-0510-0/+556
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* .gitignore: Ignore more generated filesSimon McVittie2022-09-051-0/+3
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Reinstate test coverage for pip install dbus-pythonSimon McVittie2022-09-053-8/+32
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* setup.py: Remove obsolete Python 2 classifierSimon McVittie2022-09-051-1/+0
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Stop testing python3.5-dbgSimon McVittie2022-09-051-8/+0
| | | | | | | | | | | | This version is EOL, and Meson (for which I want to add support) fails on its -dbg variant with: Fatal Python error: a function returned a result with an error set NotImplementedError: chmod: follow_symlinks unavailable on this platform During handling of the above exception, another exception occurred: SystemError: <built-in function chmod> returned a result with an error set Signed-off-by: Simon McVittie <smcv@collabora.com>
* CI: Collect build and test logsSimon McVittie2022-09-053-11/+26
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Merge dbus-gmain commit '93e8fced640e29bd6fbcc066a6c854a8dd74f8ab'Simon McVittie2022-09-0522-566/+622
|\
| * Autotools: Allow dbus-gmain to be in $(top_srcdir)/subprojectsSimon McVittie2022-09-051-0/+2
| | | | | | | | This gives it a more Meson-compatible layout.
| * build: Add REUSE licenses and Meson build files to Autotools distSimon McVittie2022-09-051-0/+10
| | | | | | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
| * Add Gitlab-CISimon McVittie2022-09-052-1/+35
| | | | | | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
| * .editorconfig: AddSimon McVittie2022-09-051-0/+28
| | | | | | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
| * Add G_GNUC_UNUSED to unused function parametersSimon McVittie2022-09-054-20/+16
| | | | | | | | | | | | | | It's easier to integrate subprojects into a larger project if they are as close to warnings-clean as possible. Signed-off-by: Simon McVittie <smcv@collabora.com>
| * Add a Meson build systemSimon McVittie2022-09-058-0/+324
| | | | | | | | | | | | This allows larger projects to use this as a Meson subproject. Signed-off-by: Simon McVittie <smcv@collabora.com>
| * Clean up some compiler warningsSimon McVittie2022-09-052-3/+6
| | | | | | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
| * Move dbus-gmain.h into a subdirectorySimon McVittie2022-09-042-1/+1
| | | | | | | | | | | | This will make it easier to use this as a Meson subproject. Signed-off-by: Simon McVittie <smcv@collabora.com>
| * Use REUSE for license informationSimon McVittie2022-09-048-548/+209
| | | | | | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* | Add licensing information in REUSE formatSimon McVittie2022-09-0522-1/+330
| | | | | | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* | build: Add subprojects/dbus-gmain to AM_CPPFLAGSSimon McVittie2022-09-051-0/+1
| | | | | | | | | | | | This will be needed when updating gdbus-gmain in a subsequent commit. Signed-off-by: Simon McVittie <smcv@collabora.com>
* | Move dbus-gmain into subprojects/Simon McVittie2022-09-0517-7/+11
| | | | | | | | | | | | This gives it a layout that is compatible with being a Meson subproject. Signed-off-by: Simon McVittie <smcv@collabora.com>
* | m4: Update AX_PYTHON_DEVELSimon McVittie2022-09-051-13/+61
| | | | | | | | | | | | The new version fully supports Python 3.10. Signed-off-by: Simon McVittie <smcv@collabora.com>
* | CI: Speed up installationSimon McVittie2022-09-051-2/+1
| | | | | | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* | CI: Fix suite indicatorSimon McVittie2022-09-051-0/+2
| | | | | | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* | Merge branch 'wip/smcv/ci' into 'master'Simon McVittie2022-09-041-8/+16
|\ \ | | | | | | | | | | | | CI: Stop using EOL Ubuntu 22.10 See merge request dbus/dbus-python!19
| * | CI: Stop using EOL Ubuntu 22.10Simon McVittie2022-09-041-8/+16
|/ / | | | | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* | build: Bump micro version for developmentSimon McVittie2022-09-041-1/+1
| |
* | Merge branch 'master' into 'master'Simon McVittie2022-09-042-0/+34
|\ \ | | | | | | | | | | | | | | | | | | add set_allow_interactive_authorization / get_allow_interactive_authorization for message Closes #43 See merge request dbus/dbus-python!17
| * | add set_allow_interactive_authorization / ↵Ricter Zheng2022-04-272-0/+34
|/ / | | | | | | | | | | get_allow_interactive_authorization for message add unit tests
* | Update NEWSSimon McVittie2021-09-151-0/+3
| | | | | | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* | Merge branch 'fix-40' into 'master'Simon McVittie2021-09-152-2/+2
|\ \ | | | | | | | | | | | | | | | | | | Fix invalid escape sequence warnings Closes #40 See merge request dbus/dbus-python!14
| * | Fix invalid escape sequence warningsJason Yundt2021-09-152-2/+2
|/ / | | | | | | | | | | | | | | | | | | | | Backslashes only allowed in string literals if they're part of an escape sequence (raw strings are an exception to this rule).[1] This change fixes some string literals that broke this rule. 1. https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals Resolves: dbus/dbus-python#40 Signed-off-by: Jason Yundt <swagfortress@gmail.com>
* | Update NEWSSimon McVittie2021-09-151-0/+39
| | | | | | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* | Merge branch '310-ci' into 'master'Simon McVittie2021-09-1547-1232/+243
|\ \ | | | | | | | | | | | | Drop Python 2 support, fix forward-compatibility See merge request dbus/dbus-python!15
| * | build: Use AS_HELP_STRING instead of deprecated AC_HELP_STRINGSimon McVittie2021-09-151-3/+3
| | | | | | | | | | | | | | | | | | This has been available since at least autoconf 2.59c (2006). Signed-off-by: Simon McVittie <smcv@collabora.com>
| * | .gitignore: Ignore build-system backup filesSimon McVittie2021-09-151-0/+2
| | | | | | | | | | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
| * | build: Update bug reporting URLSimon McVittie2021-09-151-1/+1
| | | | | | | | | | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
| * | build: Use LT_INIT instead of deprecated AC_PROG_LIBTOOLSimon McVittie2021-09-151-1/+1
| | | | | | | | | | | | | | | | | | This has been available since at least libtool 1.9b (2004). Signed-off-by: Simon McVittie <smcv@collabora.com>
| * | CI: Ensure we install into ${prefix}, even with Automake 1.16.4Simon McVittie2021-09-151-0/+2
| | | | | | | | | | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
| * | build: Make distcheck use our ${prefix} with Automake 1.16.4Simon McVittie2021-09-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Automake 1.16.4 changes the default behaviour for Python so that --prefix is no longer respected. Force it to behave as earlier versions did, so we can still distcheck. Signed-off-by: Simon McVittie <smcv@collabora.com>
| * | m4: Update AX_PYTHON_DEVEL for better forward-compatibilitySimon McVittie2021-09-151-22/+63
| | | | | | | | | | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
| * | Remove support for Python 2Simon McVittie2021-09-1545-1210/+164
| | | | | | | | | | | | | | | | | | | | | | | | Python 2 reached EOL on 2020-01-01, and the latest version of AX_PYTHON_DEVEL breaks the build with Python 2. This seems as good a time as any to drop compatibility. Signed-off-by: Simon McVittie <smcv@collabora.com>
| * | build: Use sysconfig in preference to distutils.utilSimon McVittie2021-09-141-1/+8
| | | | | | | | | | | | | | | | | | distutils is deprecated and likely to be removed in Python 3.12. Signed-off-by: Simon McVittie <smcv@collabora.com>
| * | CI: Disable documentation build with Python 3.10Simon McVittie2021-09-142-2/+7
|/ / | | | | | | | | | | | | The version of sphinx in Ubuntu impish is not currently fully compatible with Python 3.10. Signed-off-by: Simon McVittie <smcv@collabora.com>