Skip to content

Switch CI workflows to libbotan-3-dev#13317

Open
tredondo wants to merge 1 commit intokeepassxreboot:developfrom
tredondo:fix/botan-3-ubuntu-26
Open

Switch CI workflows to libbotan-3-dev#13317
tredondo wants to merge 1 commit intokeepassxreboot:developfrom
tredondo:fix/botan-3-ubuntu-26

Conversation

@tredondo
Copy link
Copy Markdown

@tredondo tredondo commented May 5, 2026

Fixes #13297.

libbotan-2-dev is no longer available on Ubuntu 26, which will also break the apt install step in the CodeQL and Copilot-setup workflows once GitHub's ubuntu-latest rolls forward to 24.04+ / 26.04. KeePassXC already supports Botan 3 and INSTALL.md already documents botan (>= 2.12.0 or >= 3.0.0), so no source or user-facing doc changes are needed.

snap/snapcraft.yaml is intentionally left on libbotan-2-dev / libbotan-2-19 because it pins base: core22 (Ubuntu 22.04), where libbotan-3-dev is not available.

Files changed

  • .github/workflows/codeql.yml
  • .github/workflows/copilot-setup-steps.yml

Testing

Locally verified that libbotan-3-dev (3.10.0) satisfies FindBotan.cmake. Build succeeded.

AI disclosure

Per CONTRIBUTING.md: drafted with assistance from Claude Opus 4.7. I reviewed both single-character changes.

libbotan-2-dev is no longer available on Ubuntu 26, breaking the apt install step in the CodeQL and Copilot setup workflows once GitHub's ubuntu-latest moves to 26.04. KeePassXC already supports Botan 3 (see CMakeLists.txt and cmake/FindBotan.cmake), and INSTALL.md already documents Botan >= 3.0.0 as a valid dependency, so no source changes are needed.

snap/snapcraft.yaml is intentionally left on libbotan-2-dev because it pins base: core22 (Ubuntu 22.04), where libbotan-3-dev is not available.

Fixes keepassxreboot#13297
run: |
sudo apt update
sudo apt install --no-install-recommends build-essential cmake g++ ninja-build qtbase5-dev qtbase5-private-dev qttools5-dev qttools5-dev-tools libqt5svg5-dev libargon2-dev libkeyutils-dev libminizip-dev libbotan-2-dev libqrencode-dev zlib1g-dev asciidoctor libreadline-dev libpcsclite-dev libusb-1.0-0-dev libxi-dev libxtst-dev libqt5x11extras5-dev
sudo apt install --no-install-recommends build-essential cmake g++ ninja-build qtbase5-dev qtbase5-private-dev qttools5-dev qttools5-dev-tools libqt5svg5-dev libargon2-dev libkeyutils-dev libminizip-dev libbotan-3-dev libqrencode-dev zlib1g-dev asciidoctor libreadline-dev libpcsclite-dev libusb-1.0-0-dev libxi-dev libxtst-dev libqt5x11extras5-dev
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be updated to qt6 as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Error: Unable to locate package libbotan-2-dev" on Ubuntu 26

2 participants