|
| 1 | +## Source-from-tarball qt6-5compat recipe — M9.R.15q.5.10 KF6/Plasma blocker. |
| 2 | +## qt6-5compat supplies QtCore5Compat (libQt6Core5Compat.so) which kwin |
| 3 | +## 6.2.5 declares as a mandatory Qt6 component in its top-level |
| 4 | +## ``find_package(Qt6 ... COMPONENTS ... Core5Compat ...)``. Without it |
| 5 | +## the kwin compositor build cannot configure. |
| 6 | +## |
| 7 | +## sha256 = 05c8c088b4cd8331fa8a9c8b7ff7c42a088cb112e673eae5708048d0131264fc |
| 8 | +## (computed locally over the vendored |
| 9 | +## ``qt5compat-everywhere-src-6.8.1.tar.xz``, 14,632,944 bytes; |
| 10 | +## downloaded once from the upstream URL recorded in ``versions:`` |
| 11 | +## below). |
| 12 | +## |
| 13 | +## Version 6.8.1 matches sibling qt6-base / qt6-tools / qt6-declarative. |
| 14 | + |
| 15 | +import repro_project_dsl |
| 16 | +import repro_dsl_stdlib/constructors |
| 17 | +import repro_dsl_stdlib/types/package_result |
| 18 | + |
| 19 | +package qt6Core5CompatSource: |
| 20 | + ## From-source qt6-5compat — M9.R.15q.5.10 KF6/Plasma blocker. |
| 21 | + ## Sibling to qt6-base (qt6BaseSource); shares the same 6.8.1 pin. |
| 22 | + |
| 23 | + versions: |
| 24 | + "6.8.1": |
| 25 | + sourceRevision = "v6.8.1" |
| 26 | + sourceUrl = "https://download.qt.io/official_releases/qt/6.8/6.8.1/submodules/qt5compat-everywhere-src-6.8.1.tar.xz" |
| 27 | + sourceRepository = "https://code.qt.io/qt/qt5compat.git" |
| 28 | + |
| 29 | + fetch: |
| 30 | + ## M9.R.15q.5.10 — vendored tarball + file:./ relative URL form |
| 31 | + ## (introduced M9.R.15q.5.4) so the recipe stays portable across |
| 32 | + ## hosts and offline-reproducible. |
| 33 | + url: "file:./vendor/qt5compat-everywhere-src-6.8.1.tar.xz" |
| 34 | + sha256: "05c8c088b4cd8331fa8a9c8b7ff7c42a088cb112e673eae5708048d0131264fc" |
| 35 | + extractStrip: 1 |
| 36 | + |
| 37 | + nativeBuildDeps: |
| 38 | + "cmake >=3.21" |
| 39 | + "ninja >=1.10" |
| 40 | + "gcc >=11" |
| 41 | + "perl >=5.32" |
| 42 | + "pkg-config" |
| 43 | + "python3 >=3.8" |
| 44 | + "qt6-tools >=6.8" |
| 45 | + |
| 46 | + buildDeps: |
| 47 | + "qt6-base >=6.8" |
| 48 | + |
| 49 | + config: |
| 50 | + discard |
| 51 | + |
| 52 | + library libQt6Core5Compat: |
| 53 | + ## ``libQt6Core5Compat.so`` — Qt5-compat layer kwin 6.2.5 consumes |
| 54 | + ## for legacy QTextCodec + QStringList compat shims. v1 records |
| 55 | + ## the artifact only. |
| 56 | + discard |
| 57 | + |
| 58 | + build: |
| 59 | + setCurrentOwningPackageOverride("qt6Core5CompatSource") |
| 60 | + try: |
| 61 | + # Same SBOM disable as siblings (qt6-base / qt6-tools / |
| 62 | + # qt6-declarative / qt6-svg). SBOM gen hard-codes the canonical |
| 63 | + # Qt-6.8.1 prefix which doesn't match our buildDir/out/usr |
| 64 | + # install layout. |
| 65 | + let opts = @[ |
| 66 | + "BUILD_TESTING=OFF", |
| 67 | + "CMAKE_BUILD_TYPE=Release", |
| 68 | + "QT_BUILD_TESTS=OFF", |
| 69 | + "QT_BUILD_EXAMPLES=OFF", |
| 70 | + "QT_GENERATE_SBOM=OFF", |
| 71 | + ] |
| 72 | + let pkg = cmake_package(srcDir = "./src", cacheVars = opts) |
| 73 | + discard pkg.library("libQt6Core5Compat") |
| 74 | + finally: |
| 75 | + clearCurrentOwningPackageOverride() |
| 76 | + |
| 77 | + runtimeDeps: |
| 78 | + discard |
0 commit comments