From 2ba8dfe07fdd664389027b50930d41db100c63ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= <323649642+oc-tmueller@users.noreply.github.com> Date: Tue, 1 Dec 2026 16:47:09 +0100 Subject: [PATCH 1/2] ci(conan): build the crash reporter in every Conan job Since the Craft CI was removed, no CI build configures with WITH_CRASHREPORTER, so the crash reporter's code (platform.cpp's handler, src/crashreporter) is compiled nowhere: #12658 renamed ConfigFile::crashReporter() and only Craft failed. Some releases and brandings ship the crash reporter. - conanfile.py requires libcrashreporter-qt/cci.20261202 behind a new option, crashreporter, on by default; -o "&:crashreporter=False" leaves the package (and breakpad and linux-syscall-support on Linux) out. - conan/recipes-commit moves to ea721744b, the merge of owncloud/conan-center-index#100. Between the old pin and it lie #98 (the new recipe), #99 (it finds Qt 6 through CMakeDeps), #101 (cci.20261202, a BSD-3-Clause stub instead of Breakpad's APSL-2.0 breakpad_nlist_64.cc) and #100 (the Windows configure: CMP0091 unset when project() reads the toolchain). The locked recipes that changed there were relocked with conan/update-lock.sh: qt (new revision, still 6.12.1), cmake 4.5.1, expat 2.11.0, harfbuzz 15.2.0, meson 1.12.1, and new revisions of glib, libxml2 and wayland. breakpad and linux-syscall-support are new on Linux. - conan-build.yml passes -DWITH_CRASHREPORTER=ON in every job. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/conan-build.yml | 11 ++++++----- changelog/unreleased/12749.md | 10 ++++++++++ conan.lock | 29 ++++++++++++++++------------- conan/recipes-commit | 2 +- conanfile.py | 7 +++++++ 5 files changed, 40 insertions(+), 19 deletions(-) create mode 100644 changelog/unreleased/12749.md diff --git a/.github/workflows/conan-build.yml b/.github/workflows/conan-build.yml index 22c55ce0d01..8d107aadb65 100644 --- a/.github/workflows/conan-build.yml +++ b/.github/workflows/conan-build.yml @@ -153,7 +153,8 @@ jobs: run: | # conanbuild.sh puts the locked cmake on PATH; the compiler is the runner's gcc 13, # which conan/profiles/linux-x86_64 names. WITH_AUTO_UPDATER: the updater is built and - # tested too. + # tested too. WITH_CRASHREPORTER in every job: some releases and brandings ship the crash + # reporter, and only a build with it compiles its code (platform.cpp, src/crashreporter). source build/conanbuild.sh sanitizer_args=() if [ -n "$SANITIZERS" ]; then @@ -162,7 +163,7 @@ jobs: sanitizer_args=("-DECM_ENABLE_SANITIZERS=$SANITIZERS" "-DCMAKE_C_FLAGS_RELEASE=-O3 -g -DNDEBUG" "-DCMAKE_CXX_FLAGS_RELEASE=-O3 -g -DNDEBUG") fi - cmake --preset conan-release -DBUILD_TESTING=ON -DFORCE_ASSERTS=ON -DWITH_AUTO_UPDATER=ON \ + cmake --preset conan-release -DBUILD_TESTING=ON -DFORCE_ASSERTS=ON -DWITH_AUTO_UPDATER=ON -DWITH_CRASHREPORTER=ON \ "${sanitizer_args[@]}" cmake --build --preset conan-release - name: Test @@ -261,7 +262,7 @@ jobs: # WITH_AUTO_UPDATER: builds the Sparkle updater (src/gui/updater), so the client is # compiled and linked against the Conan Sparkle framework. source build/conanbuild.sh - cmake --preset conan-release -DBUILD_TESTING=ON -DFORCE_ASSERTS=ON -DWITH_AUTO_UPDATER=ON + cmake --preset conan-release -DBUILD_TESTING=ON -DFORCE_ASSERTS=ON -DWITH_AUTO_UPDATER=ON -DWITH_CRASHREPORTER=ON cmake --build --preset conan-release - name: Test run: | @@ -360,7 +361,7 @@ jobs: $PSNativeCommandUseErrorActionPreference = $true # WITH_AUTO_UPDATER: as on Linux and macOS, so the Windows updater (ocupdater) is # built and tested too. - cmake --preset conan-release -DBUILD_TESTING=ON -DFORCE_ASSERTS=ON -DWITH_AUTO_UPDATER=ON + cmake --preset conan-release -DBUILD_TESTING=ON -DFORCE_ASSERTS=ON -DWITH_AUTO_UPDATER=ON -DWITH_CRASHREPORTER=ON cmake --build --preset conan-release - name: Test id: test @@ -433,7 +434,7 @@ jobs: # WITH_AUTO_UPDATER: builds the Sparkle updater (src/gui/updater), so the client is # compiled and linked against the Conan Sparkle framework. source build/conanbuild.sh - cmake --preset conan-release -DBUILD_TESTING=ON -DFORCE_ASSERTS=ON -DWITH_AUTO_UPDATER=ON + cmake --preset conan-release -DBUILD_TESTING=ON -DFORCE_ASSERTS=ON -DWITH_AUTO_UPDATER=ON -DWITH_CRASHREPORTER=ON cmake --build --preset conan-release - name: Test run: | diff --git a/changelog/unreleased/12749.md b/changelog/unreleased/12749.md new file mode 100644 index 00000000000..90cd6b582d5 --- /dev/null +++ b/changelog/unreleased/12749.md @@ -0,0 +1,10 @@ +Change: Build the crash reporter in the Conan CI + +The Conan builds on GitHub now build the client with the crash reporter +(WITH_CRASHREPORTER), from a new libcrashreporter-qt Conan package. Since the +Craft CI was removed, no CI build compiled its code, so changes that broke it +went unnoticed. Moving to the recipes that carry the new +package also updates harfbuzz to 15.2.0, expat to 2.11.0 and the Conan build +tools CMake to 4.5.1 and Meson to 1.12.1. + +https://github.com/owncloud/client/pull/12749 diff --git a/conan.lock b/conan.lock index 675350f89cc..4304e530f8c 100644 --- a/conan.lock +++ b/conan.lock @@ -7,17 +7,18 @@ "xorg/system#87ea3cbfa907ff490f4ece2f5fa3dbb9", "xkeyboard-config/system#74aea985b91f987b93b220b44963d7ed", "xkbcommon/1.5.0#b956b1e61a79bb88fbc828e808b5cecb", - "wayland/1.22.0#57296ecf74bb3b37e5320c8da64a5700", + "wayland/1.22.0#94d8c0f441a666da07ae0b05342482db", "sqlite3/3.54.1#4b6119f4249f964a999648b674e1af8e", "sparkle/2.9.6#a554a3f1590bdac0577acaad6985ae5a", "qtkeychain/0.15.0#62c676dc227f0437c0671a44245a7514", - "qt/6.12.1#1afae12f4016e7fbad528a4f2a7a0612", + "qt/6.12.1#b57e79a73ecdfe8512bef68c650345ac", "pcre2/10.49#2956a88c8d5da26353a1fb478eebb4f2", "openssl/3.4.8#8f6309529e84ac48f2ad62bbf0cf895c", "opengl/system#6f9ec82b4eaae8c6f97135229c90738c", "nlohmann_json/3.11.3#45828be26eb619a2e04ca517bb7b828d", "md4c/0.5.3#41354a2d07f7ed2989489e1a7eaf8aea", - "libxml2/2.15.4#9a0c674e87edc8d5bca8ccdb6761e4f8", + "linux-syscall-support/cci.20200813#fb0ff4daaa161a8bc30c06c61b3d9b08", + "libxml2/2.15.4#b1d48779fff4188fe512d3d6cf97c54a", "libselinux/3.6#d6262583c7596b22bf3ba73df2a3e0a0", "libsecret/0.21.7#c02d8a4cee0a21b06cfd414629cd2b0c", "libregraphapi/1.0.4#a115a184e19587251849f01abc6d1a0f", @@ -28,28 +29,30 @@ "libgpg-error/1.61#aa75ce267c34ebc279a98621322e4d8c", "libgcrypt/1.12.2#e77e52accbb2d32c9ada41a9f2fbb850", "libffi/3.4.8#a045c00fb26779635e3bed40e80c5254", + "libcrashreporter-qt/cci.20261202#86226a122331e343514667b8e0885bf6", "libcap/2.78#49ad5ecc797164ef0f16a3eeee856401", "kdsingleapplication/1.2.0#7e810ce31c10879058dc2181c753ba44", "icu/78.2#bb4613fd8b43edbd3b902fac008d3fe0", - "harfbuzz/15.0.0#af7dcfab1d07f01b38e03293ac016219", - "glib/2.90.1#0c7eb8eb5c0a52c1990e9bae3d07c676", + "harfbuzz/15.2.0#de30211b29d4d51fbba82778b52896ac", + "glib/2.90.1#e46d8c516ca763353d2b9356e5d951d2", "freetype/2.15.0#0f0c86e212ae787ef3d7dab7db43fad1", "fontconfig/2.15.0#5d752580de3d735bcdd66db6b7ef4fb2", "extra-cmake-modules/6.8.0#f964351096f583021b07bc18c3f252cf", - "expat/2.10.0#93425119c70db4e470b3d7d9b5daf3e6", + "expat/2.11.0#66f97694990e3929d8d5869ee1a7aea1", "elfutils/0.190#ce105950b58f2ec61fb053bb743ff505", "egl/system#9d33d024a47d4b3fec1d0fcc7cb2717f", "double-conversion/3.3.0#de1c45766e70b79dbd9bf744c7b2a89a", "dbus/1.15.8#6809a65bc3bbddde4fa118e4a538d4cc", "bzip2/1.0.8#c470882369c2d95c5c77e970c0c7e321", - "brotli/1.2.1#edc0b7d57e13bfb675278fdf511971b0" + "brotli/1.2.1#edc0b7d57e13bfb675278fdf511971b0", + "breakpad/cci.20210521#e8daa4e58272c8961863d728cfb54f8f" ], "build_requires": [ "zstd/1.5.7#b68ca8e3de04ba5957761751d1d661f4", "zlib/1.4#f51abf05ab684e2283b6d4c1243b624f", "xz_utils/5.8.4#8f8f25b0e4c422a4469a6f7ead5b355c", "wayland-protocols/1.45#79bbdf84ebb0fcc3353686529e0a2322", - "wayland/1.22.0#57296ecf74bb3b37e5320c8da64a5700", + "wayland/1.22.0#94d8c0f441a666da07ae0b05342482db", "strawberryperl/5.32.1.1#8d114504d172cfea8ea1662d09b6333e", "pkgconf/2.5.1#93c2051284cba1279494a43a4fcfeae2", "pkgconf/2.2.0#4ac315b50ef734072b00ff3aacbf52bf", @@ -57,21 +60,21 @@ "pcre2/10.49#2956a88c8d5da26353a1fb478eebb4f2", "ninja/1.13.2#c8c5dc2a52ed6e4e42a66d75b4717ceb", "nasm/2.16.01#31e26f2ee3c4346ecd347911bd126904", - "meson/1.10.2#9d2d10681fe7fe61c788c58626c89b25", + "meson/1.12.1#0a8fe72c169de9b47d039c6c2e475ee5", "m4/1.4.19#1727f439cf74e83826ec96d0b4904eee", - "libxml2/2.15.4#9a0c674e87edc8d5bca8ccdb6761e4f8", + "libxml2/2.15.4#b1d48779fff4188fe512d3d6cf97c54a", "libselinux/3.6#d6262583c7596b22bf3ba73df2a3e0a0", "libmount/2.42.4#456111d132f1791af961cd0e03be1091", "libiconv/1.17#9923bc6dc6f106646d6967e0039a5ada", "libffi/3.4.8#a045c00fb26779635e3bed40e80c5254", "gperf/3.1#a7afdf8f7cccdc2dcd4d962370c33d4f", "gnu-config/cci.20210814#03bc9eb827f655b3e96fc1afc6c5541d", - "glib/2.90.1#0c7eb8eb5c0a52c1990e9bae3d07c676", + "glib/2.90.1#e46d8c516ca763353d2b9356e5d951d2", "gettext/0.22.5#2f6edba611e8db1a8a18488b116e8c2a", "flex/2.6.4#efa781fc5088b47c895bd4eef6911f2e", - "expat/2.10.0#93425119c70db4e470b3d7d9b5daf3e6", + "expat/2.11.0#66f97694990e3929d8d5869ee1a7aea1", "elfutils/0.190#ce105950b58f2ec61fb053bb743ff505", - "cmake/4.5.0#24bd34291eb0f81c64854389dd6a216f", + "cmake/4.5.1#60efa24751433668330c83a45b149047", "cmake/3.31.12#71c3a0c80cc89cde62956db9e69550e0", "bzip2/1.0.8#c470882369c2d95c5c77e970c0c7e321", "bison/3.8.2#3a45a2c96da8e866d7c3e35855bae257", diff --git a/conan/recipes-commit b/conan/recipes-commit index 371f95f543b..efb7e2de4bd 100644 --- a/conan/recipes-commit +++ b/conan/recipes-commit @@ -1 +1 @@ -6e2255fe80ef2933d8553d650632d464b54f0e14 +ea721744bdbfe4085a52f460bd9b5440b9387940 diff --git a/conanfile.py b/conanfile.py index 8465852b645..c9c10f6d590 100644 --- a/conanfile.py +++ b/conanfile.py @@ -23,7 +23,12 @@ class OwncloudClientConan(ConanFile): settings = "os", "compiler", "arch", "build_type" + # crashreporter: the libcrashreporter-qt package for WITH_CRASHREPORTER. On by default, because + # some releases and brandings ship the crash reporter; a build without it can turn it off with + # -o "&:crashreporter=False". + options = {"crashreporter": [True, False]} default_options = { + "crashreporter": True, "*:fPIC": True, # Qt does not use harfbuzz's glib integration, and with it macOS and # Windows got a static glib inside Qt's harfbuzz. @@ -76,6 +81,8 @@ def configure(self): def requirements(self): self.requires("extra-cmake-modules/6.8.0") self.requires("kdsingleapplication/1.2.0") + if self.options.crashreporter: + self.requires("libcrashreporter-qt/cci.20261202") self.requires("libregraphapi/1.0.4") self.requires("nlohmann_json/3.11.3") # 3.4.8: the 3.4 patch the pinned openssl recipe offers. (The recipes' From 96c839a0ef9e7828fe7b5c5e4b4533ee258cb190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= <323649642+oc-tmueller@users.noreply.github.com> Date: Tue, 1 Dec 2026 17:12:52 +0100 Subject: [PATCH 2/2] build(conan): build sqlite3 without its shell The client links the sqlite3 library only, and no package ships the shell. Qt links sqlite3 statically, so the option changes Qt's package ID; it goes in with this change, which rebuilds Qt anyway. Co-Authored-By: Claude Opus 5.5 --- changelog/unreleased/12749.md | 3 ++- conanfile.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/changelog/unreleased/12749.md b/changelog/unreleased/12749.md index 90cd6b582d5..045b1354041 100644 --- a/changelog/unreleased/12749.md +++ b/changelog/unreleased/12749.md @@ -5,6 +5,7 @@ The Conan builds on GitHub now build the client with the crash reporter Craft CI was removed, no CI build compiled its code, so changes that broke it went unnoticed. Moving to the recipes that carry the new package also updates harfbuzz to 15.2.0, expat to 2.11.0 and the Conan build -tools CMake to 4.5.1 and Meson to 1.12.1. +tools CMake to 4.5.1 and Meson to 1.12.1. SQLite is now built without its +command-line shell, which the client never used. https://github.com/owncloud/client/pull/12749 diff --git a/conanfile.py b/conanfile.py index c9c10f6d590..840bcaeb289 100644 --- a/conanfile.py +++ b/conanfile.py @@ -59,6 +59,8 @@ class OwncloudClientConan(ConanFile): "qt/*:with_libjpeg": "libjpeg", "qt/*:with_odbc": False, "qt/*:with_pq": False, + # The client links the sqlite3 library only; its shell is neither used nor shipped. + "sqlite3/*:build_executable": False, } def configure(self):