Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package noctalia-greeter for openSUSE:Factory checked in at 2026-12-02 17:07:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/noctalia-greeter (Old) and /work/SRC/openSUSE:Factory/.noctalia-greeter.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "noctalia-greeter" Wed Dec 2 17:07:05 2026 rev:4 rq:1402415 version:1.7.2 Changes: -------- --- /work/SRC/openSUSE:Factory/noctalia-greeter/noctalia-greeter.changes 2026-11-21 21:47:57.322054333 +0100 +++ /work/SRC/openSUSE:Factory/.noctalia-greeter.new.1340718/noctalia-greeter.changes 2026-12-02 17:09:29.032033347 +0100 @@ -1,0 +2,13 @@ +Wed Dec 02 13:33:10 UTC 2026 - Khang LĂȘ <[email protected]> + +- Update to version 1.7.2: + * chore(version): bump version + * fix(compositor): wait for display GPUs held by another DRM master (#206) + * ci(release): require approved OpenPGP tag signatures + * docs(security): add trusted maintainer signing key + * chore(flake): update flake.lock + * chore(flake): update flake.lock + * chore(flake): update flake.lock + * ci(workflows): remove Cachix and flake update workflows + +------------------------------------------------------------------- Old: ---- noctalia-greeter-1.7.1.obscpio New: ---- noctalia-greeter-1.7.2.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ noctalia-greeter.spec ++++++ --- /var/tmp/diff_new_pack.yFrVAh/_old 2026-12-02 17:09:30.562098094 +0100 +++ /var/tmp/diff_new_pack.yFrVAh/_new 2026-12-02 17:09:30.564098178 +0100 @@ -17,7 +17,7 @@ Name: noctalia-greeter -Version: 1.7.1 +Version: 1.7.2 Release: 0 Summary: Greeter for Noctalia v5 License: MIT ++++++ _service ++++++ --- /var/tmp/diff_new_pack.yFrVAh/_old 2026-12-02 17:09:30.591099321 +0100 +++ /var/tmp/diff_new_pack.yFrVAh/_new 2026-12-02 17:09:30.593099406 +0100 @@ -2,7 +2,7 @@ <service name="obs_scm" mode="manual"> <param name="url">https://github.com/noctalia-dev/noctalia-greeter.git</param> <param name="scm">git</param> - <param name="revision">v1.7.1</param> + <param name="revision">v1.7.2</param> <param name="versionformat">@PARENT_TAG@</param> <param name="versionrewrite-pattern">v(.*)</param> <param name="changesgenerate">enable</param> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.yFrVAh/_old 2026-12-02 17:09:30.614100294 +0100 +++ /var/tmp/diff_new_pack.yFrVAh/_new 2026-12-02 17:09:30.617100421 +0100 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/noctalia-dev/noctalia-greeter.git</param> - <param name="changesrevision">2726e75375d95d5458d021f76c330ab14f6a5d03</param></service></servicedata> + <param name="changesrevision">2e374531d33641146a421708c82605e63275842f</param></service></servicedata> (No newline at EOF) ++++++ noctalia-greeter-1.7.1.obscpio -> noctalia-greeter-1.7.2.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/noctalia-greeter-1.7.1/.github/release_keys/4f5283a4b2b96ed8fe4e3e38c07c158ba51c22aa.asc new/noctalia-greeter-1.7.2/.github/release_keys/4f5283a4b2b96ed8fe4e3e38c07c158ba51c22aa.asc --- old/noctalia-greeter-1.7.1/.github/release_keys/4f5283a4b2b96ed8fe4e3e38c07c158ba51c22aa.asc 1970-01-01 01:00:00.000000000 +0100 +++ new/noctalia-greeter-1.7.2/.github/release_keys/4f5283a4b2b96ed8fe4e3e38c07c158ba51c22aa.asc 2026-12-02 11:23:06.000000000 +0100 @@ -0,0 +1,9 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mDMEaw76KxYJKwYBBAHaRw8BAQdAAWOw4LxtfSHqD0L0JHkdaUgDHzxPIN9iJdGV +rqk6enG0GkxlbW15IDxsZW1teUBub2N0YWxpYS5kZXY+iJkEExYKAEEWIQRPUoOk +srlu2P5OPjjAfBWLpRwiqgUCaw76KwIbAwUJCWYBgAULCQgHAgIiAgYVCgkICwIE +FgIDAQIeBwIXgAAKCRDAfBWLpRwiqopCAP4hv+WtZ1lG4HDUbGwLNRs+3Yodm27M +/7wghTUk/h/ZOgD+OmWVpN554J6JLwUQkbH8lxmv1vpE7IV9eymBbJ515wY= +=Yxrh +-----END PGP PUBLIC KEY BLOCK----- \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/noctalia-greeter-1.7.1/.github/release_keys/5ed4fa03aa76ca17d2d50cec19ae90196d0ba986.asc new/noctalia-greeter-1.7.2/.github/release_keys/5ed4fa03aa76ca17d2d50cec19ae90196d0ba986.asc --- old/noctalia-greeter-1.7.1/.github/release_keys/5ed4fa03aa76ca17d2d50cec19ae90196d0ba986.asc 1970-01-01 01:00:00.000000000 +0100 +++ new/noctalia-greeter-1.7.2/.github/release_keys/5ed4fa03aa76ca17d2d50cec19ae90196d0ba986.asc 2026-12-02 11:23:06.000000000 +0100 @@ -0,0 +1,53 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBGnBUFcBEADCIutAz83QrQ92ASDNvyiSaiTVPQQMcQBZ/gNYWWrpYrb0uoY+ +1otD/oV/9JX/Gq2Ge9LELPdiHUVOuSkoAn6eEowvheqOgAs6iRzHnV7XcYJ65s0t +EyDpkh60yof8XTI3HGSbX/P9OmvvBawb4gGKOs67yvYSAojnNB0MZAkf0bbSikQ+ +KfLbrfOnGNcOIQ7kD9i0+h4aIEnMbezqqjCwE8HHBMCjLtjPXFM7Oo76nNMB3bQP +JMzKIaruX5wLmoLENy3V7kwmBLjS/Pjh4D2JuTz5x7/advq7bfNdabc7Kmzr0qBf +WO16SKsbf3kp9SaIVmIszbxLHOCFKZjPdr/mtSbmNOymJebWgG/VaQNUznW3CM+T +2DQJHiq7ObAUX25HE1mGiugvJLNWKjn1Iq+iHE8o+iEJKi+iGsl2Jj2rt5UWKHBv +chBFLI8Ta/kEayXQ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1+6aMEvMm/O5uCYp7s9pewiX1Hz0+J0F/wKAo +viEHi5TBnrJwMXDOR2kEc1MrKupZPCBJ4JHywoORKb9WVDqs+WpLWtTQbF/yzwS8 +Xg5A47O6R7jGEn5LDcQ0Xl62zj4XPqCqhzsIKpUstT7jlrjP/WP6FXMwE+ZYRjEC +6okoQjnAh6RTQSG822RVs2/s0O6Tjvsxqzaaf0SxAudlrRJpBj1w+TD2S0mwh8qK +HabMTgRBrKT3XXNHH3NhKh3ODgtiC+B+++gH13KlM56RrKEDkbWT+E9z6G6uiWXy +eBGOe5Z3WIWUVad6ZmXhAv/0MmkruDaDBMaMlK3gz2DnSk/htw1h0NW+bfNkMB4p +NucvK/acazplrI4kpowD/aoBWEZrxoL0q0NOjjgl3H/hncuLGc0OAKS/PnU1ytHe +R5+PJOewDgBAYsxWtnKwIqlk0w5+kkyQ09wAixk+eBadhGa4zwDemfqHQudmMKQO +/QuRiM83SQ== +=JKs+ +-----END PGP PUBLIC KEY BLOCK----- \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/noctalia-greeter-1.7.1/.github/workflows/cachix.yml new/noctalia-greeter-1.7.2/.github/workflows/cachix.yml --- old/noctalia-greeter-1.7.1/.github/workflows/cachix.yml 2026-11-20 15:11:53.000000000 +0100 +++ new/noctalia-greeter-1.7.2/.github/workflows/cachix.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,29 +0,0 @@ -name: cachix - -on: - push: - branches: - - main - workflow_run: - workflows: ["update flake"] - types: - - completed - branches: - - main - workflow_dispatch: - -jobs: - cache: - strategy: - matrix: - runner: [ubuntu-latest, ubuntu-24.04-arm] - runs-on: ${{ matrix.runner }} - if: ${{ github.repository == 'noctalia-dev/noctalia-greeter' }} - steps: - - uses: actions/checkout@v6 - - uses: cachix/install-nix-action@v31 - - uses: cachix/cachix-action@v17 - with: - name: "${{ secrets.CACHIX_CACHE_NAME }}" - authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - run: nix build . diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/noctalia-greeter-1.7.1/.github/workflows/release-signing.yml new/noctalia-greeter-1.7.2/.github/workflows/release-signing.yml --- old/noctalia-greeter-1.7.1/.github/workflows/release-signing.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/noctalia-greeter-1.7.2/.github/workflows/release-signing.yml 2026-12-02 11:23:06.000000000 +0100 @@ -0,0 +1,41 @@ +name: Release signing checks + +on: + push: + branches: [main, master] + paths: + - 'MAINTAINERS.md' + - '.github/release_keys/**' + - '.github/workflows/release.yml' + - '.github/workflows/release-signing.yml' + - '.github/workflows/scripts/verify_release_tag.py' + - '.github/workflows/verify-release-tag.yml' + - '.github/workflows/update-aur-package.yml' + pull_request: + paths: + - 'MAINTAINERS.md' + - '.github/release_keys/**' + - '.github/workflows/release.yml' + - '.github/workflows/release-signing.yml' + - '.github/workflows/scripts/verify_release_tag.py' + - '.github/workflows/verify-release-tag.yml' + - '.github/workflows/update-aur-package.yml' + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + policy: + name: Maintainer public key checks + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 + with: + persist-credentials: false + + - name: Check maintainer public keys + run: python3 .github/workflows/scripts/verify_release_tag.py check-policy --policy . diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/noctalia-greeter-1.7.1/.github/workflows/release.yml new/noctalia-greeter-1.7.2/.github/workflows/release.yml --- old/noctalia-greeter-1.7.1/.github/workflows/release.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/noctalia-greeter-1.7.2/.github/workflows/release.yml 2026-12-02 11:23:06.000000000 +0100 @@ -0,0 +1,49 @@ +name: Release + +on: + push: + tags: + - 'v*' + +permissions: + contents: read + +concurrency: + group: release-${{ github.ref }} + cancel-in-progress: false + +jobs: + verify: + uses: ./.github/workflows/verify-release-tag.yml + + release: + needs: verify + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - name: Check out verified release commit + uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 + with: + ref: ${{ needs.verify.outputs.commit }} + fetch-depth: 0 + persist-credentials: false + + - name: Create GitHub release + env: + GH_TOKEN: ${{ github.token }} + RELEASE_TAG: ${{ github.ref_name }} + VERIFIED_TAG_OBJECT: ${{ needs.verify.outputs.tag_object }} + run: | + set -euo pipefail + remote_tag=$(git ls-remote --exit-code --refs origin "refs/tags/$RELEASE_TAG") + if [[ "$remote_tag" != "$VERIFIED_TAG_OBJECT"$'\t'"refs/tags/$RELEASE_TAG" ]]; then + printf 'Release tag changed after signature verification.\n' >&2 + exit 1 + fi + if gh release view "$RELEASE_TAG" > /dev/null 2>&1; then + printf 'GitHub release %s already exists.\n' "$RELEASE_TAG" + exit 0 + fi + gh release create "$RELEASE_TAG" --verify-tag --generate-notes diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/noctalia-greeter-1.7.1/.github/workflows/scripts/verify_release_tag.py new/noctalia-greeter-1.7.2/.github/workflows/scripts/verify_release_tag.py --- old/noctalia-greeter-1.7.1/.github/workflows/scripts/verify_release_tag.py 1970-01-01 01:00:00.000000000 +0100 +++ new/noctalia-greeter-1.7.2/.github/workflows/scripts/verify_release_tag.py 2026-12-02 11:23:06.000000000 +0100 @@ -0,0 +1,208 @@ +#!/usr/bin/env python3 +"""Verify release tags against a separately checked-out maintainer policy.""" + +from __future__ import annotations + +import argparse +import os +import re +import shutil +import subprocess +import sys +import tempfile +from pathlib import Path +from typing import NamedTuple + + +TABLE_HEADER = [ + "Name", "Mail", "OpenPGP Key ID", "OpenPGP Key Fingerprint", "GitHub Username", +] +FINGERPRINT = re.compile(r"(?:[0-9A-F]{40}|[0-9A-F]{64})\Z") +OBJECT_ID = re.compile(r"(?:[0-9a-f]{40}|[0-9a-f]{64})\Z") +REJECTED_STATUS = { + "BADSIG", "ERRSIG", "EXPSIG", "EXPKEYSIG", "REVKEYSIG", "KEYEXPIRED", + "SIGEXPIRED", "KEYREVOKED", "NO_PUBKEY", "FAILURE", "NODATA", +} + + +class VerificationError(Exception): + pass + + +class VerifiedTag(NamedTuple): + commit: str + tag_object: str + signer: str + + +def table_cells(line: str) -> list[str]: + return [cell.strip() for cell in line.strip().strip("|").split("|")] + + +def maintainer_fingerprints(text: str) -> set[str]: + lines = text.splitlines() + headers = [i for i, line in enumerate(lines) if table_cells(line) == TABLE_HEADER] + if len(headers) != 1: + raise VerificationError("MAINTAINERS.md must contain one canonical maintainer table") + start = headers[0] + 1 + if start >= len(lines) or len(table_cells(lines[start])) != len(TABLE_HEADER) or not all( + re.fullmatch(r":?-+:?", cell) for cell in table_cells(lines[start]) + ): + raise VerificationError("invalid maintainer table separator") + + fingerprints: set[str] = set() + for line in lines[start + 1:]: + if not line.strip().startswith("|"): + break + cells = table_cells(line) + if len(cells) != len(TABLE_HEADER) or not all(cells): + raise VerificationError("maintainer rows must have five nonempty fields") + key_id, fingerprint = cells[2:4] + if not FINGERPRINT.fullmatch(fingerprint) or key_id != fingerprint[-16:]: + raise VerificationError("maintainer key ID must match its full uppercase fingerprint") + if fingerprint in fingerprints: + raise VerificationError(f"duplicate maintainer fingerprint: {fingerprint}") + fingerprints.add(fingerprint) + if not fingerprints: + raise VerificationError("the maintainer table is empty") + return fingerprints + + +def run(arguments: list[str], env: dict[str, str]) -> subprocess.CompletedProcess[str]: + result = subprocess.run(arguments, env=env, capture_output=True, text=True, timeout=30) + if result.returncode: + raise VerificationError(f"{arguments[0]} failed: {result.stderr.strip()}") + return result + + +def verification_environment(home: Path) -> dict[str, str]: + return { + **os.environ, + "GNUPGHOME": str(home), + "GIT_CONFIG_GLOBAL": os.devnull, + "GIT_CONFIG_NOSYSTEM": "1", + "GIT_NO_REPLACE_OBJECTS": "1", + } + + +def import_policy(policy: Path, home: Path, env: dict[str, str]) -> set[str]: + fingerprints = maintainer_fingerprints((policy / "MAINTAINERS.md").read_text()) + keys = policy / ".github" / "release_keys" + expected_files = {f"{fingerprint.lower()}.asc" for fingerprint in fingerprints} + if {path.name for path in keys.glob("*.asc")} != expected_files: + raise VerificationError("release_keys must contain exactly one public key per listed fingerprint") + (home / "gpg.conf").write_text("no-auto-key-retrieve\nno-auto-key-import\nno-autostart\n") + gpg = ["gpg", "--no-options", "--homedir", str(home), "--batch", "--no-autostart"] + for fingerprint in sorted(fingerprints): + key = keys / f"{fingerprint.lower()}.asc" + armor = key.read_text(encoding="ascii") + if re.findall(r"-----BEGIN PGP (.*?)-----", armor) != ["PUBLIC KEY BLOCK"]: + raise VerificationError(f"{key.name} must contain one armored public key") + records = run(gpg + ["--with-colons", "--show-keys", "--fingerprint", str(key)], env).stdout + primary_fingerprints = [] + primary = False + for line in records.splitlines(): + fields = line.split(":") + if fields[0] == "pub": + primary = True + elif fields[0] == "fpr" and primary: + primary_fingerprints.append(fields[9]) + primary = False + if primary_fingerprints != [fingerprint]: + raise VerificationError(f"public key does not match listed fingerprint: {fingerprint}") + run(gpg + ["--import-options", "import-minimal", "--import", str(key)], env) + return fingerprints + + +def approved_signer(status: str, fingerprints: set[str]) -> str: + records = [line.removeprefix("[GNUPG:] ").split() for line in status.splitlines() + if line.startswith("[GNUPG:] ")] + if any(record[0] in REJECTED_STATUS for record in records if record): + raise VerificationError("tag has an invalid, expired, or revoked OpenPGP signature") + valid = [record for record in records if record and record[0] == "VALIDSIG"] + if len(valid) != 1 or len(valid[0]) != 11 or not any( + record and record[0] == "GOODSIG" for record in records + ): + raise VerificationError("tag must have one valid OpenPGP signature") + # VALIDSIG ends with the primary fingerprint, including for signing subkeys. + primary = valid[0][10] + if primary not in fingerprints: + raise VerificationError(f"tag signer is not an approved maintainer: {primary}") + return primary + + +def project_version(source: str) -> str: + project = re.match(r"\s*project\((.*?)^\)", source, re.MULTILINE | re.DOTALL) + versions = re.findall(r"^\s*version:\s*'([^'\r\n]+)',[ \t]*$", project[1], re.MULTILINE) if project else [] + if len(versions) != 1: + raise VerificationError("meson.build must begin with a project() containing one literal version") + return versions[0] + + +def verify_tag(repository: Path, policy: Path, tag: str, expected_commit: str) -> VerifiedTag: + if not OBJECT_ID.fullmatch(expected_commit): + raise VerificationError("expected commit must be a full Git object ID") + with tempfile.TemporaryDirectory(prefix="noctalia-greeter-release-verify-") as temporary: + home = Path(temporary) + env = verification_environment(home) + git = ["git", "-C", str(repository)] + ref = f"refs/tags/{tag}" + run(git + ["check-ref-format", ref], env) + if run(git + ["cat-file", "-t", ref], env).stdout.strip() != "tag": + raise VerificationError("release tag must be an annotated, signed tag") + raw_tag = run(git + ["cat-file", "tag", ref], env).stdout + header = raw_tag.split("\n\n", 1)[0].splitlines() + if f"tag {tag}" not in header or "type commit" not in header: + raise VerificationError("signed tag name/target does not match the release tag") + commit = run(git + ["rev-parse", "--verify", f"{ref}^{{commit}}"], env).stdout.strip() + expected = run(git + ["rev-parse", "--verify", f"{expected_commit}^{{commit}}"], env).stdout.strip() + if commit != expected: + raise VerificationError("release tag no longer points to the triggering commit") + version = project_version(run(git + ["show", f"{commit}:meson.build"], env).stdout) + if tag != f"v{version}": + raise VerificationError("release tag does not match the commit's meson.build project version") + fingerprints = import_policy(policy, home, env) + gpg = shutil.which("gpg") + if gpg is None: + raise VerificationError("gpg is required") + result = run(git + [ + "-c", "gpg.format=openpgp", "-c", f"gpg.openpgp.program={gpg}", + "verify-tag", "--raw", ref, + ], env) + signer = approved_signer(result.stderr, fingerprints) + tag_object = run(git + ["rev-parse", "--verify", ref], env).stdout.strip() + return VerifiedTag(commit, tag_object, signer) + + +def main() -> int: + parser = argparse.ArgumentParser(description=__doc__) + commands = parser.add_subparsers(dest="command", required=True) + check = commands.add_parser("check-policy") + check.add_argument("--policy", type=Path, required=True) + verify = commands.add_parser("verify") + verify.add_argument("--policy", type=Path, required=True) + verify.add_argument("--repository", type=Path, required=True) + verify.add_argument("--tag", required=True) + verify.add_argument("--expected-commit", required=True) + verify.add_argument("--github-output", type=Path) + args = parser.parse_args() + try: + if args.command == "check-policy": + with tempfile.TemporaryDirectory(prefix="noctalia-greeter-release-policy-") as temporary: + home = Path(temporary) + fingerprints = import_policy(args.policy, home, verification_environment(home)) + print(f"Validated {len(fingerprints)} maintainer public keys") + else: + result = verify_tag(args.repository, args.policy, args.tag, args.expected_commit) + print(f"Verified {args.tag} at {result.commit} with maintainer key {result.signer}") + if args.github_output: + with args.github_output.open("a") as output: + output.write(f"commit={result.commit}\ntag_object={result.tag_object}\n") + except (VerificationError, OSError, subprocess.TimeoutExpired) as error: + print(f"error: {error}", file=sys.stderr) + return 1 + return 0 + + +if __name__ == "__main__": + sys.exit(main()) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/noctalia-greeter-1.7.1/.github/workflows/update-aur-package.yml new/noctalia-greeter-1.7.2/.github/workflows/update-aur-package.yml --- old/noctalia-greeter-1.7.1/.github/workflows/update-aur-package.yml 2026-11-20 15:11:53.000000000 +0100 +++ new/noctalia-greeter-1.7.2/.github/workflows/update-aur-package.yml 2026-12-02 11:23:06.000000000 +0100 @@ -6,8 +6,19 @@ - 'v*' workflow_dispatch: +permissions: + contents: read + +concurrency: + group: aur-release-${{ github.ref }} + cancel-in-progress: false + jobs: + verify: + uses: ./.github/workflows/verify-release-tag.yml + aur-sync: + needs: verify name: Sync PKGBUILD with release runs-on: ubuntu-latest container: @@ -27,6 +38,12 @@ set -euo pipefail pacman -Syu --noconfirm git base-devel pacman-contrib openssh + - name: Check out verified release commit + uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 + with: + ref: ${{ needs.verify.outputs.commit }} + persist-credentials: false + - name: Create build user run: | set -euo pipefail @@ -83,10 +100,17 @@ - name: Commit and push changes env: + RELEASE_TAG: ${{ github.ref_name }} + VERIFIED_TAG_OBJECT: ${{ needs.verify.outputs.tag_object }} PKGVER: ${{ steps.vars.outputs.pkgver }} working-directory: ${{ github.workspace }}/aur run: | set -euo pipefail + remote_tag=$(git -C "$GITHUB_WORKSPACE" ls-remote --exit-code --refs origin "refs/tags/$RELEASE_TAG") + if [[ "$remote_tag" != "$VERIFIED_TAG_OBJECT"$'\t'"refs/tags/$RELEASE_TAG" ]]; then + printf 'Release tag changed after signature verification.\n' >&2 + exit 1 + fi git config --global --add safe.directory "$PWD" git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/noctalia-greeter-1.7.1/.github/workflows/update-flake.yml new/noctalia-greeter-1.7.2/.github/workflows/update-flake.yml --- old/noctalia-greeter-1.7.1/.github/workflows/update-flake.yml 2026-11-20 15:11:53.000000000 +0100 +++ new/noctalia-greeter-1.7.2/.github/workflows/update-flake.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,56 +0,0 @@ -name: update flake - -on: - schedule: - - cron: "0 0 * * 0" - - cron: "0 * * * *" - workflow_dispatch: - -concurrency: - group: update-flake - cancel-in-progress: false - -jobs: - update: - runs-on: ubuntu-latest - timeout-minutes: 10 - if: ${{ github.repository == 'noctalia-dev/noctalia-greeter' }} - permissions: - contents: write - steps: - - uses: actions/checkout@v6 - - uses: cachix/install-nix-action@v31 - - - name: Compare glibc versions - id: glibc - if: ${{ github.event_name == 'schedule' && github.event.schedule == '0 * * * *' }} - run: | - set -euo pipefail - locked_glibc=$(nix eval --raw --inputs-from . nixpkgs#glibc.version) - unstable_glibc=$(nix eval --raw \ - 'https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz#glibc.version') - echo "Locked glibc: $locked_glibc" - echo "Unstable glibc: $unstable_glibc" - if [[ "$locked_glibc" != "$unstable_glibc" ]]; then - echo "needs_update=true" >> "$GITHUB_OUTPUT" - else - echo "needs_update=false" >> "$GITHUB_OUTPUT" - fi - - - name: Update nixpkgs for a glibc change - if: ${{ steps.glibc.outputs.needs_update == 'true' }} - run: nix flake update nixpkgs - - - name: Update all flake inputs - if: ${{ github.event_name == 'workflow_dispatch' || github.event.schedule == '0 0 * * 0' }} - run: nix flake update - - - uses: stefanzweifel/git-auto-commit-action@v7 - if: >- - ${{ - steps.glibc.outputs.needs_update == 'true' || - github.event_name == 'workflow_dispatch' || - github.event.schedule == '0 0 * * 0' - }} - with: - commit_message: "chore(flake): update flake.lock" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/noctalia-greeter-1.7.1/.github/workflows/verify-release-tag.yml new/noctalia-greeter-1.7.2/.github/workflows/verify-release-tag.yml --- old/noctalia-greeter-1.7.1/.github/workflows/verify-release-tag.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/noctalia-greeter-1.7.2/.github/workflows/verify-release-tag.yml 2026-12-02 11:23:06.000000000 +0100 @@ -0,0 +1,49 @@ +name: Verify release tag + +on: + workflow_call: + outputs: + commit: + description: Verified release commit + value: ${{ jobs.verify.outputs.commit }} + tag_object: + description: Verified annotated tag object + value: ${{ jobs.verify.outputs.tag_object }} + +permissions: + contents: read + +jobs: + verify: + name: Verify release signature + runs-on: ubuntu-latest + outputs: + commit: ${{ steps.signature.outputs.commit }} + tag_object: ${{ steps.signature.outputs.tag_object }} + + steps: + - name: Check out trusted release policy + uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 + with: + ref: ${{ github.event.repository.default_branch }} + path: policy + persist-credentials: false + + - name: Check out triggering commit and tags + uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 + with: + ref: ${{ github.sha }} + path: source + fetch-depth: 0 + persist-credentials: false + + - name: Verify approved OpenPGP signature and release version + id: signature + env: + RELEASE_TAG: ${{ github.ref_name }} + RELEASE_COMMIT: ${{ github.sha }} + run: | + python3 policy/.github/workflows/scripts/verify_release_tag.py verify \ + --policy policy --repository source \ + --tag "$RELEASE_TAG" --expected-commit "$RELEASE_COMMIT" \ + --github-output "$GITHUB_OUTPUT" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/noctalia-greeter-1.7.1/CONTRIBUTING.md new/noctalia-greeter-1.7.2/CONTRIBUTING.md --- old/noctalia-greeter-1.7.1/CONTRIBUTING.md 2026-11-20 15:11:53.000000000 +0100 +++ new/noctalia-greeter-1.7.2/CONTRIBUTING.md 2026-12-02 11:23:06.000000000 +0100 @@ -107,6 +107,34 @@ when appropriate, [`examples/greeter.toml`](examples/greeter.toml) in the same pull request. Keep installation and runtime setup details in `README.md` when they apply to users rather than only contributors. +## Releases and signing + +The literal `version:` in the root `meson.build` project declaration is the canonical build version. The release tag must be `v` followed by that exact version. Replace `vX.Y.Z` below with the matching tag. Release tags must be annotated OpenPGP-signed tags made by a maintainer in [MAINTAINERS.md](MAINTAINERS.md). Valid signing subkeys bound to a listed primary fingerprint are accepted. A signed commit with a lightweight tag does not satisfy this policy. + +Merge the release workflow, verifier and signing policy into the default branch before releasing. After committing the intended version, create, verify and push the signed tag locally: + +```sh +git -c gpg.format=openpgp tag -s vX.Y.Z -m "Release vX.Y.Z" +git verify-tag vX.Y.Z +git push origin vX.Y.Z +``` + +The verification job reads `MAINTAINERS.md`, `.github/release_keys/` and the verifier from the default branch, independently of the tagged source. It checks the signature, tag name, version and triggering commit before publication. The publication job checks out that verified commit and refuses a changed remote tag object before creating the GitHub release with generated notes. The workflow never creates or moves tags. The `gh release create --verify-tag` option checks tag existence; the separate verification job checks the OpenPGP signature. + +Store exactly one armored public key per maintainer at `.github/release_keys/<lowercase-primary-fingerprint>.asc`. Public-key fingerprints must match the full primary fingerprints in `MAINTAINERS.md`. Verification uses a temporary keyring, requires no maintainer private key in CI and retrieves no keys from a keyserver. Invalid, missing, expired, revoked or unapproved tag signatures stop publication. The Release signing checks workflow validates the public-key policy on pull requests and pushes to main or master, including Markdown-only policy changes. + +To add, rotate or remove a key, update the maintainer table and public key files together. Sign that change's commit with a previously approved key as required by `MAINTAINERS.md`, and have reviewers check it against the previous list. A newly added key cannot authorize its own addition. Current default-branch policy also governs reruns of older releases. + +Run the public-key check locally with Python 3 and GnuPG: + +```sh +python3 .github/workflows/scripts/verify_release_tag.py check-policy --policy . +``` + +This step enforces tag signatures. Archive signing remains separate under the policy in `MAINTAINERS.md`. + +The AUR update workflow uses the same verification job and rechecks the remote tag object before pushing package changes. Both tag pushes and manual runs must target the signed release tag. A manual rerun can be started with `gh workflow run update-aur-package.yml --ref vX.Y.Z`. Its existing AUR SSH credential is used only for package publication. + ## Pull request process Pull request descriptions are checked automatically when they are opened, edited, reopened, or marked ready for diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/noctalia-greeter-1.7.1/MAINTAINERS.md new/noctalia-greeter-1.7.2/MAINTAINERS.md --- old/noctalia-greeter-1.7.1/MAINTAINERS.md 1970-01-01 01:00:00.000000000 +0100 +++ new/noctalia-greeter-1.7.2/MAINTAINERS.md 2026-12-02 11:23:06.000000000 +0100 @@ -0,0 +1,12 @@ +# Maintainers + +This file contains the list of trusted maintainers who are expected to sign Git tags and release artifacts for this project. + +If a Git tag or release artifact is missing a signature, or the signature was made by a key holder / OpenPGP key ID that is not listed below, it should **not** be trusted. + +Any update to the list below is expected to be made through a commit signed with one of the keys **already listed before the modification**. Otherwise, the modification should **not** be trusted. + +| Name | Mail | OpenPGP Key ID | OpenPGP Key Fingerprint | GitHub Username | +| ----- | ------------------ | ---------------- | ---------------------------------------- | --------------- | +| Lysec | [email protected] | 19AE90196D0BA986 | 5ED4FA03AA76CA17D2D50CEC19AE90196D0BA986 | Ly-sec | +| Lemmy | [email protected] | C07C158BA51C22AA | 4F5283A4B2B96ED8FE4E3E38C07C158BA51C22AA | ItsLemmy | diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/noctalia-greeter-1.7.1/README.md new/noctalia-greeter-1.7.2/README.md --- old/noctalia-greeter-1.7.1/README.md 2026-11-20 15:11:53.000000000 +0100 +++ new/noctalia-greeter-1.7.2/README.md 2026-12-02 11:23:06.000000000 +0100 @@ -74,6 +74,8 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for contributor guidance. +See [MAINTAINERS.md](MAINTAINERS.md) for trusted release signers and the signature policy. + --- ## License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/noctalia-greeter-1.7.1/docs/user/troubleshooting.md new/noctalia-greeter-1.7.2/docs/user/troubleshooting.md --- old/noctalia-greeter-1.7.1/docs/user/troubleshooting.md 2026-11-20 15:11:53.000000000 +0100 +++ new/noctalia-greeter-1.7.2/docs/user/troubleshooting.md 2026-12-02 11:23:06.000000000 +0100 @@ -66,6 +66,11 @@ it never acquires a mode. An explicit output pin still limits the greeter to the selected display; remove the pin to allow another connected display. +If the compositor logs `display GPU unavailable, retry`, another process held +DRM master on a GPU with a connected display when the greeter started. The +compositor retries for about 10 seconds, then starts on the GPUs it could open. +To find the holder, run `sudo fuser -v /dev/dri/card*` from another VT. + ### Intel eDP stays black until a VT switch If the compositor log shows a successful output modeset and first frame, but an diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/noctalia-greeter-1.7.1/flake.lock new/noctalia-greeter-1.7.2/flake.lock --- old/noctalia-greeter-1.7.1/flake.lock 2026-11-20 15:11:53.000000000 +0100 +++ new/noctalia-greeter-1.7.2/flake.lock 2026-12-02 11:23:06.000000000 +0100 @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1794386569, - "narHash": "sha256-W60urNAgQVS8bhNWH0bQsYoiagds8m38oTDUjEOM9FE=", - "rev": "d4f25a3e562008648d45bcf2d70bcc7422cad84e", + "lastModified": 1795761588, + "narHash": "sha256-ezVcMHqgm9JpcUJTp2LqhdBJ52vlvU2Xkl9SobPzJFk=", + "rev": "78cc855faf4382e44b781c23bf9f456b924ef0e2", "type": "tarball", - "url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1117658.d4f25a3e5620/nixexprs.tar.zst" + "url": "https://releases.nixos.org/nixos/unstable/nixos-27.05pre1131287.78cc855faf43/nixexprs.tar.zst" }, "original": { "type": "tarball", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/noctalia-greeter-1.7.1/meson.build new/noctalia-greeter-1.7.2/meson.build --- old/noctalia-greeter-1.7.1/meson.build 2026-11-20 15:11:53.000000000 +0100 +++ new/noctalia-greeter-1.7.2/meson.build 2026-12-02 11:23:06.000000000 +0100 @@ -1,5 +1,5 @@ project('noctalia-greeter', ['c', 'cpp'], - version: '1.7.1', + version: '1.7.2', default_options: [ 'cpp_std=c++20', 'cpp_extensions=false', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/noctalia-greeter-1.7.1/src/compositor/noctalia_compositor.c new/noctalia-greeter-1.7.2/src/compositor/noctalia_compositor.c --- old/noctalia-greeter-1.7.1/src/compositor/noctalia_compositor.c 2026-11-20 15:11:53.000000000 +0100 +++ new/noctalia-greeter-1.7.2/src/compositor/noctalia_compositor.c 2026-12-02 11:23:06.000000000 +0100 @@ -19,6 +19,7 @@ #include <stdlib.h> #include <string.h> #include <sys/stat.h> +#include <sys/sysmacros.h> #include <sys/timerfd.h> #include <sys/wait.h> #include <syslog.h> @@ -2625,6 +2626,110 @@ wlr_log(WLR_ERROR, "cursor path '%s' (or its share/icons) has no cursor theme; using it as given", path); } +#define DISPLAY_GPU_WAIT_ATTEMPTS 20 +#define DISPLAY_GPU_WAIT_NSEC 500000000L + +static bool is_drm_card_name(const char* name) { + if (strncmp(name, "card", 4) != 0 || name[4] == '\0') { + return false; + } + for (const char* p = name + 4; *p != '\0'; ++p) { + if (!isdigit((unsigned char)*p)) { + return false; + } + } + return true; +} + +static bool drm_card_has_connected_output(const char* card) { + DIR* dir = opendir("/sys/class/drm"); + if (dir == NULL) { + return false; + } + size_t card_len = strlen(card); + bool connected = false; + const struct dirent* entry; + while (!connected && (entry = readdir(dir)) != NULL) { + if (strncmp(entry->d_name, card, card_len) != 0 || entry->d_name[card_len] != '-') { + continue; + } + char path[PATH_MAX]; + snprintf(path, sizeof(path), "/sys/class/drm/%s/status", entry->d_name); + FILE* file = fopen(path, "r"); + if (file == NULL) { + continue; + } + char status[32] = {0}; + if (fgets(status, sizeof(status), file) != NULL && strncmp(status, "connected", 9) == 0) { + connected = true; + } + fclose(file); + } + closedir(dir); + return connected; +} + +static bool session_has_device(struct wlr_session* session, unsigned int major_num, unsigned int minor_num) { + struct wlr_device* device; + wl_list_for_each(device, &session->devices, link) { + if (major(device->dev) == major_num && minor(device->dev) == minor_num) { + return true; + } + } + return false; +} + +static int count_missing_display_gpus(struct wlr_session* session) { + DIR* dir = opendir("/sys/class/drm"); + if (dir == NULL) { + return 0; + } + int missing = 0; + const struct dirent* entry; + while ((entry = readdir(dir)) != NULL) { + if (!is_drm_card_name(entry->d_name) || !drm_card_has_connected_output(entry->d_name)) { + continue; + } + char path[PATH_MAX]; + snprintf(path, sizeof(path), "/sys/class/drm/%s/dev", entry->d_name); + FILE* file = fopen(path, "r"); + if (file == NULL) { + continue; + } + unsigned int major_num = 0; + unsigned int minor_num = 0; + bool parsed = fscanf(file, "%u:%u", &major_num, &minor_num) == 2; + fclose(file); + if (parsed && !session_has_device(session, major_num, minor_num)) { + compositor_log_stderr(LOG_WARNING, "display GPU %s is not open yet\n", entry->d_name); + missing++; + } + } + closedir(dir); + return missing; +} + +// wlroots skips GPUs it cannot open, e.g. one still held by another DRM master at boot +static struct wlr_backend* create_backend_with_display_gpus(struct wl_event_loop* loop, struct wlr_session** session) { + for (int attempt = 1;; ++attempt) { + struct wlr_backend* backend = wlr_backend_autocreate(loop, session); + if (attempt >= DISPLAY_GPU_WAIT_ATTEMPTS) { + return backend; + } + if (backend != NULL && (*session == NULL || count_missing_display_gpus(*session) == 0)) { + return backend; + } + compositor_log_stderr(LOG_WARNING, "display GPU unavailable, retry %d of %d\n", attempt, DISPLAY_GPU_WAIT_ATTEMPTS); + if (backend != NULL) { + wlr_backend_destroy(backend); + wlr_session_destroy(*session); + *session = NULL; + } + const struct timespec delay = {.tv_sec = 0, .tv_nsec = DISPLAY_GPU_WAIT_NSEC}; + nanosleep(&delay, NULL); + } +} + int main(int argc, char** argv) { compositor_init_logging(); wlr_log_init(compositor_wlr_log_importance(), compositor_wlr_log); @@ -2645,7 +2750,7 @@ return 1; } - server.backend = wlr_backend_autocreate(wl_display_get_event_loop(server.display), &server.session); + server.backend = create_backend_with_display_gpus(wl_display_get_event_loop(server.display), &server.session); if (server.backend == NULL) { compositor_log_stderr(LOG_ERR, "failed to create wlroots backend\n"); cleanup_server_resources(&server); ++++++ noctalia-greeter.obsinfo ++++++ --- /var/tmp/diff_new_pack.yFrVAh/_old 2026-12-02 17:09:30.886111805 +0100 +++ /var/tmp/diff_new_pack.yFrVAh/_new 2026-12-02 17:09:30.889111932 +0100 @@ -1,5 +1,5 @@ name: noctalia-greeter -version: 1.7.1 -mtime: 1795183913 -commit: 2726e75375d95d5458d021f76c330ab14f6a5d03 +version: 1.7.2 +mtime: 1796206986 +commit: 2e374531d33641146a421708c82605e63275842f
