- 10 Apr, 2019 5 commits
-
-
Max Kellermann authored
This allows using the file as a user unit, where "%t" maps to "$XDG_RUNTIME_DIR". Proposed in https://github.com/MusicPlayerDaemon/MPD/issues/530
-
Max Kellermann authored
Closes https://github.com/MusicPlayerDaemon/MPD/issues/524
-
Max Kellermann authored
Closes https://github.com/MusicPlayerDaemon/MPD/issues/523
-
cotko authored
-
Max Kellermann authored
-
- 04 Apr, 2019 4 commits
-
-
Max Kellermann authored
Expect OnSocketReady() to cancel events. If it returns false, the SocketMonitor may be destructed already. This fixes a use-after-free bug in the "httpd" output plugin.
-
Max Kellermann authored
-
Max Kellermann authored
Keep the SocketMonitor registered. This wrong return value was added 6 years ago in commit 72cf8dd8, andd apparently, nobody ever noticed.
-
Max Kellermann authored
This missing piece probably never really hurt, because HttpdClient::OnSocketClosed() would be called right after a socket error, but it's better to be explicit about closing on error.
-
- 03 Apr, 2019 9 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
Fixes: src/net/IPv4Address.hxx: In member function 'constexpr IPv4Address::operator SocketAddress() const': src/net/IPv4Address.hxx:171:24: error: a reinterpret_cast is not a constant expression 171 | return SocketAddress((const struct sockaddr *)&address, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/net/IPv6Address.hxx: In member function 'constexpr IPv6Address::operator SocketAddress() const': src/net/IPv6Address.hxx:138:24: error: a reinterpret_cast is not a constant expression 138 | return SocketAddress((const struct sockaddr *)&address, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Closes https://github.com/MusicPlayerDaemon/MPD/issues/522
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
- 29 Mar, 2019 9 commits
-
-
Max Kellermann authored
Let the caller decide what to do with the original exception.
-
Max Kellermann authored
Preserve the original exception.
-
Max Kellermann authored
This plugin is interesting only for a tiny fraction of MPD users, so let's not spam everybody else's log with it.
-
Max Kellermann authored
Closes https://github.com/MusicPlayerDaemon/MPD/issues/234
-
François Revol authored
Fixes #184. Semaphores are kernel-managed objects, calling delete_sem() twice is not more dangerous than calling close() twice on an fd though, it would just return an error.
-
François Revol authored
-
François Revol authored
The custom_command was run in src/haiku/ and created a file with only resources inside. Since xres edits the file in-place and meson doesn't like it, we have to run a shell script for now. Maybe later I'll add proper support in meson.
-
François Revol authored
-
François Revol authored
-
- 24 Mar, 2019 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 20 Mar, 2019 4 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
Closes https://github.com/MusicPlayerDaemon/MPD/issues/510
-
Max Kellermann authored
.. and not "UNIX domain socket. Be consistent about the naming.
-
- 18 Mar, 2019 7 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
MPD sometimes uses version numbers like "0.22~git" to mark unreleased versions. That makes the win32 resource compiler unhappy, because it expects numbers only.
-
Jörg Krause authored
Since version 0.49.0 the Meson build system has native support for finding and using the gcrypt library using the `dependency()` function. `dependency()` has the advantage over `find_library()` as it queries the required linker flags for proper linking with external libraries, e.g. libgpg-error. As the latest released version 1.8.4 of libgcrypt does not provide a .pc file, using `libgcrypt-config` is the only way to query the required linker flags. Unfortunately, there is an issue when cross compiling mpd and the user does not define `libgcrypt-config` in the cross file. If the user sets the qobuz feature to `auto` and the target does not have libgcrypt installed, the Meson build system will falsly assume libgcrypt is available for the target as it uses the native `libgcrypt-config` on the host and pretend is has found the library. Therefore, we still rely on `find_library()` to workaround this buggy behavior. This way, if qobuz feature detection is set to `auto`, the feature is disabled in case there is no target libgcrypt available. Fixes building mpd statically with the qobuz feature enabled. Otherwise the build fails with undefined references because of the missing libgpg-error dependency: ``` /sysroot/usr/lib/libgcrypt.a(libgcrypt_la-visibility.o): In function `gcry_strerror': visibility.c:(.text+0x14): undefined reference to `gpg_strerror' ```
-
Jörg Krause authored
Meson 0.49.0 adds native support for `libgcrypt-config` which is necessary for detecting libgcrypt dependencies, as the latest version 1.8.4 of libgcrypt does not provide a .pc file.
-