Commit Graph

2 Commits

Author SHA1 Message Date
termux-pacman-bot
90c4159226 fix(x11/codelldb): If the first attempt to load liblldb.so fails, fall back to $TERMUX_PREFIX/lib/liblldb.so because it isn't always the first choice
- This is a fix for a minor edge case bug, `liblldb.so` failing to load when a debugging session is launched from a VSCode-based editor, that **for some reason, only the `code-server` package, not the `code-oss` package, can trigger**, so the bug this solves is only reproducible while using `code-server`, not `code-oss`. The exact difference in behavior between `code-oss` and `code-server` that causes this is not known, but I have implemented the solution in a way that should **only solve errors**, without introducing any additonal problems or incompatibilties with other editors.

- If I were to change it so that the **only** possible selection of `liblldb.so` is `$TERMUX_PREFIX/lib/liblldb.so`, while that would reduce the complexity of `codelldb`'s loading logic, it would unfortunately prevent users from manually configuring a custom path to `liblldb.so` in the GUI settings if they have to, even if the `liblldb.so` in that custom location works fine. That is why I am now setting `$TERMUX_PREFIX/lib/liblldb.so` in multiple places.

- Add patch to `adapter/codelldb/src/lib.rs` in `disable-sbapi.patch` that removes some code that was previously intended for removal from Termux's build, but was missed before accidentally.
2025-08-27 11:04:55 +00:00
termux-pacman-bot
d610e90ed7 addpkg(x11/codelldb): split from vsix-package-codelldb
- Originally, in https://github.com/termux/termux-packages/pull/24716, I implemented only the `.vsix` package because that is what is required for using codelldb with `code-oss`, which is the only way that I personally use it. However, I did not realize at the time that it was possible to use codelldb with **non-VSCode-based editors**, and that people who use it outside of any VSCode-based editor **need to directly execute the binary**, making it important for that binary to be available in `$TERMUX_PREFIX/bin`.

- **This PR implements the following three commands that do _not_ currently work/exist in Termux**:
  - `pkg install codelldb`
  - `codelldb`
  - `python -c "import codelldb"`

- This heavily patches and organizes the package in such a way that the needs of @BenVella, the user of codelldb in Termux, are better met - for their case, using codelldb inside NeoVIM: https://github.com/vadimcn/codelldb/discussions/1278#discussioncomment-14059990

- All of the the preexisting functionality of both the `vsix-package-codelldb` package and the `code-oss-extension-codelldb` package should remain working and available after this reorganization.

- Also, properly marks the subpackage as **not** platform-independent by inheritance of the property from its dependencies. For more information, see: https://github.com/termux/termux-packages/pull/25306
2025-08-13 18:44:03 +00:00