Commit Graph

536 Commits

Author SHA1 Message Date
Nedko Arnaudov 44b47cfc71 Merge tag '1.2' into branch 'stable' (2-dev)
ladish-1.2

Changes since 1.1:

 * Apply downstream patches from FreeBSD
 * meson: Fix project license field (MIT->GPL-2.0-only)
 * meson: Fix version.h when building from tarball
 * meson: disable siginfo build
 * meson: Fix after README->README.adoc rename in 1.1
2024-03-29 16:55:27 +02:00
Nedko Arnaudov e362a9a13b meson: disable siginfo build
siginfo was already disabled in waf builds

See commit 13fa61455c
2024-03-27 00:04:39 +02:00
Yuri Victorovich c8ecee23da Appply patch-daemon_loader.c from FreeBSD 2024-03-26 20:15:04 +02:00
Yuri Victorovich 6570c7b6f1 Appply patch-daemon_app__supervisor.c from FreeBSD 2024-03-26 20:15:01 +02:00
Nedko Arnaudov 8159aed368 Merge branch '1-stable' into 'stable' 2023-06-05 14:24:31 +03:00
Nedko Arnaudov c93f0d8458 Don't set LADISH env vars for L0 & L1
Having these variables set enables apps to discrimination
against ladish, by error or otherwise. In particular
neither LADISH L0 nor L1 imply that user should face mayhem
of standard file menu items for either new, open, save
and/or saveas being disabled.
2023-06-05 14:12:11 +03:00
Nedko Arnaudov d48f5cb312 Add support for system_midi jack client 2023-01-28 02:29:30 +02:00
Nedko Arnaudov 13fa61455c Make siginfo.c build optional and disabled by default
siginfo is now disabled by default so building on new CPU
architectures does not require adjusting of siginfo.c anymore.

When needed, --siginfo can be used as option to ./waf configure
to enable the functionality
2021-12-24 13:54:04 +02:00
Nedko Arnaudov 177158912c Merge "Fix GetAllPorts D-Bus method declaration" by Markus Kitsinger (SwooshyCueb) <root@swooshalicio.us> 2021-02-15 00:48:28 +02:00
Max Audron 1e69f48936 add meson build files
build common, cdbus, alsapid, and proxies as static libraries.
daemon aka ladishd links to them at build time.
2021-02-14 14:22:47 +01:00
Nedko Arnaudov 27e38d3f4b Fix -Werror=restrict
While one could be safe to assume that first input is read,
then symlink target is copied to user-mode, it causes compiler
warning.

So, don't reuse the symlink filename buffer for storing symlink
target.

../daemon/procfs.c:155:28: error: passing argument 2 to restrict-qualified parameter aliases with argument 1 [-Werror=restrict]
  155 |   ret = readlink(g_buffer, g_buffer, sizeof(g_buffer));
      |                  ~~~~~~~~  ^~~~~~~~

sys-libs/glibc-2.30-r8 (armv7a, but ISA probably does not matter)
gcc (Gentoo 9.3.0 p2) 9.3.0
2020-05-07 23:38:18 +03:00
Nedko Arnaudov 16e6233620 Fix implicit fallthrough warning with gcc 9.3.0
../daemon/escape.c: In function ‘escape’:
../daemon/escape.c:49:10: error: this statement may fall through [-Werror=implicit-fallthrough=]
   49 |       if ((flags & LADISH_ESCAPE_FLAG_OTHER) == 0)
      |          ^
../daemon/escape.c:53:5: note: here
   53 |     case '<':               /* invalid attribute value char (XML spec) */
      |     ^~~~

gcc (Gentoo 9.3.0 p2) 9.3.0
2020-05-07 23:32:36 +03:00
Markus Kitsinger (SwooshyCueb) e84e9bbbd7 Fix GetAllPorts D-Bus method declaration 2016-07-28 11:32:50 -05:00
Nedko Arnaudov fcb16ae71e minor coding style fix 2013-02-10 16:26:21 +02:00
Nedko Arnaudov 74fbf510b9 Fix doxygen warnings 2013-02-10 16:21:40 +02:00
Nedko Arnaudov 41c7c2d825 Incorporate siginfo-1 2013-01-13 02:05:15 +02:00
Nedko Arnaudov 62230f606b Fix warning (try again) 2012-12-22 22:03:57 +02:00
Nedko Arnaudov d562213ddd (Hopeuflly) fix comilation warning/error
../daemon/sigsegv.c: В функции ‘signal_segv’:
../daemon/sigsegv.c:114:9: ошибка: формат ‘%02d’ предполагает тип ‘int’, но аргумент 6 имеет тип ‘size_t’
2012-12-22 21:53:38 +02:00
Nedko Arnaudov 0120d3162b Fix room creation that got broken two commits ago
ebce813997 broke it.
2012-12-03 00:28:03 +02:00
Nedko Arnaudov e5efbfc472 Add missing header text 2012-12-02 23:52:43 +02:00
Nedko Arnaudov ebce813997 Fix unused-parameter warnings in plain C code 2012-12-02 23:50:05 +02:00
Nedko Arnaudov abf820278b extra compiler warnings 2012-12-02 21:39:51 +02:00
Nedko Arnaudov 73acf78b8d Improve logging
* Take advantage of gcc printf format checks
 * Move code dependent on log level to log.c
   This is a basis for runtime logging tweaks.
 * Remove the now useless LADISH_DEBUG defines
2012-12-02 20:24:22 +02:00
Nedko Arnaudov 9bbfff1608 Fix log calls
* Remove useless ifdefs for LADISH_DEBUG
 * Fix formatting errors
2012-12-02 20:24:22 +02:00
Nedko Arnaudov 702b287d35 Fix memory leak when a2j mapping fails
alsa_client_name and alsa_client_port are set but is_a2j is set to false
2012-11-19 06:54:49 +02:00
Nedko Arnaudov 84a338dfd2 Don't set garbge pid to ports (either new or existing ones) 2012-11-19 06:42:13 +02:00
Nedko Arnaudov e99af5f8be Fix undefined return value in case of error 2012-11-19 06:42:04 +02:00
Nedko Arnaudov 871dace9c5 Improve assert and fix clang static analyzer report 2012-11-19 06:00:43 +02:00
Nedko Arnaudov 0660f36589 Fix use of uninitialized memory in chdir() failure handling code path 2012-11-19 05:49:33 +02:00
Nedko Arnaudov ad6dbf1392 Fix memory leak on procfs read() failure 2012-11-19 05:32:21 +02:00
Nedko Arnaudov 61c34054e1 Fix error handling 2012-11-19 05:18:05 +02:00
Nedko Arnaudov 136d9d1d45 fix use of uninitialized memory in malloc failure handling code path 2012-11-19 04:47:07 +02:00
Nedko Arnaudov a42ac047af Fix use of unintialized memory
old_project_xxx members are used in ladish_room_save_complete()
2012-11-19 04:06:51 +02:00
Nedko Arnaudov c2fc519d5c fix double free in malloc failure handling code path 2012-11-17 14:48:48 +02:00
falkTX 88aaa609e2 preload libasound.so.2 instead of libasound.so
Under some systems libasound.so is not available by default (reserved to devel packages), which will trigger some LD_PRELOAD warnings.
Bristol fails to start because of this, as it's not expecting such output when first requesting jack sample-rate and buffer-size.
Adding .2 to the library name ensures that the alsa library is always present on non-devel systems, and fixes the Bristol issue.
2012-11-11 22:59:32 +00:00
Nedko Arnaudov 2c3c3f0290 Don't notify user about unexpectedly stopped apps that returned 0 exit code. Fixes #197
The exit code detection for apps ran in terminal is not working,
at least with xterm. xterm doesnt seem to be able to return exit
code of its child process.
2012-10-09 02:32:42 +03:00
Nedko Arnaudov a2a17cd392 add includes for getrlimit 2012-10-07 14:06:59 +03:00
Nedko Arnaudov ce273d9e58 Fix logging from child processes
After fork the log file descriptor is closed
2012-09-08 04:14:47 +03:00
Nedko Arnaudov 9742a120cd Catch last words before children death 2012-09-08 04:13:30 +03:00
Nedko Arnaudov cd3684d1ad cdbus: macros for defining interfaces with default handler 2011-11-09 02:59:26 +02:00
Nedko Arnaudov a0738fe6e7 dbus/ -> cdbus/ 2011-11-09 02:45:13 +02:00
Nedko Arnaudov 4202100444 cdbus: prefix macros with CDBUS_ 2011-11-09 02:38:22 +02:00
Nedko Arnaudov 9202dae129 cdbus: remove lash traces
* rename cdbus header include guards to use CDBUS_ instead of LASH_DBUS_
 * remove dbus/error.h and dbus/error.c

error.h contained lash/ladish specific error strings and
lash_dbus_error() prototype. lash_dbus_error() is renamed to
cdbus_error() and its implementation is moved to dbus/method.c. The
D-Bus error strings that have DBUS_ERROR_XXX matches are removed and
their uses are switched to the libdbus variants. The ladish specific
error strings are moved to dbus_constants.h
2011-11-06 00:10:10 +02:00
Nedko Arnaudov 640ca88481 Implement JS delay workaround. #187
yoshimi-0.060.10 jack session implementation is broken. Save complete
reply is sent from the jack session callback but the actual save is
made asynchronously, in the main thread, on next main loop iteration.

This changeset implements workaround for app bugs like this.
User is able to set JS delay in seconds. Default is zero.
2011-10-23 03:54:04 +03:00
Nedko Arnaudov 17e12e1e84 remove unused variable
gcc 4.6 was reporting warning:
../daemon/room_save.c:372:8: error: variable ‘ret’ set but not used [-Werror=unused-but-set-variable]
2011-10-15 20:00:46 +03:00
Nedko Arnaudov 6df7809837 Call the save completion callback when ladish_js_save_app() fails. #185 2011-10-11 03:52:58 +03:00
Nedko Arnaudov 88712ad5e5 simplify ladish_room_save_project() error handling
the callback is always called. the function has not return value anymore.
2011-10-11 03:46:59 +03:00
Nedko Arnaudov 8ba2d5f991 daemon: fix function name
ladish_room_project_complete -> ladish_room_project_save_complete
2011-10-11 03:41:20 +03:00
Nedko Arnaudov 69dd3f5611 fix warnings when building with disabled stacktrace 2011-10-10 04:42:56 +03:00
Nedko Arnaudov f14ff0f10e ladishd: when starting apps, always use shell. Fix #179
terminal emulators expect split commandline.
without terminal emulator and without shell, commandline must be split.
2011-10-02 16:03:26 +03:00