From 83eb8f834ae6ebf2ecda3649a56f96f5c3448ad5 Mon Sep 17 00:00:00 2001 From: James Reilly Date: Mon, 12 Oct 2026 16:01:02 +0000 Subject: [PATCH 01/14] feat(factory): build and verify GNOME 51 on CentOS Stream 10 (#709) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(factory): build the GNOME stack against CentOS Stream 10 bluefin-lts is built on CentOS Stream 10, which ships GNOME 47. The GNOME 50 stack has come from a third-party COPR project. That is not a durable answer for a release line: its contents, its rebuild policy and its availability are all outside this repository's control. factory/ builds the stack here instead, from recipes we control, and publishes it as a signed OCI repository image the Containerfile copies in. 77 recipes are seeded from the working c10s-gnome-50 repository, so the EL10 adaptations already exist and the version bump to GNOME 51 is the remaining work rather than the port. Design decisions: - Packit is the SRPM gate, not the builder. Copr has no CentOS Stream 10 chroot -- EL10 builds there happen in epel-10 or alma-kitten+epel-10, a different ABI from the c10s base this image ships on. .packit.yaml therefore carries no `jobs:` section; binaries are built by factory-build.yml against the digest-pinned c10s root. - Build order is solved from real BuildRequires parsed by rpmspec in the build root, never hand-assigned. A hand-assigned stage hides a new edge until a build fails downstream, and a stage no longer needed still serializes work. - No build downloads anything. config/upstream-sources.json pins the resolved upstream URL and SHA-512 for 75 of 77 recipes; the source is verified before the build and again inside it. - Publication is incremental and gated on the consumer transaction: a failed package keeps its previous build, and the tag does not move unless what the image installs resolves against the candidate. Three things found while building this, worth not rediscovering: - `rpmbuild` with no spec argument globs the working directory, finds nothing in the build output directory, and exits 0 having written nothing. A green build producing no RPMs. Every invocation now names the spec explicitly, with an artifact guard behind it. - CRB ships disabled in c10s, and meson, ninja-build, wayland-devel and gcc++ live only there, so BuildRequires fail with "No matching package to install: meson" -- which reads as a missing package rather than a disabled repository. The requirement is declared in config/buildroot.yaml and asserted by validate.py. - The imported docbook-style-xsl spec carried an upstream typo, `%2F{%version}` with malformed braces, producing a URL that 404s. The digest check surfaced it rather than letting it build from something unexpected. Not done, stated rather than implied: - The recipes are the GNOME 50 set. The tooling is version-agnostic; moving to 51 is a version bump across the stack. - amd64 only. The image publishes arm64 as well, so its manifest cannot consume factory packages yet. - Builds are not hermetic. They run in the pinned container, which gives the right ABI but is not a build root in the sense mock means -- no build user, no isolation, no reset between packages -- and mock-core-configs ships no EL10 chroot. There is no build cache yet. - Nothing has been published to GHCR, so image-versions.yaml carries an empty gnome_packages digest. The image build detects that and falls back to the base image's GNOME rather than failing. Verified: `just factory-check` green; 53 unit tests; actionlint clean across all workflows; `just check` passes; and a real RPM built end to end against the pinned root (wayland-protocols-devel-1.47-2.el10.noarch.rpm). Not verified: `just unit-tests` and `pre-commit run --all-files` were not run, because bats and pre-commit are not installed in this environment. No image build or VM test was run. Assisted-by: Claude Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): fetch full history where the SRPM gate diffs against the PR base The pull-request path of the Packit SRPM gate ran `git diff HEAD` against the default depth-1 checkout, which contains only the single commit that was checked out. The base commit is not in that object database, so the step died on `fatal: bad object 2170146...` -- naming a SHA and saying nothing about the shallow clone being the cause, which is what actually had to change. Two changes: - The checkout for that job requests `fetch-depth: 0`, so the base commit is present. - A `git cat-file -e` guard names the real cause if the base is missing for some other reason, instead of emitting git's "bad object" again. Reproduced locally against a depth-1 clone to confirm both the failure and the fix, rather than assuming. `pkg-cadence.yml` was checked for the same shape and is unaffected: it diffs the working tree with no commit argument, which a shallow clone serves correctly. Assisted-by: Claude Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): drop the PyYAML dependency so the tools run on a bare runner `factory/tools/validate.py` and `buildroot.py` imported `yaml` to read the build root config. GitHub Actions runners install no Python packages -- `actions/setup-python` provides a bare interpreter -- so the validation gate died on `ModuleNotFoundError: No module named 'yaml'` before running a single check. This also contradicted a convention the repository already states: the `read-packages` helper is stdlib-only "no new dependencies", and CI callers rely on that. The dependency passed every local gate because the authoring machine happened to have PyYAML installed, which is the failure mode worth being explicit about: a tool that only works on the machine that wrote it. Changes: - `config/buildroot.yaml` becomes `config/buildroot.json`, read with the standard library `json`. The explanatory comments move into `_comment` keys and the architecture document, since JSON has no comment syntax. - Both tools drop the `yaml` import. - New `validate.py --check dependencies` rejects any non-stdlib import in `factory/tools/`, using `sys.stdlib_module_names` so the list cannot drift. This is the guard against the same mistake recurring: a ModuleNotFoundError names a module and says nothing about the fact that CI never installed it. Verified by reinjecting `import yaml` and confirming the check fails, then removing it again. - `rebuild_plan.py` reads the build root through `buildroot_config()` rather than opening the path itself. It had already been updated to the new path, but a literal path here fails silently: the build root stops contributing to the input digest, and moving it stops selecting anything to rebuild. Verified the digest moves when the pinned digest changes and returns when it is restored. All fifteen tools were then imported under `python3 -S -E`, which suppresses site-packages, to simulate the runner directly rather than reasoning about it. Assisted-by: Claude Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): resolve container mount paths in the Packit SRPM gate `srpm_gate.py` passed the caller's `--output` directory straight into `docker -v`. Both workflows invoke it with a relative path (`--output work/srpm/.src.rpm`), and docker reads a relative host path as a *volume name* rather than a directory: create work/srpm: "work/srpm" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed That message names the path and says nothing about the cause, so it reads like a bad package name rather than a relative path. A missing host path is the more dangerous variant of the same mistake: docker silently creates it as an empty named volume, and the build then runs against nothing. Both are now avoided by resolving the paths and checking the output directory exists before invoking docker. The docker invocation is extracted into `command()` so the paths are testable without a container engine, and `factory/tests/test_srpm_gate.py` pins the behaviour: every `-v` host path must be absolute even when the caller passes a relative one, and a missing output directory is refused rather than becoming a volume. The test was confirmed to fail when the fix is reverted. Checked `extract_buildrequires.py` and `render_source_locks.py` for the same shape; both derive their mount paths from `factory_root()`, which resolves, so neither could be given a relative path. Assisted-by: Claude Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * test(factory): stop asserting on the checkout directory name `test_repository_mount_is_the_repository_not_the_factory` asserted that the repository mount ended with `bluefin-lts-1`. That is this working copy's directory name; CI checks the repository out as `bluefin-lts`, so the test failed on a name and passed only where it happened to be written. The test now compares against the root derived from the test file's own location, and additionally asserts the factory directory itself is *not* what is mounted -- which is the thing the test was actually for, since packit_source0.py resolves the spec against the repository root and mounting only factory/ would leave .packit.yaml and build_scripts out of reach. Verified by copying factory/ into a directory named `bluefin-lts` and running the suite there. Two further fixes while here, both about the test not lying about what it covers: - The recipe used to build a command was hardcoded to gnome-shell, coupling the test to the recipe inventory. It now uses whichever recipe sorts first and skips when the inventory is empty. - `test_end_to_end_through_the_cli` let publish_gate's stderr escape into the test output, printing "did not build: gtk4" mid-run. In a CI log that reads as a real failure. It is now captured and asserted on instead. Assisted-by: Claude Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): lock every source a recipe downloads, not just Source0 The Packit SRPM gate failed on glycin with: error: Bad file: .../glycin-2.0.8-vendor.tar.xz: No such file or directory Two separate problems were behind that, and only one of them was the error being reported. **The lock carried one URL per recipe.** glycin has a second Source -- libjxl 0.11.1, a private copy to avoid the EPEL libjxl-0.10 conflict. Three more recipes do the same: malcontent carries libgsystemservice, docbook-style-xsl carries its docs, source-highlight carries its signature. `render_source_locks` took the first remote Source and ignored the rest, so those recipes passed validation and then failed in `rpmbuild -bs` naming an archive nobody had staged. The lock now records every source, and the pipeline fetches and verifies all of them. Two details that follow from it: - A URL fragment (`...tar.gz#/libjxl-0.11.1`) selects a subdirectory, and rpm names the file after the URL path with the fragment stripped. Staging it as `libjxl-0.11.1.tar.gz` would have left rpmbuild looking for a file that does not exist, so the filename is derived that way. - `.sig` and `.asc` are legitimate sources -- the spec verifies against them -- so they are locked and verified like any other rather than rejected as "not an archive". Re-rendering now reuses digests for URLs that have not changed, so `just factory-relock` fetches only what moved instead of every archive in the factory. This run fetched four. **Three recipes cannot be built at all.** glycin and gnome-user-share need a `cargo vendor` tarball generated by hand; malcontent bundles gvdb and tinycdb. Those sources are neither downloadable nor committed. They are now marked `blocked` in the lock with the reason, excluded from the build list, and refused by the SRPM gate -- so the failure names the reason instead of a missing archive. `validate.py --check generated` reports them without failing, because a recipe correctly identified as unbuildable is a correct state of the configuration, and a permanently red gate is one people stop reading. Committing a generated vendor tarball would mean committing a binary blob whose contents depend on the crates.io index at generation time. That is not a provenance statement, so this is recorded as a decision for a human rather than worked around. Verified: docbook-style-xsl stages and verifies both of its sources; the build list is 74 with the three blocked recipes excluded and none leaked; 72 tests pass, including new coverage for the multi-source lock shape, the fragment handling, and duplicate filenames. Assisted-by: Claude Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): stop pre-commit rewriting imported recipes; retry flaky sources Three problems from one CI run, only the first of which was the one that stopped it. **pre-commit was rewriting the imported recipes.** `end-of-file-fixer` and `trailing-whitespace` ran over `factory/packages/` and modified 68 files, 51 of them patches. That is not cosmetic. Those files are upstream content, imported byte-for-byte and applied with `patch -p1`, and: - a patch that removes a line carrying trailing whitespace stops matching once that whitespace is stripped, so the patch no longer applies. `factory/packages/fontconfig/fontconfig-fix-crash.patch` line 26 removes a line ending in `-- ` and is exactly this case; - AGENTS.md forbids modifying installed upstream/vendor content unless the task is about that content; - it churns the input digest, which decides whether a package is selected for a rebuild, so re-importing the same spec would select the factory for no reason. Both hooks now exclude `^factory/packages/`. Verified by installing pre-commit and running it: `trailing-whitespace` passes, and `git status factory/packages/` is empty afterwards. **fontconfig failed to download.** The gate reported `no source verified ... HTTP Error 500`. The URL was fine -- gitlab.freedesktop.org served the same bytes moments later, digest matching the lock exactly -- but that host answers 500 on a fraction of `/-/archive/` requests, which makes a healthy source a random red build. `_fetch` now retries with exponential backoff, four attempts. Only transient answers are retried: 5xx and 429, never 4xx, because a 404 means the URL is wrong and hammering a host that is certain to say no helps nobody. Retries are announced on stderr rather than hidden -- a source that needed three attempts is a signal about its host, and hiding it makes the gate look more reliable than it is. Verified against a simulated host failing twice with 500 then succeeding (3 attempts, 2 retry messages) and a 404 (1 attempt, raised immediately). **actionlint's shellcheck rejected a workflow.** The comment `this stack's build roots` sits inside a single-quoted `bash -exc '...'` argument, so the apostrophe terminated the string and the rest of the script would have been parsed as shell. All six workflows were swept for the same mistake; this was the only one. Also adds final newlines to 35 files the EOF hook corrected in this run -- these are the repository's own files, not imported recipes. Verified: `pre-commit run --all-files` passes, `just factory-check` green with 72 unit tests, `actionlint` clean, and `bats tests/unit/` green at 176 tests including the 7 new factory-repo assertions. Both were previously unavailable in this environment and have now been run. Assisted-by: Claude Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): repair CentOS build and incremental publication Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): resolve RPM capabilities and preserve input witnesses Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * test(factory): exercise Containerfile wiring and shared SRPM changes in CI Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): pin the SRPM tool and gate tags on signed provenance Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * ci(factory): keep smoke runs isolated by commit Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): name Containerfiles explicitly for Docker builds Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): load CentOS DNF variables and plan the selected build set Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): verify sources against the mounted factory root Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * feat(factory): target GNOME 51 and verify the complete CentOS stack Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * ci(factory): exercise full GNOME builds on pull requests Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): align GNOME 51 archive names and glycin dependency edges Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): solve the GNOME stack against exact upstream minima Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * ci(factory): retain per-wave evidence and admit deeper GNOME graphs Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(ci): restrict wave six to strictly earlier dependencies Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * test(factory): require GNOME 51 in the consumer transaction Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * test(factory): verify reproducible and checksum-locked Rust bundles Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): discover bootstrap specs and port GNOME 51 build options Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): port GNOME 51 PAM packaging and missing prerequisites Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): require the GNOME 51 Meson and Rust toolchains Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): map new capabilities and retry stale DNF metadata Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): resolve Pango prerequisites and verify installed GNOME 51 Disable Meson source fallback downloads and install the resolved consumer transaction before checking core RPM and shell versions. Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): port desktop packaging and Rust target detection Apply the Utah Rust 1.98 vendor-target fix, package new GOA files, correct versioned prerequisites, and unblock the source-locked parental controls build. Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): stage the malcontent archive under its RPM filename Add the C compiler required by the selected notification library. Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): expose missing desktop library capabilities Include the sound, color, mock hardware and Glycin GTK libraries in the calculated dependency closure. Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): honor RPM source aliases and current Autoar options Stage URL fragment aliases under the names rpmbuild actually expects and reject mismatched locks before CI. Remove obsolete Autoar GTK options. Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * feat(factory): build Orca 51 with offline MathCAT support Vendor the explicitly selected nested Cargo.lock, verify its bundle digest, build a native RPM, and test the installed Python binding. Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): match the GNOME 51 JPEG XL binding minimum Upgrade the source-locked private libjxl bundle to 0.11.2 as required by jpegxl-sys, retaining the existing system-library separation. Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): capture Rust license summaries before packaging Redirect the expanded cargo license commands as a group and require their output to be nonempty. Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): satisfy GNOME 51 native build and test requirements Add GTK libdrm headers and the Localsearch fixed-width type include. Detect active SELinux in umockdev tests and allow only open_tree beyond the pinned default seccomp profile, preserving all tests and capabilities. Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): require the GLib API used by malcontent Require GLib 2.84 headers so the pinned CentOS build upgrades the installed base. Keep the umockdev syscall profile with its recipe so incremental witnesses include profile changes. Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): fetch the pinned AppStream source over HTTPS Preserve the AppStream version and SHA-512 checksum while avoiding failures from the plain HTTP endpoint. Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): test packaged glycin loaders in their sandbox Match the manual Meson directory, stage a separate packaged test install under the read-only /usr bind, and permit only the required Bubblewrap namespace syscalls beyond the pinned default profile. Drop the removed GTK symbolic-SVG tool from its file list. Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): resolve private libraries in staged Glycin tests Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): remove retired GTK demo file entries Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * test(factory): gate GNOME builds on dependency-tree preflight Check exact CentOS and candidate capability witnesses before wave zero. Reject missing or incompatible dependencies and invalid plans, with native RPM version regression coverage and a metadata-only local command. Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): reject truncated dependencies and probe Glycin tests early Capture RPM queries with checked writes and verify declared dependency coverage. Qualify workspace loader test IDs, probe Bubblewrap before stack compilation, and retain full integration-test failure logs. Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): allow Glycin namespace mounts with a confined AppArmor profile Retain the pinned Moby default policy except mount and pivot-root permissions needed inside Bubblewrap's private user namespace. Load and select the recipe profile in preflight and both builders, using container-engine feature detection and unchanged capabilities. Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): match Glycin fixtures to enabled loaders Exclude only fixtures for disabled optional HEIF or JPEG XL loaders, keeping every compiled loader's sandbox tests enabled. Verify the RPM macro expansion for all four loader combinations. Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): declare GNOME 51 portal and account prerequisites Adapt the locked Utah portal and AccountsService recipes for CentOS, align declared GNOME source API floors, and retain a checksum-identical Malcontent staging fallback. Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): verify the required SELinux runtime policy Include the existing locked policy recipe in full-stack verification because the compatibility RPM requires a newer policy than the CentOS baseline. Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): package SELinux module stores for CentOS Set the module store relative to the rpmbuild policy root and replace the older exact-version CentOS extra RPMs whose modules are bundled in this policy. Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): complete GNOME 51 runtime package metadata Ship Mutter’s experimental schema, preserve the replaced GdkPixbuf modules capability required by CentOS GTK 3, and exclude the bundled Localsearch ZIP library from external requirements. Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * docs(factory): clarify bootc policy store handling Distinguish the pinned image-mode runtime store from the RPM module store used during package staging. Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): package GNOME Shell calendar desktop entry Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(factory): resolve Initial Setup runtime build prerequisites Check all immutable Podman repository digests while retaining exact pin verification. Order Initial Setup after Shell 51 to avoid the CentOS Control Center AccountsService ABI conflict. Assisted-by: GPT-6 via Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Robin Groves Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../actions/factory-load-buildroot/action.yml | 48 + .github/workflows/factory-build-stage.yml | 135 + .github/workflows/factory-build.yml | 529 +++ .../workflows/factory-packit-srpm-chunk.yml | 55 + .github/workflows/factory-packit-srpm.yml | 164 + .github/workflows/factory-publish.yml | 214 + .github/workflows/factory-smoke.yml | 83 + .github/workflows/factory-stack.yml | 274 ++ .github/workflows/factory-validate.yml | 64 + .gitignore | 24 + .packit.yaml | 500 ++ .pre-commit-config.yaml | 35 + AGENTS.md | 24 + Containerfile | 22 +- Justfile | 88 + build_scripts/build.sh | 15 + docs/skills/INDEX.md | 1 + docs/skills/ci-cd/SKILL.md | 5 +- docs/skills/factory/SKILL.md | 220 + factory/.gitignore | 1 + factory/README.md | 258 + factory/config/buildroot.json | 48 + factory/config/factory-contract.json | 12 + factory/config/gnome-stack.json | 39 + factory/config/upstream-sources.json | 1034 ++++ factory/docs/architecture.md | 239 + factory/empty/.keep | 0 .../accountsservice/.factory-upstream.json | 13 + .../accountsservice/accountsservice.spec | 116 + .../packages/appstream/.factory-upstream.json | 13 + factory/packages/appstream/appstream.spec | 584 +++ ...yle-when-installing-catalog-metadata.patch | 23 + .../at-spi2-core/.factory-upstream.json | 11 + .../packages/at-spi2-core/at-spi2-core.spec | 175 + .../at-spi2-core/xwayland-session-scriptlet | 3 + .../packages/autoconf/.factory-upstream.json | 13 + ...d-lmoldname-in-linker-flags-for-MinG.patch | 35 + .../autoconf/0001-Port-C11-test-to-C.patch | 43 + ...-to-the-on-disk-situation-after-auto.patch | 102 + ...-Invoke-autopoint-in-more-situations.patch | 159 + factory/packages/autoconf/autoconf-init.el | 16 + factory/packages/autoconf/autoconf.spec | 737 +++ factory/packages/autoconf/config.site | 29 + factory/packages/avahi/.factory-upstream.json | 13 + .../avahi/avahi-0.6.30-mono-libdir.patch | 50 + .../avahi/avahi-0.8-no_undefined.patch | 31 + .../avahi/avahi-0.9-CVE-2024-52615.patch | 224 + .../avahi/avahi-0.9-address-data-size.patch | 30 + factory/packages/avahi/avahi.spec | 1643 +++++++ .../blueprint-compiler/.factory-upstream.json | 13 + .../blueprint-compiler.spec | 149 + factory/packages/cairo/.factory-upstream.json | 13 + factory/packages/cairo/cairo-multilib.patch | 34 + factory/packages/cairo/cairo.spec | 159 + .../colord-gtk/.factory-upstream.json | 13 + factory/packages/colord-gtk/colord-gtk.spec | 73 + .../docbook-style-xsl/.factory-upstream.json | 13 + ...tyle-xsl-1.79.2-fix-gtk-doc-multilib.patch | 74 + ...style-xsl-non-recursive-string-subst.patch | 30 + .../docbook-style-xsl.Makefile | 52 + .../docbook-style-xsl/docbook-style-xsl.spec | 605 +++ .../docbook-xsl-list-item-body.patch | 110 + .../docbook-xsl-mandir.patch | 19 + .../docbook-xsl-marginleft.patch | 53 + .../docbook-xsl-newmethods.patch | 394 ++ ...docbook-xsl-non-constant-expressions.patch | 25 + .../docbook-xsl-pagesetup.patch | 281 ++ .../docbook-utils/.factory-upstream.json | 13 + factory/packages/docbook-utils/db2html | 59 + .../packages/docbook-utils/docbook-utils.spec | 570 +++ .../docbook-utils/docbook2man-spec.pl | 1564 +++++++ factory/packages/docbook-utils/gdp-both.dsl | 1061 +++++ .../el10-v2-buildflags/.factory-upstream.json | 13 + .../el10-v2-buildflags.spec | 19 + .../packages/flatpak/.factory-upstream.json | 13 + ...d-support-for-preinstalling-flatpaks.patch | 1859 ++++++++ ...-direct-installation-from-oci-images.patch | 4160 +++++++++++++++++ ...nable-collection-ids-for-oci-remotes.patch | 53 + ...hat.io-get-certificates-from-etc-pki.patch | 123 + ...-containers-certs-for-oci-registries.patch | 2003 ++++++++ ...n-to-flatpak-image-source-new-remote.patch | 104 + ...ideload-repositories-for-oci-remotes.patch | 1676 +++++++ factory/packages/flatpak/flatpak.spec | 921 ++++ .../packages/flatpak/flatpak.sysusers.conf | 1 + .../fontconfig/.factory-upstream.json | 13 + .../fontconfig/25-no-bitmap-fedora.conf | 44 + factory/packages/fontconfig/fc-cache | 4 + ...config-disable-network-required-test.patch | 113 + ...tconfig-drop-lang-from-pkgkit-format.patch | 12 + .../fontconfig/fontconfig-fix-crash.patch | 28 + .../fontconfig-lower-nonlatin-conf.patch | 42 + .../fontconfig/fontconfig-sleep-less.patch | 12 + factory/packages/fontconfig/fontconfig.spec | 1129 +++++ .../gdk-pixbuf2/.factory-upstream.json | 13 + factory/packages/gdk-pixbuf2/gdk-pixbuf2.spec | 138 + factory/packages/gdm/.factory-upstream.json | 13 + .../gdm/0001-Add-headless-session-files.patch | 223 + ...tup-being-disabled-by-distro-install.patch | 70 + ...ystem-dconf-databases-to-gdm-profile.patch | 24 + factory/packages/gdm/gdm.spec | 266 ++ factory/packages/gdm/gdm.sysusers | 1 + .../org.gnome.login-screen.gschema.override | 3 + .../packages/gi-docgen/.factory-upstream.json | 13 + factory/packages/gi-docgen/gi-docgen.spec | 51 + factory/packages/gjs/.factory-upstream.json | 13 + factory/packages/gjs/gjs.spec | 155 + factory/packages/glib2/.factory-upstream.json | 13 + factory/packages/glib2/default-terminal.patch | 33 + factory/packages/glib2/glib2.spec | 245 + factory/packages/glib2/gnutls-hmac.patch | 1047 +++++ .../packages/glycin/.factory-upstream.json | 13 + ...e-manifest-for-tests-workspace-membe.patch | 15 + ...qualify-workspace-loader-package-ids.patch | 19 + factory/packages/glycin/apparmor-README.md | 20 + factory/packages/glycin/glycin-seccomp.json | 1239 +++++ factory/packages/glycin/glycin.apparmor | 65 + factory/packages/glycin/glycin.spec | 412 ++ factory/packages/glycin/seccomp-LICENSE | 202 + factory/packages/glycin/seccomp-README.md | 16 + .../gnome-autoar/.factory-upstream.json | 13 + .../packages/gnome-autoar/gnome-autoar.spec | 194 + .../.factory-upstream.json | 13 + .../gnome-control-center.spec | 258 + .../gnome-desktop3/.factory-upstream.json | 13 + .../gnome-desktop3/gnome-desktop3.spec | 162 + .../.factory-upstream.json | 13 + .../gnome-initial-setup.spec | 161 + .../.factory-upstream.json | 13 + .../gnome-online-accounts.spec | 145 + .../gnome-session/.factory-upstream.json | 13 + ...t-grub-boot-flags-on-shutdown-reboot.patch | 40 + .../packages/gnome-session/gnome-session.spec | 125 + .../.factory-upstream.json | 13 + .../gnome-settings-daemon.spec | 250 + ...emon.plugins.housekeeping.gschema.override | 2 + ...ings-daemon.plugins.power.gschema.override | 5 + .../gnome-shell/.factory-upstream.json | 13 + ...Work-around-failing-fingerprint-auth.patch | 44 + .../gnome-shell-favourite-apps-firefox.patch | 9 + factory/packages/gnome-shell/gnome-shell.spec | 275 ++ .../gnome-user-share/.factory-upstream.json | 13 + .../gnome-user-share/gnome-user-share.spec | 116 + .../.factory-upstream.json | 13 + .../apply-gi-glib-compat.py | 62 + .../gnome50-el10-compat/gdm-gnome50.te | 29 + .../gnome50-el10-compat/gdm-userdb-connect.te | 29 + .../gnome50-el10-compat.spec | 189 + .../orca-autostart.desktop | 2 + .../gnome50-el10-compat/systemd-user.pam | 24 + .../gnome50-el10-compat/tuned-ppd-logging.te | 14 + .../.factory-upstream.json | 13 + .../gobject-introspection-bootstrap.spec | 91 + .../packages/graphviz/.factory-upstream.json | 13 + .../graphviz-12.0.0-gvpack-neato-static.patch | 15 + factory/packages/graphviz/graphviz.spec | 2005 ++++++++ .../.factory-upstream.json | 13 + .../gsettings-desktop-schemas.spec | 113 + ...me.desktop.interface.rhel.gschema.override | 4 + .../packages/gsound/.factory-upstream.json | 13 + factory/packages/gsound/gsound.spec | 64 + factory/packages/gtk4/.factory-upstream.json | 13 + factory/packages/gtk4/gtk4.spec | 336 ++ .../packages/harfbuzz/.factory-upstream.json | 13 + factory/packages/harfbuzz/harfbuzz.spec | 944 ++++ .../packages/highway/.factory-upstream.json | 13 + ...ng-19-20-21-also-allow-user-override.patch | 263 ++ ...eleased-clang-22-for-users-building-.patch | 36 + ...roken-on-Clang-22-msan-fail-on-svcnt.patch | 42 + factory/packages/highway/highway.spec | 202 + .../libadwaita/.factory-upstream.json | 13 + factory/packages/libadwaita/libadwaita.spec | 143 + .../libcanberra/.factory-upstream.json | 13 + factory/packages/libcanberra/libcanberra.spec | 108 + .../packages/libdecor/.factory-upstream.json | 13 + factory/packages/libdecor/libdecor.spec | 63 + .../libebur128/.factory-upstream.json | 13 + factory/packages/libebur128/libebur128.spec | 100 + factory/packages/libei/.factory-upstream.json | 13 + factory/packages/libei/libei.spec | 125 + .../packages/libgda/.factory-upstream.json | 13 + .../libgda/libgda-fix-build-order.patch | 13 + factory/packages/libgda/libgda.spec | 170 + factory/packages/libgda/mariadb.patch | 11 + factory/packages/libgda/signed-int.patch | 150 + .../packages/libgee/.factory-upstream.json | 13 + factory/packages/libgee/libgee.spec | 401 ++ .../packages/libgexiv2/.factory-upstream.json | 13 + factory/packages/libgexiv2/libgexiv2.spec | 439 ++ .../libglib-testing/.factory-upstream.json | 13 + .../libglib-testing/libglib-testing.spec | 65 + .../packages/libinput/.factory-upstream.json | 13 + factory/packages/libinput/libinput.spec | 1083 +++++ .../packages/libldac/.factory-upstream.json | 13 + factory/packages/libldac/libldac.spec | 140 + .../packages/libnotify/.factory-upstream.json | 13 + factory/packages/libnotify/libnotify.spec | 405 ++ .../packages/libosinfo/.factory-upstream.json | 11 + factory/packages/libosinfo/.gitignore | 20 + factory/packages/libosinfo/changelog | 35 + factory/packages/libosinfo/libosinfo.spec | 223 + .../packages/libsoup/.factory-upstream.json | 13 + ...bsoup-2.74.3-libxml2-2.12.0-includes.patch | 43 + factory/packages/libsoup/libsoup.spec | 1091 +++++ .../packages/libxcvt/.factory-upstream.json | 13 + factory/packages/libxcvt/libxcvt.spec | 103 + .../packages/libzip/.factory-upstream.json | 13 + factory/packages/libzip/libzip.spec | 425 ++ .../localsearch/.factory-upstream.json | 13 + factory/packages/localsearch/localsearch.spec | 213 + .../localsearch/tests-include-stdint.patch | 11 + factory/packages/lzo/.factory-upstream.json | 13 + factory/packages/lzo/lzo-2.08-configure.patch | 24 + .../packages/lzo/lzo-2.08-rhbz1309225.patch | 14 + factory/packages/lzo/lzo.spec | 273 ++ .../malcontent/.factory-upstream.json | 13 + factory/packages/malcontent/malcontent.spec | 231 + factory/packages/meson/.factory-upstream.json | 13 + factory/packages/meson/meson.spec | 817 ++++ .../packages/mod_dnssd/.factory-upstream.json | 13 + .../mod_dnssd/mod_dnssd-0.6-httpd24.patch | 24 + .../packages/mod_dnssd/mod_dnssd.conf-httpd | 5 + factory/packages/mod_dnssd/mod_dnssd.spec | 183 + .../packages/mozjs140/.factory-upstream.json | 13 + ...b4b051dd539e0fbd5e08040870b3c712a846.patch | 24 + .../packages/mozjs140/D261512.1755672843.diff | 76 + factory/packages/mozjs140/copy-headers.patch | 38 + factory/packages/mozjs140/emitter.patch | 63 + factory/packages/mozjs140/fix-soname.patch | 26 + ...a-Write-command-output-to-our-stderr.patch | 44 + ...y-Decouple-from-Mozilla-build-system.patch | 29 + factory/packages/mozjs140/init_patch.patch | 28 + factory/packages/mozjs140/known_failures.txt | 26 + factory/packages/mozjs140/mozjs140.spec | 240 + .../rust-target-vendor-narrowing.patch | 63 + .../spidermonkey_checks_disable.patch | 22 + .../tests-Use-native-TemporaryDirectory.patch | 65 + .../mozjs140/tests-increase-timeout.patch | 26 + .../packages/mutter/.factory-upstream.json | 13 + factory/packages/mutter/mutter.spec | 230 + .../packages/nautilus/.factory-upstream.json | 13 + .../packages/nautilus/default-terminal.patch | 13 + factory/packages/nautilus/nautilus.spec | 178 + factory/packages/orca/.factory-upstream.json | 13 + factory/packages/orca/orca.spec | 1055 +++++ factory/packages/pango/.factory-upstream.json | 13 + factory/packages/pango/pango.spec | 141 + .../packages/pipewire/.factory-upstream.json | 13 + factory/packages/pipewire/pipewire.spec | 1782 +++++++ factory/packages/pipewire/pipewire.sysusers | 2 + .../packages/ptyxis/.factory-upstream.json | 13 + .../org.gnome.Ptyxis.fedora.gschema.override | 3 + factory/packages/ptyxis/ptyxis.spec | 208 + .../python-dbusmock/.factory-upstream.json | 13 + .../python-dbusmock/python-dbusmock.spec | 457 ++ .../python-smartypants/.factory-upstream.json | 13 + ...Fix-regexps-and-tests-for-python3.12.patch | 113 + .../python-smartypants.spec | 170 + .../python-typogrify/.factory-upstream.json | 13 + .../python-typogrify/python-typogrify.spec | 141 + .../selinux-policy/.factory-upstream.json | 13 + .../packages/selinux-policy/Makefile.devel | 22 + .../selinux-policy/binsbin-convert.sh | 97 + .../selinux-policy/container-selinux.tgz | Bin 0 -> 15078 bytes .../packages/selinux-policy/macro-expander | 81 + .../selinux-policy/modules-minimum.lst | 50 + factory/packages/selinux-policy/rpm.macros | 193 + .../selinux-check-proper-disable.service | 15 + .../selinux-policy/selinux-policy-mls.conf | 1 + .../selinux-policy-targeted.conf | 1 + .../selinux-policy/selinux-policy.conf | 4 + .../selinux-policy/selinux-policy.spec | 1901 ++++++++ .../packages/selinux-policy/varrun-convert.sh | 95 + .../packages/shaderc/.factory-upstream.json | 13 + ...p-third-party-code-in-CMakeLists.txt.patch | 24 + .../shaderc/glslang_linker_flags.patch | 24 + factory/packages/shaderc/shaderc.spec | 289 ++ .../packages/simdutf/.factory-upstream.json | 13 + factory/packages/simdutf/simdutf.spec | 132 + .../source-highlight/.factory-upstream.json | 13 + ...49c9026cb772dc93fbe0947a252ef47127f4.patch | 42 + ...urce-highlight-bz2256374-lesspipe_sh.patch | 39 + .../source-highlight/source-highlight.spec | 467 ++ .../packages/sqlcipher/.factory-upstream.json | 13 + factory/packages/sqlcipher/sqlcipher.spec | 160 + factory/packages/tecla/.factory-upstream.json | 13 + factory/packages/tecla/tecla.spec | 71 + .../tinysparql/.factory-upstream.json | 13 + factory/packages/tinysparql/tinysparql.spec | 194 + .../packages/umockdev/.factory-upstream.json | 13 + factory/packages/umockdev/seccomp-LICENSE | 202 + factory/packages/umockdev/seccomp-README.md | 12 + .../tests-detect-active-selinux.patch | 31 + .../packages/umockdev/umockdev-seccomp.json | 1234 +++++ factory/packages/umockdev/umockdev.spec | 396 ++ factory/packages/vala/.factory-upstream.json | 13 + .../vala/vala-warn-on-unknown-xml.patch | 121 + factory/packages/vala/vala.spec | 1147 +++++ .../packages/vte291/.factory-upstream.json | 13 + factory/packages/vte291/vte291.spec | 828 ++++ .../wayland-protocols/.factory-upstream.json | 13 + .../wayland-protocols/wayland-protocols.spec | 260 ++ .../packages/wayland/.factory-upstream.json | 11 + ...doc-add-option-to-not-build-the-book.patch | 53 + factory/packages/wayland/emersion-gpg-key.asc | Bin 0 -> 7501 bytes factory/packages/wayland/wayland.spec | 514 ++ .../.factory-upstream.json | 13 + .../xdg-desktop-portal-gnome.spec | 98 + .../xdg-desktop-portal/.factory-upstream.json | 13 + .../xdg-desktop-portal.spec | 156 + factory/system/install-factory-repo.sh | 33 + factory/tests/test_build_graph.py | 151 + factory/tests/test_container_policy.py | 62 + factory/tests/test_dependency_preflight.py | 213 + factory/tests/test_factory_repairs.py | 174 + factory/tests/test_generate_vendor.py | 65 + factory/tests/test_import_srpm.py | 135 + factory/tests/test_publish_gate.py | 158 + factory/tests/test_source_locks.py | 137 + factory/tests/test_srpm_gate.py | 134 + factory/tests/test_umockdev_profile.py | 25 + factory/tools/assemble_repo.py | 62 + factory/tools/build_graph.py | 350 ++ factory/tools/build_package.sh | 55 + factory/tools/build_stack.py | 110 + factory/tools/buildroot.py | 179 + factory/tools/consumer_transaction.sh | 45 + factory/tools/container_policy.py | 57 + factory/tools/dependency_preflight.py | 129 + factory/tools/dnf_retry.sh | 18 + factory/tools/extract_buildrequires.py | 183 + factory/tools/generate_vendor.py | 140 + factory/tools/import_srpm.py | 496 ++ factory/tools/inventory.py | 171 + factory/tools/packit_source0.py | 145 + factory/tools/packit_workflow.py | 73 + factory/tools/publish_gate.py | 177 + factory/tools/rebuild_plan.py | 182 + factory/tools/render_packit_config.py | 108 + factory/tools/render_source_locks.py | 328 ++ factory/tools/seed_from_copr.py | 210 + factory/tools/source_pipeline.py | 330 ++ factory/tools/srpm_gate.py | 142 + factory/tools/validate.py | 336 ++ image-versions.yaml | 11 +- tests/unit/factory_repo_test.bats | 83 + 345 files changed, 64059 insertions(+), 3 deletions(-) create mode 100644 .github/actions/factory-load-buildroot/action.yml create mode 100644 .github/workflows/factory-build-stage.yml create mode 100644 .github/workflows/factory-build.yml create mode 100644 .github/workflows/factory-packit-srpm-chunk.yml create mode 100644 .github/workflows/factory-packit-srpm.yml create mode 100644 .github/workflows/factory-publish.yml create mode 100644 .github/workflows/factory-smoke.yml create mode 100644 .github/workflows/factory-stack.yml create mode 100644 .github/workflows/factory-validate.yml create mode 100644 .packit.yaml create mode 100644 docs/skills/factory/SKILL.md create mode 100644 factory/.gitignore create mode 100644 factory/README.md create mode 100644 factory/config/buildroot.json create mode 100644 factory/config/factory-contract.json create mode 100644 factory/config/gnome-stack.json create mode 100644 factory/config/upstream-sources.json create mode 100644 factory/docs/architecture.md create mode 100644 factory/empty/.keep create mode 100644 factory/packages/accountsservice/.factory-upstream.json create mode 100644 factory/packages/accountsservice/accountsservice.spec create mode 100644 factory/packages/appstream/.factory-upstream.json create mode 100644 factory/packages/appstream/appstream.spec create mode 100644 factory/packages/appstream/utils-explicitly-set-format-style-when-installing-catalog-metadata.patch create mode 100644 factory/packages/at-spi2-core/.factory-upstream.json create mode 100644 factory/packages/at-spi2-core/at-spi2-core.spec create mode 100644 factory/packages/at-spi2-core/xwayland-session-scriptlet create mode 100644 factory/packages/autoconf/.factory-upstream.json create mode 100644 factory/packages/autoconf/0001-Keep-lmingwex-and-lmoldname-in-linker-flags-for-MinG.patch create mode 100644 factory/packages/autoconf/0001-Port-C11-test-to-C.patch create mode 100644 factory/packages/autoconf/0001-autoreconf-Adapt-to-the-on-disk-situation-after-auto.patch create mode 100644 factory/packages/autoconf/0001-autoreconf-Invoke-autopoint-in-more-situations.patch create mode 100644 factory/packages/autoconf/autoconf-init.el create mode 100644 factory/packages/autoconf/autoconf.spec create mode 100644 factory/packages/autoconf/config.site create mode 100644 factory/packages/avahi/.factory-upstream.json create mode 100644 factory/packages/avahi/avahi-0.6.30-mono-libdir.patch create mode 100644 factory/packages/avahi/avahi-0.8-no_undefined.patch create mode 100644 factory/packages/avahi/avahi-0.9-CVE-2024-52615.patch create mode 100644 factory/packages/avahi/avahi-0.9-address-data-size.patch create mode 100644 factory/packages/avahi/avahi.spec create mode 100644 factory/packages/blueprint-compiler/.factory-upstream.json create mode 100644 factory/packages/blueprint-compiler/blueprint-compiler.spec create mode 100644 factory/packages/cairo/.factory-upstream.json create mode 100644 factory/packages/cairo/cairo-multilib.patch create mode 100644 factory/packages/cairo/cairo.spec create mode 100644 factory/packages/colord-gtk/.factory-upstream.json create mode 100644 factory/packages/colord-gtk/colord-gtk.spec create mode 100644 factory/packages/docbook-style-xsl/.factory-upstream.json create mode 100644 factory/packages/docbook-style-xsl/docbook-style-xsl-1.79.2-fix-gtk-doc-multilib.patch create mode 100644 factory/packages/docbook-style-xsl/docbook-style-xsl-non-recursive-string-subst.patch create mode 100644 factory/packages/docbook-style-xsl/docbook-style-xsl.Makefile create mode 100644 factory/packages/docbook-style-xsl/docbook-style-xsl.spec create mode 100644 factory/packages/docbook-style-xsl/docbook-xsl-list-item-body.patch create mode 100644 factory/packages/docbook-style-xsl/docbook-xsl-mandir.patch create mode 100644 factory/packages/docbook-style-xsl/docbook-xsl-marginleft.patch create mode 100644 factory/packages/docbook-style-xsl/docbook-xsl-newmethods.patch create mode 100644 factory/packages/docbook-style-xsl/docbook-xsl-non-constant-expressions.patch create mode 100644 factory/packages/docbook-style-xsl/docbook-xsl-pagesetup.patch create mode 100644 factory/packages/docbook-utils/.factory-upstream.json create mode 100755 factory/packages/docbook-utils/db2html create mode 100644 factory/packages/docbook-utils/docbook-utils.spec create mode 100755 factory/packages/docbook-utils/docbook2man-spec.pl create mode 100644 factory/packages/docbook-utils/gdp-both.dsl create mode 100644 factory/packages/el10-v2-buildflags/.factory-upstream.json create mode 100644 factory/packages/el10-v2-buildflags/el10-v2-buildflags.spec create mode 100644 factory/packages/flatpak/.factory-upstream.json create mode 100644 factory/packages/flatpak/flatpak-add-support-for-preinstalling-flatpaks.patch create mode 100644 factory/packages/flatpak/flatpak-allow-direct-installation-from-oci-images.patch create mode 100644 factory/packages/flatpak/flatpak-enable-collection-ids-for-oci-remotes.patch create mode 100644 factory/packages/flatpak/flatpak-for-registry.redhat.io-get-certificates-from-etc-pki.patch create mode 100644 factory/packages/flatpak/flatpak-implement-etc-containers-certs-for-oci-registries.patch create mode 100644 factory/packages/flatpak/flatpak-pass-token-to-flatpak-image-source-new-remote.patch create mode 100644 factory/packages/flatpak/flatpak-support-sideload-repositories-for-oci-remotes.patch create mode 100644 factory/packages/flatpak/flatpak.spec create mode 100644 factory/packages/flatpak/flatpak.sysusers.conf create mode 100644 factory/packages/fontconfig/.factory-upstream.json create mode 100644 factory/packages/fontconfig/25-no-bitmap-fedora.conf create mode 100755 factory/packages/fontconfig/fc-cache create mode 100644 factory/packages/fontconfig/fontconfig-disable-network-required-test.patch create mode 100644 factory/packages/fontconfig/fontconfig-drop-lang-from-pkgkit-format.patch create mode 100644 factory/packages/fontconfig/fontconfig-fix-crash.patch create mode 100644 factory/packages/fontconfig/fontconfig-lower-nonlatin-conf.patch create mode 100644 factory/packages/fontconfig/fontconfig-sleep-less.patch create mode 100644 factory/packages/fontconfig/fontconfig.spec create mode 100644 factory/packages/gdk-pixbuf2/.factory-upstream.json create mode 100644 factory/packages/gdk-pixbuf2/gdk-pixbuf2.spec create mode 100644 factory/packages/gdm/.factory-upstream.json create mode 100644 factory/packages/gdm/0001-Add-headless-session-files.patch create mode 100644 factory/packages/gdm/0001-Honor-initial-setup-being-disabled-by-distro-install.patch create mode 100644 factory/packages/gdm/0001-data-add-system-dconf-databases-to-gdm-profile.patch create mode 100644 factory/packages/gdm/gdm.spec create mode 100644 factory/packages/gdm/gdm.sysusers create mode 100644 factory/packages/gdm/org.gnome.login-screen.gschema.override create mode 100644 factory/packages/gi-docgen/.factory-upstream.json create mode 100644 factory/packages/gi-docgen/gi-docgen.spec create mode 100644 factory/packages/gjs/.factory-upstream.json create mode 100644 factory/packages/gjs/gjs.spec create mode 100644 factory/packages/glib2/.factory-upstream.json create mode 100644 factory/packages/glib2/default-terminal.patch create mode 100644 factory/packages/glib2/glib2.spec create mode 100644 factory/packages/glib2/gnutls-hmac.patch create mode 100644 factory/packages/glycin/.factory-upstream.json create mode 100644 factory/packages/glycin/0001-fix-invalid-crate-manifest-for-tests-workspace-membe.patch create mode 100644 factory/packages/glycin/0002-qualify-workspace-loader-package-ids.patch create mode 100644 factory/packages/glycin/apparmor-README.md create mode 100644 factory/packages/glycin/glycin-seccomp.json create mode 100644 factory/packages/glycin/glycin.apparmor create mode 100644 factory/packages/glycin/glycin.spec create mode 100644 factory/packages/glycin/seccomp-LICENSE create mode 100644 factory/packages/glycin/seccomp-README.md create mode 100644 factory/packages/gnome-autoar/.factory-upstream.json create mode 100644 factory/packages/gnome-autoar/gnome-autoar.spec create mode 100644 factory/packages/gnome-control-center/.factory-upstream.json create mode 100644 factory/packages/gnome-control-center/gnome-control-center.spec create mode 100644 factory/packages/gnome-desktop3/.factory-upstream.json create mode 100644 factory/packages/gnome-desktop3/gnome-desktop3.spec create mode 100644 factory/packages/gnome-initial-setup/.factory-upstream.json create mode 100644 factory/packages/gnome-initial-setup/gnome-initial-setup.spec create mode 100644 factory/packages/gnome-online-accounts/.factory-upstream.json create mode 100644 factory/packages/gnome-online-accounts/gnome-online-accounts.spec create mode 100644 factory/packages/gnome-session/.factory-upstream.json create mode 100644 factory/packages/gnome-session/0001-Fedora-Set-grub-boot-flags-on-shutdown-reboot.patch create mode 100644 factory/packages/gnome-session/gnome-session.spec create mode 100644 factory/packages/gnome-settings-daemon/.factory-upstream.json create mode 100644 factory/packages/gnome-settings-daemon/gnome-settings-daemon.spec create mode 100644 factory/packages/gnome-settings-daemon/org.gnome.settings-daemon.plugins.housekeeping.gschema.override create mode 100644 factory/packages/gnome-settings-daemon/org.gnome.settings-daemon.plugins.power.gschema.override create mode 100644 factory/packages/gnome-shell/.factory-upstream.json create mode 100644 factory/packages/gnome-shell/0001-gdm-Work-around-failing-fingerprint-auth.patch create mode 100644 factory/packages/gnome-shell/gnome-shell-favourite-apps-firefox.patch create mode 100644 factory/packages/gnome-shell/gnome-shell.spec create mode 100644 factory/packages/gnome-user-share/.factory-upstream.json create mode 100644 factory/packages/gnome-user-share/gnome-user-share.spec create mode 100644 factory/packages/gnome50-el10-compat/.factory-upstream.json create mode 100644 factory/packages/gnome50-el10-compat/apply-gi-glib-compat.py create mode 100644 factory/packages/gnome50-el10-compat/gdm-gnome50.te create mode 100644 factory/packages/gnome50-el10-compat/gdm-userdb-connect.te create mode 100644 factory/packages/gnome50-el10-compat/gnome50-el10-compat.spec create mode 100644 factory/packages/gnome50-el10-compat/orca-autostart.desktop create mode 100644 factory/packages/gnome50-el10-compat/systemd-user.pam create mode 100644 factory/packages/gnome50-el10-compat/tuned-ppd-logging.te create mode 100644 factory/packages/gobject-introspection/.factory-upstream.json create mode 100644 factory/packages/gobject-introspection/gobject-introspection-bootstrap.spec create mode 100644 factory/packages/graphviz/.factory-upstream.json create mode 100644 factory/packages/graphviz/graphviz-12.0.0-gvpack-neato-static.patch create mode 100644 factory/packages/graphviz/graphviz.spec create mode 100644 factory/packages/gsettings-desktop-schemas/.factory-upstream.json create mode 100644 factory/packages/gsettings-desktop-schemas/gsettings-desktop-schemas.spec create mode 100644 factory/packages/gsettings-desktop-schemas/org.gnome.desktop.interface.rhel.gschema.override create mode 100644 factory/packages/gsound/.factory-upstream.json create mode 100644 factory/packages/gsound/gsound.spec create mode 100644 factory/packages/gtk4/.factory-upstream.json create mode 100644 factory/packages/gtk4/gtk4.spec create mode 100644 factory/packages/harfbuzz/.factory-upstream.json create mode 100644 factory/packages/harfbuzz/harfbuzz.spec create mode 100644 factory/packages/highway/.factory-upstream.json create mode 100644 factory/packages/highway/0001-Detect-clang-19-20-21-also-allow-user-override.patch create mode 100644 factory/packages/highway/0002-Detect-not-yet-released-clang-22-for-users-building-.patch create mode 100644 factory/packages/highway/0003-SVE-still-broken-on-Clang-22-msan-fail-on-svcnt.patch create mode 100644 factory/packages/highway/highway.spec create mode 100644 factory/packages/libadwaita/.factory-upstream.json create mode 100644 factory/packages/libadwaita/libadwaita.spec create mode 100644 factory/packages/libcanberra/.factory-upstream.json create mode 100644 factory/packages/libcanberra/libcanberra.spec create mode 100644 factory/packages/libdecor/.factory-upstream.json create mode 100644 factory/packages/libdecor/libdecor.spec create mode 100644 factory/packages/libebur128/.factory-upstream.json create mode 100644 factory/packages/libebur128/libebur128.spec create mode 100644 factory/packages/libei/.factory-upstream.json create mode 100644 factory/packages/libei/libei.spec create mode 100644 factory/packages/libgda/.factory-upstream.json create mode 100644 factory/packages/libgda/libgda-fix-build-order.patch create mode 100644 factory/packages/libgda/libgda.spec create mode 100644 factory/packages/libgda/mariadb.patch create mode 100644 factory/packages/libgda/signed-int.patch create mode 100644 factory/packages/libgee/.factory-upstream.json create mode 100644 factory/packages/libgee/libgee.spec create mode 100644 factory/packages/libgexiv2/.factory-upstream.json create mode 100644 factory/packages/libgexiv2/libgexiv2.spec create mode 100644 factory/packages/libglib-testing/.factory-upstream.json create mode 100644 factory/packages/libglib-testing/libglib-testing.spec create mode 100644 factory/packages/libinput/.factory-upstream.json create mode 100644 factory/packages/libinput/libinput.spec create mode 100644 factory/packages/libldac/.factory-upstream.json create mode 100644 factory/packages/libldac/libldac.spec create mode 100644 factory/packages/libnotify/.factory-upstream.json create mode 100644 factory/packages/libnotify/libnotify.spec create mode 100644 factory/packages/libosinfo/.factory-upstream.json create mode 100644 factory/packages/libosinfo/.gitignore create mode 100644 factory/packages/libosinfo/changelog create mode 100644 factory/packages/libosinfo/libosinfo.spec create mode 100644 factory/packages/libsoup/.factory-upstream.json create mode 100644 factory/packages/libsoup/libsoup-2.74.3-libxml2-2.12.0-includes.patch create mode 100644 factory/packages/libsoup/libsoup.spec create mode 100644 factory/packages/libxcvt/.factory-upstream.json create mode 100644 factory/packages/libxcvt/libxcvt.spec create mode 100644 factory/packages/libzip/.factory-upstream.json create mode 100644 factory/packages/libzip/libzip.spec create mode 100644 factory/packages/localsearch/.factory-upstream.json create mode 100644 factory/packages/localsearch/localsearch.spec create mode 100644 factory/packages/localsearch/tests-include-stdint.patch create mode 100644 factory/packages/lzo/.factory-upstream.json create mode 100644 factory/packages/lzo/lzo-2.08-configure.patch create mode 100644 factory/packages/lzo/lzo-2.08-rhbz1309225.patch create mode 100644 factory/packages/lzo/lzo.spec create mode 100644 factory/packages/malcontent/.factory-upstream.json create mode 100644 factory/packages/malcontent/malcontent.spec create mode 100644 factory/packages/meson/.factory-upstream.json create mode 100644 factory/packages/meson/meson.spec create mode 100644 factory/packages/mod_dnssd/.factory-upstream.json create mode 100644 factory/packages/mod_dnssd/mod_dnssd-0.6-httpd24.patch create mode 100644 factory/packages/mod_dnssd/mod_dnssd.conf-httpd create mode 100644 factory/packages/mod_dnssd/mod_dnssd.spec create mode 100644 factory/packages/mozjs140/.factory-upstream.json create mode 100644 factory/packages/mozjs140/9aa8b4b051dd539e0fbd5e08040870b3c712a846.patch create mode 100644 factory/packages/mozjs140/D261512.1755672843.diff create mode 100644 factory/packages/mozjs140/copy-headers.patch create mode 100644 factory/packages/mozjs140/emitter.patch create mode 100644 factory/packages/mozjs140/fix-soname.patch create mode 100644 factory/packages/mozjs140/icu_sources_data-Write-command-output-to-our-stderr.patch create mode 100644 factory/packages/mozjs140/icu_sources_data.py-Decouple-from-Mozilla-build-system.patch create mode 100644 factory/packages/mozjs140/init_patch.patch create mode 100644 factory/packages/mozjs140/known_failures.txt create mode 100644 factory/packages/mozjs140/mozjs140.spec create mode 100644 factory/packages/mozjs140/rust-target-vendor-narrowing.patch create mode 100644 factory/packages/mozjs140/spidermonkey_checks_disable.patch create mode 100644 factory/packages/mozjs140/tests-Use-native-TemporaryDirectory.patch create mode 100644 factory/packages/mozjs140/tests-increase-timeout.patch create mode 100644 factory/packages/mutter/.factory-upstream.json create mode 100644 factory/packages/mutter/mutter.spec create mode 100644 factory/packages/nautilus/.factory-upstream.json create mode 100644 factory/packages/nautilus/default-terminal.patch create mode 100644 factory/packages/nautilus/nautilus.spec create mode 100644 factory/packages/orca/.factory-upstream.json create mode 100644 factory/packages/orca/orca.spec create mode 100644 factory/packages/pango/.factory-upstream.json create mode 100644 factory/packages/pango/pango.spec create mode 100644 factory/packages/pipewire/.factory-upstream.json create mode 100644 factory/packages/pipewire/pipewire.spec create mode 100644 factory/packages/pipewire/pipewire.sysusers create mode 100644 factory/packages/ptyxis/.factory-upstream.json create mode 100644 factory/packages/ptyxis/org.gnome.Ptyxis.fedora.gschema.override create mode 100644 factory/packages/ptyxis/ptyxis.spec create mode 100644 factory/packages/python-dbusmock/.factory-upstream.json create mode 100644 factory/packages/python-dbusmock/python-dbusmock.spec create mode 100644 factory/packages/python-smartypants/.factory-upstream.json create mode 100644 factory/packages/python-smartypants/0001-Fix-regexps-and-tests-for-python3.12.patch create mode 100644 factory/packages/python-smartypants/python-smartypants.spec create mode 100644 factory/packages/python-typogrify/.factory-upstream.json create mode 100644 factory/packages/python-typogrify/python-typogrify.spec create mode 100644 factory/packages/selinux-policy/.factory-upstream.json create mode 100644 factory/packages/selinux-policy/Makefile.devel create mode 100755 factory/packages/selinux-policy/binsbin-convert.sh create mode 100644 factory/packages/selinux-policy/container-selinux.tgz create mode 100644 factory/packages/selinux-policy/macro-expander create mode 100644 factory/packages/selinux-policy/modules-minimum.lst create mode 100644 factory/packages/selinux-policy/rpm.macros create mode 100644 factory/packages/selinux-policy/selinux-check-proper-disable.service create mode 100644 factory/packages/selinux-policy/selinux-policy-mls.conf create mode 100644 factory/packages/selinux-policy/selinux-policy-targeted.conf create mode 100644 factory/packages/selinux-policy/selinux-policy.conf create mode 100644 factory/packages/selinux-policy/selinux-policy.spec create mode 100755 factory/packages/selinux-policy/varrun-convert.sh create mode 100644 factory/packages/shaderc/.factory-upstream.json create mode 100644 factory/packages/shaderc/0001-Drop-third-party-code-in-CMakeLists.txt.patch create mode 100644 factory/packages/shaderc/glslang_linker_flags.patch create mode 100644 factory/packages/shaderc/shaderc.spec create mode 100644 factory/packages/simdutf/.factory-upstream.json create mode 100644 factory/packages/simdutf/simdutf.spec create mode 100644 factory/packages/source-highlight/.factory-upstream.json create mode 100644 factory/packages/source-highlight/904949c9026cb772dc93fbe0947a252ef47127f4.patch create mode 100644 factory/packages/source-highlight/source-highlight-bz2256374-lesspipe_sh.patch create mode 100644 factory/packages/source-highlight/source-highlight.spec create mode 100644 factory/packages/sqlcipher/.factory-upstream.json create mode 100644 factory/packages/sqlcipher/sqlcipher.spec create mode 100644 factory/packages/tecla/.factory-upstream.json create mode 100644 factory/packages/tecla/tecla.spec create mode 100644 factory/packages/tinysparql/.factory-upstream.json create mode 100644 factory/packages/tinysparql/tinysparql.spec create mode 100644 factory/packages/umockdev/.factory-upstream.json create mode 100644 factory/packages/umockdev/seccomp-LICENSE create mode 100644 factory/packages/umockdev/seccomp-README.md create mode 100644 factory/packages/umockdev/tests-detect-active-selinux.patch create mode 100644 factory/packages/umockdev/umockdev-seccomp.json create mode 100644 factory/packages/umockdev/umockdev.spec create mode 100644 factory/packages/vala/.factory-upstream.json create mode 100644 factory/packages/vala/vala-warn-on-unknown-xml.patch create mode 100644 factory/packages/vala/vala.spec create mode 100644 factory/packages/vte291/.factory-upstream.json create mode 100644 factory/packages/vte291/vte291.spec create mode 100644 factory/packages/wayland-protocols/.factory-upstream.json create mode 100644 factory/packages/wayland-protocols/wayland-protocols.spec create mode 100644 factory/packages/wayland/.factory-upstream.json create mode 100644 factory/packages/wayland/0001-doc-add-option-to-not-build-the-book.patch create mode 100644 factory/packages/wayland/emersion-gpg-key.asc create mode 100644 factory/packages/wayland/wayland.spec create mode 100644 factory/packages/xdg-desktop-portal-gnome/.factory-upstream.json create mode 100644 factory/packages/xdg-desktop-portal-gnome/xdg-desktop-portal-gnome.spec create mode 100644 factory/packages/xdg-desktop-portal/.factory-upstream.json create mode 100644 factory/packages/xdg-desktop-portal/xdg-desktop-portal.spec create mode 100755 factory/system/install-factory-repo.sh create mode 100644 factory/tests/test_build_graph.py create mode 100644 factory/tests/test_container_policy.py create mode 100644 factory/tests/test_dependency_preflight.py create mode 100644 factory/tests/test_factory_repairs.py create mode 100644 factory/tests/test_generate_vendor.py create mode 100644 factory/tests/test_import_srpm.py create mode 100644 factory/tests/test_publish_gate.py create mode 100644 factory/tests/test_source_locks.py create mode 100644 factory/tests/test_srpm_gate.py create mode 100644 factory/tests/test_umockdev_profile.py create mode 100644 factory/tools/assemble_repo.py create mode 100644 factory/tools/build_graph.py create mode 100755 factory/tools/build_package.sh create mode 100644 factory/tools/build_stack.py create mode 100644 factory/tools/buildroot.py create mode 100755 factory/tools/consumer_transaction.sh create mode 100644 factory/tools/container_policy.py create mode 100644 factory/tools/dependency_preflight.py create mode 100644 factory/tools/dnf_retry.sh create mode 100644 factory/tools/extract_buildrequires.py create mode 100644 factory/tools/generate_vendor.py create mode 100644 factory/tools/import_srpm.py create mode 100644 factory/tools/inventory.py create mode 100644 factory/tools/packit_source0.py create mode 100644 factory/tools/packit_workflow.py create mode 100644 factory/tools/publish_gate.py create mode 100644 factory/tools/rebuild_plan.py create mode 100644 factory/tools/render_packit_config.py create mode 100644 factory/tools/render_source_locks.py create mode 100644 factory/tools/seed_from_copr.py create mode 100644 factory/tools/source_pipeline.py create mode 100644 factory/tools/srpm_gate.py create mode 100644 factory/tools/validate.py create mode 100644 tests/unit/factory_repo_test.bats diff --git a/.github/actions/factory-load-buildroot/action.yml b/.github/actions/factory-load-buildroot/action.yml new file mode 100644 index 00000000..a626e316 --- /dev/null +++ b/.github/actions/factory-load-buildroot/action.yml @@ -0,0 +1,48 @@ +name: Factory load build root + +description: > + Load the build root image that the prepare job pulled once, from the run's + own artifact, under a bare local name. + +# This is the other half of the "pull the build root once" decision documented +# in factory-build.yml. The image is tagged `factory-buildroot:run` -- a bare +# name with no registry behind it -- so a job that failed to load the artifact +# cannot silently fall back to pulling something else: docker refuses an +# unqualified name it does not have locally. +# +# Deliberately not pulling by digest here. The pin is enforced at prepare and +# the bytes are carried in the artifact, so re-resolving against a registry +# would reintroduce exactly the mid-run expiry this avoids. + +inputs: + artifact: + description: Name of the build root artifact. + required: false + default: factory-buildroot-image + +runs: + using: composite + steps: + - name: Install zstd + shell: bash + run: sudo apt-get update && sudo apt-get install -y zstd + + - name: Download the build root artifact + uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v6 + with: + name: ${{ inputs.artifact }} + path: work + + - name: Load the image + shell: bash + run: | + set -euo pipefail + zstd -d -c work/buildroot.tar.zst | docker load + # docker load names the image factory-buildroot:run because that is + # the tag prepare applied before saving. Verify it rather than assume: + # a rename in prepare would otherwise surface here as a confusing + # "image not found" from a later docker run. + docker image inspect factory-buildroot:run >/dev/null \ + || { echo "the build root artifact did not contain factory-buildroot:run" >&2; exit 1; } + docker image inspect factory-buildroot:run \ + --format 'build root loaded: {{.Id}}' diff --git a/.github/workflows/factory-build-stage.yml b/.github/workflows/factory-build-stage.yml new file mode 100644 index 00000000..ea13203e --- /dev/null +++ b/.github/workflows/factory-build-stage.yml @@ -0,0 +1,135 @@ +# Build one wave of packages. +# +# Exists as a reusable workflow because the wave itself is the unit of build +# parallelism: everything in wave N can build at once, and everything in wave +# N+1 can resolve its BuildRequires against what wave N produced. +# +# This job knows nothing about the other waves beyond the artifacts they left +# behind. All ordering lives in the caller. +name: Factory build stage + +on: + workflow_call: + inputs: + stage: + description: Wave number, used in artifact names. + required: true + type: string + seed_image: + description: Immutable previously published repository image. + required: false + type: string + packages: + description: JSON array of package names to build. + required: true + type: string + +permissions: + contents: read + actions: read + +jobs: + build: + runs-on: ubuntu-24.04 + strategy: + # One package failing must not stop its neighbours. A wave is a batch + # of independent builds, and cancelling the rest of it on the first + # failure would waste the whole wave over one recipe. + fail-fast: false + matrix: + package: ${{ fromJson(inputs.packages) }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 + with: + python-version: "3.13" + + # Loaded from the artifact prepare produced, not pulled from a registry. + # See the comment in factory-build.yml: this is what makes every job in + # the run provably use the same build root bytes. + - name: Load the build root + uses: ./.github/actions/factory-load-buildroot + + - name: Fetch and verify the package source + env: + PACKAGE: ${{ matrix.package }} + run: | + set -euo pipefail + python3 factory/tools/source_pipeline.py stage "$PACKAGE" + python3 factory/tools/source_pipeline.py verify-staged --package "$PACKAGE" + + - name: Assemble the seed and strictly earlier waves + env: + GH_TOKEN: ${{ github.token }} + STAGE: ${{ inputs.stage }} + SEED_IMAGE: ${{ inputs.seed_image }} + REPOSITORY: ${{ github.repository }} + RUN_ID: ${{ github.run_id }} + run: | + set -euo pipefail + sudo apt-get update && sudo apt-get install -y rpm + mkdir -p work/prior work/newrpms work/dl + if [ -n "$SEED_IMAGE" ]; then + docker pull "$SEED_IMAGE" + docker create --name factory-seed "$SEED_IMAGE" /unused + docker cp factory-seed:/factory/. work/prior/ + docker rm factory-seed + fi + # Adapted from utah-packages: never admit same-wave siblings, + # regardless of which parallel job finishes first. + gh api --paginate "repos/$REPOSITORY/actions/runs/$RUN_ID/artifacts?per_page=100" \ + --jq '.artifacts[].name' > work/artifacts.txt + while read -r artifact; do + if [[ "$artifact" =~ ^factory-rpm-s([0-9]+)- ]] && \ + [ "${BASH_REMATCH[1]}" -lt "$STAGE" ]; then + gh run download "$RUN_ID" --repo "$REPOSITORY" \ + --name "$artifact" --dir "work/dl/$artifact" + find "work/dl/$artifact" -name '*.rpm' -exec cp {} work/newrpms/ \; + fi + done < work/artifacts.txt + packages=$(python3 factory/tools/packit_workflow.py packages) + python3 factory/tools/assemble_repo.py --seed work/prior --built work/newrpms \ + --build-list "$packages" --report work/prior-built.json + + - name: Build the package with its dependencies in one container + id: build + env: + PACKAGE: ${{ matrix.package }} + run: | + set -euo pipefail + mkdir -p "work/rpms/$PACKAGE" + python3 factory/tools/container_policy.py load --package "$PACKAGE" + python3 factory/tools/container_policy.py args --package "$PACKAGE" > work/policy-args + mapfile -t security_args < work/policy-args + docker run --rm --pull=never "${security_args[@]}" -e PACKAGE \ + -v "$PWD:/repo:Z" -v "$PWD/work/prior:/prior:Z" \ + factory-buildroot:run bash /repo/factory/tools/build_package.sh + + count=$(find "work/rpms/$PACKAGE" -name '*.rpm' | wc -l) + # A build that produced nothing must fail here rather than at the + # upload step, where a missing file can pass quietly. + if [ "$count" -eq 0 ]; then + echo "::error title=no RPMs produced::$PACKAGE" + exit 1 + fi + echo "built $count RPM(s) for $PACKAGE" + + - name: Record what this package produced + if: always() + run: | + set -euo pipefail + { + echo "package: ${{ matrix.package }}" + echo "stage: ${{ inputs.stage }}" + echo "built: $(find 'work/rpms/${{ matrix.package }}' -name '*.rpm' 2>/dev/null | wc -l)" + echo "---" + find "work/rpms/${{ matrix.package }}" -name '*.rpm' -printf '%f\n' 2>/dev/null || true + } >> "$GITHUB_STEP_SUMMARY" + + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + with: + name: factory-rpm-s${{ inputs.stage }}-${{ matrix.package }} + path: work/rpms/${{ matrix.package }} + if-no-files-found: error + retention-days: 7 diff --git a/.github/workflows/factory-build.yml b/.github/workflows/factory-build.yml new file mode 100644 index 00000000..712d47e0 --- /dev/null +++ b/.github/workflows/factory-build.yml @@ -0,0 +1,529 @@ +# Build the factory's RPMs and publish them as an OCI repository image. +# +# This is the binary lane. It runs in our own workflow, against the c10s image +# pinned in factory/config/buildroot.json, because that is the base the image +# actually ships on. Packit and Copr cannot stand in for it: Copr has no +# CentOS Stream 10 chroot, so anything built there would target a different ABI +# than the image it feeds. +# +# Order of operations: +# prepare pull the build root once; solve the BuildRequires graph; select +# what changed against the published image's state label +# buildN one call per wave, each a fail-fast:false package matrix +# publish assemble the candidate repository, sign it, push it to GHCR +# +# The image this publishes contains nothing but createrepo_c output. The image +# build copies it in with COPY --from= pinned by digest and points dnf at a +# file:// URL. See the factory/README.md for the consumption side. +name: Build factory packages + +on: + push: + branches: [main] + paths: + - "factory/**" + - ".packit.yaml" + workflow_dispatch: + inputs: + package: + description: Build only this package (and its dependents). + required: false + type: string + full: + description: Ignore the published state and rebuild everything. + required: false + default: false + type: boolean + skip_publish: + description: Build and check, but do not publish. + required: false + default: false + type: boolean + +permissions: + contents: read + actions: read + id-token: write + packages: write + attestations: write + +# One run per ref, and a merge never cancels a run in flight: every selected +# package's build finishes. GitHub keeps one run pending and replaces an older +# pending run with a newer one, which is safe because selection reads the +# published image's state label -- every change since the last publication -- +# rather than the previous push's diff. +concurrency: + group: factory-build-${{ github.ref }} + cancel-in-progress: false + +jobs: + prepare: + runs-on: ubuntu-24.04 + outputs: + build_list: ${{ steps.select.outputs.build_list }} + stage0: ${{ steps.select.outputs.stage0 }} + stage1: ${{ steps.select.outputs.stage1 }} + stage2: ${{ steps.select.outputs.stage2 }} + stage3: ${{ steps.select.outputs.stage3 }} + stage4: ${{ steps.select.outputs.stage4 }} + stage5: ${{ steps.select.outputs.stage5 }} + stage6: ${{ steps.select.outputs.stage6 }} + stage7: ${{ steps.select.outputs.stage7 }} + stage8: ${{ steps.select.outputs.stage8 }} + stage9: ${{ steps.select.outputs.stage9 }} + stage10: ${{ steps.select.outputs.stage10 }} + stage11: ${{ steps.select.outputs.stage11 }} + stage12: ${{ steps.select.outputs.stage12 }} + stage13: ${{ steps.select.outputs.stage13 }} + stage14: ${{ steps.select.outputs.stage14 }} + stage15: ${{ steps.select.outputs.stage15 }} + buildroot_digest: ${{ steps.buildroot.outputs.digest }} + factory_image: ${{ steps.factory_image.outputs.image }} + seed_image: ${{ steps.factory_image.outputs.seed }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 + with: + python-version: "3.13" + + - name: Validate the factory before building anything + run: | + python3 factory/tools/validate.py + python3 factory/tools/render_packit_config.py --check + + # Pulled once for the whole run and handed to every job as an artifact. + # Three things this fixes that a digest pin alone cannot: the pin cannot + # be garbage collected between the run starting and a later job starting; + # every job provably uses the same bytes; and several hundred registry + # pulls become one. + - name: Pull the build root once and record what it resolved to + id: buildroot + run: | + set -euo pipefail + sudo apt-get update && sudo apt-get install -y zstd + python3 factory/tools/buildroot.py --output work/buildroot-resolved.json \ + --snapshot buildroot-provenance.json + digest="$(python3 -c 'import json; print(json.load(open("work/buildroot-resolved.json"))["actual"])')" + test -n "$digest" + echo "digest=$digest" >> "$GITHUB_OUTPUT" + # A bare, unqualified name. Every job runs this image by that name + # with no registry behind it, so a job that failed to load the + # artifact cannot silently fall back to pulling something else -- + # docker refuses an unqualified name it does not have locally. + docker tag "$(python3 factory/tools/buildroot.py --digest-only)" factory-buildroot:run + docker save factory-buildroot:run | zstd -T0 -3 -o buildroot.tar.zst + ls -l buildroot.tar.zst + + + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + with: + name: factory-buildroot-image + path: | + buildroot.tar.zst + buildroot-provenance.json + if-no-files-found: error + retention-days: 1 + + # Waves come from real BuildRequires, parsed by rpmspec in the build + # root. Hand-assigned stages were tried first and rotted: a new + # BuildRequires edge was invisible until a build failed later, and a + # stage no longer needed still serialized work. + - name: Extract BuildRequires and solve the wave order + run: | + set -euo pipefail + mkdir -p work/graph + python3 factory/tools/extract_buildrequires.py \ + --image factory-buildroot:run \ + --output work/graph + python3 factory/tools/build_graph.py plan \ + --root factory \ + --rows work/graph/rows --graph-only \ + --output work/graph/plan.json + + # The published image is the witness for what may be skipped, and it + # lives in one place: the OCI image publish writes. Resolved once here + # to a digest so every job reads the same repository even if publish + # moves the tag while the run is in flight. + - name: Resolve the published factory image + id: factory_image + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ACTOR: ${{ github.actor }} + REPOSITORY_OWNER: ${{ github.repository_owner }} + REF: ${{ github.ref }} + REF_NAME: ${{ github.ref_name }} + run: | + set -euo pipefail + owner=$(printf '%s' "$REPOSITORY_OWNER" | tr "[:upper:]" "[:lower:]") + image="ghcr.io/${owner}/bluefin-lts-packages" + echo "${GITHUB_TOKEN}" | docker login ghcr.io -u "$ACTOR" --password-stdin + if [ "$REF" = "refs/heads/main" ]; then + candidates="latest" + else + branch=$(printf '%s' "$REF_NAME" | tr "/" "-" | tr -cd "[:alnum:]._-" | cut -c1-96) + candidates="$branch latest" + fi + resolved="" + for tag in $candidates; do + if docker pull --quiet "ghcr.io/${owner}/bluefin-lts-packages:${tag}" >&2; then + digest=$(docker image inspect "ghcr.io/${owner}/bluefin-lts-packages:${tag}" \ + --format '{{index .RepoDigests 0}}' | sed 's/.*@//') + resolved="${image}@${digest}" + break + fi + done + echo "factory repository: ${resolved:-}" + echo "image=${resolved}" >> "$GITHUB_OUTPUT" + echo "seed=${resolved}" >> "$GITHUB_OUTPUT" + mkdir -p work + if [ -n "$resolved" ]; then + docker image inspect "$resolved" --format '{{json .Config.Labels}}' > work/factory-labels.json + else + # No image means nothing can be skipped, which is not an error. + echo null > work/factory-labels.json + fi + + - name: Select what to build + id: select + env: + ONLY_PACKAGE: ${{ inputs.package }} + FULL: ${{ inputs.full == true && '1' || '' }} + run: | + set -euo pipefail + mkdir -p work + witness=work/factory-state.json + if [ "$(cat work/factory-labels.json)" != "null" ]; then + python3 - <<'PY' + import json, os, sys + labels = json.load(open("work/factory-labels.json")) or {} + value = labels.get("org.projectbluefin.factory.state", "{}") + try: + document = json.loads(value) + except json.JSONDecodeError: + print("::warning title=unreadable state label::treating as no witness") + document = {} + json.dump(document, open("work/factory-state.json", "w")) + PY + else + echo '{}' > "$witness" + fi + only=() + if [ -n "$ONLY_PACKAGE" ]; then + only=(--package "$ONLY_PACKAGE") + fi + full=() + if [ -n "$FULL" ]; then + full=(--full) + fi + python3 factory/tools/rebuild_plan.py \ + --root factory \ + --witness "$witness" \ + --edges work/graph/plan.json \ + "${only[@]}" "${full[@]}" \ + --output work/selection.json + + # Emit one output per wave so the static job graph below can call + # build-stage.yml once per wave. + build_list=$(jq -c '.build_list' work/selection.json) + echo "build_list=$build_list" >> "$GITHUB_OUTPUT" + python3 factory/tools/build_graph.py plan --rows work/graph/rows \ + --packages "$build_list" --output work/graph/plan.json + depth=$(jq '.waves | length' work/graph/plan.json) + if [ "$depth" -gt 16 ]; then + echo "::error::selected graph needs $depth waves; workflow supports sixteen" + exit 1 + fi + for stage in {0..15}; do + packages=$(python3 - "$stage" <<'PY' + import json, sys + plan = json.load(open("work/graph/plan.json")) + selection = set(json.load(open("work/selection.json"))["build_list"]) + waves = plan["waves"] + index = int(sys.argv[1]) + from factory.tools.packit_workflow import package_chunks + names = sorted(set(waves[index]) & selection) if index < len(waves) else [] + print(json.dumps(package_chunks(names))) + PY + ) + echo "stage${stage}=${packages}" >> "$GITHUB_OUTPUT" + echo "wave $stage: $(jq length <<<"$packages") packages" + done + + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + with: + name: factory-build-graph + path: work/graph + retention-days: 7 + + - name: Summarise the run + run: | + { + echo "### Factory selection" + echo + echo "| package | why |" + echo "| --- | --- |" + jq -r '.reasons | to_entries[] | "| `\(.key)` | \(.value) |"' work/selection.json + } >> "$GITHUB_STEP_SUMMARY" + + build0: + needs: prepare + if: needs.prepare.outputs.stage0 != '[]' + strategy: + fail-fast: false + matrix: + chunk: ${{ fromJson(needs.prepare.outputs.stage0) }} + uses: ./.github/workflows/factory-build-stage.yml + with: + stage: '0' + packages: ${{ matrix.chunk }} + seed_image: ${{ needs.prepare.outputs.seed_image }} + + build1: + needs: [prepare, build0] + if: ${{ !cancelled() && needs.prepare.outputs.stage1 != '[]' }} + strategy: + fail-fast: false + matrix: + chunk: ${{ fromJson(needs.prepare.outputs.stage1) }} + uses: ./.github/workflows/factory-build-stage.yml + with: + stage: '1' + packages: ${{ matrix.chunk }} + seed_image: ${{ needs.prepare.outputs.seed_image }} + + build2: + needs: [prepare, build0, build1] + if: ${{ !cancelled() && needs.prepare.outputs.stage2 != '[]' }} + strategy: + fail-fast: false + matrix: + chunk: ${{ fromJson(needs.prepare.outputs.stage2) }} + uses: ./.github/workflows/factory-build-stage.yml + with: + stage: '2' + packages: ${{ matrix.chunk }} + seed_image: ${{ needs.prepare.outputs.seed_image }} + + build3: + needs: [prepare, build0, build1, build2] + if: ${{ !cancelled() && needs.prepare.outputs.stage3 != '[]' }} + strategy: + fail-fast: false + matrix: + chunk: ${{ fromJson(needs.prepare.outputs.stage3) }} + uses: ./.github/workflows/factory-build-stage.yml + with: + stage: '3' + packages: ${{ matrix.chunk }} + seed_image: ${{ needs.prepare.outputs.seed_image }} + + build4: + needs: [prepare, build0, build1, build2, build3] + if: ${{ !cancelled() && needs.prepare.outputs.stage4 != '[]' }} + strategy: + fail-fast: false + matrix: + chunk: ${{ fromJson(needs.prepare.outputs.stage4) }} + uses: ./.github/workflows/factory-build-stage.yml + with: + stage: '4' + packages: ${{ matrix.chunk }} + seed_image: ${{ needs.prepare.outputs.seed_image }} + + build5: + needs: [prepare, build0, build1, build2, build3, build4] + if: ${{ !cancelled() && needs.prepare.outputs.stage5 != '[]' }} + strategy: + fail-fast: false + matrix: + chunk: ${{ fromJson(needs.prepare.outputs.stage5) }} + uses: ./.github/workflows/factory-build-stage.yml + with: + stage: '5' + packages: ${{ matrix.chunk }} + seed_image: ${{ needs.prepare.outputs.seed_image }} + + build6: + needs: [prepare, build0, build1, build2, build3, build4, build5] + if: ${{ !cancelled() && needs.prepare.outputs.stage6 != '[]' }} + strategy: + fail-fast: false + matrix: + chunk: ${{ fromJson(needs.prepare.outputs.stage6) }} + uses: ./.github/workflows/factory-build-stage.yml + with: + stage: '6' + packages: ${{ matrix.chunk }} + seed_image: ${{ needs.prepare.outputs.seed_image }} + + build7: + needs: [prepare, build0, build1, build2, build3, build4, build5, build6] + if: ${{ !cancelled() && needs.prepare.outputs.stage7 != '[]' }} + strategy: + fail-fast: false + matrix: + chunk: ${{ fromJson(needs.prepare.outputs.stage7) }} + uses: ./.github/workflows/factory-build-stage.yml + with: + stage: '7' + packages: ${{ matrix.chunk }} + seed_image: ${{ needs.prepare.outputs.seed_image }} + + build8: + needs: [prepare, build0, build1, build2, build3, build4, build5, build6, build7] + if: ${{ !cancelled() && needs.prepare.outputs.stage8 != '[]' }} + strategy: + fail-fast: false + matrix: + chunk: ${{ fromJson(needs.prepare.outputs.stage8) }} + uses: ./.github/workflows/factory-build-stage.yml + with: + stage: '8' + packages: ${{ matrix.chunk }} + seed_image: ${{ needs.prepare.outputs.seed_image }} + + build9: + needs: [prepare, build0, build1, build2, build3, build4, build5, build6, build7, build8] + if: ${{ !cancelled() && needs.prepare.outputs.stage9 != '[]' }} + strategy: + fail-fast: false + matrix: + chunk: ${{ fromJson(needs.prepare.outputs.stage9) }} + uses: ./.github/workflows/factory-build-stage.yml + with: + stage: '9' + packages: ${{ matrix.chunk }} + seed_image: ${{ needs.prepare.outputs.seed_image }} + + build10: + needs: [prepare, build0, build1, build2, build3, build4, build5, build6, build7, build8, build9] + if: ${{ !cancelled() && needs.prepare.outputs.stage10 != '[]' }} + strategy: + fail-fast: false + matrix: + chunk: ${{ fromJson(needs.prepare.outputs.stage10) }} + uses: ./.github/workflows/factory-build-stage.yml + with: + stage: '10' + packages: ${{ matrix.chunk }} + seed_image: ${{ needs.prepare.outputs.seed_image }} + + build11: + needs: [prepare, build0, build1, build2, build3, build4, build5, build6, build7, build8, build9, build10] + if: ${{ !cancelled() && needs.prepare.outputs.stage11 != '[]' }} + strategy: + fail-fast: false + matrix: + chunk: ${{ fromJson(needs.prepare.outputs.stage11) }} + uses: ./.github/workflows/factory-build-stage.yml + with: + stage: '11' + packages: ${{ matrix.chunk }} + seed_image: ${{ needs.prepare.outputs.seed_image }} + + build12: + needs: [prepare, build0, build1, build2, build3, build4, build5, build6, build7, build8, build9, build10, build11] + if: ${{ !cancelled() && needs.prepare.outputs.stage12 != '[]' }} + strategy: + fail-fast: false + matrix: + chunk: ${{ fromJson(needs.prepare.outputs.stage12) }} + uses: ./.github/workflows/factory-build-stage.yml + with: + stage: '12' + packages: ${{ matrix.chunk }} + seed_image: ${{ needs.prepare.outputs.seed_image }} + + build13: + needs: [prepare, build0, build1, build2, build3, build4, build5, build6, build7, build8, build9, build10, build11, build12] + if: ${{ !cancelled() && needs.prepare.outputs.stage13 != '[]' }} + strategy: + fail-fast: false + matrix: + chunk: ${{ fromJson(needs.prepare.outputs.stage13) }} + uses: ./.github/workflows/factory-build-stage.yml + with: + stage: '13' + packages: ${{ matrix.chunk }} + seed_image: ${{ needs.prepare.outputs.seed_image }} + + build14: + needs: [prepare, build0, build1, build2, build3, build4, build5, build6, build7, build8, build9, build10, build11, build12, build13] + if: ${{ !cancelled() && needs.prepare.outputs.stage14 != '[]' }} + strategy: + fail-fast: false + matrix: + chunk: ${{ fromJson(needs.prepare.outputs.stage14) }} + uses: ./.github/workflows/factory-build-stage.yml + with: + stage: '14' + packages: ${{ matrix.chunk }} + seed_image: ${{ needs.prepare.outputs.seed_image }} + + build15: + needs: [prepare, build0, build1, build2, build3, build4, build5, build6, build7, build8, build9, build10, build11, build12, build13, build14] + if: ${{ !cancelled() && needs.prepare.outputs.stage15 != '[]' }} + strategy: + fail-fast: false + matrix: + chunk: ${{ fromJson(needs.prepare.outputs.stage15) }} + uses: ./.github/workflows/factory-build-stage.yml + with: + stage: '15' + packages: ${{ matrix.chunk }} + seed_image: ${{ needs.prepare.outputs.seed_image }} + + # Names every selected package that did not produce an RPM. Failures are + # read from the run's own artifact list -- a build job uploads only for a + # package that produced RPMs -- so this works whether or not publish ran. + # + # It depends on the waves, not on publish. Making report depend on publish + # while publish depends on report is a cycle GitHub rejects outright; and + # neither genuinely needs the other, since the artifact list is the witness + # for both. + # + # `!cancelled()` rather than `always()`: a run someone cancelled by hand has + # no verdict. Its waves stopped before uploading, so every selected package + # would look failed and the report would name the entire build list. + report: + needs: [prepare, build0, build1, build2, build3, build4, build5, build6, build7, build8, build9, build10, build11, build12, build13, build14, build15] + if: ${{ !cancelled() && needs.prepare.result == 'success' && needs.prepare.outputs.build_list != '[]' }} + runs-on: ubuntu-24.04 + permissions: + contents: read + actions: read + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - name: Name every package that did not build + id: name + env: + GH_TOKEN: ${{ github.token }} + REPOSITORY: ${{ github.repository }} + RUN_ID: ${{ github.run_id }} + RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + BUILD_LIST: ${{ needs.prepare.outputs.build_list }} + run: | + set -euo pipefail + gh api --paginate "repos/$REPOSITORY/actions/runs/$RUN_ID/artifacts?per_page=100" \ + --jq '.artifacts[].name' | jq -R . | jq -s . > artifacts.json + python3 factory/tools/publish_gate.py report \ + --build-list "$BUILD_LIST" \ + --artifacts artifacts.json \ + --run-url "$RUN_URL" \ + --output report.md \ + --failed-output failed.json > /dev/null + cat report.md >> "$GITHUB_STEP_SUMMARY" + echo "failed=$(jq -c . failed.json)" >> "$GITHUB_OUTPUT" + for package in $(jq -r '.[]' failed.json); do + echo "::error title=package did not build::$package failed this run" + done + + publish: + needs: [prepare, build0, build1, build2, build3, build4, build5, build6, build7, build8, build9, build10, build11, build12, build13, build14, build15] + if: ${{ !cancelled() && needs.prepare.result == 'success' && inputs.skip_publish != true && needs.prepare.outputs.build_list != '[]' }} + uses: ./.github/workflows/factory-publish.yml + with: + build_list: ${{ needs.prepare.outputs.build_list }} + seed_image: ${{ needs.prepare.outputs.seed_image }} + buildroot_digest: ${{ needs.prepare.outputs.buildroot_digest }} diff --git a/.github/workflows/factory-packit-srpm-chunk.yml b/.github/workflows/factory-packit-srpm-chunk.yml new file mode 100644 index 00000000..e4f2c3ce --- /dev/null +++ b/.github/workflows/factory-packit-srpm-chunk.yml @@ -0,0 +1,55 @@ +# One chunk of the Packit SRPM fan-out. +# +# This exists only because GitHub caps a matrix at 256 jobs and expands a +# larger one to nothing rather than failing it. The gate enumerates every +# recipe, so once the recipe set passed 256 its matrix would produce zero jobs +# and the run would fail beneath a green `discover` step above it -- exactly +# the failure the non-empty guard in the caller was written to prevent, and +# which that guard cannot see. +# +# The caller hands this workflow one chunk at a time. Per-package parallelism +# is unchanged. +name: Factory Packit SRPM chunk + +on: + workflow_call: + inputs: + packages: + description: JSON array of package names to build SRPMs for. + required: true + type: string + +permissions: + contents: read + +jobs: + srpm: + runs-on: ubuntu-24.04 + strategy: + # One malformed spec must not cancel the rest of the chunk; the whole + # point of the fan-out is to find every bad spec in one run. + fail-fast: false + matrix: + package: ${{ fromJson(inputs.packages) }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 + with: + python-version: "3.13" + + - name: Build and verify the SRPM + env: + PACKAGE: ${{ matrix.package }} + run: | + set -euo pipefail + mkdir -p work/srpm + python3 factory/tools/srpm_gate.py "$PACKAGE" \ + --output "work/srpm/$PACKAGE.src.rpm" + + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + with: + name: factory-srpm-${{ matrix.package }} + path: work/srpm/${{ matrix.package }}.src.rpm + if-no-files-found: error + retention-days: 7 diff --git a/.github/workflows/factory-packit-srpm.yml b/.github/workflows/factory-packit-srpm.yml new file mode 100644 index 00000000..4e91d276 --- /dev/null +++ b/.github/workflows/factory-packit-srpm.yml @@ -0,0 +1,164 @@ +# Packit SRPM gate. +# +# Packit's job in this factory, and its limit, in one place: it turns a recipe +# into an SRPM in seconds so a malformed spec fails before anything expensive +# happens, and it stops there. +# +# It does NOT build binaries, and that is deliberate rather than unfinished. +# Packit-as-a-service builds through Copr, and Copr has no CentOS Stream 10 +# chroot -- EL10 packages are built in epel-10-* or alma-kitten+epel-10-*, a +# different ABI target from the c10s base this image ships on. So .packit.yaml +# carries no `jobs:` section: Packit Service does no work on a pull request. +# Binaries are built by factory-build.yml against the pinned c10s root. +name: Packit SRPM gate + +on: + push: + branches: [main] + paths: + - "factory/packages/**" + - "factory/config/**" + - "factory/tools/**" + - ".packit.yaml" + - ".github/workflows/factory-packit-srpm*.yml" + pull_request: + paths: + - "factory/packages/**" + - "factory/config/**" + - "factory/tools/**" + - ".packit.yaml" + - ".github/workflows/factory-packit-srpm*.yml" + workflow_dispatch: + inputs: + package: + description: Limit the gate to one package. + required: false + type: string + +permissions: + contents: read + +concurrency: + group: factory-srpm-${{ github.ref }} + cancel-in-progress: true + +jobs: + discover: + runs-on: ubuntu-24.04 + outputs: + packages: ${{ steps.packages.outputs.packages }} + chunks: ${{ steps.packages.outputs.chunks }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - id: packages + env: + PACKAGE: ${{ inputs.package }} + run: | + set -euo pipefail + if [ -n "$PACKAGE" ]; then + packages="[\"$PACKAGE\"]" + else + packages="$(python3 factory/tools/packit_workflow.py packages)" + fi + # Capture the substitution before writing it. "echo $(cmd) >> file" + # reports echo's status, not the command's, so a discovery failure + # would leave packages= behind a green job -- and an empty list is a + # matrix that runs nothing while the workflow still passes. + count=$(printf '%s' "$packages" | python3 -c 'import json,sys; print(len(json.load(sys.stdin)))') + test "$count" -gt 0 + echo "discovered $count packages" + printf 'packages=%s\n' "$packages" >> "$GITHUB_OUTPUT" + # A non-empty list still is not enough: GitHub caps a matrix at 256 + # jobs and expands a larger one to nothing rather than failing, so + # a run over the cap produces zero jobs under a green discover step. + chunks="$(python3 - "$packages" <<'PY' + import json, sys + from pathlib import Path + sys.path.insert(0, ".") + from factory.tools.packit_workflow import package_chunks + print(json.dumps(package_chunks(json.loads(sys.argv[1])))) + PY + )" + printf 'chunks=%s\n' "$chunks" >> "$GITHUB_OUTPUT" + + srpm: + needs: discover + if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' + strategy: + fail-fast: false + matrix: + chunk: ${{ fromJson(needs.discover.outputs.chunks) }} + uses: ./.github/workflows/factory-packit-srpm-chunk.yml + with: + packages: ${{ matrix.chunk }} + + # Pull requests get the same gate, but as a required check rather than as a + # fan-out: every changed recipe is covered, and nothing outside the diff is + # rebuilt to answer a question about one spec. + changed: + needs: discover + if: github.event_name == 'pull_request' + runs-on: ubuntu-24.04 + steps: + # Full history, not the default shallow fetch. This job diffs against + # the pull request's base commit, and a depth-1 checkout does not have + # that object: `git diff HEAD` answers "fatal: bad object", + # which names a SHA and says nothing about the shallow clone being the + # cause. + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + with: + fetch-depth: 0 + - name: List changed recipes + id: changed + run: | + set -euo pipefail + base="${{ github.event.pull_request.base.sha }}" + # Name the cause rather than emitting git's "bad object" if the base + # is somehow still missing. + if ! git cat-file -e "${base}^{commit}" 2>/dev/null; then + echo "::error title=base commit unavailable::${base} is not in this clone. The checkout needs fetch-depth: 0 to diff against the pull request base." + exit 1 + fi + changed=$(git diff --name-only "$base" HEAD -- factory/packages \ + | awk -F/ '$1=="factory" && $2=="packages" {print $3}' | sort -u) + printf '%s\n' "$changed" | jq -R 'select(length > 0)' | jq -s . > changed.json + tooling=$(git diff --name-only "$base" HEAD -- factory/tools factory/config .packit.yaml) + export TOOLING_CHANGED="$tooling" + # Shared tooling or locks require the gate to cover every recipe. + # Removed or explicitly blocked recipes cannot produce an SRPM. + python3 - <<'PY' + import json, os + from pathlib import Path + from factory.tools.packit_workflow import package_names + path = Path('changed.json') + eligible = set(package_names()) + names = sorted(eligible) if os.environ['TOOLING_CHANGED'] else [name for name in json.loads(path.read_text()) if name in eligible] + path.write_text(json.dumps(names)) + PY + count=$(jq length changed.json) + echo "$count changed recipes" + cat changed.json + echo "count=$count" >> "$GITHUB_OUTPUT" + echo "packages=$(jq -c . changed.json)" >> "$GITHUB_OUTPUT" + - name: Build an SRPM for each changed recipe + if: steps.changed.outputs.count != '0' + env: + PACKAGES: ${{ steps.changed.outputs.packages }} + run: | + set -euo pipefail + mkdir -p work/srpm + failed=0 + while read -r package; do + [ -n "$package" ] || continue + echo "::group::packit srpm $package" + if python3 factory/tools/srpm_gate.py "$package" \ + --output "work/srpm/$package.src.rpm"; then + echo "::endgroup::" + echo "SRPM OK: $package" + else + echo "::endgroup::" + echo "::error title=SRPM gate failed::$package" + failed=1 + fi + done < <(jq -r '.[]' <<<"$PACKAGES") + test "$failed" -eq 0 diff --git a/.github/workflows/factory-publish.yml b/.github/workflows/factory-publish.yml new file mode 100644 index 00000000..932e5cf7 --- /dev/null +++ b/.github/workflows/factory-publish.yml @@ -0,0 +1,214 @@ +# Assemble a candidate RPM repository and publish it as an OCI image. +# +# The image this produces contains nothing but createrepo_c output: a +# repository directory, its repodata, and a signed repomd.xml. The image build +# copies it in with COPY --from= pinned by digest and points dnf at a file:// +# URL. That is the whole seam -- no third-party package service in the path. +# +# Two rules make this safe to run incrementally: +# +# A failed package keeps its previous build. The candidate is seeded from +# the previously published image and only the packages this run actually +# built are replaced, by source name, so a dropped subpackage leaves with +# its parent and a failure does not remove a working RPM. +# +# The transaction gates the tag. The packages the image installs are +# resolved against the candidate plus the pinned c10s base. If that does not +# resolve -- a library moved its soname and a consumer was not rebuilt -- +# the tag does not move, however many packages built. +name: Factory publish + +on: + workflow_call: + inputs: + build_list: + description: JSON array of packages this run attempted. + required: true + type: string + seed_image: + description: Previously published image to seed from. + required: false + type: string + buildroot_digest: + description: Digest of the build root this run used. + required: true + type: string + +permissions: + contents: read + actions: read + id-token: write + packages: write + attestations: write + +jobs: + publish: + runs-on: ubuntu-24.04 + outputs: + ref: ${{ steps.promote.outputs.ref }} + digest: ${{ steps.push.outputs.digest }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + + - name: Install host RPM and signing tools + run: sudo apt-get update && sudo apt-get install -y rpm + + - uses: sigstore/cosign-installer@c95fe1489396fe8a9fa6b4ca0b05dd4e0c2689de # v3.9.2 + with: + cosign-release: v2.6.0 + + - name: Load the build root + uses: ./.github/actions/factory-load-buildroot + + - name: Collect this run's RPMs + env: + GH_TOKEN: ${{ github.token }} + REPOSITORY: ${{ github.repository }} + RUN_ID: ${{ github.run_id }} + run: | + set -euo pipefail + mkdir -p work/newrpms work/dl + gh api --paginate "repos/$REPOSITORY/actions/runs/$RUN_ID/artifacts?per_page=100" \ + --jq '.artifacts[] | select(.name | startswith("factory-rpm-s")).name' > artifact-names.txt + while read -r artifact; do + [ -n "$artifact" ] || continue + gh run download "$RUN_ID" --repo "$REPOSITORY" \ + --name "$artifact" --dir "work/dl/$artifact" + find "work/dl/$artifact" -name '*.rpm' -not -name '*.src.rpm' \ + -exec cp {} work/newrpms/ \; + done < artifact-names.txt + + - name: Verify and seed the previous repository + env: + SEED_IMAGE: ${{ inputs.seed_image }} + GITHUB_TOKEN: ${{ github.token }} + ACTOR: ${{ github.actor }} + REPOSITORY: ${{ github.repository }} + run: | + set -euo pipefail + mkdir -p work/candidate + echo "$GITHUB_TOKEN" | docker login ghcr.io -u "$ACTOR" --password-stdin + if [ -n "$SEED_IMAGE" ]; then + cosign verify --certificate-oidc-issuer https://token.actions.githubusercontent.com \ + --certificate-identity-regexp "^https://github\.com/${REPOSITORY}/\.github/workflows/factory-(build|publish)\.yml@refs/heads/.*$" \ + "$SEED_IMAGE" >/dev/null + docker pull "$SEED_IMAGE" + docker create --name factory-seed "$SEED_IMAGE" /unused + docker cp factory-seed:/factory/. work/candidate/ + docker image inspect "$SEED_IMAGE" --format '{{json .Config.Labels}}' > work/seed-labels.json + docker rm factory-seed + else + echo '{}' > work/seed-labels.json + fi + + - name: Replace successful builds and record their inputs + id: assemble + env: + BUILD_LIST: ${{ inputs.build_list }} + run: | + set -euo pipefail + python3 factory/tools/assemble_repo.py --seed work/candidate --built work/newrpms \ + --build-list "$BUILD_LIST" --report work/replaced.json + count=$(jq length work/replaced.json) + echo "count=$count" >> "$GITHUB_OUTPUT" + python3 - <<'PY' + import json + from pathlib import Path + from factory.tools.inventory import inventory, factory_root + from factory.tools.rebuild_plan import input_digest, LABEL + labels = json.loads(Path('work/seed-labels.json').read_text()) or {} + state = json.loads(labels.get(LABEL, '{}')) + replaced = set(json.loads(Path('work/replaced.json').read_text())) + root = factory_root() + for record in inventory(root): + if record.name in replaced: + state[record.name] = input_digest(record, root) + Path('work/state.json').write_text(json.dumps(state, sort_keys=True)) + PY + + - name: Create repository metadata + if: steps.assemble.outputs.count != '0' + run: | + set -euo pipefail + docker run --rm --pull=never -v "$PWD/work/candidate:/repository:Z" \ + factory-buildroot:run bash -exc 'dnf -y install createrepo_c; createrepo_c --update /repository' + + - name: Resolve the consumer transaction against factory and CentOS + if: steps.assemble.outputs.count != '0' + run: | + set -euo pipefail + # --assumeno returns failure even after a successful solve. Download + # mode proves resolution without installing into the buildroot. + docker run --rm --pull=never \ + -v "$PWD/work/candidate:/factory:ro,Z" -v "$PWD:/repo:ro,Z" \ + factory-buildroot:run bash /repo/factory/tools/consumer_transaction.sh + + - name: Sign repository metadata before assembling the image + if: steps.assemble.outputs.count != '0' + run: | + set -euo pipefail + cosign sign-blob --yes \ + --output-signature work/candidate/repodata/repomd.xml.asc \ + --output-certificate work/candidate/repodata/repomd.xml.pem \ + work/candidate/repodata/repomd.xml + + - name: Build the OCI repository image with its state and provenance + if: steps.assemble.outputs.count != '0' + env: + BUILDROOT_DIGEST: ${{ inputs.buildroot_digest }} + run: | + set -euo pipefail + mkdir -p image/repository/reports + cp -a work/candidate/. image/repository/ + cp work/buildroot-provenance.json image/repository/reports/buildroot.json + printf 'FROM scratch\nCOPY repository /factory\n' > image/Containerfile + docker build -f image/Containerfile --label "org.projectbluefin.factory.state=$(cat work/state.json)" \ + --label "org.projectbluefin.factory.buildroot=$BUILDROOT_DIGEST" \ + --label "org.opencontainers.image.revision=$(git rev-parse HEAD)" \ + -t factory-repo:stage image + + - name: Push and sign the immutable image + if: steps.assemble.outputs.count != '0' + id: push + env: + REPOSITORY_OWNER: ${{ github.repository_owner }} + RUN_ID: ${{ github.run_id }} + RUN_ATTEMPT: ${{ github.run_attempt }} + run: | + set -euo pipefail + owner=$(printf '%s' "$REPOSITORY_OWNER" | tr '[:upper:]' '[:lower:]') + image="ghcr.io/$owner/bluefin-lts-packages" + immutable="$image:run-$RUN_ID-$RUN_ATTEMPT" + docker tag factory-repo:stage "$immutable" + docker push "$immutable" + digest=$(docker image inspect "$immutable" --format '{{index .RepoDigests 0}}' | sed 's/.*@//') + [[ "$digest" =~ ^sha256:[0-9a-f]{64}$ ]] + cosign sign --yes "$image@$digest" + echo "image=$image" >> "$GITHUB_OUTPUT" + echo "digest=$digest" >> "$GITHUB_OUTPUT" + + - uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2 + if: steps.assemble.outputs.count != '0' + with: + subject-name: ghcr.io/${{ github.repository_owner }}/bluefin-lts-packages + subject-digest: ${{ steps.push.outputs.digest }} + push-to-registry: true + + - name: Move the stream tag after signatures and provenance + if: steps.assemble.outputs.count != '0' + id: promote + env: + IMAGE: ${{ steps.push.outputs.image }} + REF_NAME: ${{ github.ref_name }} + REF: ${{ github.ref }} + run: | + set -euo pipefail + if [ "$REF" = refs/heads/main ]; then + tag=latest + else + tag=$(printf '%s' "$REF_NAME" | tr '/' '-' | tr -cd '[:alnum:]._- ' | tr -d ' ' | cut -c1-96) + fi + test -n "$tag" + docker tag factory-repo:stage "$IMAGE:$tag" + docker push "$IMAGE:$tag" + echo "ref=$IMAGE:$tag" >> "$GITHUB_OUTPUT" diff --git a/.github/workflows/factory-smoke.yml b/.github/workflows/factory-smoke.yml new file mode 100644 index 00000000..4e5d6d42 --- /dev/null +++ b/.github/workflows/factory-smoke.yml @@ -0,0 +1,83 @@ +# Exercise the real CentOS root, graph extraction and binary build on PRs. +# This deliberately has no publication or signing permissions. +name: Factory CentOS smoke +on: + pull_request: + paths: + - 'factory/**' + - '.github/workflows/factory-*.yml' + - '.github/actions/factory-load-buildroot/**' + - 'Containerfile' + workflow_dispatch: +permissions: + contents: read + actions: read +concurrency: + # Each commit owns its artifacts; a slow pull must not block newer checks. + group: factory-smoke-${{ github.ref }}-${{ github.sha }} + cancel-in-progress: false +jobs: + prepare: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - name: Pull and save the pinned CentOS buildroot + run: | + set -euo pipefail + sudo apt-get update && sudo apt-get install -y zstd + python3 factory/tools/buildroot.py --output work/buildroot-resolved.json \ + --snapshot buildroot-provenance.json + docker tag "$(python3 factory/tools/buildroot.py --digest-only)" factory-buildroot:run + docker save factory-buildroot:run | zstd -T0 -3 -o buildroot.tar.zst + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + with: + name: factory-buildroot-image + path: | + buildroot.tar.zst + buildroot-provenance.json + if-no-files-found: error + retention-days: 3 + - name: Parse the recipes in CentOS and solve the graph on the host + run: | + set -euo pipefail + python3 factory/tools/extract_buildrequires.py --image factory-buildroot:run --output work/graph + python3 factory/tools/build_graph.py plan --rows work/graph/rows \ + --packages '["wayland-protocols"]' --output work/graph/plan.json + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + if: always() + with: + name: factory-smoke-graph + path: work/graph + retention-days: 3 + build: + needs: prepare + uses: ./.github/workflows/factory-build-stage.yml + with: + stage: '0' + packages: '["wayland-protocols"]' + image-wiring: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - name: Verify the real Containerfile's optional stage and build context + run: | + set -euo pipefail + mkdir -p work/fixture/system_files/shared work/fixture/system_files/bluefin + touch work/fixture/system_files/shared/.keep work/fixture/system_files/bluefin/.keep + printf 'FROM scratch\nCOPY system_files /system_files\n' > work/fixture/Containerfile + docker build -f work/fixture/Containerfile -t factory-context-fixture work/fixture + args=(--build-arg COMMON_IMAGE_REF=factory-context-fixture + --build-arg BREW_IMAGE_REF=factory-context-fixture) + docker build -f Containerfile "${args[@]}" --target ctx -t factory-context-check . + docker create --name context-check factory-context-check /unused + docker cp context-check:/build_scripts/build.sh work/build.sh + test -s work/build.sh + docker cp context-check:/factory/system/install-factory-repo.sh work/install-repo.sh + test -s work/install-repo.sh + docker rm context-check + docker build -f Containerfile "${args[@]}" --target gnome_packages -t factory-empty-check . + docker create --name empty-check factory-empty-check /unused + mkdir -p work/empty + docker cp empty-check:/factory/. work/empty/ + test ! -f work/empty/repodata/repomd.xml + docker rm empty-check diff --git a/.github/workflows/factory-stack.yml b/.github/workflows/factory-stack.yml new file mode 100644 index 00000000..a5d5b1d1 --- /dev/null +++ b/.github/workflows/factory-stack.yml @@ -0,0 +1,274 @@ +# Full-stack binary verification, with no registry publication or signing. +name: Factory GNOME stack +on: + pull_request: + paths: + - 'factory/**' + - '.github/workflows/factory-stack.yml' + workflow_dispatch: +permissions: + contents: read +concurrency: + group: factory-stack-${{ github.ref }}-${{ github.sha }} + cancel-in-progress: false +jobs: + build: + runs-on: ubuntu-24.04 + timeout-minutes: 360 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - name: Validate recipes and load the pinned CentOS root + run: | + set -euo pipefail + python3 factory/tools/validate.py + python3 factory/tools/render_packit_config.py --check + python3 factory/tools/buildroot.py --output work/buildroot-resolved.json \ + --snapshot work/buildroot-provenance.json + docker tag "$(python3 factory/tools/buildroot.py --digest-only)" factory-buildroot:run + python3 factory/tools/container_policy.py load + - name: Extract exact dependencies and solve the GNOME stack + id: plan + run: | + set -euo pipefail + python3 factory/tools/extract_buildrequires.py --image factory-buildroot:run --output work/graph + python3 factory/tools/build_graph.py plan --rows work/graph/rows \ + --stack --output work/graph/plan.json + test "$(python3 -c 'import json; print(len(json.load(open("work/graph/plan.json"))["waves"]))')" -le 16 + - name: Check GNOME dependency tree before compilation + id: preflight + run: | + set -euo pipefail + python3 factory/tools/dependency_preflight.py --rows work/graph/rows \ + --plan work/graph/plan.json --output work/graph/dependency-preflight.json + # Exercise Glycin's namespace setup with its actual recipe profile + # before spending time on any stack compilation. + python3 factory/tools/container_policy.py args --package glycin > work/glycin-policy-args + mapfile -t security_args < work/glycin-policy-args + docker run --rm --pull=never "${security_args[@]}" \ + factory-buildroot:run bash -c \ + 'set -e; dnf -y install bubblewrap; bwrap --unshare-all --die-with-parent --chdir / \ + --ro-bind /usr /usr --dev /dev --ro-bind-try /etc/ld.so.cache /etc/ld.so.cache \ + --tmpfs /tmp-home --tmpfs /tmp-run --clearenv \ + --setenv HOME /tmp-home --setenv XDG_RUNTIME_DIR /tmp-run \ + --symlink /usr/lib64 /lib64 --symlink /usr/lib /lib /usr/bin/true' \ + 2>&1 | tee work/graph/sandbox-preflight.log + - name: Build wave 0 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + run: python3 factory/tools/build_stack.py --plan work/graph/plan.json --wave 0 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + with: + name: factory-stack-wave0 + path: | + work/stack-logs + work/stack-report.json + if-no-files-found: error + retention-days: 7 + - name: Build wave 1 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + run: python3 factory/tools/build_stack.py --plan work/graph/plan.json --wave 1 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + with: + name: factory-stack-wave1 + path: | + work/stack-logs + work/stack-report.json + if-no-files-found: error + retention-days: 7 + - name: Build wave 2 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + run: python3 factory/tools/build_stack.py --plan work/graph/plan.json --wave 2 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + with: + name: factory-stack-wave2 + path: | + work/stack-logs + work/stack-report.json + if-no-files-found: error + retention-days: 7 + - name: Build wave 3 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + run: python3 factory/tools/build_stack.py --plan work/graph/plan.json --wave 3 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + with: + name: factory-stack-wave3 + path: | + work/stack-logs + work/stack-report.json + if-no-files-found: error + retention-days: 7 + - name: Build wave 4 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + run: python3 factory/tools/build_stack.py --plan work/graph/plan.json --wave 4 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + with: + name: factory-stack-wave4 + path: | + work/stack-logs + work/stack-report.json + if-no-files-found: error + retention-days: 7 + - name: Build wave 5 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + run: python3 factory/tools/build_stack.py --plan work/graph/plan.json --wave 5 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + with: + name: factory-stack-wave5 + path: | + work/stack-logs + work/stack-report.json + if-no-files-found: error + retention-days: 7 + - name: Build wave 6 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + run: python3 factory/tools/build_stack.py --plan work/graph/plan.json --wave 6 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + with: + name: factory-stack-wave6 + path: | + work/stack-logs + work/stack-report.json + if-no-files-found: error + retention-days: 7 + - name: Build wave 7 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + run: python3 factory/tools/build_stack.py --plan work/graph/plan.json --wave 7 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + with: + name: factory-stack-wave7 + path: | + work/stack-logs + work/stack-report.json + if-no-files-found: error + retention-days: 7 + - name: Build wave 8 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + run: python3 factory/tools/build_stack.py --plan work/graph/plan.json --wave 8 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + with: + name: factory-stack-wave8 + path: | + work/stack-logs + work/stack-report.json + if-no-files-found: error + retention-days: 7 + - name: Build wave 9 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + run: python3 factory/tools/build_stack.py --plan work/graph/plan.json --wave 9 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + with: + name: factory-stack-wave9 + path: | + work/stack-logs + work/stack-report.json + if-no-files-found: error + retention-days: 7 + - name: Build wave 10 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + run: python3 factory/tools/build_stack.py --plan work/graph/plan.json --wave 10 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + with: + name: factory-stack-wave10 + path: | + work/stack-logs + work/stack-report.json + if-no-files-found: error + retention-days: 7 + - name: Build wave 11 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + run: python3 factory/tools/build_stack.py --plan work/graph/plan.json --wave 11 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + with: + name: factory-stack-wave11 + path: | + work/stack-logs + work/stack-report.json + if-no-files-found: error + retention-days: 7 + - name: Build wave 12 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + run: python3 factory/tools/build_stack.py --plan work/graph/plan.json --wave 12 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + with: + name: factory-stack-wave12 + path: | + work/stack-logs + work/stack-report.json + if-no-files-found: error + retention-days: 7 + - name: Build wave 13 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + run: python3 factory/tools/build_stack.py --plan work/graph/plan.json --wave 13 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + with: + name: factory-stack-wave13 + path: | + work/stack-logs + work/stack-report.json + if-no-files-found: error + retention-days: 7 + - name: Build wave 14 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + run: python3 factory/tools/build_stack.py --plan work/graph/plan.json --wave 14 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + with: + name: factory-stack-wave14 + path: | + work/stack-logs + work/stack-report.json + if-no-files-found: error + retention-days: 7 + - name: Build wave 15 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + run: python3 factory/tools/build_stack.py --plan work/graph/plan.json --wave 15 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + with: + name: factory-stack-wave15 + path: | + work/stack-logs + work/stack-report.json + if-no-files-found: error + retention-days: 7 + - name: Require the complete stack and solve the GNOME 51 consumer transaction + if: ${{ !cancelled() && steps.preflight.conclusion == 'success' }} + run: | + set -euo pipefail + python3 factory/tools/build_stack.py --plan work/graph/plan.json --check + docker run --rm --pull=never -v "$PWD:/repo:ro" -v "$PWD/work/prior:/factory" \ + factory-buildroot:run bash -c \ + 'set -e; dnf -y install createrepo_c; createrepo_c /factory; bash /repo/factory/tools/consumer_transaction.sh' \ + 2>&1 | tee work/consumer-transaction.log + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + if: always() + with: + name: factory-stack-evidence + path: | + work/graph + work/stack-logs + work/stack-report.json + work/consumer-transaction.log + work/buildroot-provenance.json + if-no-files-found: error + retention-days: 7 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + if: always() + with: + name: factory-stack-rpms + path: work/rpms + if-no-files-found: error + retention-days: 7 diff --git a/.github/workflows/factory-validate.yml b/.github/workflows/factory-validate.yml new file mode 100644 index 00000000..bf792ee5 --- /dev/null +++ b/.github/workflows/factory-validate.yml @@ -0,0 +1,64 @@ +# Validate the GNOME package factory. +# +# The fast gate. It answers "is the factory's own configuration coherent?" +# and never builds an RPM, so it runs on every pull request in well under a +# minute. The expensive proof -- that a package actually compiles against the +# pinned c10s root -- is the SRPM gate and the build workflow. +name: Validate factory + +on: + push: + branches: [main] + paths: + - "factory/**" + - ".packit.yaml" + - ".github/workflows/factory-*.yml" + pull_request: + paths: + - "factory/**" + - ".packit.yaml" + - ".github/workflows/factory-*.yml" + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: factory-validate-${{ github.ref }} + cancel-in-progress: true + +jobs: + validate: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 + with: + python-version: "3.13" + + - name: Run the factory test suite + run: python3 -m unittest discover -s factory/tests -v + + # Each check is run separately so a failure names the invariant that + # broke rather than "validation failed". + - name: Validate factory configuration + run: | + set -euo pipefail + for check in provenance locks buildroot contract specs; do + python3 factory/tools/validate.py --check "$check" + done + + # The committed .packit.yaml is generated. If it drifts from the + # inventory, Packit would build a different package set than the one + # the build workflow builds, and neither job would notice. + - name: Check the generated Packit configuration is current + run: python3 factory/tools/render_packit_config.py --check + + - name: Check every recipe's provenance sidecar is recorded + run: python3 factory/tools/import_srpm.py status + + - name: Report the recipe count + run: | + echo "recipes: $(python3 factory/tools/packit_workflow.py packages \ + | python3 -c 'import json,sys; print(len(json.load(sys.stdin)))')" diff --git a/.gitignore b/.gitignore index d53912f5..20120990 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,28 @@ output/ __pycache__/ *.pyc +# GNOME package factory build output. Everything under factory/work/ is +# produced by a tool run, never authored. +factory/work/ + +# Verified source archives staged beside a recipe by the source pipeline. +# They are verified output, not recipe files: the recipe is the spec and its +# patches, and the payload is fetched and checked on demand. Committing these +# would duplicate every tarball in the tree and make the input digest -- which +# is what decides whether a package rebuilds -- depend on whether someone +# remembered to delete one. +factory/packages/*/*.tar.* +factory/packages/*/*.tar.gz +factory/packages/*/*.tar.xz +factory/packages/*/*.tar.bz2 +factory/packages/*/*.tar.zst +factory/packages/*/*.src.rpm + +# Packit's create-archive placeholder for recipes with no upstream payload. +# It is an empty gzip written to satisfy Packit's contract and consumed by +# nothing; it is regenerated on demand. +factory/packages/*/*.tar.gz + # IDE .idea/ .vscode/ @@ -17,3 +39,5 @@ __pycache__/ .zed/ _build_podman_scp.* _iso_build + +/work/ diff --git a/.packit.yaml b/.packit.yaml new file mode 100644 index 00000000..1ac45106 --- /dev/null +++ b/.packit.yaml @@ -0,0 +1,500 @@ +# Root-level Packit configuration for the GNOME factory. +# +# Generated by tools/render_packit_config.py -- do not edit by hand. +# Re-run it after adding or removing a recipe; `just factory-check` fails if +# the committed file differs from what the inventory renders. +# +# There is deliberately no `jobs:` section. Packit Service would then build in +# Copr on any pull request, and Copr has no CentOS Stream 10 chroot -- EL10 is +# built in epel-10 or alma-kitten+epel-10, which is not the base this image +# ships on. See docs/architecture.md, "What Packit is for here". +actions: + create-archive: + - bash -c 'python3 "$(git rev-parse --show-toplevel)/factory/tools/packit_source0.py"' +packages: + accountsservice: + specfile_path: accountsservice.spec + upstream_package_name: accountsservice + downstream_package_name: accountsservice + paths: + - factory/packages/accountsservice + appstream: + specfile_path: appstream.spec + upstream_package_name: appstream + downstream_package_name: appstream + paths: + - factory/packages/appstream + at-spi2-core: + specfile_path: at-spi2-core.spec + upstream_package_name: at-spi2-core + downstream_package_name: at-spi2-core + paths: + - factory/packages/at-spi2-core + autoconf: + specfile_path: autoconf.spec + upstream_package_name: autoconf + downstream_package_name: autoconf + paths: + - factory/packages/autoconf + avahi: + specfile_path: avahi.spec + upstream_package_name: avahi + downstream_package_name: avahi + paths: + - factory/packages/avahi + blueprint-compiler: + specfile_path: blueprint-compiler.spec + upstream_package_name: blueprint-compiler + downstream_package_name: blueprint-compiler + paths: + - factory/packages/blueprint-compiler + cairo: + specfile_path: cairo.spec + upstream_package_name: cairo + downstream_package_name: cairo + paths: + - factory/packages/cairo + colord-gtk: + specfile_path: colord-gtk.spec + upstream_package_name: colord-gtk + downstream_package_name: colord-gtk + paths: + - factory/packages/colord-gtk + docbook-style-xsl: + specfile_path: docbook-style-xsl.spec + upstream_package_name: docbook-style-xsl + downstream_package_name: docbook-style-xsl + paths: + - factory/packages/docbook-style-xsl + docbook-utils: + specfile_path: docbook-utils.spec + upstream_package_name: docbook-utils + downstream_package_name: docbook-utils + paths: + - factory/packages/docbook-utils + el10-v2-buildflags: + specfile_path: el10-v2-buildflags.spec + upstream_package_name: el10-v2-buildflags + downstream_package_name: el10-v2-buildflags + paths: + - factory/packages/el10-v2-buildflags + flatpak: + specfile_path: flatpak.spec + upstream_package_name: flatpak + downstream_package_name: flatpak + paths: + - factory/packages/flatpak + fontconfig: + specfile_path: fontconfig.spec + upstream_package_name: fontconfig + downstream_package_name: fontconfig + paths: + - factory/packages/fontconfig + gdk-pixbuf2: + specfile_path: gdk-pixbuf2.spec + upstream_package_name: gdk-pixbuf2 + downstream_package_name: gdk-pixbuf2 + paths: + - factory/packages/gdk-pixbuf2 + gdm: + specfile_path: gdm.spec + upstream_package_name: gdm + downstream_package_name: gdm + paths: + - factory/packages/gdm + gi-docgen: + specfile_path: gi-docgen.spec + upstream_package_name: gi-docgen + downstream_package_name: gi-docgen + paths: + - factory/packages/gi-docgen + gjs: + specfile_path: gjs.spec + upstream_package_name: gjs + downstream_package_name: gjs + paths: + - factory/packages/gjs + glib2: + specfile_path: glib2.spec + upstream_package_name: glib2 + downstream_package_name: glib2 + paths: + - factory/packages/glib2 + glycin: + specfile_path: glycin.spec + upstream_package_name: glycin + downstream_package_name: glycin + paths: + - factory/packages/glycin + gnome-autoar: + specfile_path: gnome-autoar.spec + upstream_package_name: gnome-autoar + downstream_package_name: gnome-autoar + paths: + - factory/packages/gnome-autoar + gnome-control-center: + specfile_path: gnome-control-center.spec + upstream_package_name: gnome-control-center + downstream_package_name: gnome-control-center + paths: + - factory/packages/gnome-control-center + gnome-desktop3: + specfile_path: gnome-desktop3.spec + upstream_package_name: gnome-desktop3 + downstream_package_name: gnome-desktop3 + paths: + - factory/packages/gnome-desktop3 + gnome-initial-setup: + specfile_path: gnome-initial-setup.spec + upstream_package_name: gnome-initial-setup + downstream_package_name: gnome-initial-setup + paths: + - factory/packages/gnome-initial-setup + gnome-online-accounts: + specfile_path: gnome-online-accounts.spec + upstream_package_name: gnome-online-accounts + downstream_package_name: gnome-online-accounts + paths: + - factory/packages/gnome-online-accounts + gnome-session: + specfile_path: gnome-session.spec + upstream_package_name: gnome-session + downstream_package_name: gnome-session + paths: + - factory/packages/gnome-session + gnome-settings-daemon: + specfile_path: gnome-settings-daemon.spec + upstream_package_name: gnome-settings-daemon + downstream_package_name: gnome-settings-daemon + paths: + - factory/packages/gnome-settings-daemon + gnome-shell: + specfile_path: gnome-shell.spec + upstream_package_name: gnome-shell + downstream_package_name: gnome-shell + paths: + - factory/packages/gnome-shell + gnome-user-share: + specfile_path: gnome-user-share.spec + upstream_package_name: gnome-user-share + downstream_package_name: gnome-user-share + paths: + - factory/packages/gnome-user-share + gnome50-el10-compat: + specfile_path: gnome50-el10-compat.spec + upstream_package_name: gnome50-el10-compat + downstream_package_name: gnome50-el10-compat + paths: + - factory/packages/gnome50-el10-compat + gobject-introspection: + specfile_path: gobject-introspection-bootstrap.spec + upstream_package_name: gobject-introspection + downstream_package_name: gobject-introspection + paths: + - factory/packages/gobject-introspection + graphviz: + specfile_path: graphviz.spec + upstream_package_name: graphviz + downstream_package_name: graphviz + paths: + - factory/packages/graphviz + gsettings-desktop-schemas: + specfile_path: gsettings-desktop-schemas.spec + upstream_package_name: gsettings-desktop-schemas + downstream_package_name: gsettings-desktop-schemas + paths: + - factory/packages/gsettings-desktop-schemas + gsound: + specfile_path: gsound.spec + upstream_package_name: gsound + downstream_package_name: gsound + paths: + - factory/packages/gsound + gtk4: + specfile_path: gtk4.spec + upstream_package_name: gtk4 + downstream_package_name: gtk4 + paths: + - factory/packages/gtk4 + harfbuzz: + specfile_path: harfbuzz.spec + upstream_package_name: harfbuzz + downstream_package_name: harfbuzz + paths: + - factory/packages/harfbuzz + highway: + specfile_path: highway.spec + upstream_package_name: highway + downstream_package_name: highway + paths: + - factory/packages/highway + libadwaita: + specfile_path: libadwaita.spec + upstream_package_name: libadwaita + downstream_package_name: libadwaita + paths: + - factory/packages/libadwaita + libcanberra: + specfile_path: libcanberra.spec + upstream_package_name: libcanberra + downstream_package_name: libcanberra + paths: + - factory/packages/libcanberra + libdecor: + specfile_path: libdecor.spec + upstream_package_name: libdecor + downstream_package_name: libdecor + paths: + - factory/packages/libdecor + libebur128: + specfile_path: libebur128.spec + upstream_package_name: libebur128 + downstream_package_name: libebur128 + paths: + - factory/packages/libebur128 + libei: + specfile_path: libei.spec + upstream_package_name: libei + downstream_package_name: libei + paths: + - factory/packages/libei + libgda: + specfile_path: libgda.spec + upstream_package_name: libgda + downstream_package_name: libgda + paths: + - factory/packages/libgda + libgee: + specfile_path: libgee.spec + upstream_package_name: libgee + downstream_package_name: libgee + paths: + - factory/packages/libgee + libgexiv2: + specfile_path: libgexiv2.spec + upstream_package_name: libgexiv2 + downstream_package_name: libgexiv2 + paths: + - factory/packages/libgexiv2 + libglib-testing: + specfile_path: libglib-testing.spec + upstream_package_name: libglib-testing + downstream_package_name: libglib-testing + paths: + - factory/packages/libglib-testing + libinput: + specfile_path: libinput.spec + upstream_package_name: libinput + downstream_package_name: libinput + paths: + - factory/packages/libinput + libldac: + specfile_path: libldac.spec + upstream_package_name: libldac + downstream_package_name: libldac + paths: + - factory/packages/libldac + libnotify: + specfile_path: libnotify.spec + upstream_package_name: libnotify + downstream_package_name: libnotify + paths: + - factory/packages/libnotify + libosinfo: + specfile_path: libosinfo.spec + upstream_package_name: libosinfo + downstream_package_name: libosinfo + paths: + - factory/packages/libosinfo + libsoup: + specfile_path: libsoup.spec + upstream_package_name: libsoup + downstream_package_name: libsoup + paths: + - factory/packages/libsoup + libxcvt: + specfile_path: libxcvt.spec + upstream_package_name: libxcvt + downstream_package_name: libxcvt + paths: + - factory/packages/libxcvt + libzip: + specfile_path: libzip.spec + upstream_package_name: libzip + downstream_package_name: libzip + paths: + - factory/packages/libzip + localsearch: + specfile_path: localsearch.spec + upstream_package_name: localsearch + downstream_package_name: localsearch + paths: + - factory/packages/localsearch + lzo: + specfile_path: lzo.spec + upstream_package_name: lzo + downstream_package_name: lzo + paths: + - factory/packages/lzo + malcontent: + specfile_path: malcontent.spec + upstream_package_name: malcontent + downstream_package_name: malcontent + paths: + - factory/packages/malcontent + meson: + specfile_path: meson.spec + upstream_package_name: meson + downstream_package_name: meson + paths: + - factory/packages/meson + mod_dnssd: + specfile_path: mod_dnssd.spec + upstream_package_name: mod_dnssd + downstream_package_name: mod_dnssd + paths: + - factory/packages/mod_dnssd + mozjs140: + specfile_path: mozjs140.spec + upstream_package_name: mozjs140 + downstream_package_name: mozjs140 + paths: + - factory/packages/mozjs140 + mutter: + specfile_path: mutter.spec + upstream_package_name: mutter + downstream_package_name: mutter + paths: + - factory/packages/mutter + nautilus: + specfile_path: nautilus.spec + upstream_package_name: nautilus + downstream_package_name: nautilus + paths: + - factory/packages/nautilus + orca: + specfile_path: orca.spec + upstream_package_name: orca + downstream_package_name: orca + paths: + - factory/packages/orca + pango: + specfile_path: pango.spec + upstream_package_name: pango + downstream_package_name: pango + paths: + - factory/packages/pango + pipewire: + specfile_path: pipewire.spec + upstream_package_name: pipewire + downstream_package_name: pipewire + paths: + - factory/packages/pipewire + ptyxis: + specfile_path: ptyxis.spec + upstream_package_name: ptyxis + downstream_package_name: ptyxis + paths: + - factory/packages/ptyxis + python-dbusmock: + specfile_path: python-dbusmock.spec + upstream_package_name: python-dbusmock + downstream_package_name: python-dbusmock + paths: + - factory/packages/python-dbusmock + python-smartypants: + specfile_path: python-smartypants.spec + upstream_package_name: python-smartypants + downstream_package_name: python-smartypants + paths: + - factory/packages/python-smartypants + python-typogrify: + specfile_path: python-typogrify.spec + upstream_package_name: python-typogrify + downstream_package_name: python-typogrify + paths: + - factory/packages/python-typogrify + selinux-policy: + specfile_path: selinux-policy.spec + upstream_package_name: selinux-policy + downstream_package_name: selinux-policy + paths: + - factory/packages/selinux-policy + shaderc: + specfile_path: shaderc.spec + upstream_package_name: shaderc + downstream_package_name: shaderc + paths: + - factory/packages/shaderc + simdutf: + specfile_path: simdutf.spec + upstream_package_name: simdutf + downstream_package_name: simdutf + paths: + - factory/packages/simdutf + source-highlight: + specfile_path: source-highlight.spec + upstream_package_name: source-highlight + downstream_package_name: source-highlight + paths: + - factory/packages/source-highlight + sqlcipher: + specfile_path: sqlcipher.spec + upstream_package_name: sqlcipher + downstream_package_name: sqlcipher + paths: + - factory/packages/sqlcipher + tecla: + specfile_path: tecla.spec + upstream_package_name: tecla + downstream_package_name: tecla + paths: + - factory/packages/tecla + tinysparql: + specfile_path: tinysparql.spec + upstream_package_name: tinysparql + downstream_package_name: tinysparql + paths: + - factory/packages/tinysparql + umockdev: + specfile_path: umockdev.spec + upstream_package_name: umockdev + downstream_package_name: umockdev + paths: + - factory/packages/umockdev + vala: + specfile_path: vala.spec + upstream_package_name: vala + downstream_package_name: vala + paths: + - factory/packages/vala + vte291: + specfile_path: vte291.spec + upstream_package_name: vte291 + downstream_package_name: vte291 + paths: + - factory/packages/vte291 + wayland: + specfile_path: wayland.spec + upstream_package_name: wayland + downstream_package_name: wayland + paths: + - factory/packages/wayland + wayland-protocols: + specfile_path: wayland-protocols.spec + upstream_package_name: wayland-protocols + downstream_package_name: wayland-protocols + paths: + - factory/packages/wayland-protocols + xdg-desktop-portal: + specfile_path: xdg-desktop-portal.spec + upstream_package_name: xdg-desktop-portal + downstream_package_name: xdg-desktop-portal + paths: + - factory/packages/xdg-desktop-portal + xdg-desktop-portal-gnome: + specfile_path: xdg-desktop-portal-gnome.spec + upstream_package_name: xdg-desktop-portal-gnome + downstream_package_name: xdg-desktop-portal-gnome + paths: + - factory/packages/xdg-desktop-portal-gnome diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2ad87d7f..9d528434 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,25 @@ repos: - id: check-toml - id: check-yaml - id: end-of-file-fixer + # Imported recipes are excluded. They are upstream content, imported + # byte-for-byte and applied with `patch -p1`, and rewriting them + # breaks both halves of that: + # + # - a patch that removes a line carrying trailing whitespace stops + # matching once the whitespace is stripped, so `patch` fails. + # factory/packages/fontconfig/fontconfig-fix-crash.patch has one + # at line 26. + # - AGENTS.md forbids modifying installed upstream/vendor content + # unless the task is about that content. + # + # It also churns the input digest, which is what decides whether a + # package is selected for a rebuild, so re-importing the same + # upstream spec would select the factory for no reason. + exclude: ^factory/packages/ - id: trailing-whitespace + # As above. 68 imported files carry trailing whitespace, 51 of them + # patches. + exclude: ^factory/packages/ - id: check-merge-conflict - id: detect-private-key - id: check-added-large-files @@ -29,3 +47,20 @@ repos: entry: 'uses:.*projectbluefin/(actions|testsuite).*@[0-9a-f]{40}' types: [yaml] files: '(^\.github/workflows/.*\.yml$|action\.yml$)' + - repo: local + hooks: + # The factory's own gate, run at commit time rather than only in CI so a + # broken recipe set is caught before it reaches a pull request. This is + # the fast check only -- it builds nothing. + - id: factory-validate + name: Validate the GNOME package factory + language: system + entry: python3 factory/tools/validate.py + pass_filenames: false + files: ^(factory/(packages|config|tools)/|\.packit\.yaml) + - id: factory-packit-config-current + name: .packit.yaml matches the recipe inventory + language: system + entry: python3 factory/tools/render_packit_config.py --check + pass_filenames: false + files: ^(factory/packages/|\.packit\.yaml) diff --git a/AGENTS.md b/AGENTS.md index 5590234b..ed40a1c6 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -20,6 +20,11 @@ Do not load every skill for a narrow task. ## Repository map - `Containerfile`: image build definition. +- `factory/`: GNOME package factory. Builds the desktop stack as RPMs against + the pinned CentOS Stream 10 base and publishes it as an OCI repository image + the Containerfile copies in. Start at + [`factory/README.md`](factory/README.md); task routing is + [`docs/skills/factory/SKILL.md`](docs/skills/factory/SKILL.md). - `build_scripts/`: package, service, extension, and metadata steps. - `system_files/`: files installed into the image. - `system_files_overrides/`: variant- and architecture-specific files. @@ -32,6 +37,7 @@ Do not load every skill for a narrow task. just check just lint just unit-tests +just factory-check pre-commit run --all-files actionlint .github/workflows/*.yml ``` @@ -42,6 +48,9 @@ Before requesting review, run: just check && pre-commit run --all-files ``` +`just factory-check` is additionally required for anything touching `factory/**` +or `.packit.yaml`. + Use the build and testing skills before starting a long image or VM test. ## Required boundaries @@ -58,6 +67,21 @@ Do not cancel long-running image builds. Use an appropriate timeout. Do not modify installed upstream/vendor documentation unless the task explicitly concerns that vendor content. +## Package factory boundaries + +- **A build never downloads a source.** Every recipe carries a SHA-512 lock in + `factory/config/upstream-sources.json`. Adding a recipe without one, or + pointing its primary URL at a Fedora lookaside, is a defect. +- **The build root is pinned by digest** in `factory/config/buildroot.json`. + Moving it changes the ABI every published RPM is attributable to, and needs + a pull request. +- **Packit is the SRPM gate only.** Adding a `jobs:` section to `.packit.yaml` + hands binary builds to Copr, which has no CentOS Stream 10 chroot and would + build against the wrong ABI. +- **`.packit.yaml` is generated.** Edit `config/upstream-sources.json` and run + `just factory-packit-config`; a hand edit fails `just factory-check` rather + than diverging silently. + ## Branch and release safety All pull requests target `testing`. `testing` is the integration branch: each diff --git a/Containerfile b/Containerfile index 2b666d19..b892e3fb 100644 --- a/Containerfile +++ b/Containerfile @@ -2,14 +2,26 @@ ARG MAJOR_VERSION="${MAJOR_VERSION:-c10s}" ARG AKMODS_VERSION="${AKMODS_VERSION:-coreos-stable-43}" ARG COMMON_IMAGE_REF ARG BREW_IMAGE_REF +# The GNOME stack this image installs, built by factory/ against this same +# CentOS Stream base. Pinned by digest: a tag would let the repository change +# under a rebuild, which would make the image unreproducible and the packages +# in it unattributable. A local empty stage is the default until a factory +# digest is available, preserving the existing GNOME installation path. +ARG GNOME_PACKAGES_IMAGE_REF="gnome_packages_empty" # Upstream mounts akmods-zfs and akmods-nvidia-open; LTS defaults to CoreOS-stable kernel tags. # Keep this build recipe in sync with the testing promotion pipeline. FROM ghcr.io/ublue-os/akmods-zfs:${AKMODS_VERSION} AS akmods_zfs FROM ghcr.io/ublue-os/akmods-nvidia-open:${AKMODS_VERSION} AS akmods_nvidia_open FROM ${COMMON_IMAGE_REF} AS common FROM ${BREW_IMAGE_REF} AS brew +FROM scratch AS gnome_packages_empty +COPY factory/empty/ /factory/ +# The factory publishes a createrepo_c repository as the image's only +# content. COPY --from of a scratch image carries that directory and nothing +# else, so there is no shell or package manager to reason about in the source +# stage. +FROM ${GNOME_PACKAGES_IMAGE_REF} AS gnome_packages FROM scratch AS ctx - COPY system_files /files COPY --from=brew /system_files /files COPY --from=common /system_files/shared /files @@ -17,6 +29,7 @@ COPY --from=common /system_files/bluefin /files COPY system_files_overrides /overrides COPY build_scripts /build_scripts COPY image-versions.yaml /image-versions.yaml +COPY factory /factory ARG MAJOR_VERSION="${MAJOR_VERSION:-c10s}" FROM quay.io/centos-bootc/centos-bootc:$MAJOR_VERSION @@ -27,8 +40,15 @@ ARG FEDORA_AKMODS_VERSION="${FEDORA_AKMODS_VERSION:-43}" ARG IMAGE_NAME="${IMAGE_NAME:-bluefin}" ARG IMAGE_VENDOR="${IMAGE_VENDOR:-ublue-os}" ARG SHA_HEAD_SHORT="${SHA_HEAD_SHORT:-deadbeef}" +ARG GNOME_PACKAGES_IMAGE_REF ENV FEDORA_AKMODS_VERSION="${FEDORA_AKMODS_VERSION}" +# The factory's RPM repository, installed by the GNOME group below. Copied in +# rather than mounted: the RPMs must survive the RUN for the installed +# packages to record a valid file reference for rpm verification, and a +# tmpfs mount would leave dangling references in the rpm database. +COPY --from=gnome_packages /factory /run/gnome-packages + RUN --mount=type=tmpfs,dst=/opt \ --mount=type=tmpfs,dst=/tmp \ --mount=type=tmpfs,dst=/var \ diff --git a/Justfile b/Justfile index f5a79c75..9b25ca8e 100644 --- a/Justfile +++ b/Justfile @@ -9,6 +9,7 @@ export coreos_stable_kernel := env("COREOS_STABLE_KERNEL", "7.1.8-200.fc44") export HOME := env("HOME", "") export common_image := env("COMMON_IMAGE", "ghcr.io/projectbluefin/common:latest") export brew_image := env("BREW_IMAGE", "ghcr.io/ublue-os/brew:latest") +export gnome_packages_image := env("GNOME_PACKAGES_IMAGE", "ghcr.io/projectbluefin/bluefin-lts-packages:latest") alias build-vm := build-qcow2 alias rebuild-vm := rebuild-qcow2 @@ -127,6 +128,20 @@ build $target_image=image_name $tag=default_tag $dx="0" $nvidia="0" $kernel_pin= BUILD_ARGS+=("--build-arg" "IMAGE_VENDOR=${repo_organization}") BUILD_ARGS+=("--build-arg" "ENABLE_DX=${dx}") BUILD_ARGS+=("--build-arg" "ENABLE_NVIDIA=${nvidia}") +BUILD_ARGS+=("--build-arg" "GNOME_VERSION=${gnome_version}") + + # The GNOME factory image is optional. An empty digest means the factory + # has not published yet, and the build must still work using the base + # image's GNOME -- so the arg is omitted entirely rather than passed empty, + # because "FROM ''" is a parse error rather than a fallback. + gnome_packages_sha=$(yq -r '.images[] | select(.name == "gnome_packages") | .digest // ""' image-versions.yaml) + if [[ -n "${gnome_packages_sha}" ]]; then + BUILD_ARGS+=("--build-arg" "GNOME_PACKAGES_IMAGE_REF=${gnome_packages_image}@${gnome_packages_sha}") + echo "GNOME packages from ${gnome_packages_image}@${gnome_packages_sha}" + else + echo "WARNING: no GNOME factory digest in image-versions.yaml; using the base image's GNOME" + echo " expected until the factory publishes its first image" + fi # Select the pinned CoreOS akmods stream for mounted ZFS/NVIDIA images. ARCH=$(uname -m) coreos_fedora_ver="${coreos_stable_version}" @@ -509,3 +524,76 @@ secureboot base="bluefin-lts" tag="stable" flavor="main": [group('Just')] unit-tests: bats tests/unit/ + +# ── GNOME package factory ─────────────────────────────────────────────────── +# The factory in factory/ builds the GNOME stack against CentOS Stream 10 and +# publishes it as an OCI repository image. See factory/README.md. +# +# These are fast local checks. Nothing here builds an RPM: that is the +# `Factory build packages` workflow, against the pinned c10s build root. + +# Everything CI gates on for the factory, in the order it should fail. +# Mirrors .github/workflows/factory-validate.yml. +[group('Factory')] +factory-check: + #!/usr/bin/env bash + set -euo pipefail + echo "==> factory unit tests" + python3 -m unittest discover -s factory/tests + echo "==> factory configuration" + for check in provenance locks buildroot contract specs; do + python3 factory/tools/validate.py --check "$check" + done + echo "==> recipe provenance sidecars" + python3 factory/tools/import_srpm.py status + echo "==> generated Packit configuration is current" + python3 factory/tools/render_packit_config.py --check + +# What the factory would build and why. Pass `full=true` to ignore the +# published state and list everything. +[group('Factory')] +factory-plan full="false": + #!/usr/bin/env bash + set -euo pipefail + args=(--root factory) + [[ "{{ full }}" == "true" ]] && args+=(--full) + python3 factory/tools/rebuild_plan.py "${args[@]}" + +# Check the GNOME dependency tree in the pinned CentOS root without compiling. +[group('Factory')] +factory-dependencies engine="podman": + #!/usr/bin/env bash + set -euo pipefail + python3 factory/tools/buildroot.py --engine "{{ engine }}" --output work/buildroot-resolved.json + image=$(python3 factory/tools/buildroot.py --digest-only) + python3 factory/tools/extract_buildrequires.py --engine "{{ engine }}" --image "$image" --output work/graph + python3 factory/tools/build_graph.py plan --rows work/graph/rows --stack --output work/graph/plan.json + python3 factory/tools/dependency_preflight.py --rows work/graph/rows --plan work/graph/plan.json --output work/graph/dependency-preflight.json + +# The resolved upstream source for every recipe, and which are still unlocked. +[group('Factory')] +factory-sources: + python3 factory/tools/source_pipeline.py report + +# Re-render config/upstream-sources.json from the recipes, in the build root. +# Needs a container engine; downloads every source to compute its digest. +[group('Factory')] +factory-relock engine="podman": + #!/usr/bin/env bash + set -euo pipefail + python3 factory/tools/render_source_locks.py --engine "{{ engine }}" --write + python3 factory/tools/render_packit_config.py --write + +# Re-render .packit.yaml after adding or removing a recipe. +[group('Factory')] +factory-packit-config: + python3 factory/tools/render_packit_config.py --write + +# Prove one recipe produces an SRPM. Needs a container engine. +[group('Factory')] +factory-srpm package engine="docker": + #!/usr/bin/env bash + set -euo pipefail + mkdir -p factory/work/srpm + python3 factory/tools/srpm_gate.py "{{ package }}" \ + --engine "{{ engine }}" --output "factory/work/srpm/{{ package }}.src.rpm" diff --git a/build_scripts/build.sh b/build_scripts/build.sh index ab2343d4..01f5eb94 100755 --- a/build_scripts/build.sh +++ b/build_scripts/build.sh @@ -59,6 +59,21 @@ apply_variant() { # Satisfy dracut-install when installing the /root symlink pointing to var/roothome mkdir -p /var/roothome +# The GNOME package factory. Its repository is copied into the image by the +# Containerfile; this enables it before any dnf call, so the base packages and +# the GNOME group below all resolve against the same repository. +# +# Runs before the base overrides because those install glib2, fontconfig and +# selinux-policy, and dnf decides which repository answers for a name at +# resolution time. Enabling it afterwards would mean those three come from the +# base image while GNOME comes from the factory -- the exact skew the +# versionlock set in 10-packages-image-base.sh exists to prevent. +if [ -f /run/gnome-packages/repodata/repomd.xml ]; then + printf "::group:: ===gnome-factory-repo===\n" + bash "${CONTEXT_PATH}/factory/system/install-factory-repo.sh" + printf "::endgroup::\n" +fi + run_buildscripts_for base CUSTOM_NAME="bluefin" diff --git a/docs/skills/INDEX.md b/docs/skills/INDEX.md index 2a6f9c78..f290716f 100644 --- a/docs/skills/INDEX.md +++ b/docs/skills/INDEX.md @@ -8,6 +8,7 @@ matches the task; supporting references are loaded on demand. | Build or validate an image locally | [`build`](build/SKILL.md) | | Choose or change packages | [`packages`](packages/SKILL.md) | | Resolve platform package differences | [`centos-vs-fedora`](centos-vs-fedora/SKILL.md) | +| Build, bump or debug GNOME RPM recipes | [`factory`](factory/SKILL.md) | | Change or debug CI workflows | [`ci-cd`](ci-cd/SKILL.md) | | Add or remove desktop extensions | [`gnome-extensions`](gnome-extensions/SKILL.md) | | Change hardware integration | [`hardware`](hardware/SKILL.md) | diff --git a/docs/skills/ci-cd/SKILL.md b/docs/skills/ci-cd/SKILL.md index f84b93ea..b0806187 100644 --- a/docs/skills/ci-cd/SKILL.md +++ b/docs/skills/ci-cd/SKILL.md @@ -46,7 +46,10 @@ metadata: | NVIDIA manifest assembly | `.github/workflows/build-nvidia-manifest.yml` | | Promotion | `.github/workflows/promote-testing-to-main.yml` | | Stable publication | `.github/workflows/execute-release.yml` | -| End-to-end tests | `.github/workflows/run-testsuite.yml`, `pr-e2e.yml` | +| End-to-end tests | `.github/workflows/run-testsuite.yml`, `pr-e2e.yml`, `post-testing-e2e.yml` | +| Complete GNOME factory stack | `.github/workflows/factory-stack.yml` | +| CentOS factory smoke | `.github/workflows/factory-smoke.yml` | +| GNOME factory build/publication | `.github/workflows/factory-build.yml`, `factory-build-stage.yml`, `factory-publish.yml` | | Syntax and repository checks | `.github/workflows/pr-testsuite.yml`, `unit-tests.yml` | | Dependency updates | `.github/renovate.json5`, Renovate workflows | diff --git a/docs/skills/factory/SKILL.md b/docs/skills/factory/SKILL.md new file mode 100644 index 00000000..21cbf086 --- /dev/null +++ b/docs/skills/factory/SKILL.md @@ -0,0 +1,220 @@ +--- +name: factory +description: >- + The GNOME package factory in factory/. Use when adding, importing, bumping + or debugging an RPM recipe, changing the build root or source locks, or + working out which packages a build would produce. +--- + +# GNOME package factory + +`factory/` builds the GNOME stack as RPMs against **CentOS Stream 10** and +publishes it as an OCI repository image the image build copies in with +`COPY --from=`. See [`factory/README.md`](../../../factory/README.md) for the +design and +[`factory/docs/architecture.md`](../../../factory/docs/architecture.md) for the +pipeline. + +## When to use + +- Adding, importing, bumping or removing a recipe +- Changing `config/upstream-sources.json`, the build root, or a source lock +- Working out what a build would produce, and why +- Debugging a recipe that will not build, or a source that will not verify + +## When not to use + +- Which packages the image installs → [packages](../packages/SKILL.md) +- Why a package is missing on CentOS → [centos-vs-fedora](../centos-vs-fedora/SKILL.md) +- CI/CD workflow changes → [ci-cd](../ci-cd/SKILL.md) + +## The four rules + +1. **No build downloads anything.** Every recipe has a lock in + `config/upstream-sources.json` naming the resolved upstream URL and its + SHA-512. `source_pipeline.py` verifies before the build and again inside it. + A recipe with no lock cannot build. + +2. **Build order is solved, never declared.** `build_graph.py` derives waves + from real `BuildRequires` parsed by `rpmspec` in the build root. There are + no hand-assigned stages anywhere. + +3. **Packit is the SRPM gate, not the builder.** Copr has no CentOS Stream 10 + chroot, so Packit-as-a-service would build against the wrong ABI. Binaries + are built by `factory-build.yml` against the pinned `c10s` root. + +4. **A failed package keeps its previous build.** Publication is incremental; + only the consumer transaction can block the tag. + +## Everyday commands + +```bash +just factory-check # the full fast gate; builds nothing +just factory-sources # resolved source per recipe, and what is unlocked +just factory-plan # what a build would select, and why +just factory-dependencies # dependency-tree gate in CentOS; downloads metadata, compiles nothing +just factory-relock # re-render config/upstream-sources.json (needs a container engine) +just factory-srpm # prove one recipe produces an SRPM +``` + +Run `just factory-check` before every commit that touches `factory/**` or +`.packit.yaml`. CI runs the same commands. + +## Adding a package + +1. Seed it, recording provenance: + + ```bash + python3 factory/tools/seed_from_copr.py \ + --repo https://download.copr.fedorainfracloud.org/results/jreilly1821/c10s-gnome-50 \ + --chroot epel-10-x86_64 --package + ``` + +2. `just factory-relock` — resolves `Source0` with `rpmspec` in the build root + and records the SHA-512. + +3. `just factory-packit-config` — re-render `.packit.yaml`. + +4. `just factory-check`. + +## Traps worth knowing + +- **RPM source URL fragments rename the local archive.** `#/name.tar.gz` + must match the lock filename; it does not select an archive subdirectory. +- **The spec filename can differ from its recipe name.** Discover the single + `*.spec`, as inventory does; gobject-introspection uses a bootstrap filename. +- **`rpmbuild` must be given the spec path explicitly.** With no argument it + globs the working directory, finds nothing in the build output directory, + exits 0, and writes nothing. A green build with no RPMs. +- **CRB is disabled in the c10s image.** `meson`, `ninja-build`, + `wayland-devel` and `gcc-g++` live only there. Without + `dnf config-manager --set-enabled crb`, BuildRequires resolution fails on + "No matching package to install: meson". +- **`rpmvercmp` is not string order.** `50.0` beats `50~rc`, and `1.0.0.10` + beats `1.0.0.9`. A plain sort seeds the desktop from release candidates. +- **Imported specs carry upstream typos.** `docbook-style-xsl` had a + malformed `%2F{%version}` that produced a 404 URL. The digest check is what + surfaced it. +- **GNOME 51 changes API and dependencies.** Keep Mutter's API version, + Wayland minima, and source locks aligned with upstream meson.build. Remove + backports already present upstream and rebase remaining patches. Glycin’s + jpegxl-sys binding also sets a minimum for the private JPEG XL bundle; match + that minimum instead of bypassing pkg-config checks. Match all + upstream version minima in BuildRequires, including Pango’s HarfBuzz minimum + GNOME Portal’s core portal minimum, and Control Center’s AccountsService + minimum, + so the graph selects a factory prerequisite when CentOS is too old. Malcontent + supplies Initial Setup’s enabled parental controls; lock all of its bundled + subprojects and expose new pkgconfig capabilities before planning. Manual + Meson setup calls must use `--wrap-mode=nodownload`; missing dependencies + must fail instead of fetching an unlocked fallback. AccountsService derives its + project version from Git; when prep creates a Git tree, tag the locked release + before Meson setup so generated pkgconfig versions match the recipe. + +## Build and publication verification + +- Reuse the rows extracted in CentOS; the host planner must not rerun RPM. + Check the exact buildroot pin against all inspected RepoDigests: Podman can + list an architecture manifest before the pinned multiarch index. A successful + pull and an exact digest match are both required. + Map capabilities through binary subpackage names, explicit Provides, and + CentOS repository metadata; `pkgconfig(glib-2.0)` is one capability. Add + explicit versioned Provides to devel subpackages for capabilities absent + from CentOS metadata, including GTK variants; otherwise missing libraries + cannot participate in the graph before their first build. + DNF Python callers must load config and variable files before repos; + otherwise CentOS metalinks retain the literal `$stream` and return 404. +- Pass JSON-encoded chunks to reusable build matrices, including a single package. +- Keep dependency installation and compilation in one container. Resolve RPM + exit code 11 from generated BuildRequires with a bounded install/retry loop. +- Retry DNF once with refreshed metadata for mirror/Curl errors only. Missing + dependencies and signature failures remain fatal. +- Admit artifacts only from strictly earlier waves; never same-wave siblings. +- Before compiling the stack, run `dependency_preflight.py` against freshly + extracted CentOS rows and the stack plan. Each selected BuildRequires needs + an exact base witness or a compatible earlier-wave provider. Declare versioned + Provides when generated capabilities have no verifiable factory version; + do not infer their versions from source versions. Preserve the native RPM + comparison tests run by the extractor and the preflight report in CI evidence. +- Replace seed RPMs by the successful binaries' full source name, splitting + the NEVR from the right. Failed recipes keep their old binaries and state. +- Resolve the consumer transaction using CentOS/CRB/EPEL and the candidate, + with DNF download mode; `--assumeno` is not a successful solve signal. The + stack workflow must also install the resolved RPMs without network repos, + assert the installed core versions are 51, and run `gnome-shell --version`. + Include SELinux policy in the stack targets to satisfy the compatibility + RPM’s policy floor. Pass both `semodule -p` and `-S` during policy installation + so the pinned bootc root writes module stores at the packaged + `/var/lib/selinux` path without changing its runtime store configuration. + Replace CentOS’s exact-version extra policy RPMs only when their modules + are included in the new policy packages. + A source version or dependency solve alone does not verify the installed stack. +- Sign metadata before copying it into the image, and sign the immutable OCI + digest before moving a stream tag. Seed extraction uses `/factory`. +- Verify `Factory CentOS smoke` in CI before trusting local fast gates. + +These mechanisms are adapted from `projectbluefin/utah-packages`; its +Hummingbird repositories, exclusions, and disttags do not apply to CentOS. +Bootstrap edges require exact CentOS RPM version witnesses; declared Utah +stages cannot substitute for a successful dependency transaction. + +## Red Flags + +- A recipe with no lock entry, or a lock with no `sha512` +- A hand-assigned build stage +- A `jobs:` section added to `.packit.yaml` +- The build root referenced by tag rather than digest + +## Full-stack verification + +Run `factory-stack.yml` on the candidate branch to build the GNOME 51 targets and unmet prerequisites +with computed waves. Inspect `factory-stack-evidence` for every +package status and bootstrap witness; a partial RPM artifact is not a successful +stack. Generated cargo bundles come from the upstream Cargo.lock, verify each +crate, and carry their own SHA-512 lock. An explicit relative `lockfile` may +select a nested Cargo.lock from the verified archive. Orca 51 uses this for +MathCAT and builds a native RPM with a tested Python extension; preserve its +speech and braille support. Capture `%{cargo_license}` inside a shell group +with redirection after the closing brace, then require a nonempty summary. +A bare parametric macro can consume shell redirection as a macro argument. +Do not run cargo downloads in rpmbuild. + +Umockdev builds use the narrow `packages/umockdev/umockdev-seccomp.json` profile to allow +`open_tree` while preserving the default syscall restrictions and capabilities. +Its SELinux tests detect active SELinux, rather than the existence of the +`selinuxenabled` program; keep the full test suite enabled. + +Match Meson test directories to the actual setup directory. Manual `build/` +recipes cannot use `%meson_test` without overriding its default directory. + +Check every GTK subpackage file list against the new release's installed tools, +including removed icon-editor and Shaper entries. Package new Mutter schemas +in its common subpackage. Include and validate Shell's CalendarServer desktop +entry alongside its D-Bus service. When Glycin replaces GdkPixbuf’s loader subpackage, +provide its versioned ISA capability for CentOS GTK 3 consumers. Exclude +Localsearch’s bundled private extract ZIP library from generated requirements +while retaining its files and runtime search path. + +BuildRequires must also expose runtime prerequisites pulled in by development +packages when an ABI upgrade prevents using the CentOS baseline. Initial Setup's +GDM development package pulls in Session and Shell; require Shell 51 explicitly +so the plan builds it first and avoids CentOS Control Center's AccountsService +ABI 0 dependency while the factory supplies ABI 1. + +Recipe-scoped syscall profiles retain Moby default restrictions and kernel +capability checks. Glycin permits nested Bubblewrap namespace setup without +extra capabilities; keep sandbox tests enabled and stage private test libraries +under the read-only `/usr` bind in the ephemeral container. Retarget private +RPATHs only in the test copies; preserve packaged installation paths. +Resolve Glycin loader test selectors by workspace package URL; identical +registry package names are ambiguous. Keep its pre-compilation Bubblewrap and +offline Cargo selector probes enabled, and retain complete Meson failure logs. +The stack CI preflight must run the namespace probe with the recipe's actual +syscall profile before wave zero, since graph coverage cannot verify host support. +On AppArmor hosts, load and select the recipe's `glycin.apparmor` profile through +`container_policy.py`. It preserves the pinned Moby default restrictions and +permits mount/pivot operations in Bubblewrap's private user namespace with the +engine's existing capabilities. Use the same policy in preflight and both build +paths; never fall back to an unconfined profile or disable tests. +Derive Glycin's fixture extension exclusions from disabled optional loaders: +EL10 omits HEIF/AVIF; JPEG XL stays tested when its loader is enabled. diff --git a/factory/.gitignore b/factory/.gitignore new file mode 100644 index 00000000..46359aa1 --- /dev/null +++ b/factory/.gitignore @@ -0,0 +1 @@ +.crate-cache/ diff --git a/factory/README.md b/factory/README.md new file mode 100644 index 00000000..da1adb7d --- /dev/null +++ b/factory/README.md @@ -0,0 +1,258 @@ +# GNOME package factory + +Builds the GNOME desktop stack (targeting GNOME 51) as RPMs against **CentOS Stream 10**, and +publishes them as an OCI image the image build copies in. + +This directory is the package factory. It is not consumed by anything except +the image build's `Containerfile`, and it does not modify the image directly: +it produces a repository, and the image points dnf at it. + +## Why this exists + +bluefin-lts is built on CentOS Stream 10, which ships GNOME 47. Until recently +the GNOME 50 stack came from a third-party COPR project +(`jreilly1821/c10s-gnome-50`). That works, and it was the right call while the +stack was somebody else's problem to maintain. It is not a durable answer for +a release line: the repository's contents, its rebuild policy, and its +availability are all outside this project's control. + +So the stack is built here, from recipes we control, against the same base the +image ships on. + +## What is decided, and why + +| Decision | Choice | Reasoning | +|---|---|---| +| Location | `factory/` inside this repo | One place, one token, easy end-to-end test. Cost: factory workflows share this repository's permissions. | +| Output | Signed GHCR OCI repository image | The image copies it in with `COPY --from=` pinned by digest. No third-party package service in the path. | +| Build root | `quay.io/centos-bootc/centos-bootc:c10s`, digest-pinned | Byte-identical to what ships. Anything else is a different ABI target. | +| Packit's role | SRPM gate only | See below. | +| Recipe seed | The existing COPR's SRPMs | These already carry the EL10 adaptations. Starting from them means the GNOME 51 work is the version bump, not the port. | +| Architectures | amd64 for v1 | The image publishes amd64 and arm64. arm64 follows once the amd64 set is green. | + +### Why Packit is the gate and not the builder + +Packit-as-a-service builds through Copr. **Copr has no CentOS Stream 10 +chroot.** EL10 packages are built in `epel-10-*` or `alma-kitten+epel-10-*`, +which is a different ABI target from the `c10s` base this image runs on. + +So `.packit.yaml` carries **no `jobs:` section** — Packit Service performs no +work on a pull request — and Packit is used for the one thing it is genuinely +good at here: turning a recipe into an SRPM in a few seconds, so a malformed +spec fails before a build root is installed and a compiler runs for ten +minutes. + +Binaries are built by `factory-build.yml`, in this repository's own workflow, +against the pinned `c10s` root. + +This is a deliberate scope, and it is the same scope +`projectbluefin/utah-packages` operates under today. + +### Why build order is computed, not declared + +There is no hand-assigned build stage anywhere in this factory. The order +comes from real `BuildRequires`, parsed by `rpmspec` in the build root: + +``` +prepare ──► extract_buildrequires.py ──► build_graph.py ──► waves +``` + +Hand-assigned stages rot. A new `BuildRequires` edge is invisible until a build +fails somewhere downstream, and a stage that is no longer needed still +serializes work. The plan is checked against the workflow's static job graph, +so a deeper plan fails loudly rather than dropping the packages that did not +fit. + +Before wave zero, `factory-stack.yml` runs the dependency-tree preflight against +those CentOS rows. Every selected BuildRequires must have an exact base RPM +witness or a compatible provider in an earlier factory wave. Missing providers, +incompatible declared versions, blocked prerequisites, cycles, and stale or +incomplete plans fail before any package compiles. +RPM query output uses checked writes and must retain the parsed spec's declared +capabilities; disk errors and truncated rows cannot silently remove dependencies. +Version matching uses CentOS RPM semantics, including epochs and prereleases; the extractor runs its version +regression tests in that same root. The evidence artifact includes +`dependency-preflight.json` with the witness for each checked requirement. +Run `just factory-dependencies` locally to perform the same check without +compiling the stack (requires a container engine and repository metadata). + +Generated capability names from CentOS metadata cannot prove a future factory +RPM's version. When the base is too old, declare the required versioned capability +in the recipe's appropriate subpackage rather than guessing from its source +version. This gate checks declared dependency coverage and ordering; compilation, +generated BuildRequires, tests, and the final consumer transaction still verify +API compatibility and actual RPM installability. +Glycin also probes the actual Bubblewrap namespace setup and resolves its +workspace Cargo package selectors before compilation, so test-environment +failures and duplicate registry names fail early. +The stack CI gate runs that namespace probe with the recipe's syscall profile +before wave zero as well; a passing graph cannot prove host sandbox support. +On AppArmor hosts it also loads a recipe-specific Moby-based profile retaining +the default restrictions except the mount/pivot operations Bubblewrap needs +inside its private user namespace. The engine's capabilities remain unchanged. +Glycin's fixture exclusions follow disabled optional loaders: EL10's existing +HEIF omission excludes HEIF/AVIF fixtures, while the enabled private JPEG XL +loader remains tested. + +### Why nothing downloads during a build + +`config/upstream-sources.json` holds, for every recipe, the resolved upstream +URL and its SHA-512. `source_pipeline.py` fetches and verifies **before** the +build starts; `source_pipeline.py verify-staged` re-verifies **inside** the +build, so a source swapped between staging and build fails there rather than +producing an RPM from bytes nobody checked. + +A recipe with no lock entry cannot build. There is no fallback to whatever the +build root happens to serve. + +## Layout + +``` +factory/ + config/ + buildroot.json the pinned c10s build root, its repositories, bootstrap + factory-contract.json projectbluefin/common, pinned by commit + upstream-sources.json generated; URL + SHA-512 per recipe + packages// + .spec the recipe + *.patch downstream patches + .factory-upstream.json provenance: where this recipe came from + tools/ importer, validator, graph, gates + tests/ unit tests for the tooling +``` + +## Everyday commands + +```bash +# The fast gate. Runs in well under a minute; no RPM is built. +python3 factory/tools/validate.py +python3 factory/tools/render_packit_config.py --check +python3 -m unittest discover -s factory/tests + +# What would a build do, and why +python3 factory/tools/source_pipeline.py report +python3 factory/tools/rebuild_plan.py --full | python3 -m json.tool + +# Prove a recipe produces an SRPM (needs a container engine) +python3 factory/tools/srpm_gate.py gnome-shell --output /tmp/gnome-shell.src.rpm +``` + +## Adding a package + +1. Seed it from the reference repository, which records provenance: + + ```bash + python3 factory/tools/seed_from_copr.py \ + --repo https://download.copr.fedorainfracloud.org/results/jreilly1821/c10s-gnome-50 \ + --chroot epel-10-x86_64 --package + ``` + +2. Render its source lock. This resolves the spec's `Source0` with `rpmspec` + in the build root and records the URL's SHA-512: + + ```bash + python3 factory/tools/render_source_locks.py --write + ``` + +3. Re-render the Packit config and pass the gate: + + ```bash + python3 factory/tools/render_packit_config.py --write + just factory-check + ``` + +## What is not done yet + +Stated plainly, because the list is short and each item is real: + +- **Complete desktop validation.** GNOME 51 sources are SHA-512 locked; + `Factory GNOME stack` builds the targeted stack in the pinned CentOS root. + RPM success does not establish image composition or desktop/boot behavior. +- **arm64.** The build root and every recipe are amd64. +- **Hermetic builds.** Builds run in the pinned container, which provides the + correct ABI and a fresh root per recipe. They still use a root build user + and networked dependency resolution rather than `mock` isolation. See + `docs/architecture.md`. +- **No digest for some sources yet.** Any recipe whose lock has no `sha512` + does not build. `validate.py` names them. + +## GNOME 51 build verification + +Dispatch `factory-stack.yml` on the candidate branch. It selects the GNOME 51 targets plus prerequisites whose exact requirements +CentOS/CRB/EPEL cannot satisfy, then computes every wave from RPM dependencies, builds in fresh containers, and retains per-package +logs, RPMs, buildroot provenance, and a JSON status report. It has no publication +or signing permissions. Both CI and publication admit up to sixteen computed waves and fail explicitly +if the graph exceeds that limit. Per-wave artifacts expose failures while later +waves continue. After every selected recipe succeeds, the consumer check +downloads the complete GNOME transaction, installs those RPMs with all network +repositories disabled, asserts core package versions are 51, and checks the +installed shell executable. This establishes installation and version evidence; +a graphical session and boot still require an image/VM test. + +Cycles can use a CentOS/CRB/EPEL provider only when the extractor records a +provider for the exact versioned BuildRequires. The planner removes only cyclic +edges and records those witnesses; it leaves the full graph intact for rebuild +selection. DNF must still solve the complete build transaction. Tests are not +disabled to bootstrap a cycle. + +Rust vendor bundles are generated before compilation from the verified archive's +Cargo.lock. Every crate is verified against its upstream SHA-256, and normalized +tar metadata makes the bundle reproducible. Its SHA-512 is independently locked +as a generated source, then checked again inside the build container. Git-based +crate sources are refused. + +Umockdev builds use the narrow `packages/umockdev/umockdev-seccomp.json` profile to allow +`open_tree` while preserving the default syscall restrictions and capabilities. +Its SELinux tests detect active SELinux, rather than the existence of the +`selinuxenabled` program; keep the full test suite enabled. + +GTK 4.24 requires `pkgconfig(libdrm)` on Linux for `drm_fourcc.h`. +Localsearch 3.12 test helpers include `` explicitly for fixed-width +integer types; functional tests remain enabled. + +Malcontent 0.14 requires GLib 2.84 headers for `g_steal_handle_id`. Declare +that exact build minimum so DNF upgrades the installed CentOS GLib headers +instead of accepting the older base version. + +The umockdev seccomp profile lives with its recipe and participates in the input +digest, so a profile change selects a rebuild. + +AppStream staging uses the HTTPS release endpoint with the existing source +checksum; the HTTP endpoint can fail before checksum verification. + +Glycin uses a manual `build/` Meson directory; its strict test command must +address that directory rather than the RPM macro default. + +Glycin tests copy the packaged loaders into a separate test install and use the +upstream config rewrite helper. Retarget private JPEG XL RPATHs only in those +test copies so the sandbox resolves the staged libraries. The RPM buildroot +remains unchanged. + +GTK 4.24 removed `gtk4-encode-symbolic-svg`, `gtk4-icon-editor`, and Shaper; +do not retain their executable, manual, desktop, or icon entries in RPM lists. + +Glycin uses a recipe-scoped syscall profile for Bubblewrap namespace setup +without adding container capabilities or privileged mode. Its copied test +install is under `/usr/libexec`, which the sandbox binds read-only; cleanup +removes only that temporary install. Keep sandbox tests enabled. + +The GNOME portal backend requires the core portal API from 1.21.1 or later. +Control Center also requires AccountsService 26.27.3 or later. +Declare these minima in their build and runtime requirements so the dependency +preflight selects factory prerequisites when CentOS supplies an older API. +Core portal builds retain Bubblewrap image/sound validation and USB support; +their prerequisites belong in BuildRequires. Source-host fallbacks must verify +against the primary source’s unchanged checksum. + +Include the locked SELinux policy recipe in the verified stack: the compatibility +RPM requires policy 43.1 or later, which the CentOS 42.1 baseline cannot supply. +The final installation gate must satisfy runtime prerequisites as well as build +requirements. +SELinux package installation must pass both `semodule -p` for the policy root +and `-S /var/lib/selinux` for the module-store path (relative to that root). +The pinned CentOS bootc image configures its store under `/etc/selinux`, so +leaving `-S` implicit writes outside the packaged `/var/lib/selinux` path. +This build-time override preserves the image’s runtime store configuration. +The policy RPMs replace CentOS’s older `selinux-policy-extra` and corresponding +`targeted-extra`/`mls-extra` RPMs because the new policy packages include those +modules. Retaining an extra RPM would require its exact older policy version. diff --git a/factory/config/buildroot.json b/factory/config/buildroot.json new file mode 100644 index 00000000..cd4d329b --- /dev/null +++ b/factory/config/buildroot.json @@ -0,0 +1,48 @@ +{ + "_comment": [ + "The factory's build root: the image every RPM is built against.", + "Single source of truth; every tool that needs it reads it from here.", + "", + "It is deliberately the same image the released artifact is built on.", + "Anything else is a different ABI target, and a package that links", + "against it does not link against the running system.", + "", + "JSON rather than YAML so the tools depend only on the standard library.", + "The repository's read-packages helper is stdlib-only for the same", + "reason, and a third-party import here fails on a CI runner that does", + "not happen to have it installed. The rationale lives in", + "factory/docs/architecture.md, sections 'Build root' and 'CRB'.", + "", + "Move this with a pull request. The digest is what every published RPM", + "is attributable to." + ], + + "image": "quay.io/centos-bootc/centos-bootc:c10s", + + "digest": "sha256:461475970a848fa4c819e458d6780e1f525be2a21b274436edfbb10440d5c850", + + "_comment_digest": [ + "A tag alone is not a pin: it means building against whatever the tag", + "resolved to, which is neither reproducible nor attestable." + ], + + "_comment_registry_pull_per_job": [ + "The build root is pulled once per run and passed between jobs as an", + "artifact, so every job provably uses the same bytes. On GitHub-hosted", + "runners the disk budget is 14 GB and seven c10s images is over it, so", + "this escape hatch exists. It is false by default, which makes using it", + "a visible choice rather than an accident." + ], + "registry_pull_per_job": false, + + "_comment_repositories": [ + "CRB ships disabled in c10s and several build roots for this stack live", + "only there: meson, ninja-build, wayland-devel, gcc-g++. Without it,", + "BuildRequires resolution fails with 'No matching package to install:", + "meson', which reads as a missing package rather than a disabled", + "repository. Asserted by tools/validate.py." + ], + "repositories": ["crb"], + + "bootstrap": ["rpm-build", "dnf-plugins-core"] +} diff --git a/factory/config/factory-contract.json b/factory/config/factory-contract.json new file mode 100644 index 00000000..a42de86f --- /dev/null +++ b/factory/config/factory-contract.json @@ -0,0 +1,12 @@ +{ + "repository": "projectbluefin/common", + "commit": "8ae7e279c742cae63261700c3f1b5258dc2740ed", + "pinned_at": "2026-10-10T02:40:55Z", + "contracts": { + "factory-onboarding": "docs/skills/factory-improvement/SKILL.md", + "agentic-model": "docs/factory/agentic-model.md", + "label-workflow": "docs/skills/label-workflow.md", + "skill-improvement": "docs/skills/skill-improvement.md", + "style-guide": "docs/contributing/style-guide.md" + } +} diff --git a/factory/config/gnome-stack.json b/factory/config/gnome-stack.json new file mode 100644 index 00000000..bb6304d6 --- /dev/null +++ b/factory/config/gnome-stack.json @@ -0,0 +1,39 @@ +{ + "schema": 1, + "version": "51.0", + "targets": [ + "blueprint-compiler", + "gdk-pixbuf2", + "gdm", + "gjs", + "glib2", + "glycin", + "gnome-autoar", + "gnome-control-center", + "gnome-desktop3", + "gnome-initial-setup", + "gnome-online-accounts", + "gnome-session", + "gnome-settings-daemon", + "gnome-shell", + "gnome50-el10-compat", + "gsettings-desktop-schemas", + "gtk4", + "libadwaita", + "libgda", + "libgexiv2", + "localsearch", + "mutter", + "nautilus", + "orca", + "pango", + "pipewire", + "selinux-policy", + "tecla", + "tinysparql", + "vte291", + "wayland", + "wayland-protocols", + "xdg-desktop-portal-gnome" + ] +} diff --git a/factory/config/upstream-sources.json b/factory/config/upstream-sources.json new file mode 100644 index 00000000..3a06cd15 --- /dev/null +++ b/factory/config/upstream-sources.json @@ -0,0 +1,1034 @@ +{ + "schema": 1, + "packages": [ + { + "name": "accountsservice", + "version": "26.27.3", + "sources": [ + { + "url": "https://gitlab.freedesktop.org/accountsservice/accountsservice/-/archive/26.27.3/accountsservice-26.27.3.tar.bz2", + "filename": "accountsservice-26.27.3.tar.bz2", + "sha512": "443cb2f3e418ea028828a7ac53b101c9888ba4750d053e11a3d0678f7269dcba0f1d8f2426e772c0795ee15622953692893eaec92667f217c9caa57bbc4a0c8d", + "fallback_urls": [ + "https://src.fedoraproject.org/repo/pkgs/rpms/accountsservice/accountsservice-26.27.3.tar.bz2/sha512/443cb2f3e418ea028828a7ac53b101c9888ba4750d053e11a3d0678f7269dcba0f1d8f2426e772c0795ee15622953692893eaec92667f217c9caa57bbc4a0c8d/accountsservice-26.27.3.tar.bz2" + ], + "checksum_type": "sha512" + } + ] + }, + { + "name": "appstream", + "version": "1.0.2", + "sources": [ + { + "url": "https://www.freedesktop.org/software/appstream/releases/AppStream-1.0.2.tar.xz", + "filename": "AppStream-1.0.2.tar.xz", + "sha512": "e5c109c383e3bf3af3693bfb3146663767c2c61fac0bd421f2ce52242fe7b869effeacc4d207987321dfeb4ab0ba77ece6c1c6eea054a7365204cd955426517a", + "checksum_type": "sha512" + } + ] + }, + { + "name": "at-spi2-core", + "version": "2.60.1", + "sources": [ + { + "url": "https://download.gnome.org/sources/at-spi2-core/2.60/at-spi2-core-2.60.1.tar.xz", + "filename": "at-spi2-core-2.60.1.tar.xz", + "sha512": "fc210768e5537ca285d7a6e9a2821471c4599d03822c81da4f8a047d9c20005e468a5009e9d7d2bd14e88747a296f69faf45cebdc8bd179c9a774c24c549c9af", + "checksum_type": "sha512" + } + ] + }, + { + "name": "autoconf", + "version": "2.72", + "sources": [ + { + "url": "https://ftp.gnu.org/gnu/autoconf/autoconf-2.72.tar.xz", + "filename": "autoconf-2.72.tar.xz", + "sha512": "c4e9fbd858666d3e5c3b4fe7f89aa3e8e3a0a00dc7e166f8147d937d911b77ba3ac6a016f9d223ccdd830bc8960b3e60397c0607cc6a1fd2c50c7492839ddd17", + "checksum_type": "sha512" + } + ] + }, + { + "name": "avahi", + "version": "0.9%{?rc:~%{rc}}", + "sources": [ + { + "url": "https://github.com/avahi/avahi/archive/refs/tags/v0.9-rc2.tar.gz", + "filename": "v0.9-rc2.tar.gz", + "sha512": "29d6c9d075d0202b9da2cdf935fa04fad31ba95475ba5de086c9958d25caa405925bbd82ed439a024febf7880325e80c1a032a660284a7708c71dae9076f413b", + "checksum_type": "sha512" + } + ] + }, + { + "name": "blueprint-compiler", + "version": "0.22.2", + "sources": [ + { + "url": "https://download.gnome.org/sources/blueprint-compiler/0.22/blueprint-compiler-0.22.2.tar.xz", + "filename": "blueprint-compiler-0.22.2.tar.xz", + "sha512": "bdc380a3d77b33a71139ee4f0da97effa5c95876251563a904e25762f93b592393fdb9a6c99b294aea8a9a93ba411d17491da95427020860dfd8a696402c0b80", + "checksum_type": "sha512" + } + ] + }, + { + "name": "cairo", + "version": "1.18.4", + "sources": [ + { + "url": "https://cairographics.org/releases/cairo-1.18.4.tar.xz", + "filename": "cairo-1.18.4.tar.xz", + "sha512": "863679f817ed67dc2c916c035d740916e27e7e69c04fca63936e37d274e7f4c79848d16c8f7c481798864602e8847c489f698df89b785cbc576c925dbd513316", + "checksum_type": "sha512" + } + ] + }, + { + "name": "colord-gtk", + "version": "0.3.1", + "sources": [ + { + "url": "https://github.com/hughsie/colord-gtk/archive/refs/tags/0.3.1.tar.gz#/colord-gtk-0.3.1.tar.gz", + "filename": "colord-gtk-0.3.1.tar.gz", + "sha512": "772ecb4a88e47975458814304dcaf76484b6054ba132bcf1da6f08ab87e3f00b7589a5b4d34109d594f394028661e10d4151840e1baefa98c8aa364be764c742", + "checksum_type": "sha512" + } + ] + }, + { + "name": "docbook-style-xsl", + "version": "1.79.2", + "sources": [ + { + "url": "https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F1.79.2/docbook-xsl-nons-1.79.2.tar.bz2", + "filename": "docbook-xsl-nons-1.79.2.tar.bz2", + "sha512": "d19aad5ae91c7f9a9690836bd472ec6e01a29eaeac6b1838b5c9ea54e2ef4cc90f515d7b6640fe94e909a5a51eee80cd32e2ccbee457de6f0c6652ea43325d7d", + "checksum_type": "sha512" + }, + { + "url": "https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F1.79.2/docbook-xsl-doc-1.79.2.tar.bz2", + "filename": "docbook-xsl-doc-1.79.2.tar.bz2", + "sha512": "98390d47f0052913746b1449331c4aee9a710f500d4c844d89c72a1ee84212f74006abbd553c8d60ffd613df4bd298226bd4bcb23d8cca5df05545af45376f8e", + "checksum_type": "sha512" + } + ] + }, + { + "name": "docbook-utils", + "version": "0.6.15", + "sources": [ + { + "url": "https://github.com/devexp-db/docbook-utils/releases/download/v0.6.15/docbook-utils-0.6.15.tar.xz", + "filename": "docbook-utils-0.6.15.tar.xz", + "sha512": "f75168d50d03cb7f06450792118425504691b0da0b369afc323b13cbee6fb8016d75faf11c508d2cd6004f6c00680efbe4755b856b7790e81bac41c8ec2a5ac6", + "checksum_type": "sha512" + } + ] + }, + { + "name": "el10-v2-buildflags", + "version": "4", + "no_upstream_source": true + }, + { + "name": "flatpak", + "version": "1.16.0", + "sources": [ + { + "url": "https://github.com/flatpak/flatpak/releases/download/1.16.0/flatpak-1.16.0.tar.xz", + "filename": "flatpak-1.16.0.tar.xz", + "sha512": "57a8b660193ef1f9724718533963d854fa8bb0eb823470261f3f0a685f8ddbd209d6a1ae8378411c131e9c298cba605863d394f43c8d9eccda608001aadbb68d", + "checksum_type": "sha512" + } + ] + }, + { + "name": "fontconfig", + "version": "2.17.0", + "sources": [ + { + "url": "https://gitlab.freedesktop.org/fontconfig/fontconfig/-/archive/2.17.0/fontconfig-2.17.0.tar.bz2", + "filename": "fontconfig-2.17.0.tar.bz2", + "sha512": "18696493484fa9f431579a64d2428ebe80389b305471bcf4e53494fd6b229f3707438efd68b2be182e591f3cea839ba4d26ff2b421511c9bf487726ab08f0144", + "checksum_type": "sha512" + } + ] + }, + { + "name": "gdk-pixbuf2", + "version": "2.44.8", + "sources": [ + { + "url": "https://download.gnome.org/sources/gdk-pixbuf/2.44/gdk-pixbuf-2.44.8.tar.xz", + "filename": "gdk-pixbuf-2.44.8.tar.xz", + "sha512": "5fa8066abbfc29d7d9f07d95af2cfa2668e90381ecf1055ea449d35661b997d55e84e64ae1dedc14cf13d66912d05b1398075c560ce1aeeea7ae60a7d73c873a", + "checksum_type": "sha512" + } + ] + }, + { + "name": "gdm", + "version": "51.0", + "sources": [ + { + "url": "https://download.gnome.org/sources/gdm/51/gdm-51.0.tar.xz", + "filename": "gdm-51.0.tar.xz", + "sha512": "0c26d09880a5e7be287108f9f1ac50281181e2d689370cd302c7763b5a587b4d3d34a718195b674e4ef87ea7da1fe452ef97f3f282ff70a0710e678f2082af01", + "checksum_type": "sha512" + } + ] + }, + { + "name": "gi-docgen", + "version": "2026.1", + "sources": [ + { + "url": "https://files.pythonhosted.org/packages/source/g/gi-docgen/gi_docgen-2026.1.tar.gz", + "filename": "gi_docgen-2026.1.tar.gz", + "sha512": "0bbe9422cfcebb794631e14f2940a110393f966cc906510c52e787b1b1a2d9990de2f7cc91d8e884043d751b71a57da9782192444a6b73a78dfe6f7a58fe6455", + "checksum_type": "sha512" + } + ] + }, + { + "name": "gjs", + "version": "1.90.0", + "sources": [ + { + "url": "https://download.gnome.org/sources/gjs/1.90/gjs-1.90.0.tar.xz", + "filename": "gjs-1.90.0.tar.xz", + "sha512": "0cbaa00af60b12a530344c9abb4e4f8451c9d8fe8283138c3298d525cc0021e9529ae6ebda676aade0f767d6f87e2820a788c63405ee5f8c3f50265b957efaae", + "checksum_type": "sha512" + } + ] + }, + { + "name": "glib2", + "version": "2.90.1", + "sources": [ + { + "url": "https://download.gnome.org/sources/glib/2.90/glib-2.90.1.tar.xz", + "filename": "glib-2.90.1.tar.xz", + "sha512": "d2d76deaad64e307034b09635c64a60537b0d625d1695b314bc33e9e3c9b20284270d2105333474eb1fbe5afcaa814d4c52ded3a1c2a46b4b2652f7b66a211c3", + "checksum_type": "sha512" + } + ] + }, + { + "name": "glycin", + "version": "2.2.2", + "sources": [ + { + "url": "https://download.gnome.org/sources/glycin/2.2/glycin-2.2.2.tar.xz", + "filename": "glycin-2.2.2.tar.xz", + "sha512": "866a758cc543702439fad71a9631664d0cafb65a4bfeca234e0b3875d9c6baacdadeec54867ee12e797f9b4cd87cc9ec6849cfe688aa2c79838f73239799f85c", + "checksum_type": "sha512" + }, + { + "url": "generated:cargo-vendor/glycin", + "filename": "glycin-2.2.2-vendor.tar.xz", + "sha512": "0b483b45e97489c2bbde1fc33e15b433eab16343f3227b2bb8da58e4ff10a29f7a5b4d701c420bde9932f7ed8ffdafbb1a0ebfdefc963364b96031955dfbb4fe", + "checksum_type": "sha512", + "generated": { + "method": "cargo-vendor", + "archive": "glycin-2.2.2.tar.xz" + } + }, + { + "url": "https://github.com/libjxl/libjxl/archive/refs/tags/v0.11.2.tar.gz#/libjxl-0.11.2.tar.gz", + "filename": "libjxl-0.11.2.tar.gz", + "sha512": "a7e1f7d060b358f4382e84367d66aa2850aef3b4524a0fdfe3f22dd258fb9e35dda7540f859d8bf4c32f31c61a7a03db677f4490a9f472cd25869a9d00797336", + "checksum_type": "sha512" + } + ] + }, + { + "name": "gnome-autoar", + "version": "0.5.2", + "sources": [ + { + "url": "https://download.gnome.org/sources/gnome-autoar/0.5/gnome-autoar-0.5.2.tar.xz", + "filename": "gnome-autoar-0.5.2.tar.xz", + "sha512": "5a9563aba7076c6c0b78399c0d913a7d13d84f369aa683dfaa8b0917a02280275087c564e49f9aa2ceca2365d118cf2ab4df6dcb5cdcb06b24c4ccfcbaeca855", + "checksum_type": "sha512" + } + ] + }, + { + "name": "gnome-control-center", + "version": "51.0", + "sources": [ + { + "url": "https://download.gnome.org/sources/gnome-control-center/51/gnome-control-center-51.0.tar.xz", + "filename": "gnome-control-center-51.0.tar.xz", + "sha512": "d12f832dd09c5df3757c2bef606eb6a98ca1d58fe3e7b26d9c21bf5b9de7161bf9b60deb474081de1a79988ffe78e79a012fd6d447d259ac59bb561ba46b0ffd", + "checksum_type": "sha512" + } + ] + }, + { + "name": "gnome-desktop3", + "version": "51.0", + "sources": [ + { + "url": "https://download.gnome.org/sources/gnome-desktop/51/gnome-desktop-51.0.tar.xz", + "filename": "gnome-desktop-51.0.tar.xz", + "sha512": "0f8cc0546ad5922068a262d8bd6ffe83fb74f7e5736f66c1cbf02f6af91136415ee24bef0674a26270859cdf8569c0522501615240a52d0c2cb0b5855d1c39ff", + "checksum_type": "sha512" + } + ] + }, + { + "name": "gnome-initial-setup", + "version": "51.0", + "sources": [ + { + "url": "https://download.gnome.org/sources/gnome-initial-setup/51/gnome-initial-setup-51.0.tar.xz", + "filename": "gnome-initial-setup-51.0.tar.xz", + "sha512": "94c9d552519343c59d74a92b45fe4b3c04f73ea43a92bf4874faf33fbd76b487583300b4f99f219a1317ed3530a03c17e825c7d8723dc4a239f43be89e4b3a1b", + "checksum_type": "sha512" + } + ] + }, + { + "name": "gnome-online-accounts", + "version": "3.58.1", + "sources": [ + { + "url": "https://download.gnome.org/sources/gnome-online-accounts/3.58/gnome-online-accounts-3.58.1.tar.xz", + "filename": "gnome-online-accounts-3.58.1.tar.xz", + "sha512": "4d466a14086ec199b5693727c29e8c159e85eef9949c2b30f5680c25b791653b1c468aedfd3176662dc934927d35df5f1e0c2ae8d6ec37d7d9515bbb8ca2ea15", + "checksum_type": "sha512" + } + ] + }, + { + "name": "gnome-session", + "version": "51.0", + "sources": [ + { + "url": "https://download.gnome.org/sources/gnome-session/51/gnome-session-51.0.tar.xz", + "filename": "gnome-session-51.0.tar.xz", + "sha512": "b3360cadae6ca773eeeaeebad78e6e25dddd5e3e1ce11628227eaa3955db7b2a0be2e25368fc86a7a75883552d88f0c090e2561abc276b0c88e3fc428345fe37", + "checksum_type": "sha512" + } + ] + }, + { + "name": "gnome-settings-daemon", + "version": "51.0", + "sources": [ + { + "url": "https://download.gnome.org/sources/gnome-settings-daemon/51/gnome-settings-daemon-51.0.tar.xz", + "filename": "gnome-settings-daemon-51.0.tar.xz", + "sha512": "4af72476435cb53298afcf051f56b29ea5a5044577c7607926b840d15a4605eb4ea76b75dd61d32000ab04b32bcbc3473269ac47c4e60b005822446f34096ec3", + "checksum_type": "sha512" + } + ] + }, + { + "name": "gnome-shell", + "version": "51.0", + "sources": [ + { + "url": "https://download.gnome.org/sources/gnome-shell/51/gnome-shell-51.0.tar.xz", + "filename": "gnome-shell-51.0.tar.xz", + "sha512": "15ea0700fa803ec64c97f8d2c2d7ea9a97be4a99d2570384c3c2efb3c2ee0d3be128cff0d7aedc014c9152e8ebadb21aa86811e1d67ffe7aca6c826fb516b3c5", + "checksum_type": "sha512" + } + ] + }, + { + "name": "gnome-user-share", + "version": "48.1", + "sources": [ + { + "url": "https://download.gnome.org/sources/gnome-user-share/48/gnome-user-share-48.1.tar.xz", + "filename": "gnome-user-share-48.1.tar.xz", + "sha512": "abffa9da63316ffc3c869855251ea25d03a67d4174fecd5039022da6deeb95328d095956a562c1dfc0fd6b22eed5d4e6cfe7ab11578970214fb1eb00594e057a", + "checksum_type": "sha512" + } + ], + "blocked": true, + "blocked_reason": "references sources that are neither downloadable nor present in the recipe: gnome-user-share-48.1-vendor.tar.xz" + }, + { + "name": "gnome50-el10-compat", + "version": "1.2.7", + "no_upstream_source": true + }, + { + "name": "gobject-introspection", + "version": "1.86.0", + "sources": [ + { + "url": "https://download.gnome.org/sources/gobject-introspection/1.86/gobject-introspection-1.86.0.tar.xz", + "filename": "gobject-introspection-1.86.0.tar.xz", + "sha512": "a9d2edbe1cea710e10ef1ea8059a45cf5689bace43b5d2a6861809e863a6de7114b4763db8df3916ad6202c9967f48f7997acd0810a86e5e88dea7e0be88b585", + "checksum_type": "sha512" + } + ] + }, + { + "name": "graphviz", + "version": "14.1.4", + "sources": [ + { + "url": "https://gitlab.com/api/v4/projects/graphviz%2Fgraphviz/packages/generic/graphviz-releases/14.1.4/graphviz-14.1.4.tar.xz", + "filename": "graphviz-14.1.4.tar.xz", + "sha512": "3b51be1aa9f5a0540ab5f205069eb193aca48226a06c225786b79515f0f32d385ea49f88b0d97f36dc72eae0d907975fcc94a81b0085c325e4aa2d9580037a3a", + "checksum_type": "sha512" + } + ] + }, + { + "name": "gsettings-desktop-schemas", + "version": "51.0", + "sources": [ + { + "url": "https://download.gnome.org/sources/gsettings-desktop-schemas/51/gsettings-desktop-schemas-51.0.tar.xz", + "filename": "gsettings-desktop-schemas-51.0.tar.xz", + "sha512": "2932a8fac7a1be05e94f2327e28e489a8336d909cd3e915ddd2681c5fa813eb51d0cb9ce77b4ec6ff33a5ed32b50432b3b9306c561fdb64f822ff07b1dbb8afd", + "checksum_type": "sha512" + } + ] + }, + { + "name": "gsound", + "version": "1.0.3", + "sources": [ + { + "url": "https://download.gnome.org/sources/gsound/1.0/gsound-1.0.3.tar.xz", + "filename": "gsound-1.0.3.tar.xz", + "sha512": "5d7c4f17154b840abb94b432c33ba950929ddc5aba8c2795b54834d6c6b0280d3d8846acebb1e4e02688045bfb44cfac7dbb96fef44af5a73a12a70f3ece84eb", + "checksum_type": "sha512" + } + ] + }, + { + "name": "gtk4", + "version": "4.24.1", + "sources": [ + { + "url": "https://download.gnome.org/sources/gtk/4.24/gtk-4.24.1.tar.xz", + "filename": "gtk-4.24.1.tar.xz", + "sha512": "0e088442279c67a8f4c29bba979efe7e68bb1885a26da292035efc86425c462d1894476ea0e8bb4a08b5ad884f3eb3980782540a1cba89af5773852109af0ceb", + "checksum_type": "sha512" + } + ] + }, + { + "name": "harfbuzz", + "version": "13.1.1", + "sources": [ + { + "url": "https://github.com/harfbuzz/harfbuzz/releases/download/13.1.1/harfbuzz-13.1.1.tar.xz", + "filename": "harfbuzz-13.1.1.tar.xz", + "sha512": "a4330bdd972a7e91071e72f784c2c70b0fcd2b2b7a5e88c4e062b2d4ec7fbb78ef26bf214c2f58f5b28988d831dfc6946d34b134de2749918047b6df97fa6291", + "checksum_type": "sha512" + } + ] + }, + { + "name": "highway", + "version": "1.3.0", + "sources": [ + { + "url": "https://github.com/google/highway/archive/1.3.0/highway-1.3.0.tar.gz", + "filename": "highway-1.3.0.tar.gz", + "sha512": "8b9f4fdc4fa60b6817417959853f5b55bf86aec9d35fc6664dda15179cc55e0a9940f3a46011a84b95263ba342dc47ca1cb93b04481ff4b63d724cce1815d7c6", + "checksum_type": "sha512" + } + ] + }, + { + "name": "libadwaita", + "version": "1.10.0", + "sources": [ + { + "url": "https://download.gnome.org/sources/libadwaita/1.10/libadwaita-1.10.0.tar.xz", + "filename": "libadwaita-1.10.0.tar.xz", + "sha512": "2c47fecd93f3ebd6dc091adea139a3bad76a6817617090eb7e937f303589e52b4548dde003b0e8ad33d13bce945084ec253733ecf4e935db30a8c87955d29fa7", + "checksum_type": "sha512" + } + ] + }, + { + "name": "libcanberra", + "version": "0.30", + "sources": [ + { + "url": "https://0pointer.de/lennart/projects/libcanberra/libcanberra-0.30.tar.xz", + "filename": "libcanberra-0.30.tar.xz", + "sha512": "f7543582122256826cd01d0f5673e1e58d979941a93906400182305463d6166855cb51f35c56d807a56dc20b7a64f7ce4391368d24990c1b70782a7d0b4429c2", + "checksum_type": "sha512" + } + ] + }, + { + "name": "libdecor", + "version": "0.2.2", + "sources": [ + { + "url": "https://gitlab.freedesktop.org/libdecor/libdecor/-/archive/0.2.2/libdecor-0.2.2.tar.gz", + "filename": "libdecor-0.2.2.tar.gz", + "sha512": "ddaaa75f1dc983e6d59e168896f8044cf6ac761675db6af410c6d2186bdc66942c98f36eb7a6e2836ce02dbb98189a80db30b7cef3dbaf49c7aae47c3eee22cc", + "checksum_type": "sha512" + } + ] + }, + { + "name": "libebur128", + "version": "1.2.6", + "sources": [ + { + "url": "https://github.com/jiixyj/libebur128/archive/v1.2.6.tar.gz#/libebur128-1.2.6.tar.gz", + "filename": "libebur128-1.2.6.tar.gz", + "sha512": "ab188c6d32cd14613119258313a8a3fb1167b55501c9f5b6d3ba738d674bc58f24ac3034c23d9730ed8dc3e95a23619bfb81719e4c79807a9a16c1a5b3423582", + "checksum_type": "sha512" + } + ] + }, + { + "name": "libei", + "version": "1.5.0", + "sources": [ + { + "url": "https://gitlab.freedesktop.org/libinput/libei/-/archive/1.5.0/libei-1.5.0.tar.bz2", + "filename": "libei-1.5.0.tar.bz2", + "sha512": "a75cd7256ff15fe8a10f8c944b1484520d3af7c4fb32dcecc9a4bc1dc4f92184599bbdb60765cdefc006cda7c79a308f2412bf6a63ff364fa286e93c378f6d6d", + "checksum_type": "sha512" + } + ] + }, + { + "name": "libgda", + "version": "6.0.0", + "sources": [ + { + "url": "http://ftp.gnome.org/pub/GNOME/sources/libgda/6.0/libgda-6.0.0.tar.xz", + "filename": "libgda-6.0.0.tar.xz", + "sha512": "adf81589b4c27e3a229cd95cf19df329678677b4c860ea1944bcb774795fc442a288e6de7e2a88efad88e645b5586b7cf9443d2932c703f177e41a582c65fd52", + "checksum_type": "sha512" + } + ] + }, + { + "name": "libgee", + "version": "0.20.8", + "sources": [ + { + "url": "https://download.gnome.org/sources/libgee/0.20/libgee-0.20.8.tar.xz", + "filename": "libgee-0.20.8.tar.xz", + "sha512": "9af883bb4b2c25c429271201e634d1851378631b913bab282fe432b2b76a44674111e65caa99269fd403454c87b5474f2567c554bddd0b3ea58ca6e138c311e1", + "checksum_type": "sha512" + } + ] + }, + { + "name": "libgexiv2", + "version": "0.16.2", + "sources": [ + { + "url": "https://download.gnome.org/sources/gexiv2/0.16/gexiv2-0.16.2.tar.xz", + "filename": "gexiv2-0.16.2.tar.xz", + "sha512": "1987b96199979ee20bf8e7a7aaf57f929409dc97ebd217bfceedf5254e22d2860c0fa94c64dcc70b2e538747c7351d6bd08d2ae1da06cbf36007b1fda7bc89ec", + "checksum_type": "sha512" + } + ] + }, + { + "name": "libglib-testing", + "version": "0.1.0", + "sources": [ + { + "url": "https://gitlab.gnome.org/pwithnall/libglib-testing/-/archive/0.1.0/libglib-testing-0.1.0.tar.bz2", + "filename": "libglib-testing-0.1.0.tar.bz2", + "sha512": "a1001111d8f2b7367783dc9378982ce216cb7d05ad6a90759f026d851e76a37ae88f1976910d5d188fc22a913cf928f18512fda008fcf3435a8ffb1cb6f80ba6", + "checksum_type": "sha512" + } + ] + }, + { + "name": "libinput", + "version": "1.31.1", + "sources": [ + { + "url": "https://gitlab.freedesktop.org/libinput/libinput/-/archive/1.31.1/libinput-1.31.1.tar.bz2", + "filename": "libinput-1.31.1.tar.bz2", + "sha512": "7f60f6180e6e62ca43f557dd2bb77bce00be6afaab6a682ca03d6b83c1d130bd32188c5b3e5489831887b286099040aa181384b364625b4b9f6d3dd9574124c7", + "checksum_type": "sha512" + } + ] + }, + { + "name": "libldac", + "version": "%{sonamebase}.0.2.3", + "sources": [ + { + "url": "https://github.com/EHfive/ldacBT/releases/download/v2.0.2.3/ldacBT-2.0.2.3.tar.gz", + "filename": "ldacBT-2.0.2.3.tar.gz", + "sha512": "0e42723a1e7d748b28b13d73823fd5378a64100d5e27ae90cf3214494f3e199c526e219efd1329b2ec2b3195e1a6b3c98c8210ab7e4e6b98077199ef0f64c02e", + "checksum_type": "sha512" + } + ] + }, + { + "name": "libnotify", + "version": "0.8.8", + "sources": [ + { + "url": "https://download.gnome.org/sources/libnotify/0.8/libnotify-0.8.8.tar.xz", + "filename": "libnotify-0.8.8.tar.xz", + "sha512": "0fedd230d3c8b9bd3c783794e690752cf6388fc178854267effe3ba26aaa9248415cdf0ab994f596ace8bef59e0c1e41196f42a225221d7f0e1efc54683c310a", + "checksum_type": "sha512" + } + ] + }, + { + "name": "libosinfo", + "version": "1.12.0", + "sources": [ + { + "url": "https://releases.pagure.org/libosinfo/libosinfo-1.12.0.tar.xz", + "filename": "libosinfo-1.12.0.tar.xz", + "sha512": "13647b6df14443f7e39bc09bd47be93fcd9f367ecfd7b13f3dac15e2614ad8a812d6077e070b2dc0f49f68f022881ad2fa59bac92f7731032358658a522e6572", + "checksum_type": "sha512" + } + ] + }, + { + "name": "libsoup", + "version": "2.74.3", + "sources": [ + { + "url": "https://download.gnome.org/sources/libsoup/2.74/libsoup-2.74.3.tar.xz", + "filename": "libsoup-2.74.3.tar.xz", + "sha512": "72f8a055df984cb35105fe67f4ca67d3fb110d40a9cacb660fccd89f93b06bc32e25d94375dcc76608a245f7c5e081d968d7aaf5952eb16013d81c741247cb4c", + "checksum_type": "sha512" + } + ] + }, + { + "name": "libxcvt", + "version": "0.1.2", + "sources": [ + { + "url": "https://xorg.freedesktop.org/archive/individual/lib/libxcvt-0.1.2.tar.xz", + "filename": "libxcvt-0.1.2.tar.xz", + "sha512": "3f6b2baca712a4608780686932f8881255c07bb74b1a788f9b07d4e22975c038d75111cd6b452257882a0b2bad57eebb2002f80a3e435d2e2d16936597f039b0", + "checksum_type": "sha512" + } + ] + }, + { + "name": "libzip", + "version": "1.11.4", + "sources": [ + { + "url": "https://libzip.org/download/libzip-1.11.4.tar.xz", + "filename": "libzip-1.11.4.tar.xz", + "sha512": "dc7929ed7a0f43e793041fc3f0639649233d4ecbe59f90b0275582b51d2951e240ce5182220fb14ade7dcccc08dab90fda22c87dc7365fec4fe70ee4f14eaa37", + "checksum_type": "sha512" + } + ] + }, + { + "name": "localsearch", + "version": "3.12.0", + "sources": [ + { + "url": "https://download.gnome.org/sources/localsearch/3.12/localsearch-3.12.0.tar.xz", + "filename": "localsearch-3.12.0.tar.xz", + "sha512": "7c128c2ed3e58695786aa87cc24c4d12a16d20efa85ac703041c45b0e458c7f61fae15c1e04dbf9122eddf50c7b3ce9974464f722f97efcf1f1037ba1743edb3", + "checksum_type": "sha512" + } + ] + }, + { + "name": "lzo", + "version": "2.10", + "sources": [ + { + "url": "http://www.oberhumer.com/opensource/lzo/download/lzo-2.10.tar.gz", + "filename": "lzo-2.10.tar.gz", + "sha512": "a3dae5e4a6b93b1f5bf7435e8ab114a9be57252e9efc5dd444947d7a2d031b0819f34bcaeb35f60b5629a01b1238d738735a64db8f672be9690d3c80094511a4", + "checksum_type": "sha512" + } + ] + }, + { + "name": "malcontent", + "version": "0.14.0", + "sources": [ + { + "url": "https://tecnocode.co.uk/downloads/malcontent/malcontent-0.14.0.tar.xz", + "filename": "malcontent-0.14.0.tar.xz", + "sha512": "e1b7d1d5895b37dce0662ac4e01d1a8dc726a32361c159ae41b4338e06c0920f6a5d14ad7df9a5d98e5ac6e648d06017ccbb2100896cbe11446733d5ba1e449d", + "checksum_type": "sha512", + "fallback_urls": [ + "https://src.fedoraproject.org/repo/pkgs/rpms/malcontent/malcontent-0.14.0.tar.xz/sha512/e1b7d1d5895b37dce0662ac4e01d1a8dc726a32361c159ae41b4338e06c0920f6a5d14ad7df9a5d98e5ac6e648d06017ccbb2100896cbe11446733d5ba1e449d/malcontent-0.14.0.tar.xz" + ] + }, + { + "url": "https://gitlab.gnome.org/pwithnall/libgsystemservice/-/archive/0.3.0/libgsystemservice-0.3.0.tar.bz2", + "filename": "libgsystemservice-0.3.0.tar.bz2", + "sha512": "e677e74e5d4feb253d94cf6ff374919788a608be99f9757c2d84cc4704e377b51b22bf4fbabc6241510dcf988e042adaee7aabaf862b5f2d0d22bb895cc98463", + "checksum_type": "sha512" + }, + { + "url": "https://src.fedoraproject.org/repo/pkgs/rpms/malcontent/gvdb.tar.xz/sha512/148b9317bb0930250ac2bf9a68c570370aeca6d0c493ff123839cff641d358b63bdfcff150cd7378f95977c94749a0b5644a261490d67ee12281f2ca918cbfa3/gvdb.tar.xz", + "filename": "gvdb.tar.xz", + "sha512": "148b9317bb0930250ac2bf9a68c570370aeca6d0c493ff123839cff641d358b63bdfcff150cd7378f95977c94749a0b5644a261490d67ee12281f2ca918cbfa3", + "checksum_type": "sha512" + }, + { + "url": "https://deb.debian.org/debian/pool/main/t/tinycdb/tinycdb_0.81.orig.tar.gz", + "filename": "tinycdb_0.81.orig.tar.gz", + "sha512": "56d0422700835d7b0460c32c41e6d5f30b8b833cefea775eb7f2b5592d744942c1109eac1501421b02f196d15e551111bb2accc71f2fd32ef4b8d658c635340e", + "checksum_type": "sha512" + } + ] + }, + { + "name": "meson", + "version": "1.10.2", + "sources": [ + { + "url": "https://github.com/mesonbuild/meson/releases/download/1.10.2/meson-1.10.2.tar.gz", + "filename": "meson-1.10.2.tar.gz", + "sha512": "43d408fde7390c81eaef63b835deb4acfcae279cf05bcd63a368c4bc1de69b7fb620f801a7700345d4c41e155a4429a43cdef12e60322aa20a33edfaeb5ce7e9", + "checksum_type": "sha512" + } + ] + }, + { + "name": "mod_dnssd", + "version": "0.6", + "sources": [ + { + "url": "http://0pointer.de/lennart/projects/mod_dnssd/mod_dnssd-0.6.tar.gz", + "filename": "mod_dnssd-0.6.tar.gz", + "sha512": "c3eacd2065f996ace76496b828a5be4b735225782c88ed0fba00c37ffed91af7c81cef755556968880e11e05fbaf65a4326728cb82abcad03ccaf925be1f29d3", + "checksum_type": "sha512" + } + ] + }, + { + "name": "mozjs140", + "version": "140.6.0", + "sources": [ + { + "url": "https://ftp.mozilla.org/pub/firefox/releases/140.6.0esr/source/firefox-140.6.0esr.source.tar.xz", + "filename": "firefox-140.6.0esr.source.tar.xz", + "sha512": "ed66657bd4b2d94791892261d7c0c0d950b4f630d12ab28a777d93393427451a9aa125e5a01ee15f2ac0ff378d0be074a08583dcffd35609112ba4e6f9ada798", + "checksum_type": "sha512" + } + ] + }, + { + "name": "mutter", + "version": "51.0", + "sources": [ + { + "url": "https://download.gnome.org/sources/mutter/51/mutter-51.0.tar.xz", + "filename": "mutter-51.0.tar.xz", + "sha512": "61f2e9b368e768f8e53682496b35e52f712f5f85c47cf0ec78668ed39f7d925d361deca5b69a39bc1777cfdf5df9608a153efeb47a0f8f31c0a474b93ebcf7a6", + "checksum_type": "sha512" + } + ] + }, + { + "name": "nautilus", + "version": "51.0.1", + "sources": [ + { + "url": "https://download.gnome.org/sources/nautilus/51/nautilus-51.0.1.tar.xz", + "filename": "nautilus-51.0.1.tar.xz", + "sha512": "d6b6d2a39f60caf9d786ac9bc30acf6ec7647ddb12be712776656255d24172850f8fd0e81915cda91a719e4f7a80168e08bbf45855a2d606009961d35917b4d1", + "checksum_type": "sha512" + } + ] + }, + { + "name": "orca", + "version": "51.0", + "sources": [ + { + "url": "https://download.gnome.org/sources/orca/51/orca-51.0.tar.xz", + "filename": "orca-51.0.tar.xz", + "sha512": "7022c074d2d4d1461d2114f9739647af9e480c6beb521029c4b4bc13bc7b959ff22f34e0ac3cf2a8f8855e40a5683c4e0215120c11b125939e9061425223301e", + "checksum_type": "sha512" + }, + { + "url": "generated:cargo-vendor/orca", + "filename": "orca-51.0-vendor.tar.xz", + "sha512": "0fedab3941f92236d49dc54d8c8c866f7bd5d79f099116694ded56cfa836a121f4a10d71e3e1f0b49ad3808db17e76b35eaa45f97904dc39f29a0459c3ac7237", + "checksum_type": "sha512", + "generated": { + "method": "cargo-vendor", + "archive": "orca-51.0.tar.xz", + "lockfile": "subprojects/mathcat-py/Cargo.lock" + } + } + ] + }, + { + "name": "pango", + "version": "1.58.2", + "sources": [ + { + "url": "https://download.gnome.org/sources/pango/1.58/pango-1.58.2.tar.xz", + "filename": "pango-1.58.2.tar.xz", + "sha512": "19c88d07c547312bde647cb5d43c300d1750c5b21904c4c066c0ddba30fcfddc9cad463c40bddbe1df228eb33475ff5396ce9921df5347e8187fe3ede8d075a8", + "checksum_type": "sha512" + } + ] + }, + { + "name": "pipewire", + "version": "%{majorversion}.%{minorversion}.%{microversion}", + "sources": [ + { + "url": "https://gitlab.freedesktop.org/pipewire/pipewire/-/archive/1.6.1/pipewire-1.6.1.tar.gz", + "filename": "pipewire-1.6.1.tar.gz", + "sha512": "0f3b4f5ed8542373cc8700ad5b88edecb1f1226a0a54e313ff6c5ba5174e7ce106abbd4b79baddc7b5abf61fb1bacfdf3509389e7ac246ece7a8ff8df3740aa0", + "checksum_type": "sha512" + } + ] + }, + { + "name": "ptyxis", + "version": "50.1", + "sources": [ + { + "url": "https://download.gnome.org/sources/ptyxis/50/ptyxis-50.1.tar.xz", + "filename": "ptyxis-50.1.tar.xz", + "sha512": "34fafdcfa5c51155ebc026814daf5bbb82e24a6565a621a268cce0042d209dc633095ab148c2198b43fb612f995efc46426361b8b8eb616d94b319ec6b170977", + "checksum_type": "sha512" + } + ] + }, + { + "name": "python-dbusmock", + "version": "0.38.0", + "sources": [ + { + "url": "https://files.pythonhosted.org/packages/source/p/python-dbusmock/python_dbusmock-0.38.0.tar.gz", + "filename": "python_dbusmock-0.38.0.tar.gz", + "sha512": "8b331eef64dcc885e3dfbb53445e79b2b93f3f671e5ba1b34f12c7bdfd367b9526b791ddd5a145bd314d3dcf312c26a942c1c49ebb49c4f39cbd621eee22683d", + "checksum_type": "sha512" + } + ] + }, + { + "name": "python-smartypants", + "version": "2.0.1", + "sources": [ + { + "url": "https://github.com/leohemsted/smartypants.py/archive/v2.0.1/smartypants-2.0.1.tar.gz", + "filename": "smartypants-2.0.1.tar.gz", + "sha512": "d47a866a5478c3520251f87a93a468a5eea10318b24b2e8d4bc918d533b5a5789aa56d3a8d5fb8ccff9572fb63e5b6f2eafc44f93fb57a19e6621ebef5d64d9d", + "checksum_type": "sha512" + } + ] + }, + { + "name": "python-typogrify", + "version": "2.0.7", + "sources": [ + { + "url": "https://files.pythonhosted.org/packages/source/t/typogrify/typogrify-2.0.7.tar.gz", + "filename": "typogrify-2.0.7.tar.gz", + "sha512": "6212024a88372f1b14e5932c0541ec4d5a2ada7514c1327dc8f3775cd7adf3372cae0037c4310ed4a03fd0657a91eb4c0d114b74172190f7f84d82908441ddd0", + "checksum_type": "sha512" + } + ] + }, + { + "name": "selinux-policy", + "version": "43.4", + "sources": [ + { + "url": "https://github.com/fedora-selinux/selinux-policy/archive/8ad5d5112fa8b47426e0e6674616d5577f825fde/selinux-policy-8ad5d51.tar.gz", + "filename": "selinux-policy-8ad5d51.tar.gz", + "sha512": "c847db1e85980e699f33d564d4e8c203e31a4060d9c521f571c81a6f3965de9ca89902946c4b5d74c08991aba28aa4352769e85da1f14dfa7bee0f3a9155a517", + "checksum_type": "sha512" + } + ] + }, + { + "name": "shaderc", + "version": "2026.1", + "sources": [ + { + "url": "https://github.com/google/shaderc/archive/301b4ede53d59b68bf55f95bb26412d9233c8187.tar.gz", + "filename": "301b4ede53d59b68bf55f95bb26412d9233c8187.tar.gz", + "sha512": "de81f189417a452daef5466c4a679cc5c2dde364d90e6aed5a47d3a8dd2e6cb0cc5e367794489f144fd9bb56ccadf958d5a69eed50006175b3a3a9c59b615126", + "checksum_type": "sha512" + } + ] + }, + { + "name": "simdutf", + "version": "7.2.1", + "sources": [ + { + "url": "https://github.com/simdutf/simdutf/archive/v7.2.1/simdutf-7.2.1.tar.gz", + "filename": "simdutf-7.2.1.tar.gz", + "sha512": "589c27549fd74755fabd6f06f6f80b2b19768dc9a5b73447d448d2fa66fffba9770ac1ab756f7c757c9eb4f40b333a622b8b5d5657df27dfab5779a2d8afacd7", + "checksum_type": "sha512" + } + ] + }, + { + "name": "source-highlight", + "version": "3.1.9", + "sources": [ + { + "url": "ftp://ftp.gnu.org/gnu/src-highlite/source-highlight-3.1.9.tar.gz", + "filename": "source-highlight-3.1.9.tar.gz", + "sha512": "d8e154e9a5d62c77807e4e5d36c0faed5ce2964291be5f8b83e2968a6de52229503689a4ca2109a717ae2632a14b63ec937ca0430c91684c72063f6bc0294195", + "checksum_type": "sha512" + }, + { + "url": "ftp://ftp.gnu.org/gnu/src-highlite/source-highlight-3.1.9.tar.gz.sig", + "filename": "source-highlight-3.1.9.tar.gz.sig", + "sha512": "a0bbee3dda6e97fb82c5a455a161030d3b5d053606b0b455de504714a2e2b088af920b86ef340546bdeef79156bedc5e9e4b8911f2c066e0e172eb7dc805b9a6", + "checksum_type": "sha512" + } + ] + }, + { + "name": "sqlcipher", + "version": "4.5.2", + "sources": [ + { + "url": "https://github.com/sqlcipher/sqlcipher/archive/v4.5.2/sqlcipher-4.5.2.tar.gz", + "filename": "sqlcipher-4.5.2.tar.gz", + "sha512": "1de5b219392bb976631857e32b4523258fd660fedb558d478e536b7e10c711c72c7e7c9062e45bd8a5ceaecbc1fee717935d2357f6811c3ddf76702167f4601b", + "checksum_type": "sha512" + } + ] + }, + { + "name": "tecla", + "version": "51.0", + "sources": [ + { + "url": "https://download.gnome.org/sources/tecla/51/tecla-51.0.tar.xz", + "filename": "tecla-51.0.tar.xz", + "sha512": "4c54087f4742c14b94a80b50be32c3a891591f3ea1ae3ba8f4b677480a610beee9855ca7f000ed9869b8350bf54b61584799e371c35d706724fa3ea8f5406157", + "checksum_type": "sha512" + } + ] + }, + { + "name": "tinysparql", + "version": "3.12.0", + "sources": [ + { + "url": "https://download.gnome.org/sources/tinysparql/3.12/tinysparql-3.12.0.tar.xz", + "filename": "tinysparql-3.12.0.tar.xz", + "sha512": "945c68ca3ddc9831b4ad054c14bac291b1b8979c6af4f546745f1a780af61ce69b76941c54e80366fbad1eaee7b0a2f622de6e9ec7f656fc57ff7deb3fee35ab", + "checksum_type": "sha512" + } + ] + }, + { + "name": "umockdev", + "version": "0.19.5", + "sources": [ + { + "url": "https://github.com/martinpitt/umockdev/releases/download/0.19.5/umockdev-0.19.5.tar.xz", + "filename": "umockdev-0.19.5.tar.xz", + "sha512": "7827fd392cd30b54052921516b13c325b3ed27f929d594665f79f37f36db43db86de898dcd5a91949275ec332e0ae8abdf51b015a848276a153ce88136579919", + "checksum_type": "sha512" + } + ] + }, + { + "name": "vala", + "version": "0.56.19", + "sources": [ + { + "url": "https://download.gnome.org/sources/vala/0.56/vala-0.56.19.tar.xz", + "filename": "vala-0.56.19.tar.xz", + "sha512": "68e87db80362243a071b33dd33b35e0b788e6f16fa993bcf1bbf3ccc65fb704fd3be50d41a8d50530328061c55edbe53a4fd094745435b858fd07851e963ef36", + "checksum_type": "sha512" + } + ] + }, + { + "name": "vte291", + "version": "0.84.1", + "sources": [ + { + "url": "https://download.gnome.org/sources/vte/0.84/vte-0.84.1.tar.xz", + "filename": "vte-0.84.1.tar.xz", + "sha512": "34ac77e712b12b62518a09122ce36c816e4c14a53b01be55f233c8749dd234b6b60a9ab47730e34be44fef1994364002a5f31a0af937e95ed1804752a8dd645e", + "checksum_type": "sha512" + } + ] + }, + { + "name": "wayland", + "version": "1.26.0", + "sources": [ + { + "url": "https://gitlab.freedesktop.org/wayland/wayland/-/releases/1.26.0/downloads/wayland-1.26.0.tar.xz", + "filename": "wayland-1.26.0.tar.xz", + "sha512": "50861b0c40cedec5f31b49ff1e99fc135a299fa4a8e2ff50ff4bac3f42e2f3f7be38271929fd2f6e58d83d5df516f643946ceba7937cc199581487c082c7ec31", + "checksum_type": "sha512" + }, + { + "url": "https://gitlab.freedesktop.org/wayland/wayland/-/releases/1.26.0/downloads/wayland-1.26.0.tar.xz.sig", + "filename": "wayland-1.26.0.tar.xz.sig", + "sha512": "051de7c3c80c8cef9cf713d7346467a2ce10c10ed7a39f49f3567d0ed08f409179c56e10ce8657e9eed8c544eafb2e254e251d147b13e472e60becf46100d56a", + "checksum_type": "sha512" + } + ] + }, + { + "name": "wayland-protocols", + "version": "1.49", + "sources": [ + { + "url": "https://gitlab.freedesktop.org/wayland/wayland-protocols/-/releases/1.49/downloads/wayland-protocols-1.49.tar.xz", + "filename": "wayland-protocols-1.49.tar.xz", + "sha512": "c6f58586c4e3046fb545f31959eb662426ddf94cab627a136bec905c3a1c75087ed2850d49e44964241a9158a3559ad02607647a19fb5f1c1fb254160b04806c", + "checksum_type": "sha512" + } + ] + }, + { + "name": "xdg-desktop-portal", + "version": "1.22.1", + "sources": [ + { + "url": "https://github.com/flatpak/xdg-desktop-portal/releases/download/1.22.1/xdg-desktop-portal-1.22.1.tar.xz", + "filename": "xdg-desktop-portal-1.22.1.tar.xz", + "sha512": "c37319e84d8830e19e1fe4dd21d909c2fd9d7a9deb2720d3f83d33bbe00bac4c22e49018c1c8be0d0c4c038a9a236748ba03c73d2f1351de7bf9ad4fbffee4c8", + "checksum_type": "sha512" + } + ] + }, + { + "name": "xdg-desktop-portal-gnome", + "version": "51.0", + "sources": [ + { + "url": "https://download.gnome.org/sources/xdg-desktop-portal-gnome/51/xdg-desktop-portal-gnome-51.0.tar.xz", + "filename": "xdg-desktop-portal-gnome-51.0.tar.xz", + "sha512": "f86b26237d085b85d5833c9fbd22fe214f73ab574ad8f9f2f7a87f3e187663ffed508c4abcf81ebdca28dae68833f7a1b722399fffb1573f8fdf462bd218523b", + "checksum_type": "sha512" + } + ] + } + ] +} diff --git a/factory/docs/architecture.md b/factory/docs/architecture.md new file mode 100644 index 00000000..f742d165 --- /dev/null +++ b/factory/docs/architecture.md @@ -0,0 +1,239 @@ +# Factory architecture + +## The shape + +```mermaid +flowchart TD + Seed["reference COPR (SRPM)"] --> Recipe["RPM recipe\npackages/<name>/"] + Recipe --> Gate["Packit SRPM gate\nfast spec check"] + Recipe --> Root["pinned c10s build root"] + Root --> Graph["rpmspec --parse\nBuildRequires"] + Graph --> Waves["waves"] + Waves --> Build["rpmbuild -br / -ba\nper package, per wave"] + Lock["config/upstream-sources.json\nURL + SHA-512"] --> Verify["source_pipeline.py\nfetch and verify"] + Verify --> Build + Build --> Repo["createrepo_c"] + Seed --> Repo + Repo --> Txn{"consumer transaction"} + Txn -->|resolves| Sign["cosign sign-blob\nrepodata"] + Sign --> Push["GHCR OCI image"] + Push --> Image["Containerfile\nCOPY --from= pinned by digest"] + Txn -->|does not resolve| Stop["tag does not move"] +``` + +Execution is entirely GitHub Actions on GitHub-hosted runners. There is no +Argo cluster, no self-hosted runner, no remote build service. Copr, +Packit-as-a-Service, Koji, Bodhi, Testing Farm and Kubernetes are not +dependencies of the binary path. + +## Build root + +`config/buildroot.json` pins `quay.io/centos-bootc/centos-bootc:c10s` by +digest. That is the image the released artifact is built on, so a package +built here links against the same libraries the running system has. + +**The pin is pulled once per run** and passed to every job as an artifact, +under the bare local name `factory-buildroot:run`. That solves three things a +digest pin alone cannot: + +- **Expiry mid-run.** `c10s` is republished frequently and superseded digests + are garbage collected. A pin correct at 06:01 has been observed 404 by 07:13 + the same morning, killing every job in the affected waves on exit 125. +- **Provenance.** Every job provably used the same bytes, which is a stronger + claim than a pin makes on its own. +- **Cost.** Several hundred registry pulls become one. + +A job that failed to load the artifact cannot silently fall back to pulling +something else: `docker` refuses an unqualified name it does not have locally. + +The bare name is deliberate. A fully-qualified name would let a job that lost +its artifact quietly resolve against a registry, and the run would produce +RPMs from a root nobody recorded. + +## CRB + +The c10s image ships with **CRB disabled**, and several build roots for this +stack live only there: `meson`, `ninja-build`, `wayland-devel`, `gcc-g++`. +Every build step enables it before resolving BuildRequires. + +Without that, the failure is `No matching package to install: meson`, which +reads as a missing package rather than a disabled repository. The requirement +is declared in `config/buildroot.json` and asserted by `validate.py`, so it is +stated next to the pin it applies to instead of living in three workflow files. + +## Naming the spec explicitly + +Every `rpmbuild` invocation names the spec file: + +```bash +rpmbuild -ba "$spec" --define "_topdir ..." --define "_sourcedir ..." +``` + +Invoked with no spec argument, `rpmbuild` globs the working directory. The build +output directory contains no spec, so the glob matches nothing and **`rpmbuild` +exits 0 having written nothing and printed nothing**. That is the worst failure +a build can have: green, silent, no RPMs. + +The build stage guards it with an explicit `test -f "$spec"` and an artifact +check that fails when a package produced no RPM, but naming the file means the +case never arises. + +## What Packit does here, and what it does not + +**Does:** `packit srpm` against the pinned `quay.io/packit/packit` container. +A malformed spec fails in seconds instead of after a build root install and a +long compile. `%changelog` dates, unexpanded macros, broken `Patch:` lines — +all caught here. + +**Does not:** build binaries. Packit Service would, through Copr, and Copr has +no CentOS Stream 10 chroot. `.packit.yaml` therefore has no `jobs:` section, so +Packit Service does nothing on a pull request. The only Packit configuration +that does anything is `create-archive`, which points at the factory's +already-verified Source0 rather than letting Packit download the spec's URL — +which would defeat the source lock entirely. + +This is the same split `projectbluefin/utah-packages` operates under, for the +same underlying reason: the build root must be the one the image ships on, and +Copr cannot provide it. + +## Build order + +Solved, never declared: + +``` +extract_buildrequires.py rpmspec --parse over every recipe, in the build root +build_graph.py BuildRequires -> edges -> topological layers +``` + +A wave is one unit of parallelism. Everything in wave N builds concurrently; +everything in wave N+1 resolves its factory `BuildRequires` against wave N. + +`rpmspec --parse` is used rather than a regex over the spec text because EL10 +specs guard much of their `BuildRequires` behind `%if 0%{?rhel}`. A regex sees +both branches and would invent edges that do not apply, or miss ones that do. + +Rich dependencies (`(a with b and c)`, alternations) are kept as whole strings +and every named candidate is recorded as a predecessor. Over-approximating can +only make a wave later than necessary. Under-approximating breaks the build. + +A `BuildRequires` cycle among factory packages fails and **names its members**. +Dropping them silently is how a recipe stops being built. + +The workflow's job graph is static, so the wave count is fixed at six and +`prepare` fails if the solved plan is deeper. That is a real decision, not an +overflow: the alternative is a plan that quietly omits packages. + +## Incremental rebuilds + +`prepare` reads the `org.projectbluefin.factory.state` label on the published +image, which records the input digest of every build it contains. A package is +selected when its digest differs from the recorded one, or when the label has +never seen it. + +Not a git diff: once two runs queue, the second push's diff says nothing about +what the first run built. +Not a NEVR comparison: it misses a patch change that does not move the release. + +Direct `BuildRequires` dependents of anything selected are dragged along. This +is correctness, not optimisation — a library whose soname moved must not leave +its consumers linked against the copy it replaced. + +## Publication + +Seeded from the previously published image, so the candidate is the last good +repository rather than only what this run built. Each source package built is +replaced **by source name**, so a dropped subpackage leaves with its parent. +A package that failed keeps its previous build. + +A build failure alone does not block publication. That is the point of +incremental publication: if one package of seventy is flaky, the other +sixty-nine still reach consumers. Holding everything back is how three runs in +four weeks used to publish. + +What does block is the **consumer transaction**: the packages the image +actually installs, resolved against the candidate plus the pinned `c10s` base. +If that does not resolve — a library moved its soname and a consumer was not +rebuilt — the tag does not move, however many packages built. + +`repomd.xml` is signed keylessly with the workflow's OIDC identity via cosign, +and the image is provenance-attested. + +## Source locking + +`config/upstream-sources.json` records, for every source a recipe downloads, the +resolved URL and its SHA-512. `source_pipeline.py` fetches and verifies **before** +the build starts and again **inside** it, so a source swapped between the two +fails there rather than producing an RPM from bytes nobody checked. + +**Every** Source is locked, not just Source0. Four recipes carry a second +downloadable source — glycin's vendored libjxl, malcontent's libgsystemservice, +docbook-style-xsl's docs — and a lock carrying only the first produces a recipe +that passes validation and then fails in `rpmbuild -bs` on a missing archive. + +A URL fragment (`...tar.gz#/libjxl-0.11.1`) selects a subdirectory inside the +archive. rpm names the file after the URL *path* with the fragment stripped, so +the staged filename is derived that way; leaving `#` in the name stages a file +rpmbuild will not find. + +A detached signature (`.sig`, `.asc`) is a legitimate source — the spec verifies +against it — so it is locked and verified like any other. + +Re-rendering reuses digests for URLs that have not changed, so +`just factory-relock` fetches only what actually moved rather than every archive +in the factory. + +### Sources the factory cannot have + +Three recipes reference a source that is neither downloadable nor committed: a +`cargo vendor` tarball generated by hand (glycin, gnome-user-share), or a +bundled archive (malcontent's `gvdb.tar.xz` and `tinycdb-0.81.tar.gz`). + +These are marked `blocked` in the lock with the reason, excluded from the build +list, and refused by the SRPM gate. Failing there rather than in `rpmbuild` is +the point: `rpmbuild -bs` reports `Bad file: ...vendor.tar.xz: No such file or +directory`, which names the archive and not the reason the factory cannot +produce it. + +`validate.py --check generated` reports them and does **not** fail. A recipe +correctly identified as unbuildable is a correct state of the configuration; a +permanently red gate is a gate people stop reading. + +Each of these is a real gap, not a rounding error: + +- **Three recipes cannot be built at all.** glycin, gnome-user-share and + malcontent need a hand-generated `cargo vendor` tarball or a bundled archive. + They are excluded from builds with the reason recorded. Committing a + generated vendor tarball would mean committing a binary blob whose contents + depend on the crates.io index at generation time, which is not a provenance + statement — so this needs a decision, not a workaround. +- **Builds are not hermetic.** The pinned container provides the right ABI but + is not a build root in the sense `mock` means: no build user, no chroot + isolation, no network isolation, no reset between packages. Two packages + building concurrently in the same image could in principle interfere. + `mock --hermetic-build` under `unshare --net` is the agreed direction and is + not built. The blocker is that `mock-core-configs` does not ship an EL10 + chroot. +- **amd64 only.** The image publishes amd64 and arm64. Until arm64 recipes + exist, the arm64 manifest cannot consume factory packages. +- **No build cache.** Each run recompiles what it selects. A cache keyed on + the input digest plus the resolved build root would pay for itself quickly; + it is not implemented. +- **Release gating is advisory.** `report` names every package that did not + build, but nothing merges that into a required status check. The SRPM gate is + the only merge-blocking factory check, and it is not required in the + ruleset. + +## Verification at the factory seam + +`factory-smoke.yml` exercises the recorded CentOS digest, parses every recipe +with CentOS RPM macros, and builds wayland-protocols through the real reusable +binary lane. It does not publish. Host-only tests cannot prove this seam. + +The buildroot loader pulls the immutable reference and fails if it is missing +or mismatched. It never substitutes a newer tag for an unavailable digest. +Dependency repositories remain live, so the container lane is not hermetic. + +Publication replaces only successful source builds and updates only their +input witnesses. The metadata signature is included in the image; the OCI +digest is signed before its stream tag moves. A failed consumer transaction +fails the publication job and leaves the stream tag untouched. diff --git a/factory/empty/.keep b/factory/empty/.keep new file mode 100644 index 00000000..e69de29b diff --git a/factory/packages/accountsservice/.factory-upstream.json b/factory/packages/accountsservice/.factory-upstream.json new file mode 100644 index 00000000..82915859 --- /dev/null +++ b/factory/packages/accountsservice/.factory-upstream.json @@ -0,0 +1,13 @@ +{ + "schema": 1, + "package": "accountsservice", + "imported_at": "2026-10-10T15:37:51.161507+00:00", + "source": { + "kind": "git", + "repository": "https://github.com/projectbluefin/utah-packages", + "tree": "35bbfb3a2ac1206571a3ce176b3b0a2be8774ce3", + "path": "packages/accountsservice", + "upstream_repository": "https://src.fedoraproject.org/rpms/accountsservice.git", + "upstream_commit": "65d399bd14163f97dda1e267bb297e8080440e44" + } +} diff --git a/factory/packages/accountsservice/accountsservice.spec b/factory/packages/accountsservice/accountsservice.spec new file mode 100644 index 00000000..b0dbd161 --- /dev/null +++ b/factory/packages/accountsservice/accountsservice.spec @@ -0,0 +1,116 @@ +Name: accountsservice +Version: 26.27.3 +Release: 1%{?dist} +Summary: D-Bus interfaces for querying and manipulating user account information +License: GPL-3.0-or-later +URL: https://www.freedesktop.org/wiki/Software/AccountsService/ +Source0: https://gitlab.freedesktop.org/accountsservice/accountsservice/-/archive/%{version}/accountsservice-%{version}.tar.bz2 + +BuildRequires: gcc +BuildRequires: gettext-devel +BuildRequires: pkgconfig(dbus-1) +BuildRequires: pkgconfig(json-c) >= 0.15 +BuildRequires: pkgconfig(glib-2.0) >= 2.70 +BuildRequires: polkit-devel +BuildRequires: systemd +BuildRequires: systemd-devel +BuildRequires: gobject-introspection-devel +BuildRequires: gtk-doc +BuildRequires: git-core +BuildRequires: meson +BuildRequires: vala +BuildRequires: python3-dbusmock +BuildRequires: pkgconfig(libxcrypt) >= 4 + +Requires: polkit +Requires: shadow-utils +%{?systemd_requires} + +%description +The accountsservice project provides a set of D-Bus interfaces for +querying and manipulating user account information and an implementation +of these interfaces, based on the useradd, usermod and userdel commands. + +%package libs +Summary: Client-side library to talk to accountsservice +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description libs +The accountsservice-libs package contains a library that can +be used by applications that want to interact with the accountsservice +daemon. + +%package devel +Provides: pkgconfig(accountsservice) = %{version} +Summary: Development files for accountsservice-libs +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description devel +The accountsservice-devel package contains headers and other +files needed to build applications that use accountsservice-libs. + + +%prep +%autosetup -S git +# generate-version.sh reads Git tags; preserve the locked release version. +git tag %{version} + +%build +%meson \ + -Dgtk_doc=true \ + -Dadmin_group=wheel +%meson_build + +%install +%meson_install + +mkdir -p $RPM_BUILD_ROOT%{_datadir}/accountsservice/interfaces/ + +%find_lang accounts-service + +%ldconfig_scriptlets libs + +%post +%systemd_post accounts-daemon.service + +%preun +%systemd_preun accounts-daemon.service + +%postun +%systemd_postun accounts-daemon.service + +%files -f accounts-service.lang +%license COPYING +%doc README.md AUTHORS +%{_libexecdir}/accounts-daemon +%dir %{_datadir}/accountsservice/ +%dir %{_datadir}/accountsservice/interfaces/ +%{_datadir}/accountsservice/user-templates/ +%{_datadir}/dbus-1/interfaces/org.freedesktop.Accounts.xml +%{_datadir}/dbus-1/interfaces/org.freedesktop.Accounts.User.xml +%{_datadir}/dbus-1/system.d/org.freedesktop.Accounts.conf +%{_datadir}/dbus-1/system-services/org.freedesktop.Accounts.service +%{_datadir}/polkit-1/actions/org.freedesktop.accounts.policy +%dir %{_localstatedir}/lib/AccountsService/ +%dir %{_localstatedir}/lib/AccountsService/users/ +%dir %{_localstatedir}/lib/AccountsService/icons/ +%{_unitdir}/accounts-daemon.service + +%files libs +%{_libdir}/libaccountsservice.so.1{,.*} +%dir %{_libdir}/girepository-1.0/ +%{_libdir}/girepository-1.0/AccountsService-1.0.typelib + +%files devel +%{_includedir}/accountsservice-1.0 +%{_libdir}/libaccountsservice.so +%{_libdir}/pkgconfig/accountsservice.pc +%dir %{_datadir}/gir-1.0/ +%{_datadir}/gir-1.0/AccountsService-1.0.gir +%dir %{_datadir}/gtk-doc/html/libaccountsservice +%{_datadir}/gtk-doc/html/libaccountsservice/* +%dir %{_datadir}/vala/ +%dir %{_datadir}/vala/vapi/ +%{_datadir}/vala/vapi/accountsservice.* + +%changelog diff --git a/factory/packages/appstream/.factory-upstream.json b/factory/packages/appstream/.factory-upstream.json new file mode 100644 index 00000000..1a7727ba --- /dev/null +++ b/factory/packages/appstream/.factory-upstream.json @@ -0,0 +1,13 @@ +{ + "imported_at": "2026-10-10T05:45:38+00:00", + "package": "appstream", + "schema": 1, + "source": { + "chroot": "epel-10-x86_64", + "kind": "srpm", + "repository": "https://download.copr.fedorainfracloud.org/results/jreilly1821/c10s-gnome-50", + "srpm_checksum": "64f9183395384d00ad29dea7e8d7763469db44c3686cbc60721bbced29212e6e", + "srpm_checksum_type": "sha256", + "tree": "153916c2ddec64aa26980150988880f7b82f64ee" + } +} diff --git a/factory/packages/appstream/appstream.spec b/factory/packages/appstream/appstream.spec new file mode 100644 index 00000000..4d7416ca --- /dev/null +++ b/factory/packages/appstream/appstream.spec @@ -0,0 +1,584 @@ +Summary: Utilities to generate, maintain and access the AppStream database +Name: appstream +Version: 1.0.2 +Release: 5%{?dist} + +# lib LGPLv2+, tools GPLv2+ +License: GPL-2.0-or-later AND LGPL-2.1-or-later +#URL: http://www.freedesktop.org/wiki/Distributions/AppStream +URL: https://github.com/ximion/appstream +Source0: https://www.freedesktop.org/software/appstream/releases/AppStream-%{version}.tar.xz + +# upstream patches +# https://github.com/PackageKit/PackageKit/issues/720 +Patch0: utils-explicitly-set-format-style-when-installing-catalog-metadata.patch + + +# upstreamable patches + + +# needed for cmake auto-provides +BuildRequires: cmake +BuildRequires: meson >= 0.62 +BuildRequires: gettext +BuildRequires: git-core +BuildRequires: gperf +BuildRequires: gtk-doc +BuildRequires: intltool +BuildRequires: itstool +BuildRequires: pkgconfig(cairo) +BuildRequires: pkgconfig(freetype2) +BuildRequires: pkgconfig(fontconfig) +BuildRequires: pkgconfig(gdk-pixbuf-2.0) +BuildRequires: pkgconfig(gi-docgen) >= 2021.1 +BuildRequires: pkgconfig(gio-2.0) +BuildRequires: pkgconfig(gobject-introspection-1.0) +BuildRequires: pkgconfig(libcurl) +BuildRequires: pkgconfig(librsvg-2.0) +BuildRequires: pkgconfig(libsystemd) +BuildRequires: pkgconfig(libxml-2.0) +BuildRequires: pkgconfig(libzstd) +BuildRequires: pkgconfig(pango) +BuildRequires: pkgconfig(Qt6Core) >= 6.2.4 +BuildRequires: pkgconfig(xmlb) >= 0.3.14 +BuildRequires: pkgconfig(yaml-0.1) +# lrelease +BuildRequires: qt6-linguist +BuildRequires: sed +BuildRequires: vala +BuildRequires: xmlto + +Requires: appstream-data + +%description +AppStream makes it easy to access application information from the +AppStream database over a nice GObject-based interface. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +# -vala subpackage removed in F30 +Obsoletes: appstream-vala < 0.12.4-3 +Provides: appstream-vala = %{version}-%{release} +%description devel +%{summary}. + +%package compose +Summary: Library for generating AppStream data +Requires: %{name}%{?_isa} = %{version}-%{release} +%description compose +%{summary}. + +%package compose-devel +Summary: Development files for %{name}-compose library +Requires: %{name}-compose%{?_isa} = %{version}-%{release} +Requires: %{name}-devel%{?_isa} = %{version}-%{release} +%description compose-devel +%{summary}. + +%package qt +Summary: Qt6 bindings for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +%description qt +%{summary}. + +%package qt-devel +Summary: Development files for %{name}-qt bindings +Requires: %{name}-qt%{?_isa} = %{version}-%{release} +Requires: pkgconfig(Qt6Core) >= 6.2.4 +%description qt-devel +%{summary}. + + +%prep +%autosetup -n AppStream-%{version} -S git_am + + +%build +%{meson} \ + -Dcompose=true \ + -Dqt=true \ + -Dvapi=true \ + -Dstemming=false + +%{meson_build} + + +%install +%{meson_install} + +mkdir -p %{buildroot}/var/cache/swcatalog/{icons,gv,xml} +touch %{buildroot}/var/cache/swcatalog/cache.watch + +%find_lang appstream + +%if "%{?_metainfodir}" != "%{_datadir}/metainfo" +# move metainfo to right/legacy location +mkdir -p %{buildroot}%{_kf5_metainfodir} +mv %{buildroot}%{_datadir}/metainfo/*.xml \ + %{buildroot}%{_metainfodir} +%endif + + +%check +%{meson_test} ||: + + +%posttrans +%{_bindir}/appstreamcli refresh --force >& /dev/null ||: + +%transfiletriggerin -- %{_datadir}/swcatalog/xml +%{_bindir}/appstreamcli refresh --force >& /dev/null ||: + +%transfiletriggerpostun -- %{_datadir}/swcatalog/xml +%{_bindir}/appstreamcli refresh --force >& /dev/null ||: + +%files -f appstream.lang +%doc AUTHORS +%license COPYING +%{_bindir}/appstreamcli +%{_mandir}/man1/appstreamcli.1* +%{_datadir}/appstream/ +%dir %{_libdir}/girepository-1.0/ +%{_libdir}/girepository-1.0/AppStream-1.0.typelib +%{_libdir}/libappstream.so.5 +%{_libdir}/libappstream.so.%{version} +%{_metainfodir}/org.freedesktop.appstream.cli.*.xml +# put in -devel? -- rex +%{_datadir}/gettext/its/metainfo.* +%ghost /var/cache/swcatalog/cache.watch +%dir /var/cache/swcatalog/ +%dir /var/cache/swcatalog/icons/ +%dir /var/cache/swcatalog/gv/ +%dir /var/cache/swcatalog/xml/ + +%files devel +%{_includedir}/appstream/ +%{_libdir}/libappstream.so +%{_libdir}/pkgconfig/appstream.pc +%dir %{_datadir}/gir-1.0/ +%{_datadir}/gir-1.0/AppStream-1.0.gir +%dir %{_datadir}/vala +%dir %{_datadir}/vala/vapi +%{_datadir}/vala/vapi/appstream.deps +%{_datadir}/vala/vapi/appstream.vapi +%{_docdir}/appstream/html/ +## symlink pointing to ^^, but need to take care, since rpm has +## trouble replacing dirs with symlinks, omit it for now -- rex +%exclude %{_datadir}/gtk-doc/html/appstream +# Maybe this should be split out? -- ngompa +%{_datadir}/installed-tests/appstream/metainfo-validate.test + +%files compose +%{_libexecdir}/appstreamcli-compose +%{_mandir}/man1/appstreamcli-compose.1* +%{_libdir}/libappstream-compose.so.0 +%{_libdir}/libappstream-compose.so.%{version} +%{_libdir}/girepository-1.0/AppStreamCompose-1.0.typelib +%{_metainfodir}/org.freedesktop.appstream.compose.metainfo.xml + +%files compose-devel +%{_includedir}/appstream-compose/ +%{_libdir}/libappstream-compose.so +%{_libdir}/pkgconfig/appstream-compose.pc +%{_datadir}/gir-1.0/AppStreamCompose-1.0.gir +%dir %{_datadir}/gtk-doc/ +%dir %{_datadir}/gtk-doc/html/ +%{_datadir}/gtk-doc/html/appstream-compose + +%files qt +%{_libdir}/libAppStreamQt.so.3 +%{_libdir}/libAppStreamQt.so.%{version} + +%files qt-devel +%{_includedir}/AppStreamQt/ +%{_libdir}/cmake/AppStreamQt/ +%{_libdir}/libAppStreamQt.so + + +%changelog +* Tue Oct 29 2024 Troy Dawson - 1.0.2-5 +- Bump release for October 2024 mass rebuild: + Resolves: RHEL-64018 + +* Mon Jun 24 2024 Troy Dawson - 1.0.2-4 +- Bump release for June 2024 mass rebuild + +* Wed Jun 19 2024 Mike FABIAN - 1.0.2-3 +- Resolves: RHEL-43437 Disable stemming support and remove build requirement "libstemmer-devel" + +* Sat Mar 09 2024 Alessandro Astone - 1.0.2-2 +- Backport patch to fix installing swcatalog +- Resolves: RHEL-31497 (Backport latest build from Fedora 40) + +* Sun Feb 25 2024 Neal Gompa - 1.0.2-1 +- Update to 1.0.2 +- Clean up some pre-1.0 scriptlet cruft +- Resolves: RHEL-31497 (Backport latest bulid from Fedora 40) + +* Mon Jan 22 2024 Fedora Release Engineering - 1.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 1.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Wed Jan 03 2024 Steve Cossette - 1.0.1-1 +- Update to 1.0.1 + +* Fri Nov 17 2023 Neal Gompa - 1.0.0-1 +- Update to 1.0.0 final + +* Thu Nov 02 2023 Neal Gompa - 1.0.0~git20231102.d88ed03-1 +- Rebase to 1.0.0 git snapshot + +* Mon Aug 21 2023 Parag Nemade - 0.16.1-4 +- Migrate to SPDX license expression + +* Wed Jul 19 2023 Fedora Release Engineering - 0.16.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon Jun 19 2023 Yaakov Selkowitz - 0.16.1-2 +- Disable Qt5 in RHEL 10 builds +- Remove obsolete BuildRequires + +* Sat Feb 11 2023 Neal Gompa - 0.16.1-1 +- Update to 0.16.1 + +* Wed Jan 18 2023 Fedora Release Engineering - 0.15.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Sep 6 2022 Amit Shah - 0.15.5-2 +- Make qt deps and builds conditional + +* Fri Sep 02 2022 Rex Dieter - 0.15.5-1 +- 0.15.5 + +* Wed Jul 20 2022 Fedora Release Engineering - 0.15.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue Jun 07 2022 Rex Dieter - 0.15.4-1 +- 0.15.4 + +* Tue Apr 19 2022 Rex Dieter 0.15.3-1 +- 0.15.3 + +* Wed Feb 23 2022 Rex Dieter - 0.15.2-1 +- 0.15.2 +- support only filetriggers + +* Wed Jan 19 2022 Fedora Release Engineering - 0.15.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Dec 29 2021 Rex Dieter - 0.15.1-1 +- 0.15.1 (#2028696) +- update triggers to consistently use --force flag on 'appstreamcli refresh' calls + +* Tue Oct 12 2021 Rex Dieter - 0.14.6-1 +- 0.14.6 + +* Sat Aug 28 2021 Neal Gompa - 0.14.5-1 +- Update to 0.14.5 + +* Wed Jul 21 2021 Fedora Release Engineering - 0.14.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jun 29 2021 Rex Dieter - 0.14.4-1 +- 0.14.4 + +* Sat Apr 03 2021 Neal Gompa - 0.14.3-2 +- Build appstream-compose library for appstream-generator >= 0.8.4 + +* Mon Mar 08 2021 Rex Dieter - 0.14.3-1 +- 0.14.3 + +* Tue Mar 02 2021 Rex Dieter - 0.14.2-1 +- 0.14.2 + +* Wed Feb 17 2021 Rex Dieter - 0.14.1-1 +- 0.14.1 + +* Thu Feb 04 2021 Rex Dieter - 0.14.0-1 +- 0.14.0 + +* Tue Jan 26 2021 Fedora Release Engineering - 0.13.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Dec 07 2020 Rex Dieter - 0.13.1-1 +- 0.13.1 + +* Mon Jul 27 2020 Fedora Release Engineering - 0.12.11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu May 14 2020 Rex Dieter - 0.12.11-1 +- 0.12.11 + +* Thu Mar 19 2020 Rex Dieter - 0.12.10-1 +- 0.12.10 + +* Tue Jan 28 2020 Fedora Release Engineering - 0.12.9-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Dec 10 2019 Rex Dieter - 0.12.9-1 +- 0.12.9 +- drop dep on publican (#1773385) + +* Sat Aug 17 2019 Rex Dieter - 0.12.8-1 +- 0.12.8 + +* Wed Jul 24 2019 Fedora Release Engineering - 0.12.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Mon Jun 17 2019 Rex Dieter - 0.12.7-1 +- 0.12.7 +- BR: lmdb + +* Sun Mar 03 2019 Rex Dieter - 0.12.6-1 +- 0.12.6 + +* Mon Feb 04 2019 Kalev Lember - 0.12.4-4 +- Move appstream-vala obsoletes to -devel subpackage + +* Mon Feb 04 2019 Kalev Lember - 0.12.4-3 +- Use standard vala packaging pattern where vapi files are in -devel + +* Thu Jan 31 2019 Fedora Release Engineering - 0.12.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Jan 15 2019 Rex Dieter - 0.12.4-1 +- 0.12.4 +- pull in some upstream fixes (#1667060) + +* Tue Nov 27 2018 Rex Dieter - 0.12.3-1 +- 0.12.3 + +* Fri Oct 12 2018 Kalev Lember - 0.12.2-2 +- Backport an upstream fix for empty content_rating tags + +* Tue Aug 07 2018 Rex Dieter - 0.12.2-1 +- appstream-0.12.2 (#1589595) + +* Thu Jul 12 2018 Fedora Release Engineering - 0.12.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sun Jun 10 2018 Rex Dieter - 0.12.1-1 +- appstream-0.12.1 (#1589595) +- use %%ldconfig_scriptlets + +* Sun Apr 08 2018 Rex Dieter - 0.12.0-1 +- 0.12.0 (#1563876) + +* Wed Feb 07 2018 Fedora Release Engineering - 0.11.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Fri Feb 02 2018 Jan Grulich - 0.11.8-2 +- Fix broken cmake for Qt library + +* Fri Jan 26 2018 Rex Dieter - 0.11.8-1 +- 0.11.8 + +* Fri Dec 29 2017 Rex Dieter - 0.11.7-2 +- use metainfo dir for f28+ + +* Fri Nov 03 2017 Rex Dieter - 0.11.7-1 +- 0.11.7 + +* Mon Oct 02 2017 Rex Dieter - 0.11.6-1 +- 0.11.6 + +* Thu Sep 14 2017 Rex Dieter - 0.11.5-4 +- pull in upstream vala workaround + +* Thu Sep 14 2017 Rex Dieter - 0.11.5-3 +- hack around broken vala bindings + +* Tue Sep 12 2017 Rex Dieter - 0.11.5-2 +- use file triggers for cache regen + +* Mon Sep 11 2017 Rex Dieter - 0.11.5-1 +- 0.11.5 (#1486970) + +* Thu Sep 07 2017 Rex Dieter - 0.11.4-1 +- 0.11.4 (#1486970) + +* Sun Aug 06 2017 Björn Esser - 0.11.2-4 +- Rebuilt for AutoReq cmake-filesystem + +* Wed Aug 02 2017 Fedora Release Engineering - 0.11.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 0.11.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Wed Jul 19 2017 Rex Dieter - 0.11.2-1 +- 0.11.2 + +* Mon Jul 03 2017 Rex Dieter - 0.11.1-1 +- 0.11.1 + +* Fri May 05 2017 Rex Dieter - 0.11.0-1 +- 0.11.0 + +* Wed Apr 05 2017 Rex Dieter - 0.10.6-1 +- 0.10.6 + +* Fri Feb 10 2017 Fedora Release Engineering - 0.10.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Jan 02 2017 Rex Dieter - 0.10.5-1 +- 0.10.5 + +* Thu Dec 15 2016 Rex Dieter - 0.10.4-1 +- 0.10.4 + +* Tue Nov 15 2016 Rex Dieter - 0.10.3-4 +- use /usr/share/appdata, improve /var/cache/app-info + +* Mon Nov 14 2016 Rex Dieter - 0.10.3-2 +- pull in upstream crash fix + +* Tue Nov 01 2016 Rex Dieter - 0.10.3-1 +- 0.10.3 +- update scriptlets to use 'refresh' instead of 'refresh-index' + +* Fri Sep 30 2016 Rex Dieter - 0.10.1-3 +- s|share/appstream|share/appdata/ + +* Sat Sep 17 2016 Rex Dieter - 0.10.1-2 +- improve description, drop no-longer-used deps + +* Sat Sep 17 2016 Rex Dieter - 0.10.1-1 +- 0.10.1 + +* Thu Aug 18 2016 Rex Dieter - 0.9.8-3 +- pull in upstream fixes + +* Wed Aug 17 2016 Rex Dieter - 0.9.8-2 +- (re)enable vala support (#1367892) + +* Fri Aug 12 2016 Rex Dieter - 0.9.8-1 +- 0.9.8 + +* Thu May 12 2016 Rex Dieter - 0.9.6-1 +- 0.9.6 + +* Fri Apr 08 2016 Rex Dieter - 0.9.3-1 +- 0.9.3 + +* Wed Feb 24 2016 Rex Dieter 0.9.1-1 +- 0.9.1 + +* Wed Feb 03 2016 Fedora Release Engineering - 0.9.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Sun Dec 13 2015 Rex Dieter 0.9.0-1 +- 0.9.0 + +* Sun Dec 13 2015 Rex Dieter 0.8.6-1 +- 0.8.6 + +* Tue Sep 29 2015 Rex Dieter 0.8.4-3 +- Don't abort hitting unknown appstream tags (#1267312) + +* Wed Sep 09 2015 Rex Dieter 0.8.4-2 +- polish scriptlets +- use --force in %%post +- use %%triggerun -- appstream-data (only on upgrades) +- ignore errors, redirect output to /dev/null + +* Tue Sep 08 2015 Rex Dieter 0.8.4-1 +- 0.8.4, refresh-index whenever appstream-data is updated too + +* Thu Sep 03 2015 Rex Dieter 0.8.3-2 +- -devel: fix doc handling, omit gtk-doc symlink (for now) + +* Thu Sep 03 2015 Rex Dieter 0.8.3-1 +- 0.8.3 + +* Sat Jun 27 2015 Rex Dieter 0.8.2-1 +- 0.8.2 + +* Sat Jun 27 2015 Rex Dieter 0.8.1-1 +- 0.8.1 + +* Wed Jun 17 2015 Fedora Release Engineering - 0.8.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat May 02 2015 Kalev Lember - 0.8.0-2 +- Rebuilt for GCC 5 C++11 ABI change + +* Wed Jan 28 2015 Rex Dieter 0.8.0-1 +- 0.8.0 + +* Wed Jan 21 2015 Rex Dieter 0.7.6-1 +- 0.7.6 + +* Wed Jan 21 2015 Rex Dieter 0.7.5-2 +- -qt: Qt5 support (drop deprecated Qt4-based bindings) + +* Tue Jan 13 2015 Rex Dieter 0.7.5-1 +- 0.7.5 + +* Mon Oct 13 2014 Rex Dieter - 0.7.3-1 +- 0.7.3 +- omit vala support (for now, build broken) + +* Tue Sep 30 2014 Rex Dieter 0.7.2-2 +- pull in some upstream fixes, fix %%posttrans scriptlet + +* Tue Sep 30 2014 Rex Dieter 0.7.2-1 +- 0.7.2, ready qt5 support (not enabled yet) + +* Fri Sep 12 2014 Rex Dieter 0.7.1-1 +- 0.7.1 + +* Wed Aug 20 2014 Rex Dieter 0.7.0-4 +- enable Qt bindings support + +* Fri Aug 15 2014 Fedora Release Engineering - 0.7.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Tue Jul 22 2014 Kalev Lember - 0.7.0-2 +- Rebuilt for gobject-introspection 1.41.4 + +* Wed Jul 16 2014 Rex Dieter 0.7.0-1 +- 0.7.0 + +* Sat Jun 28 2014 Rex Dieter 0.6.2-6 +- Requires: appstream-data + +* Sat Jun 28 2014 Rex Dieter 0.6.2-5 +- backport upstream commit to fix appstream-index hang (#1098306) + +* Fri Jun 20 2014 Rex Dieter 0.6.2-4 +- appstream-index scriptlet hanging, skip for now (#1098306) + +* Sat Jun 07 2014 Fedora Release Engineering - 0.6.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Thu May 15 2014 Rex Dieter 0.6.2-2 +- update URL + +* Mon May 12 2014 Rex Dieter 0.6.2-1 +- 0.6.2 + +* Sat Apr 26 2014 Rex Dieter 0.6.1-1 +- Appstream-0.6.1, -vala support lives! + +* Sat Apr 19 2014 Rex Dieter - 0.6-1 +- Appstream-0.6 +- Obsoletes: appstream-vala (no longer provided) + +* Sun Feb 23 2014 Rex Dieter 0.5-1 +- Appstream-0.5 + +* Fri Jan 31 2014 Rex Dieter 0.4.0-3 +- rebuild (PackageKit) + +* Mon Nov 04 2013 Rex Dieter 0.4.0-2 +- -vala subpkg +- own %%{_libdir}/girepository-1.0, %%{_libdir}/packagekit-plugins (until someone better comes along) + +* Sun Nov 03 2013 Rex Dieter 0.4.0-1 +- AppStream-0.4.0 + + diff --git a/factory/packages/appstream/utils-explicitly-set-format-style-when-installing-catalog-metadata.patch b/factory/packages/appstream/utils-explicitly-set-format-style-when-installing-catalog-metadata.patch new file mode 100644 index 00000000..86f760da --- /dev/null +++ b/factory/packages/appstream/utils-explicitly-set-format-style-when-installing-catalog-metadata.patch @@ -0,0 +1,23 @@ +From 36e54f831324c8ad441ef66b49b2149edd752ea9 Mon Sep 17 00:00:00 2001 +From: Matthias Klumpp +Date: Sat, 9 Mar 2024 20:07:32 +0100 +Subject: [PATCH] utils: Explicitly set format style when installing catalog + metadata + +CC: https://github.com/PackageKit/PackageKit/issues/720 +--- + src/as-utils.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/as-utils.c b/src/as-utils.c +index 5efa237f..218f1774 100644 +--- a/src/as-utils.c ++++ b/src/as-utils.c +@@ -2481,6 +2481,7 @@ as_utils_install_metadata_file_internal (const gchar *filename, + if (origin != NULL && !is_yaml) { + g_autoptr(AsMetadata) mdata = as_metadata_new (); + as_metadata_set_locale (mdata, "ALL"); ++ as_metadata_set_format_style (mdata, AS_FORMAT_STYLE_CATALOG); + if (!as_metadata_parse_file (mdata, file_dest, AS_FORMAT_KIND_XML, error)) + return FALSE; + as_metadata_set_origin (mdata, origin); diff --git a/factory/packages/at-spi2-core/.factory-upstream.json b/factory/packages/at-spi2-core/.factory-upstream.json new file mode 100644 index 00000000..13d52c06 --- /dev/null +++ b/factory/packages/at-spi2-core/.factory-upstream.json @@ -0,0 +1,11 @@ +{ + "schema": 1, + "package": "at-spi2-core", + "imported_at": "2026-10-10T08:38:27.139037+00:00", + "source": { + "kind": "git", + "repository": "https://github.com/projectbluefin/utah-packages", + "tree": "35bbfb3a2ac1206571a3ce176b3b0a2be8774ce3", + "path": "packages/at-spi2-core" + } +} diff --git a/factory/packages/at-spi2-core/at-spi2-core.spec b/factory/packages/at-spi2-core/at-spi2-core.spec new file mode 100644 index 00000000..d7210b71 --- /dev/null +++ b/factory/packages/at-spi2-core/at-spi2-core.spec @@ -0,0 +1,175 @@ +Name: at-spi2-core +Version: 2.60.1 +Release: 1%{?dist} +Summary: Protocol definitions and daemon for D-Bus at-spi + +License: LGPL-2.1-or-later +URL: https://gitlab.gnome.org/GNOME/%{name}/ +Source0: https://download.gnome.org/sources/at-spi2-core/2.60/at-spi2-core-2.60.1.tar.xz +# scriptlet to set AT_SPI_BUS for XWayland apps that run as root (i.e. anaconda) +# https://bugzilla.redhat.com/show_bug.cgi?id=1821345 +Source1: xwayland-session-scriptlet + +BuildRequires: /usr/bin/sphinx-build +BuildRequires: gettext +BuildRequires: gi-docgen +BuildRequires: gobject-introspection-devel +BuildRequires: meson +BuildRequires: python3-devel +BuildRequires: pkgconfig(dbus-1) +BuildRequires: pkgconfig(gio-2.0) +BuildRequires: pkgconfig(libei-1.0) +BuildRequires: pkgconfig(libsystemd) +BuildRequires: pkgconfig(libxml-2.0) +BuildRequires: pkgconfig(xi) +BuildRequires: pkgconfig(xkbcommon) +BuildRequires: pkgconfig(xtst) + +Requires: dbus +# For xwayland-session-scriptlet +# https://bugzilla.redhat.com/show_bug.cgi?id=2137281 +Requires: /usr/bin/xprop + +%description +at-spi allows assistive technologies to access GTK-based +applications. Essentially it exposes the internals of applications for +automation, so tools such as screen readers, magnifiers, or even +scripting interfaces can query and interact with GUI controls. + +This version of at-spi is a major break from previous versions. +It has been completely rewritten to use D-Bus rather than +ORBIT / CORBA for its transport protocol. + +%package devel +# Expose versions to the dependency preflight before payload Provides exist. +Provides: pkgconfig(atspi-2) = %{version} + +Summary: Development files and headers for at-spi2-core +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The at-spi2-core-devel package includes the header files and +API documentation for libatspi. + +%package -n atk +Summary: Interfaces for accessibility support +# Dependency required for translations. +Requires: at-spi2-core%{?_isa} = %{version}-%{release} + +%description -n atk +The ATK library provides a set of interfaces for adding accessibility +support to applications and graphical user interface toolkits. By +supporting the ATK interfaces, an application or toolkit can be used +with tools such as screen readers, magnifiers, and alternative input +devices. + +%package -n atk-devel +Summary: Development files for the ATK accessibility toolkit +Requires: atk%{?_isa} = %{version}-%{release} + +%description -n atk-devel +This package includes libraries, header files, and developer documentation +needed for development of applications or toolkits which use ATK. + +%package -n at-spi2-atk +Summary: A GTK+ module that bridges ATK to D-Bus at-spi +Requires: atk%{?_isa} = %{version}-%{release} +Requires: at-spi2-core%{?_isa} = %{version}-%{release} + +%description -n at-spi2-atk +at-spi allows assistive technologies to access GTK-based +applications. Essentially it exposes the internals of applications for +automation, so tools such as screen readers, magnifiers, or even +scripting interfaces can query and interact with GUI controls. + +This version of at-spi is a major break from previous versions. +It has been completely rewritten to use D-Bus rather than +ORBIT / CORBA for its transport protocol. + +This package includes a gtk-module that bridges ATK to the new +D-Bus based at-spi. + +%package -n at-spi2-atk-devel +Summary: A GTK+ module that bridges ATK to D-Bus at-spi +Requires: at-spi2-atk%{?_isa} = %{version}-%{release} + +%description -n at-spi2-atk-devel +The at-spi2-atk-devel package includes the header files for the at-spi2-atk +library. + +%prep +%autosetup -p1 + +%build +%meson -Ddocs=true -Ddefault_bus=dbus-broker -Ddbus_daemon=/usr/bin/dbus-daemon -Ddbus_broker=/usr/bin/dbus-broker-launch +%meson_build + +%install +%meson_install +install -Dpm 0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/xdg/Xwayland-session.d/00-at-spi + +%{find_lang} %{name} + +%files -f %{name}.lang +%license COPYING +%doc NEWS README.md +%{_libexecdir}/at-spi2-registryd +%dir %{_datadir}/defaults +%dir %{_datadir}/defaults/at-spi2 +%{_datadir}/defaults/at-spi2/accessibility.conf +%{_sysconfdir}/xdg/autostart/at-spi-dbus-bus.desktop +# the 'logical' owner of this dir is gnome-settings-daemon, but g-s-d +# indirectly depends on this package, so depending on it to provide +# this directory would create a circular dependency. so we just co-own +# it instead +%dir %{_sysconfdir}/xdg/Xwayland-session.d +%{_sysconfdir}/xdg/Xwayland-session.d/00-at-spi +%{_libdir}/libatspi.so.* +%dir %{_libdir}/girepository-1.0 +%{_libdir}/girepository-1.0/Atspi-2.0.typelib +%{_libexecdir}/at-spi-bus-launcher +%dir %{_datadir}/dbus-1/accessibility-services/ +%{_datadir}/dbus-1/accessibility-services/org.a11y.atspi.Registry.service +%{_datadir}/dbus-1/services/org.a11y.Bus.service +%{_userunitdir}/at-spi-dbus-bus.service +%dir %{python3_sitearch}/gi/overrides/ +%{python3_sitearch}/gi/overrides/Atspi.py +%{python3_sitearch}/gi/overrides/__pycache__/Atspi.* + +%files devel +%{_libdir}/libatspi.so +%{_docdir}/libatspi +%dir %{_datadir}/gir-1.0 +%{_datadir}/gir-1.0/Atspi-2.0.gir +%{_includedir}/at-spi-2.0 +%{_libdir}/pkgconfig/atspi-2.pc + +%files -n atk +%license COPYING +%{_libdir}/libatk-1.0.so.* +%dir %{_libdir}/girepository-1.0 +%{_libdir}/girepository-1.0/Atk-1.0.typelib + +%files -n atk-devel +%{_libdir}/libatk-1.0.so +%{_includedir}/atk-1.0 +%{_libdir}/pkgconfig/atk.pc +%{_docdir}/atk +%dir %{_datadir}/gir-1.0 +%{_datadir}/gir-1.0/Atk-1.0.gir + +%files -n at-spi2-atk +%license COPYING +%dir %{_libdir}/gtk-2.0 +%dir %{_libdir}/gtk-2.0/modules +%{_libdir}/gtk-2.0/modules/libatk-bridge.so +%{_libdir}/gnome-settings-daemon-3.0/gtk-modules/at-spi2-atk.desktop +%{_libdir}/libatk-bridge-2.0.so.* + +%files -n at-spi2-atk-devel +%{_includedir}/at-spi2-atk/2.0/atk-bridge.h +%{_libdir}/libatk-bridge-2.0.so +%{_libdir}/pkgconfig/atk-bridge-2.0.pc + +%changelog +%autochangelog diff --git a/factory/packages/at-spi2-core/xwayland-session-scriptlet b/factory/packages/at-spi2-core/xwayland-session-scriptlet new file mode 100644 index 00000000..ba5a55a7 --- /dev/null +++ b/factory/packages/at-spi2-core/xwayland-session-scriptlet @@ -0,0 +1,3 @@ +#!/bin/sh + +xprop -root -format AT_SPI_BUS 8s -set 'AT_SPI_BUS' "$( busctl call --user org.a11y.Bus /org/a11y/bus org.a11y.Bus GetAddress | sed 's/s "\(.*\)"/\1/' )" diff --git a/factory/packages/autoconf/.factory-upstream.json b/factory/packages/autoconf/.factory-upstream.json new file mode 100644 index 00000000..eb72a2ae --- /dev/null +++ b/factory/packages/autoconf/.factory-upstream.json @@ -0,0 +1,13 @@ +{ + "imported_at": "2026-10-10T05:40:10+00:00", + "package": "autoconf", + "schema": 1, + "source": { + "chroot": "epel-10-x86_64", + "kind": "srpm", + "repository": "https://download.copr.fedorainfracloud.org/results/jreilly1821/c10s-gnome-50", + "srpm_checksum": "dcb29f0dc55ba7bbc21f36bb0435ad369e35940b42d057e2635260f13431bc86", + "srpm_checksum_type": "sha256", + "tree": "a42d50e5c13d8eec47a65af0d8cb36d23d14384f" + } +} diff --git a/factory/packages/autoconf/0001-Keep-lmingwex-and-lmoldname-in-linker-flags-for-MinG.patch b/factory/packages/autoconf/0001-Keep-lmingwex-and-lmoldname-in-linker-flags-for-MinG.patch new file mode 100644 index 00000000..f0da9b98 --- /dev/null +++ b/factory/packages/autoconf/0001-Keep-lmingwex-and-lmoldname-in-linker-flags-for-MinG.patch @@ -0,0 +1,35 @@ +From 9ff9c567b1a7a7e66fa6523d4ceff142b86bddaa Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Markus=20M=C3=BCtzel?= +Date: Sun, 5 Jan 2025 18:14:19 +0000 +Subject: [PATCH] Keep "-lmingwex" and "-lmoldname" in linker flags for MinGW + +It is needed when building Octave targeting Windows. Without it, the +implementation of "casin" from the Windows runtime is used instead of +the replacement from MinGW-w64. That means that results for the +"casin" function are wrong without that change. +* lib/autoconf/fortran.m4: Do not remove "-lmingwex" or "-lmoldname" +from the linker flags when targeting MinGW. Removing "-lmingwex" causes +an incorrect linker resolution for functions like "casin" for projects +that consist of Fortran and C++ sources. Removing "-lmoldname" causes +issues for Fortran projects that try to use POSIX-like C functions +without a '_' symbol prefix when targeting MinGW. +--- + lib/autoconf/fortran.m4 | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4 +index cdc197bd..bd68ec3b 100644 +--- a/lib/autoconf/fortran.m4 ++++ b/lib/autoconf/fortran.m4 +@@ -665,7 +665,7 @@ while test $[@%:@] != 1; do + -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ + |-LANG:=* | -LIST:* | -LNO:* | -link) + ;; +- -lkernel32 | -lmingw* | -lmoldname) ++ -lkernel32) + # Ignore this library only on Windows-like systems. + case $host_os in + cygwin* | msys* | mingw* | windows*) ;; +-- +2.47.0 + diff --git a/factory/packages/autoconf/0001-Port-C11-test-to-C.patch b/factory/packages/autoconf/0001-Port-C11-test-to-C.patch new file mode 100644 index 00000000..ca87a61b --- /dev/null +++ b/factory/packages/autoconf/0001-Port-C11-test-to-C.patch @@ -0,0 +1,43 @@ +From dd961fb790d6df85ba57b965f8a6f2534328955b Mon Sep 17 00:00:00 2001 +From: Jakub Jelinek +Date: Thu, 8 Jan 2026 12:14:41 +0100 +Subject: [PATCH] Port C11 test to C++ + +--- + lib/autoconf/c.m4 | 4 ++-- + tests/data/gnulib_std_gnu11_2020_08_17.m4 | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 +index d4f7fbe6350f71e2..7e9bc62789cf62a7 100644 +--- a/lib/autoconf/c.m4 ++++ b/lib/autoconf/c.m4 +@@ -2639,8 +2639,8 @@ ac_cxx_conftest_cxx11_main=' + } + { + // Unicode literals +- char const *utf8 = u8"UTF-8 string \u2500"; +- char16_t const *utf16 = u"UTF-8 string \u2500"; ++ auto const *utf8 = u8"UTF-8 string \u2500"; ++ char16_t const *utf16 = u"UTF-16 string \u2500"; + char32_t const *utf32 = U"UTF-32 string \u2500"; + } + ' +diff --git a/tests/data/gnulib_std_gnu11_2020_08_17.m4 b/tests/data/gnulib_std_gnu11_2020_08_17.m4 +index 21f7cc7a1526fdc1..d789f8dc039eaf65 100644 +--- a/tests/data/gnulib_std_gnu11_2020_08_17.m4 ++++ b/tests/data/gnulib_std_gnu11_2020_08_17.m4 +@@ -762,8 +762,8 @@ AC_DEFUN([_AC_CXX_CXX11_TEST_BODY], + } + { + // Unicode literals +- char const *utf8 = u8"UTF-8 string \u2500"; +- char16_t const *utf16 = u"UTF-8 string \u2500"; ++ auto const *utf8 = u8"UTF-8 string \u2500"; ++ char16_t const *utf16 = u"UTF-16 string \u2500"; + char32_t const *utf32 = U"UTF-32 string \u2500"; + } + ]]) +-- +2.52.0 + diff --git a/factory/packages/autoconf/0001-autoreconf-Adapt-to-the-on-disk-situation-after-auto.patch b/factory/packages/autoconf/0001-autoreconf-Adapt-to-the-on-disk-situation-after-auto.patch new file mode 100644 index 00000000..fcb212a8 --- /dev/null +++ b/factory/packages/autoconf/0001-autoreconf-Adapt-to-the-on-disk-situation-after-auto.patch @@ -0,0 +1,102 @@ +From d75171fdf8d03d2e070fcc3dbb5afb942dbd7828 Mon Sep 17 00:00:00 2001 +From: Bruno Haible +Date: Sat, 5 Jul 2025 17:20:11 +0200 +Subject: [PATCH] autoreconf: Adapt to the on-disk situation after autopoint + has run. + +Reported in . + +* bin/autoreconf.in (autoreconf_current_directory): After invoking autopoint, +rerun aclocal. When doing so, pass extra options "-I m4" if the configure.ac +does not specify a macro dir. +--- + bin/autoreconf.in | 24 ++++++++++++++++++++++++ + 1 file changed, 24 insertions(+) + +diff --git a/bin/autoreconf.in b/bin/autoreconf.in +index 3f6a74fe..eb0d96a9 100644 +--- a/bin/autoreconf.in ++++ b/bin/autoreconf.in +@@ -489,6 +489,7 @@ sub autoreconf_current_directory ($) + # Actually, it is even more restrictive, as it greps for + # '^AM_GNU_GETTEXT_(REQUIRE_)?VERSION('. We did this above, while + # scanning configure.ac. ++ my $invoked_autopoint; + if (!$uses_liblink && !$uses_iconv && !$uses_gettext) + { + verb "$configure_ac: not using Gettext"; +@@ -514,6 +515,7 @@ sub autoreconf_current_directory ($) + xsystem_hint ("autopoint is needed because this package uses AC_LIB_LINKFLAGS", + $autopoint); + } ++ $invoked_autopoint = 1; + } + + +@@ -593,6 +595,7 @@ sub autoreconf_current_directory ($) + # from the final autoconf invocation. + my $aux_dir; + my @aux_files; ++ my @macro_dirs; + my $uses_liblink_via_traces; + my $uses_iconv_via_traces; + my $uses_gettext_via_traces; +@@ -616,6 +619,8 @@ sub autoreconf_current_directory ($) + 'AC_CONFIG_AUX_DIR', + 'AC_CONFIG_HEADERS', + 'AC_CONFIG_SUBDIRS', ++ 'AC_CONFIG_MACRO_DIR_TRACE', ++ 'AC_CONFIG_MACRO_DIR', + 'AC_INIT', + 'AC_REQUIRE_AUX_FILE', + 'AC_PROG_LIBTOOL', +@@ -640,6 +645,8 @@ sub autoreconf_current_directory ($) + my ($macro, @args) = split (/::/); + $aux_dir = $args[0] if $macro eq "AC_CONFIG_AUX_DIR"; + push @aux_files, $args[0] if $macro eq "AC_REQUIRE_AUX_FILE"; ++ push @macro_dirs, $args[0] if $macro eq "AC_CONFIG_MACRO_DIR_TRACE" ++ || $macro eq "AC_CONFIG_MACRO_DIR"; + $uses_autoconf = 1 if $macro eq "AC_INIT"; + # Here we need to explicitly test for GUILE_FLAGS, because in the + # typical situation where configure.ac invokes GUILE_FLAGS, +@@ -679,6 +686,15 @@ sub autoreconf_current_directory ($) + } + } + ++ # When configure.ac does not specify a macro dir, autopoint has ++ # created a directory named 'm4' and copied its *.m4 files into it. ++ # In this case, we need to rerun 'aclocal', in order to pass it the ++ # options "-I m4" this time. ++ if ($invoked_autopoint && !@macro_dirs) ++ { ++ $rerun_aclocal = 1; ++ } ++ + # Gettext consistency checks. + # Some projects intentionally don't call AM_GNU_GETTEXT_(REQUIRE_)VERSION + # because they have all of the gettext infrastructure checked into version +@@ -807,6 +823,8 @@ sub autoreconf_current_directory ($) + xsystem_hint ("autopoint is needed because this package uses AC_LIB_LINKFLAGS", + $autopoint); + } ++ $invoked_autopoint = 1; ++ $rerun_aclocal = 1; + } + + +@@ -824,6 +842,12 @@ sub autoreconf_current_directory ($) + } + else + { ++ # When configure.ac does not specify a macro dir, autopoint has ++ # created a directory named 'm4' and copied its *.m4 files into it. ++ if ($invoked_autopoint && !@macro_dirs) ++ { ++ $aclocal_flags .= " -I m4"; ++ } + xsystem ("$aclocal $aclocal_flags"); + } + } +-- +2.43.0 + diff --git a/factory/packages/autoconf/0001-autoreconf-Invoke-autopoint-in-more-situations.patch b/factory/packages/autoconf/0001-autoreconf-Invoke-autopoint-in-more-situations.patch new file mode 100644 index 00000000..b99c3da2 --- /dev/null +++ b/factory/packages/autoconf/0001-autoreconf-Invoke-autopoint-in-more-situations.patch @@ -0,0 +1,159 @@ +From e2a4935b45f273410e975ecf56ab26ad72855df0 Mon Sep 17 00:00:00 2001 +From: Bruno Haible +Date: Wed, 2 Jul 2025 02:43:41 +0200 +Subject: [PATCH 1/2] autoreconf: Invoke autopoint in more situations. + +Reported in . + +* bin/autoreconf.in (autoreconf_current_directory): Invoke autopoint also when +the package uses AM_GNU_GETTEXT (without AM_GNU_GETTEXT_VERSION), AM_PO_SUBDIRS, +AM_ICONV, AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS, AC_LIB_LINKFLAGS_FROM_LIBS, +or GUILE_FLAGS. +--- + bin/autoreconf.in | 80 ++++++++++++++++++++++++++++++++++++++++++++--- + 1 file changed, 76 insertions(+), 4 deletions(-) + +diff --git a/bin/autoreconf.in b/bin/autoreconf.in +index a5ffc6fa..207900df 100644 +--- a/bin/autoreconf.in ++++ b/bin/autoreconf.in +@@ -440,6 +440,8 @@ sub autoreconf_current_directory ($) + # ---------------------- # + + my $uses_autoconf; ++ my $uses_liblink; ++ my $uses_iconv; + my $uses_gettext; + if (-f $configure_ac) + { +@@ -449,8 +451,13 @@ sub autoreconf_current_directory ($) + s/#.*//; + s/dnl.*//; + $uses_autoconf = 1 if /AC_INIT/; ++ $uses_liblink = 1 if /AC_LIB_HAVE_LINKFLAGS/; ++ $uses_liblink = 1 if /AC_LIB_LINKFLAGS/; ++ $uses_liblink = 1 if /AC_LIB_LINKFLAGS_FROM_LIBS/; ++ $uses_iconv = 1 if /AM_ICONV/; + # See below for why we look for gettext here. +- $uses_gettext = 1 if /^AM_GNU_GETTEXT_(?:REQUIRE_)?VERSION/; ++ $uses_gettext = 1 if /AM_GNU_GETTEXT/; ++ $uses_gettext = 1 if /AM_PO_SUBDIRS/; + } + if (!$uses_autoconf) + { +@@ -485,7 +492,7 @@ sub autoreconf_current_directory ($) + # Actually, it is even more restrictive, as it greps for + # '^AM_GNU_GETTEXT_(REQUIRE_)?VERSION('. We did this above, while + # scanning configure.ac. +- if (!$uses_gettext) ++ if (!$uses_liblink && !$uses_iconv && !$uses_gettext) + { + verb "$configure_ac: not using Gettext"; + } +@@ -495,8 +502,21 @@ sub autoreconf_current_directory ($) + } + else + { +- xsystem_hint ("autopoint is needed because this package uses Gettext", +- $autopoint); ++ if ($uses_gettext) ++ { ++ xsystem_hint ("autopoint is needed because this package uses Gettext", ++ $autopoint); ++ } ++ elsif ($uses_iconv) ++ { ++ xsystem_hint ("autopoint is needed because this package uses AM_ICONV", ++ $autopoint); ++ } ++ elsif ($uses_liblink) ++ { ++ xsystem_hint ("autopoint is needed because this package uses AC_LIB_LINKFLAGS", ++ $autopoint); ++ } + } + + +@@ -576,6 +596,8 @@ sub autoreconf_current_directory ($) + # from the final autoconf invocation. + my $aux_dir; + my @aux_files; ++ my $uses_liblink_via_traces; ++ my $uses_iconv_via_traces; + my $uses_gettext_via_traces; + my $uses_libtool; + my $uses_intltool; +@@ -603,6 +625,11 @@ sub autoreconf_current_directory ($) + 'AM_PROG_LIBTOOL', + 'LT_INIT', + 'LT_CONFIG_LTDL_DIR', ++ 'AC_LIB_LINKFLAGS', ++ 'AC_LIB_HAVE_LINKFLAGS', ++ 'AC_LIB_LINKFLAGS_FROM_LIBS', ++ 'GUILE_FLAGS', ++ 'AM_ICONV', + 'AM_GNU_GETTEXT', + 'AM_INIT_AUTOMAKE', + 'GTK_DOC_CHECK', +@@ -617,6 +644,15 @@ sub autoreconf_current_directory ($) + $aux_dir = $args[0] if $macro eq "AC_CONFIG_AUX_DIR"; + push @aux_files, $args[0] if $macro eq "AC_REQUIRE_AUX_FILE"; + $uses_autoconf = 1 if $macro eq "AC_INIT"; ++ # Here we need to explicitly test for GUILE_FLAGS, because in the ++ # typical situation where configure.ac invokes GUILE_FLAGS, ++ # guile.m4 defines GUILE_FLAGS and uses AC_LIB_LINKFLAGS_FROM_LIBS, ++ # the traces still for AC_LIB_LINKFLAGS_FROM_LIBS are empty. ++ $uses_liblink_via_traces = 1 if $macro eq "AC_LIB_LINKFLAGS" ++ || $macro eq "AC_LIB_HAVE_LINKFLAGS" ++ || $macro eq "AC_LIB_LINKFLAGS_FROM_LIBS" ++ || $macro eq "GUILE_FLAGS"; ++ $uses_iconv_via_traces = 1 if $macro eq "AM_ICONV"; + $uses_gettext_via_traces = 1 if $macro eq "AM_GNU_GETTEXT"; + $uses_libtool = 1 if $macro eq "AC_PROG_LIBTOOL" + || $macro eq "AM_PROG_LIBTOOL" +@@ -741,6 +777,42 @@ sub autoreconf_current_directory ($) + } + + ++ # --------------------------------------------- # ++ # Running autopoint, if not already run above. # ++ # --------------------------------------------- # ++ ++ if (!$uses_liblink_via_traces && !$uses_iconv_via_traces && !$uses_gettext_via_traces) ++ { ++ verb "$configure_ac: not needing autopoint"; ++ } ++ elsif (!$install) ++ { ++ verb "$configure_ac: not running autopoint: --install not given"; ++ } ++ elsif ($uses_liblink || $uses_iconv || $uses_gettext) ++ { ++ verb "$configure_ac: not running autopoint a second time"; ++ } ++ else ++ { ++ if ($uses_gettext_via_traces) ++ { ++ xsystem_hint ("autopoint is needed because this package uses Gettext", ++ $autopoint); ++ } ++ elsif ($uses_iconv_via_traces) ++ { ++ xsystem_hint ("autopoint is needed because this package uses AM_ICONV", ++ $autopoint); ++ } ++ elsif ($uses_liblink_via_traces) ++ { ++ xsystem_hint ("autopoint is needed because this package uses AC_LIB_LINKFLAGS", ++ $autopoint); ++ } ++ } ++ ++ + # ------------------- # + # Rerunning aclocal. # + # ------------------- # +-- +2.43.0 + diff --git a/factory/packages/autoconf/autoconf-init.el b/factory/packages/autoconf/autoconf-init.el new file mode 100644 index 00000000..1c5725dc --- /dev/null +++ b/factory/packages/autoconf/autoconf-init.el @@ -0,0 +1,16 @@ +;; Activate autoconf-mode + +;; Uncomment the following code if you feel that autoconf-mode.el does better +;; job than Emacs's default autoconf.el. + +;; (autoload 'autoconf-mode "autoconf-mode" +;; "Major mode for editing autoconf files." t) +;; (setq auto-mode-alist +;; (cons '("\.ac\'\|configure\.in\'" . autoconf-mode) +;; auto-mode-alist)) + +;; Activate autotest-mode +(autoload 'autotest-mode "autotest-mode" + "Major mode for editing autotest files." t) +(setq auto-mode-alist + (cons '("\.at\'" . autotest-mode) auto-mode-alist)) diff --git a/factory/packages/autoconf/autoconf.spec b/factory/packages/autoconf/autoconf.spec new file mode 100644 index 00000000..74fbecbf --- /dev/null +++ b/factory/packages/autoconf/autoconf.spec @@ -0,0 +1,737 @@ +# Run extended test +%bcond_without autoconf_enables_optional_test + +# The design goal is to allow use of the same specfile on the original +# `autoconf` package and the `autoconf-latest` package by just changing the +# `Name` property. +# The `autoconf-latest` package aims to provide a versioned sub-package which +# enables the user to install different updates in parallel on long term +# releases. Hence, the versioned package installs its artifacts in +# `/opt/{namespace}/{versioned name}`. +Name: autoconf +Version: 2.72 +Release: 10%{?dist} + +# To help future rebase, the following licenses were seen in the following files/folders: +# '*' is anything that was not explicitly listed earlier in the folder +# usr/bin/* - GPL-3.0-or-later +# usr/share/: +# autoconf: +# Autom4te: +# {C4che.pm,General.pm,Getopt.pm,Request.pm}: GPL-3.0-or-later +# * - GPL-2.0-or-later +# autoconf: +# * - GPL-3.0-or-later WITH Autoconf-exception-generic-3.0 +# autoscan/autoscan.list - GPL-3.0-or-later +# autotest: +# * - GPL-3.0-or-later WITH Autoconf-exception-3.0 +# build-aux: +# config.{sub,guess} - GPL-3.0-or-later WITH Autoconf-exception-generic-3.0 +# install-sh - X11 AND LicenseRef-Fedora-Public-Domain +# m4sugar: +# {foreach.m4,m4sh.m4,m4sugar.m4} - GPL-3.0-or-later WITH Autoconf-exception-generic-3.0 +# * - None found +# INSTALL - FSFAP +# autom4te.cfg - GPL-3.0-or-later +# doc/autoconf: +# {AUTHORS,THANKS} - GPL-3.0-or-later +# {README,TODO} - FSFAP +# * - None found +# emacs/site-lisp: +# autoconf/*.el - GPL-3.0-or-later +# * - None found +# info/autoconf.info.gz/autoconf.info - GFDL-1.3-or-later +# config.site - None found +# usr/share/man/man1/*: generated from usr/bin/* using help2man +# +# Note on Autoconf-exception{,-generic}-3.0, one is the license itself, the other is +# the text note that can be found in sources. That doesn't make sense to have 2 separate IDs +# but that's how it is. +License: GPL-2.0-or-later AND GPL-3.0-or-later AND GPL-3.0-or-later WITH Autoconf-exception-generic-3.0 AND GFDL-1.3-or-later AND FSFAP AND X11 AND LicenseRef-Fedora-Public-Domain +Source0: https://ftp.gnu.org/gnu/autoconf/autoconf-%{version}.tar.xz +Source1: config.site +Source2: autoconf-init.el +URL: https://www.gnu.org/software/autoconf/ + +# From upstream 9ff9c567b1a7a7e66fa6523d4ceff142b86bddaa +Patch: 0001-Keep-lmingwex-and-lmoldname-in-linker-flags-for-MinG.patch + +# From https://savannah.gnu.org/support/index.php?111272 +Patch: 0001-autoreconf-Invoke-autopoint-in-more-situations.patch +# From https://savannah.gnu.org/support/index.php?111273 +Patch: 0001-autoreconf-Adapt-to-the-on-disk-situation-after-auto.patch + +# Temporary fix (to be replaced by upstream patches) +Patch: 0001-Port-C11-test-to-C.patch + +%if "%{name}" != "autoconf" +# Set this to the sub-package base name, for "autoconf-latest" +%global autoconf %{lua:print("autoconf" .. rpm.expand("%{version}"):gsub("%.", ""))} +# Enforce use of system provided emacs support +%global autoconf_enables_emacs 0 + +%if 0%{?rhel} > 0 +%global _prefix /opt/rh/%{autoconf} +%else +# We intentionally do not define a case for Fedora, as it should not +# need this functionality, and letting it error avoids accidents. +%{error:"Each downstream must specify its own /opt namespace"} +%endif +Summary: Meta package to include latest version of autoconf +%else +#name == autoconf +# Enable Emacs support +%bcond_without autoconf_enables_emacs +%global autoconf %{name} +Summary: A GNU tool for automatically configuring source code +Provides: autoconf-latest = %{version}-%{release} +Provides: %{lua:print("autoconf" .. rpm.expand("%{version}"):gsub("%.", ""))} = %{version}-%{release} +%endif + +BuildArch: noarch + + +# run "make check" by default +%bcond_without check + +BuildRequires: perl +Requires: perl(File::Compare) +Requires: perl-interpreter +# m4 >= 1.4.6 is required, >= 1.4.14 is recommended: +BuildRequires: m4 >= 1.4.14 +Requires: m4 >= 1.4.14 +%if %{with autoconf_enables_emacs} +Requires: emacs-filesystem +BuildRequires: emacs +%endif +# the filtering macros are currently in /etc/rpm/macros.perl: +BuildRequires: perl-generators +BuildRequires: perl-macros +BuildRequires: perl(Data::Dumper) +# from f19, Text::ParseWords is not the part of 'perl' package +BuildRequires: perl(Text::ParseWords) + +# %%configure replaces config.guess/config.sub for us, which confuses autoconf +# build system and it produces empty man pages for those scripts if help2man is +# not installed +BuildRequires: help2man +BuildRequires: make + +# gettext-devel 0.23.2, 0.24.2 or 0.25.1 introduced behavior changes that +# require autoreconf to execute autopoint, hence the new runtime dependency +Requires: gettext-devel + +%if %{with check} +%if %{with autoconf_enables_optional_test} +# For extended testsuite coverage +BuildRequires: gcc-gfortran +%if 0%{?fedora} >= 15 +BuildRequires: erlang +%endif +%endif +%endif + +# filter out bogus perl(Autom4te*) dependencies +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Autom4te:: +%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Autom4te:: + +%if "%{name}" != "autoconf" +# We're still on the autoconf-latest package +Requires: %{autoconf} +%description -n autoconf-latest +The latest GNU Autoconf, with a version-specific install +%files -n autoconf-latest + +%package -n %{autoconf} +Summary: A GNU tool for automatically configuring source code +%endif + +%description -n %{autoconf} +GNU's Autoconf is a tool for configuring source code and Makefiles. +Using Autoconf, programmers can create portable and configurable +packages, since the person building the package is allowed to +specify various configuration options. + +You should install Autoconf if you are developing software and +would like to create shell scripts that configure your source code +packages. If you are installing Autoconf, you will also need to +install the GNU m4 package. + +Note that the Autoconf package is not required for the end-user who +may be configuring software with an Autoconf-generated script; +Autoconf is only required for the generation of the scripts, not +their use. + + +%prep +%autosetup -n autoconf-%{version} -p1 + +%build +%if %{with autoconf_enables_emacs} +export EMACS=%{_bindir}/emacs +%else +export EMACS=%{_bindir}/false +%endif +%configure \ + %{?with_autoconf_enables_emacs:--with-lispdir=%{_emacs_sitelispdir}/autoconf} +%make_build + + +%check +%if %{with check} +# make check # TESTSUITEFLAGS='1-198 200-' # will disable nr. 199. +# make check TESTSUITEFLAGS="-k \!erlang" +case $(./build-aux/config.guess) in + i?86-*-linux*) + # Exclude test known to be failing on i686 + make check %{?_smp_mflags} TESTSUITEFLAGS="-k '!AC_SYS_LARGEFILE,!AC_SYS_YEAR2038,!AC_SYS_YEAR2038_RECOMMENDED'" + # Execute these tests only, to keep record on the actual status + make check TESTSUITEFLAGS="-k 'AC_SYS_LARGEFILE,AC_SYS_YEAR2038,AC_SYS_YEAR2038_RECOMMENDED'" %{?_smp_mflags} || true + ;; + *) + make check %{?_smp_mflags} + ;; +esac +%endif + + +%install +%make_install +mkdir -p %{buildroot}/share +install -m 0644 %{SOURCE1} %{buildroot}%{_datadir} + +%if %{with autoconf_enables_emacs} +# Create file to activate Emacs modes as required +mkdir -p %{buildroot}%{_emacs_sitestartdir} +install -p -m 0644 %{SOURCE2} %{buildroot}%{_emacs_sitestartdir} +%endif + +%if "%{name}" != "autoconf" +install -d -m 755 ${RPM_BUILD_ROOT}/etc/scl/prefixes +dirname %{_prefix} > %{autoconf}.prefix +install -p -m 644 %{autoconf}.prefix ${RPM_BUILD_ROOT}/etc/scl/prefixes/%{autoconf} + +echo "export PATH=%{_prefix}/bin:\$PATH" > enable.scl +install -p -m 755 enable.scl ${RPM_BUILD_ROOT}/%{_prefix}/enable +%endif + +%files -n %{autoconf} +%license COPYING* +%{_bindir}/* +%{_infodir}/autoconf.info* +# don't include standards.info, because it comes from binutils... +%exclude %{_infodir}/standards* +# don't include info's TOP directory +%exclude %{_infodir}/dir +%{_datadir}/autoconf/ +%{_datadir}/config.site +%if %{with autoconf_enables_emacs} +%{_datadir}/emacs/site-lisp/* +%endif +%{_mandir}/man1/* +%doc AUTHORS ChangeLog NEWS README THANKS TODO +%if "%{name}" != "autoconf" +/etc/scl/prefixes/%{autoconf} +%{_prefix}/enable +%endif + + +%changelog +* Fri Jan 16 2026 Fedora Release Engineering - 2.72-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Fri Jan 16 2026 Fedora Release Engineering - 2.72-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Thu Jan 08 2026 Frédéric Bérat - 2.72-8 +- Port C11 test to C++20 + +* Wed Jul 23 2025 Fedora Release Engineering - 2.72-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Mon Jul 21 2025 Frédéric Bérat - 2.72-6 +- Get upstream temporary fixes to deal with gettext 0.25+ (related to BZ#2376582) +- Add gettext-devel new runtime dependency due to autopoint execution + +* Fri Jan 31 2025 Frédéric Bérat - 2.72-5 +- Backport: Keep "-lmingwex" and "-lmoldname" in linker flags for MinGW (BZ#2341043) + +* Thu Jan 16 2025 Fedora Release Engineering - 2.72-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Wed Jul 17 2024 Fedora Release Engineering - 2.72-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Thu Apr 18 2024 Frédéric Bérat - 2.72-2 +- Ensure that we can transition from autoconf-latest to autoconf + +* Wed Feb 14 2024 Frédéric Bérat - 2.72-1 +- Rebase to version 2.72 (#2255664) +- Drop upstream patches +- Exclude AC_SYS_LARGEFILE, AC_SYS_YEAR2038, AC_SYS_YEAR2038_RECOMMENDED for ix86 + +* Mon Jan 22 2024 Fedora Release Engineering - 2.71-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 2.71-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Dec 22 2023 Frederic Berat - 2.71-8 +- Modify spec file to support autoconf-latest package + +* Mon Aug 07 2023 Frederic Berat - 2.71-7 +- Migrate to SPDX licences (#2222088) + +* Wed Jul 19 2023 Fedora Release Engineering - 2.71-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jan 18 2023 Fedora Release Engineering - 2.71-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Oct 11 2022 Frederic Berat - 2.71-4 +- Cherry-pick: Fix typo in variable name (#2132715) +- Backport: Fix testsuite failures with bash 5.2 + +* Wed Jul 20 2022 Fedora Release Engineering - 2.71-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Jan 19 2022 Fedora Release Engineering - 2.71-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Aug 24 2021 Ondrej Dubaj - 2.71-1 +- Rebase to version 2.71 (#1905678) + +* Wed Jul 21 2021 Fedora Release Engineering - 2.69-37 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 2.69-36 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Jan 15 2021 Patrik Novotný - 2.69-35 +- Backport: add --runstatedir option to configure + +* Mon Jul 27 2020 Fedora Release Engineering - 2.69-34 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Mar 11 2020 Ondrej Dubaj - 2.69-33 +- Added perl dependency + +* Tue Jan 28 2020 Fedora Release Engineering - 2.69-32 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Aug 28 2019 Ondrej Dubaj - 2.69-31 +- Port tests to Bash 5 + +* Wed Jul 24 2019 Fedora Release Engineering - 2.69-30 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jan 31 2019 Fedora Release Engineering - 2.69-29 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jul 12 2018 Fedora Release Engineering - 2.69-28 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 2.69-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Fri Oct 27 2017 Pavel Raiskup - 2.69-26 +- drop %%config attribute for /usr/share/config.site file (rhbz#1506655) + +* Wed Jul 26 2017 Fedora Release Engineering - 2.69-25 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 2.69-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Jul 29 2016 Pavel Raiskup - 2.69-23 +- re-enable erlang tests, after rhbz#1240487 fix +- packaging guidelines fixes + +* Wed Feb 03 2016 Fedora Release Engineering - 2.69-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Jul 13 2015 Pavel Raiskup - 2.69-21 +- disable erlang tests as erlang on i386 is currently broken (#1236072) + +* Mon Jul 06 2015 Pavel Raiskup - 2.69-21 +- '{' character in regular expression must be escaped with perl 5.22 + +* Fri Jun 26 2015 Pavel Raiskup - 2.69-20 +- conform to Packaging:Emacs guidelines (#1204274), init script + by Jonathan Underwood + +* Wed Jun 17 2015 Fedora Release Engineering - 2.69-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Fri Mar 20 2015 Pavel Raiskup - 2.69-18 +- depend on emacs-filesystem (rhbz#1204274) + +* Fri Feb 27 2015 Pavel Raiskup - 2.69-17 +- config.site: take AC_PREFIX_DEFAULT([/usr]) into account, by + agruen at kernel.org (rhbz#1196340) + +* Wed Nov 12 2014 Pavel Raiskup - 2.69-16 +- avoid generating empty man pages for gnuconfig (#1162227) + +* Sat Jun 07 2014 Fedora Release Engineering - 2.69-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue Dec 17 2013 Pavel Raiskup - 2.69-14 +- fix config.site to not affect cross compilation (Stefan Sørensen, #1042775) + +* Sat Aug 03 2013 Fedora Release Engineering - 2.69-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Jul 18 2013 Petr Pisar - 2.69-12 +- Perl 5.18 rebuild + +* Mon Jun 17 2013 Pavel Raiskup - 2.69-11 +- config.site installation should be safe as long as the CONFIG_SITE=NONE is + exported by the rpmbuild environment (#772999) + +* Thu Feb 14 2013 Pavel Raiskup - 2.69-10 +- BR the perl(Text::ParseWords) explicitly to enable build again + +* Wed Feb 13 2013 Fedora Release Engineering - 2.69-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Jan 23 2013 Pavel Raiskup - 2.69-9 +- disable 'config.site' under /usr/share for now + +* Tue Jan 15 2013 Pavel Raiskup - 2.69-8 +- the 'INSTALL' file can be used as template file for packages which are using + autoconf - mark it for installation again (#661623) + +* Tue Jan 08 2013 Pavel Raiskup - 2.69-7 +- Support the 'config.site' file in /usr/share + +* Thu Oct 25 2012 Pavel Raiskup - 2.69-6 +- fedora-review (minor) fixes and typos: trim lines, remove defattr(,,), do not + run `rm -rf %%{buildroot} at the beginning of install section, use curly + brackets only around rpm macros/variables and not around shell variables, + remove clean section + +* Wed Sep 26 2012 Pavel Raiskup - 2.69-5 +- do not install the "INSTALL" documentation file (#661623) + +* Thu Sep 13 2012 Karsten Hopp 2.69-4 +- don't require erlang in RHEL + +* Wed Jul 18 2012 Fedora Release Engineering - 2.69-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Jun 18 2012 Karsten Hopp 2.69-2 +- spec file changes by Ralf Corsépius: +- Use %%bcond_without for --with/out=check. +- Add BR: perl(Data::Dumper). +- Remove BR: automake (Testsuite doesn't need automake). +- Add BR: gcc-gfortran, erlang (Extend testsuite). +- Remove TESTSUITEFLAGS (Was referring to autoconf < 2.69). +- Add rpm-4.9 perl-filters %%__provides_exclude, %%__requires_exclude. + Remove rpm-4.8 perl-filters (Address RHBZ 823770). +- Reflect autoconf being GPLv3'ed. +- Add BR: perl-macros, Remove BR: perl-devel + +* Tue May 15 2012 Karsten Hopp 2.69-1 +- update to 2.69 + +* Thu Jan 12 2012 Fedora Release Engineering - 2.68-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Feb 07 2011 Fedora Release Engineering - 2.68-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Dec 06 2010 Karsten Hopp 2.68-1 +- update to 2.68 + +* Tue Jul 06 2010 Karsten Hopp 2.66-2 +- add 2 upstream patches (#611661) +- allow rpmbuild --without check + +* Mon Jul 5 2010 Stepan Kasal - 2.66-1 +- new upstream version, drop upstreamed patches + +* Tue Mar 2 2010 Stepan Kasal - 2.65-2 +- use perl filtering macros + +* Wed Nov 25 2009 Stepan Kasal - 2.65-1 +- new upstream version +- backported patch: make AC_FUNC_MMAP work with C++ again + +* Tue Nov 24 2009 Stepan Kasal - 2.64-2 +- add back upstream AH_CHECK_HEADERS, backported from upstream + fixes some build failures + +* Fri Oct 30 2009 Stepan Kasal - 2.64-1 +- new upstream version +- skip failing test + +* Tue Aug 11 2009 Ville Skyttä - 2.63-4 +- Use lzma compressed upstream tarball. + +* Fri Jul 24 2009 Fedora Release Engineering - 2.63-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Mon Feb 23 2009 Fedora Release Engineering - 2.63-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Sep 17 2008 Stepan Kasal 2.63-1 +- upstream bugfix release +- all patches dropped, the issues are fixed upstream + +* Mon Jul 07 2008 Karsten Hopp 2.62-5 +- fix multiline variables (p.e. #449467) + +* Fri Jul 4 2008 Stepan Kasal 2.62-4 +- add a quick fix for #449944 +- remove Requires: mktemp, imake, grep; these are required by the generated + configure, but not by Autoconf. +- switch on make check + +* Tue Jun 24 2008 Karsten Hopp 2.62-3 +- add fix for same line comments #449245 (Ralf Wildenhues) + +* Fri Jun 06 2008 Karsten Hopp 2.62-2 +- add upstream fix from Eric Blake for #449973, + m4_if releated error message from autotest + +* Tue May 13 2008 Karsten Hopp 2.62-1 +- autoconf-2.62 + +* Mon Oct 29 2007 Stepan Kasal 2.61-10 +- require m4 >= 1.4.7 +- Resolves: #236073 + +* Wed Aug 08 2007 Karsten Hopp 2.61-9 +- update license tag + +* Tue Feb 27 2007 Karsten Hopp 2.61-8 +- own %%{_datadir}/emacs/ (#225296) + +* Mon Feb 26 2007 Karsten Hopp 2.61-7 +- add Requires: grep + +* Thu Feb 22 2007 Karsten Hopp 2.61-6 +- drop gawk, sed requirements (#225296) +- add some comments + +* Mon Feb 19 2007 Karsten Hopp 2.61-5 +- use ./configure +- filter dependencies + +* Thu Feb 15 2007 Karsten Hopp 2.61-4 +- add disttag +- replace tabs with spaces +- fix buildroot +- use Requires(post), Requires(preun) +- use make install DESTDIR=.... +- drop perl requirement as it gets pulled it automatically + +* Thu Jan 18 2007 Karsten Hopp 2.61-3 +- don't abort (un)install scriptlets when _excludedocs is set (Ville Skyttä) + +* Tue Nov 21 2006 Karsten Hopp 2.61-2 +- drop obsolete linkX11 patch + +* Tue Nov 21 2006 Karsten Hopp 2.61-1 +- autoconf-2.61 + +* Thu Nov 09 2006 Karsten Hopp 2.60-4 +- autoconf-2.60 + +* Fri Oct 13 2006 Stepan Kasal 2.59-12 +- Add autoconf-2.59-lock.patch to eliminate a perl warning (#210653). + +* Thu Jul 27 2006 Karsten Hopp 2.59-11 +- Requires imake for _AC_PATH_X + +* Thu Jul 20 2006 Karsten Hopp 2.59-10 +- rebuild + +* Wed Jul 19 2006 Karsten Hopp 2.59-9 +- rebuild + +* Tue May 16 2006 Karsten Hopp 2.59-8 +- try to link with libX11 instead of libXt + +* Wed Feb 15 2006 Karsten Hopp 2.59-7 +- XrmInitialize takes no argument (#181340) + +* Mon Feb 06 2006 Karsten Hopp 2.59-6 +- check for Xlib.h instead of Intrinsic.h to find X11 headers + (#176379) + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Tue Sep 21 2004 Daniel Reed - 2.59-5 +- rebuilt for dist-fc3 + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Thu Dec 18 2003 Jens Petersen - 2.59-2 +- rebuild with perl-5.8.2 [Harald Hoyer] + +* Thu Nov 13 2003 Jens Petersen - 2.59-1 +- update to 2.59 bugfix release +- remove autoconf-2.58-fix-ac_abs-109267.patch no longer needed + +* Fri Nov 7 2003 Jens Petersen - 2.58-2 +- fix problem with ac_abs_{build,src}dir (#109267) [reported by Joe Orton, + patch by Alexandre Duret-Lutz] + +* Wed Nov 5 2003 Jens Petersen - 2.58-1 +- 2.58 release + +* Wed Jan 22 2003 Tim Powers +- rebuilt + +* Thu Dec 12 2002 Elliot Lee 2.57-2 +- Fix missing/unpackaged file + +* Thu Dec 5 2002 Jens Petersen 2.57-1 +- update to 2.57 bugfix release +- buildrequire emacs (#79031), sed and m4 + +* Sat Nov 23 2002 Jens Petersen 2.56-2 +- add --without check build option to control whether "make check" run +- don't gzip info files explicitly +- use exclude for unwanted info files + +* Thu Nov 21 2002 Jens Petersen +- no longer obsolete autoconf253 + +* Mon Nov 18 2002 Jens Petersen 2.56-1 +- update to 2.56 +- obsolete autoheader-warn patch +- no longer provide autoconf253 +- include site-lisp and man files +- remove info dir which is not in the manifest +- do not version suffix bin files for now + +* Mon Aug 19 2002 Jens Petersen 2.53-8 +- make check + +* Fri Jun 28 2002 Jens Petersen 2.53-7 +- update url (#66840) +- added doc files + +* Fri Jun 21 2002 Tim Powers 2.53-6 +- automated rebuild + +* Sun May 26 2002 Tim Powers 2.53-5 +- automated rebuild + +* Mon May 20 2002 Bill Nottingham 2.53-4 +- provide autoconf253 + +* Thu May 16 2002 Bill Nottingham 2.53-3 +- obsolete autoconf253 + +* Wed May 8 2002 Jens Petersen 2.53-2 +- patch autoheader so that --warnings=CATEGORY works (#64566) + [reported with fix by hjl@gnu.org] + +* Tue Apr 23 2002 Jens Petersen 2.53-1 +- update to autoconf-2.53 +- drop mawk patch again +- version suffix bindir files and add symlinks to unversioned names + +* Fri Feb 1 2002 Jens Petersen 2.52-7 +- revert to 2.52 (also fixes #58210!) +- remove relversion variable +- bring back mawk -> gawk patch + +* Wed Jan 09 2002 Tim Powers 2.52-6 +- automated rebuild + +* Thu Dec 20 2001 Jens Petersen 2.52-5 +- update to 2.52f +- add URL +- minor description improvements +- define relversion to carry version number +- mawk.patch no longer needed + +* Sat Nov 17 2001 Florian La Roche 2.52-4 +- rebuild + +* Wed Sep 19 2001 Jens Petersen 2.52-3 +- restore patch to prefer gawk to mawk + +* Tue Sep 18 2001 Florian La Roche 2.52-2 +- update to 2.52d + +* Mon Sep 17 2001 Jens Petersen 2.52-1 +- update to 2.52 +- remove obsolete patches, since already new version +- dont install install-sh + +* Tue Jul 10 2001 Jens Petersen +- add patch to include various standard C headers as needed + by various autoconf tests (#19114) +- add patch to autoscan.pl to get a better choice of init + file (#42071), to test for CPP after CC (#42072) and to + detect C++ source and g++ (#42073). + +* Tue Jun 26 2001 Jens Petersen +- Add a back-port of _AC_PROG_CXX_EXIT_DECLARATION + from version 2.50 to make detection of C++ exit() + declaration prototype platform independent. The check is + done in AC_PROG_CXX with the result stored in "confdefs.h". + The exit() prototype in AC_TRY_RUN_NATIVE is no longer needed. + (fixes #18829) + +* Wed Nov 29 2000 Bernhard Rosenkraenzer +- Fix up interoperability with glibc 2.2 and gcc 2.96: + AC_TRY_RUN_NATIVE in C++ mode added a prototype for exit() to + the test code without throwing an exception, causing a conflict + with stdlib.h --> AC_TRY_RUN_NATIVE for C++ code including stdlib.h + always failed, returning wrong results + +* Fri Jul 21 2000 Nalin Dahyabhai +- add textutils as a dependency (#14439) + +* Wed Jul 12 2000 Prospector +- automatic rebuild + +* Mon Jun 5 2000 Jeff Johnson +- FHS packaging. + +* Sun Mar 26 2000 Florian La Roche +- fix preun + +* Fri Mar 26 1999 Cristian Gafton +- add patch to help autoconf clean after itself and not leave /tmp clobbered + with acin.* and acout.* files (can you say annoying?) + +* Sun Mar 21 1999 Cristian Gafton +- auto rebuild in the new build environment (release 4) +- use gawk, not mawk + +* Thu Mar 18 1999 Preston Brown +- moved /usr/lib/autoconf to /usr/share/autoconf (with automake) + +* Wed Feb 24 1999 Preston Brown +- Injected new description and group. + +* Tue Jan 12 1999 Jeff Johnson +- update to 2.13. + +* Fri Dec 18 1998 Cristian Gafton +- build against glibc 2.1 + +* Mon Oct 05 1998 Cristian Gafton +- requires perl + +* Thu Aug 27 1998 Cristian Gafton +- patch for fixing /tmp race conditions + +* Sun Oct 19 1997 Erik Troan +- spec file cleanups +- made a noarch package +- uses autoconf +- uses install-info + +* Thu Jul 17 1997 Erik Troan +- built with glibc diff --git a/factory/packages/autoconf/config.site b/factory/packages/autoconf/config.site new file mode 100644 index 00000000..5bea225f --- /dev/null +++ b/factory/packages/autoconf/config.site @@ -0,0 +1,29 @@ +# This is the config.site file to satisfy FHS defaults when installing below +# /usr. +# +# You may override this file by your config.site using the CONFIG_SITE env +# variable. +# +# Note: This file includes also RHEL/Fedora fix for installing libraries into +# "/lib/lib64" on 64bit systems. + +if test -n "$host"; then + # skip when cross-compiling + return 0 +fi + +if test "$prefix" = /usr \ + || { test "$prefix" = NONE && test "$ac_default_prefix" = /usr ; } +then + test "$sysconfdir" = '${prefix}/etc' && sysconfdir=/etc + test "$sharedstatedir" = '${prefix}/com' && sharedstatedir=/var + test "$localstatedir" = '${prefix}/var' && localstatedir=/var + + ARCH=`uname -m` + for i in x86_64 ppc64 s390x aarch64; do + if test $ARCH = $i; then + test "$libdir" = '${exec_prefix}/lib' && libdir='${exec_prefix}/lib64' + break + fi + done +fi diff --git a/factory/packages/avahi/.factory-upstream.json b/factory/packages/avahi/.factory-upstream.json new file mode 100644 index 00000000..b321e63a --- /dev/null +++ b/factory/packages/avahi/.factory-upstream.json @@ -0,0 +1,13 @@ +{ + "imported_at": "2026-10-10T05:40:12+00:00", + "package": "avahi", + "schema": 1, + "source": { + "chroot": "epel-10-x86_64", + "kind": "srpm", + "repository": "https://download.copr.fedorainfracloud.org/results/jreilly1821/c10s-gnome-50", + "srpm_checksum": "1f5db3b6c18e7418a23711b48717ccf835cb628f6151a23156d0fb50764d5393", + "srpm_checksum_type": "sha256", + "tree": "262554ba0bc63ba5997b2fcd2c7ac60f7fbe5c44" + } +} diff --git a/factory/packages/avahi/avahi-0.6.30-mono-libdir.patch b/factory/packages/avahi/avahi-0.6.30-mono-libdir.patch new file mode 100644 index 00000000..692b3b32 --- /dev/null +++ b/factory/packages/avahi/avahi-0.6.30-mono-libdir.patch @@ -0,0 +1,50 @@ +diff -uNr avahi-0.6.30.old/avahi-sharp/Makefile.am avahi-0.6.30/avahi-sharp/Makefile.am +--- avahi-0.6.30.old/avahi-sharp/Makefile.am 2010-06-29 05:30:35.000000000 +0200 ++++ avahi-0.6.30/avahi-sharp/Makefile.am 2011-11-27 17:03:04.933192204 +0100 +@@ -73,10 +73,10 @@ + endif + + install-data-hook: $(ASSEMBLY) +- $(AM_V_GEN)MONO_SHARED_DIR=. $(GACUTIL) /i $(ASSEMBLY) /package avahi-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir) ++ $(AM_V_GEN)MONO_SHARED_DIR=. $(GACUTIL) /i $(ASSEMBLY) /package avahi-sharp /gacdir $(prefix)/lib /root $(DESTDIR)$(prefix)/lib + + uninstall-hook: $(ASSEMBLY) +- $(AM_V_GEN)MONO_SHARED_DIR=. $(GACUTIL) /u avahi-sharp /package avahi-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir) ++ $(AM_V_GEN)MONO_SHARED_DIR=. $(GACUTIL) /u avahi-sharp /package avahi-sharp /gacdir $(prefix)/lib /root $(DESTDIR)$(prefix)/lib + + endif + endif +diff -uNr avahi-0.6.30.old/avahi-sharp.pc.in avahi-0.6.30/avahi-sharp.pc.in +--- avahi-0.6.30.old/avahi-sharp.pc.in 2010-06-25 02:54:22.000000000 +0200 ++++ avahi-0.6.30/avahi-sharp.pc.in 2011-11-27 17:00:05.482192846 +0100 +@@ -5,4 +5,4 @@ + Name: avahi-sharp + Description: Mono bindings for the Avahi mDNS/DNS-SD stack + Version: @PACKAGE_VERSION@ +-Libs: -r:${libdir}/mono/avahi-sharp/avahi-sharp.dll ++Libs: -r:${prefix}/lib/mono/avahi-sharp/avahi-sharp.dll +diff -uNr avahi-0.6.30.old/avahi-ui-sharp/Makefile.am avahi-0.6.30/avahi-ui-sharp/Makefile.am +--- avahi-0.6.30.old/avahi-ui-sharp/Makefile.am 2010-06-29 05:30:35.000000000 +0200 ++++ avahi-0.6.30/avahi-ui-sharp/Makefile.am 2011-11-27 17:04:59.812193067 +0100 +@@ -60,10 +60,10 @@ + endif + + install-data-hook: $(ASSEMBLY) +- $(GACUTIL) /i $(ASSEMBLY) /package avahi-ui-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir) ++ $(GACUTIL) /i $(ASSEMBLY) /package avahi-ui-sharp /gacdir $(prefix)/lib /root $(DESTDIR)$(prefix)/lib + + uninstall-hook: $(ASSEMBLY) +- $(GACUTIL) /u avahi-ui-sharp /package avahi-ui-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir) ++ $(GACUTIL) /u avahi-ui-sharp /package avahi-ui-sharp /gacdir $(prefix)/lib /root $(DESTDIR)$(prefix)/lib + + endif + endif +diff -uNr avahi-0.6.30.old/avahi-ui-sharp.pc.in avahi-0.6.30/avahi-ui-sharp.pc.in +--- avahi-0.6.30.old/avahi-ui-sharp.pc.in 2010-06-25 02:54:22.000000000 +0200 ++++ avahi-0.6.30/avahi-ui-sharp.pc.in 2011-11-27 17:04:05.077192737 +0100 +@@ -6,4 +6,4 @@ + Description: Mono bindings for the Avahi mDNS/DNS-SD stack + Version: @PACKAGE_VERSION@ + Requires: gtk-sharp-2.0 +-Libs: -r:${libdir}/mono/avahi-ui-sharp/avahi-ui-sharp.dll ++Libs: -r:${prefix}/lib/mono/avahi-ui-sharp/avahi-ui-sharp.dll diff --git a/factory/packages/avahi/avahi-0.8-no_undefined.patch b/factory/packages/avahi/avahi-0.8-no_undefined.patch new file mode 100644 index 00000000..1d6f786e --- /dev/null +++ b/factory/packages/avahi/avahi-0.8-no_undefined.patch @@ -0,0 +1,31 @@ +diff --git a/avahi-qt/Makefile.am b/avahi-qt/Makefile.am +index b404810..6911db8 100644 +--- a/avahi-qt/Makefile.am ++++ b/avahi-qt/Makefile.am +@@ -40,7 +40,7 @@ qt-watch.moc3: qt-watch.cpp + + libavahi_qt3_la_CPPFLAGS = $(AM_CFLAGS) $(QT3_CFLAGS) -DQT3 $(VISIBILITY_HIDDEN_CFLAGS) + libavahi_qt3_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la $(QT3_LIBS) +-libavahi_qt3_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info $(LIBAVAHI_QT3_VERSION_INFO) ++libavahi_qt3_la_LDFLAGS = $(AM_LDFLAGS) -Wl,--no-undefined -no-undefined -export-dynamic -version-info $(LIBAVAHI_QT3_VERSION_INFO) + endif + + if HAVE_QT4 +@@ -62,7 +62,7 @@ qt-watch.moc4: qt-watch.cpp + + libavahi_qt4_la_CPPFLAGS = $(AM_CFLAGS) $(QT4_CFLAGS) -DQT4 $(VISIBILITY_HIDDEN_CFLAGS) + libavahi_qt4_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la $(QT4_LIBS) +-libavahi_qt4_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_QT4_VERSION_INFO) ++libavahi_qt4_la_LDFLAGS = $(AM_LDFLAGS) -Wl,--no-undefined -no-undefined -version-info $(LIBAVAHI_QT4_VERSION_INFO) + endif + + if HAVE_QT5 +@@ -84,7 +84,7 @@ qt-watch.moc5: qt-watch.cpp + + libavahi_qt5_la_CPPFLAGS = $(AM_CFLAGS) --std=gnu++11 $(QT5_CFLAGS) -DQT5 $(VISIBILITY_HIDDEN_CFLAGS) + libavahi_qt5_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la $(QT5_LIBS) +-libavahi_qt5_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_QT5_VERSION_INFO) ++libavahi_qt5_la_LDFLAGS = $(AM_LDFLAGS) -Wl,--no-undefined -no-undefined -version-info $(LIBAVAHI_QT5_VERSION_INFO) + endif + + CLEANFILES = $(BUILT_SOURCES) diff --git a/factory/packages/avahi/avahi-0.9-CVE-2024-52615.patch b/factory/packages/avahi/avahi-0.9-CVE-2024-52615.patch new file mode 100644 index 00000000..3a36c57b --- /dev/null +++ b/factory/packages/avahi/avahi-0.9-CVE-2024-52615.patch @@ -0,0 +1,224 @@ +From 4e2e1ea0908d7e6ad7f38ae04fdcdf2411f8b942 Mon Sep 17 00:00:00 2001 +From: Michal Sekletar +Date: Wed, 27 Nov 2024 18:07:32 +0100 +Subject: [PATCH] core/wide-area: fix for CVE-2024-52615 + +--- + avahi-core/wide-area.c | 128 ++++++++++++++++++++++------------------- + 1 file changed, 69 insertions(+), 59 deletions(-) + +diff --git a/avahi-core/wide-area.c b/avahi-core/wide-area.c +index 00a15056e..06df7afc6 100644 +--- a/avahi-core/wide-area.c ++++ b/avahi-core/wide-area.c +@@ -81,6 +81,10 @@ struct AvahiWideAreaLookup { + + AvahiAddress dns_server_used; + ++ int fd; ++ AvahiWatch *watch; ++ AvahiProtocol proto; ++ + AVAHI_LLIST_FIELDS(AvahiWideAreaLookup, lookups); + AVAHI_LLIST_FIELDS(AvahiWideAreaLookup, by_key); + }; +@@ -88,9 +92,6 @@ struct AvahiWideAreaLookup { + struct AvahiWideAreaLookupEngine { + AvahiServer *server; + +- int fd_ipv4, fd_ipv6; +- AvahiWatch *watch_ipv4, *watch_ipv6; +- + /* Cache */ + AVAHI_LLIST_HEAD(AvahiWideAreaCacheEntry, cache); + AvahiHashmap *cache_by_key; +@@ -125,35 +126,67 @@ static AvahiWideAreaLookup* find_lookup(AvahiWideAreaLookupEngine *e, uint16_t i + return l; + } + ++static void socket_event(AVAHI_GCC_UNUSED AvahiWatch *w, int fd, AVAHI_GCC_UNUSED AvahiWatchEvent events, void *userdata); ++ + static int send_to_dns_server(AvahiWideAreaLookup *l, AvahiDnsPacket *p) { ++ AvahiWideAreaLookupEngine *e; + AvahiAddress *a; ++ AvahiServer *s; ++ AvahiWatch *w; ++ int r; + + assert(l); + assert(p); + +- if (l->engine->n_dns_servers <= 0) ++ e = l->engine; ++ assert(e); ++ ++ s = e->server; ++ assert(s); ++ ++ if (e->n_dns_servers <= 0) + return -1; + +- assert(l->engine->current_dns_server < l->engine->n_dns_servers); ++ assert(e->current_dns_server < e->n_dns_servers); + +- a = &l->engine->dns_servers[l->engine->current_dns_server]; ++ a = &e->dns_servers[e->current_dns_server]; + l->dns_server_used = *a; + +- if (a->proto == AVAHI_PROTO_INET) { ++ if (l->fd >= 0) { ++ /* We are reusing lookup object and sending packet to another server so let's cleanup before we establish connection to new server. */ ++ s->poll_api->watch_free(l->watch); ++ l->watch = NULL; + +- if (l->engine->fd_ipv4 < 0) +- return -1; ++ close(l->fd); ++ l->fd = -EBADF; ++ } + +- return avahi_send_dns_packet_ipv4(l->engine->fd_ipv4, AVAHI_IF_UNSPEC, p, NULL, &a->data.ipv4, AVAHI_DNS_PORT); ++ assert(a->proto == AVAHI_PROTO_INET || a->proto == AVAHI_PROTO_INET6); + +- } else { +- assert(a->proto == AVAHI_PROTO_INET6); ++ if (a->proto == AVAHI_PROTO_INET) ++ r = s->config.use_ipv4 ? avahi_open_unicast_socket_ipv4() : -1; ++ else ++ r = s->config.use_ipv6 ? avahi_open_unicast_socket_ipv6() : -1; + +- if (l->engine->fd_ipv6 < 0) +- return -1; ++ if (r < 0) { ++ avahi_log_error(__FILE__ ": Failed to create socket for wide area lookup"); ++ return -1; ++ } + +- return avahi_send_dns_packet_ipv6(l->engine->fd_ipv6, AVAHI_IF_UNSPEC, p, NULL, &a->data.ipv6, AVAHI_DNS_PORT); ++ w = s->poll_api->watch_new(s->poll_api, r, AVAHI_WATCH_IN, socket_event, l); ++ if (!w) { ++ close(r); ++ avahi_log_error(__FILE__ ": Failed to create socket watch for wide area lookup"); ++ return -1; + } ++ ++ l->fd = r; ++ l->watch = w; ++ l->proto = a->proto; ++ ++ return a->proto == AVAHI_PROTO_INET ? ++ avahi_send_dns_packet_ipv4(l->fd, AVAHI_IF_UNSPEC, p, NULL, &a->data.ipv4, AVAHI_DNS_PORT): ++ avahi_send_dns_packet_ipv6(l->fd, AVAHI_IF_UNSPEC, p, NULL, &a->data.ipv6, AVAHI_DNS_PORT); + } + + static void next_dns_server(AvahiWideAreaLookupEngine *e) { +@@ -246,6 +279,9 @@ AvahiWideAreaLookup *avahi_wide_area_lookup_new( + l->dead = 0; + l->key = avahi_key_ref(key); + l->cname_key = avahi_key_new_cname(l->key); ++ l->fd = -EBADF; ++ l->watch = NULL; ++ l->proto = AVAHI_PROTO_UNSPEC; + l->callback = callback; + l->userdata = userdata; + +@@ -314,6 +350,12 @@ static void lookup_destroy(AvahiWideAreaLookup *l) { + if (l->cname_key) + avahi_key_unref(l->cname_key); + ++ if (l->watch) ++ l->engine->server->poll_api->watch_free(l->watch); ++ ++ if (l->fd >= 0) ++ close(l->fd); ++ + avahi_free(l); + } + +@@ -572,14 +614,20 @@ static void handle_packet(AvahiWideAreaLookupEngine *e, AvahiDnsPacket *p) { + } + + static void socket_event(AVAHI_GCC_UNUSED AvahiWatch *w, int fd, AVAHI_GCC_UNUSED AvahiWatchEvent events, void *userdata) { +- AvahiWideAreaLookupEngine *e = userdata; ++ AvahiWideAreaLookup *l = userdata; ++ AvahiWideAreaLookupEngine *e = l->engine; + AvahiDnsPacket *p = NULL; + +- if (fd == e->fd_ipv4) +- p = avahi_recv_dns_packet_ipv4(e->fd_ipv4, NULL, NULL, NULL, NULL, NULL); ++ assert(l); ++ assert(e); ++ assert(l->fd == fd); ++ ++ if (l->proto == AVAHI_PROTO_INET) ++ p = avahi_recv_dns_packet_ipv4(l->fd, NULL, NULL, NULL, NULL, NULL); + else { +- assert(fd == e->fd_ipv6); +- p = avahi_recv_dns_packet_ipv6(e->fd_ipv6, NULL, NULL, NULL, NULL, NULL); ++ assert(l->proto == AVAHI_PROTO_INET6); ++ ++ p = avahi_recv_dns_packet_ipv6(l->fd, NULL, NULL, NULL, NULL, NULL); + } + + if (p) { +@@ -598,32 +646,6 @@ AvahiWideAreaLookupEngine *avahi_wide_area_engine_new(AvahiServer *s) { + e->server = s; + e->cleanup_dead = 0; + +- /* Create sockets */ +- e->fd_ipv4 = s->config.use_ipv4 ? avahi_open_unicast_socket_ipv4() : -1; +- e->fd_ipv6 = s->config.use_ipv6 ? avahi_open_unicast_socket_ipv6() : -1; +- +- if (e->fd_ipv4 < 0 && e->fd_ipv6 < 0) { +- avahi_log_error(__FILE__": Failed to create wide area sockets: %s", strerror(errno)); +- +- if (e->fd_ipv6 >= 0) +- close(e->fd_ipv6); +- +- if (e->fd_ipv4 >= 0) +- close(e->fd_ipv4); +- +- avahi_free(e); +- return NULL; +- } +- +- /* Create watches */ +- +- e->watch_ipv4 = e->watch_ipv6 = NULL; +- +- if (e->fd_ipv4 >= 0) +- e->watch_ipv4 = s->poll_api->watch_new(e->server->poll_api, e->fd_ipv4, AVAHI_WATCH_IN, socket_event, e); +- if (e->fd_ipv6 >= 0) +- e->watch_ipv6 = s->poll_api->watch_new(e->server->poll_api, e->fd_ipv6, AVAHI_WATCH_IN, socket_event, e); +- + e->n_dns_servers = e->current_dns_server = 0; + + /* Initialize cache */ +@@ -651,18 +673,6 @@ void avahi_wide_area_engine_free(AvahiWideAreaLookupEngine *e) { + avahi_hashmap_free(e->lookups_by_id); + avahi_hashmap_free(e->lookups_by_key); + +- if (e->watch_ipv4) +- e->server->poll_api->watch_free(e->watch_ipv4); +- +- if (e->watch_ipv6) +- e->server->poll_api->watch_free(e->watch_ipv6); +- +- if (e->fd_ipv6 >= 0) +- close(e->fd_ipv6); +- +- if (e->fd_ipv4 >= 0) +- close(e->fd_ipv4); +- + avahi_free(e); + } + +@@ -680,7 +690,7 @@ void avahi_wide_area_set_servers(AvahiWideAreaLookupEngine *e, const AvahiAddres + + if (a) { + for (e->n_dns_servers = 0; n > 0 && e->n_dns_servers < AVAHI_WIDE_AREA_SERVERS_MAX; a++, n--) +- if ((a->proto == AVAHI_PROTO_INET && e->fd_ipv4 >= 0) || (a->proto == AVAHI_PROTO_INET6 && e->fd_ipv6 >= 0)) ++ if (a->proto == AVAHI_PROTO_INET || a->proto == AVAHI_PROTO_INET6) + e->dns_servers[e->n_dns_servers++] = *a; + } else { + assert(n == 0); diff --git a/factory/packages/avahi/avahi-0.9-address-data-size.patch b/factory/packages/avahi/avahi-0.9-address-data-size.patch new file mode 100644 index 00000000..70a64d59 --- /dev/null +++ b/factory/packages/avahi/avahi-0.9-address-data-size.patch @@ -0,0 +1,30 @@ +From 358e5a3b0122b418614e2ac0fc71f6aad1de06f8 Mon Sep 17 00:00:00 2001 +From: Michal Sekletar +Date: Mon, 23 Jun 2025 16:27:40 +0200 +Subject: [PATCH] Make data member as big as IPv6 address + +Unfortunately, recent FORTIFY_SOURCE hardening for inet_pton() can't +deal with our type independent "data[1]" union member trick. + +Fixes #699 +--- + avahi-common/address.h | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/avahi-common/address.h b/avahi-common/address.h +index a14104fad..013fa975e 100644 +--- a/avahi-common/address.h ++++ b/avahi-common/address.h +@@ -71,9 +71,9 @@ typedef struct AvahiAddress { + AvahiProtocol proto; /**< Address family */ + + union { +- AvahiIPv6Address ipv6; /**< Address when IPv6 */ +- AvahiIPv4Address ipv4; /**< Address when IPv4 */ +- uint8_t data[1]; /**< Type-independent data field */ ++ AvahiIPv6Address ipv6; /**< Address when IPv6 */ ++ AvahiIPv4Address ipv4; /**< Address when IPv4 */ ++ uint8_t data[sizeof(AvahiIPv6Address)]; /**< Type-independent data field */ + } data; + } AvahiAddress; + diff --git a/factory/packages/avahi/avahi.spec b/factory/packages/avahi/avahi.spec new file mode 100644 index 00000000..ea9ec90f --- /dev/null +++ b/factory/packages/avahi/avahi.spec @@ -0,0 +1,1643 @@ +%bcond_with bootstrap +%bcond_without check + +%if %{without bootstrap} +%{?!WITH_MONO: %global WITH_MONO 1} +%else +%{?!WITH_MONO: %global WITH_MONO 0} +%endif + +%{?!WITH_COMPAT_DNSSD: %global WITH_COMPAT_DNSSD 1} +%{?!WITH_COMPAT_HOWL: %global WITH_COMPAT_HOWL 1} +%{?!WITH_QT3: %global WITH_QT3 0} +%{?!WITH_QT4: %global WITH_QT4 0} + +%if %{without bootstrap} +%{?!WITH_GTK2: %global WITH_GTK2 1} +%{?!WITH_GTK3: %global WITH_GTK3 1} +%{?!WITH_QT5: %global WITH_QT5 1} +%else +%{?!WITH_GTK2: %global WITH_GTK2 0} +%{?!WITH_GTK3: %global WITH_GTK3 0} +%{?!WITH_QT5: %global WITH_QT5 0} +%endif + +# https://bugzilla.redhat.com/show_bug.cgi?id=1751484 +%{?!WITH_PYTHON: %global WITH_PYTHON 0} + +%ifnarch %{mono_arches} +%define WITH_MONO 0 +%endif + +%if 0%{?fedora} +%global WITH_QT3 1 +%global WITH_QT4 1 +%endif + +%if 0%{?rhel} +%if 0%{?rhel} > 9 +%global WITH_GTK2 0 +%endif +%global WITH_MONO 0 +%global WITH_QT5 0 +%if 0%{?rhel} < 8 +%global WITH_PYTHON 1 +%endif +%endif + +%if 0%{?fedora} == 34 || 0%{?rhel} >= 9 +# https://bugzilla.redhat.com/show_bug.cgi?id=1907727 +%global _lto_cflags %{nil} +%endif + +# http://bugzilla.redhat.com/1008395 - no hardened build +%global _hardened_build 1 + +# trim changelog included in binary rpms +%global _changelog_trimtime %(date +%s -d "1 year ago") + +%define rc rc2 + +%global version_no_tilde %%(echo %{version} | tr '~' '-') + +Name: avahi +Version: 0.9%{?rc:~%{rc}} +Release: 8%{?dist} +Summary: Local network service discovery +License: LGPL-2.1-or-later AND LGPL-2.0-or-later AND BSD-2-Clause-Views AND MIT +URL: http://avahi.org +Requires: dbus +Requires: expat +Requires: libdaemon >= 0.11 +# For /usr/bin/dbus-send +Requires(post): dbus +Requires(pre): coreutils +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +BuildRequires: automake +BuildRequires: libtool +BuildRequires: dbus-devel >= 0.90 +BuildRequires: desktop-file-utils +%if %{WITH_GTK2} +BuildRequires: gtk2-devel +%endif +%if %{WITH_GTK3} +BuildRequires: gtk3-devel >= 2.99.0 +%endif +#BuildRequires: gobject-introspection-devel +%if %{WITH_QT3} +BuildRequires: qt3-devel +%endif +%if %{WITH_QT4} +BuildRequires: qt4-devel +%endif +%if %{WITH_QT5} +BuildRequires: qt5-qtbase-devel +%endif +BuildRequires: libdaemon-devel >= 0.11 +BuildRequires: glib2-devel +BuildRequires: libcap-devel +BuildRequires: expat-devel +%if %{WITH_PYTHON} +%if %{without bootstrap} +BuildRequires: pygtk2 +%endif +%if 0%{?fedora} > 27 +%global python2_dbus python2-dbus +%global python2_libxml2 python2-libxml2 +%else +%global python2_dbus dbus-python +%global python2_libxml2 libxml2-python +%endif +BuildRequires: %{python2_dbus} +BuildRequires: %{python2_libxml2} +# really only need interpreter + rpm-macros -- rex +BuildRequires: python2-devel +BuildRequires: python3-devel +%else +Obsoletes: python2-avahi < %{version}-%{release} +Obsoletes: python3-avahi < %{version}-%{release} +%endif +BuildRequires: gdbm-devel +BuildRequires: pkgconfig(pygobject-3.0) +BuildRequires: pkgconfig(libevent) >= 2.0.21 +BuildRequires: intltool +BuildRequires: perl-XML-Parser +BuildRequires: xmltoman +%if %{WITH_MONO} +BuildRequires: mono-devel +BuildRequires: monodoc-devel +%endif +BuildRequires: systemd +BuildRequires: systemd-devel +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: gettext-devel + +%if 0%{?rc:1} +Source0: https://github.com/avahi/avahi/archive/refs/tags/v%{version_no_tilde}.tar.gz +%else +Source0: https://github.com/avahi/avahi/releases/download/v%{version_no_tilde}/%{name}-%{version_no_tilde}.tar.gz +%endif + +## upstream patches +# https://github.com/avahi/avahi/pull/662 +Patch1: avahi-0.9-CVE-2024-52615.patch +# https://github.com/avahi/avahi/pull/707 +Patch2: avahi-0.9-address-data-size.patch + +## downstream patches +Patch100: avahi-0.6.30-mono-libdir.patch +Patch102: avahi-0.8-no_undefined.patch + +%description +Avahi is a system which facilitates service discovery on +a local network -- this means that you can plug your laptop or +computer into a network and instantly be able to view other people who +you can chat with, find printers to print to or find files being +shared. This kind of technology is already found in MacOS X (branded +'Rendezvous', 'Bonjour' and sometimes 'ZeroConf') and is very +convenient. + +%package tools +Summary: Command line tools for mDNS browsing and publishing +Requires: %{name} = %{version}-%{release} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description tools +Command line tools that use avahi to browse and publish mDNS services. + +%package ui-tools +Summary: UI tools for mDNS browsing +Requires: %{name} = %{version}-%{release} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: %{name}-glib%{?_isa} = %{version}-%{release} +Requires: %{name}-ui-gtk3%{?_isa} = %{version}-%{release} +Requires: tigervnc +Requires: openssh-clients +%if %{WITH_PYTHON} +Requires: gdbm +Requires: pygtk2 +Requires: pygtk2-libglade +Requires: python2-avahi = %{version}-%{release} +Requires: %{python2_dbus} +Requires: python2-gobject-base +%endif + +%description ui-tools +Graphical user interface tools that use Avahi to browse for mDNS services. + +%package glib +Summary: Glib libraries for avahi +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description glib +Libraries for easy use of avahi from glib applications. + +%package glib-devel +Summary: Libraries and header files for avahi glib development +Requires: %{name}-devel%{?_isa} = %{version}-%{release} +Requires: %{name}-glib%{?_isa} = %{version}-%{release} +Requires: glib2-devel + +%description glib-devel +The avahi-devel package contains the header files and libraries +necessary for developing programs using avahi with glib. + +%package gobject +Summary: GObject wrapper library for Avahi +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: %{name}-glib%{?_isa} = %{version}-%{release} + +%description gobject +This library contains a GObject wrapper for the Avahi API + +%package gobject-devel +Summary: Libraries and header files for Avahi GObject development +Requires: %{name}-devel%{?_isa} = %{version}-%{release} +Requires: %{name}-gobject%{?_isa} = %{version}-%{release} + +%description gobject-devel +The avahi-gobject-devel package contains the header files and libraries +necessary for developing programs using avahi-gobject. + +%if %{WITH_GTK2} +%package ui +Summary: Gtk user interface library for Avahi (Gtk+ 2 version) +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: %{name}-glib%{?_isa} = %{version}-%{release} +Requires: gtk2 + +%description ui +This library contains a Gtk 2.x widget for browsing services. +%endif + +%if %{WITH_GTK3} +%package ui-gtk3 +Summary: Gtk user interface library for Avahi (Gtk+ 3 version) +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: %{name}-glib%{?_isa} = %{version}-%{release} +Requires: gtk3 + +%description ui-gtk3 +This library contains a Gtk 3.x widget for browsing services. +%endif + +%if %{WITH_GTK2} || %{WITH_GTK3} +%package ui-devel +Summary: Libraries and header files for Avahi UI development +Requires: %{name}-devel%{?_isa} = %{version}-%{release} +%if %{WITH_GTK2} +Requires: %{name}-ui%{?_isa} = %{version}-%{release} +%endif +%if %{WITH_GTK3} +Requires: %{name}-ui-gtk3%{?_isa} = %{version}-%{release} +%endif + +%description ui-devel +The avahi-ui-devel package contains the header files and libraries +necessary for developing programs using avahi-ui. +%endif + +%if %{WITH_QT3} +%package qt3 +Summary: Qt3 libraries for avahi +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description qt3 +Libraries for easy use of avahi from Qt3 applications. + +%package qt3-devel +Summary: Libraries and header files for avahi Qt3 development +Requires: %{name}-devel%{?_isa} = %{version}-%{release} +Requires: %{name}-qt3%{?_isa} = %{version}-%{release} + +%description qt3-devel +The avahi-qt3-devel package contains the header files and libraries +necessary for developing programs using avahi with Qt3. +%endif + +%if %{WITH_QT4} +%package qt4 +Summary: Qt4 libraries for avahi +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description qt4 +Libraries for easy use of avahi from Qt4 applications. + +%package qt4-devel +Summary: Libraries and header files for avahi Qt4 development +Requires: %{name}-devel%{?_isa} = %{version}-%{release} +Requires: %{name}-qt4%{?_isa} = %{version}-%{release} + +%description qt4-devel +Th avahi-qt4-devel package contains the header files and libraries +necessary for developing programs using avahi with Qt4. +%endif + +%if %{WITH_QT5} +%package qt5 +Summary: Qt5 libraries for avahi +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description qt5 +Libraries for easy use of avahi from Qt5 applications. + +%package qt5-devel +Summary: Libraries and header files for avahi Qt5 development +Requires: %{name}-devel%{?_isa} = %{version}-%{release} +Requires: %{name}-qt5%{?_isa} = %{version}-%{release} + +%description qt5-devel +Th avahi-qt5-devel package contains the header files and libraries +necessary for developing programs using avahi with Qt5. +%endif + +%if %{WITH_MONO} +%package sharp +Summary: Mono language bindings for avahi mono development +Requires: mono-core >= 1.1.13 +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description sharp +The avahi-sharp package contains the files needed to develop +mono programs that use avahi. + +%package ui-sharp +Summary: Mono language bindings for avahi-ui +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: %{name}-ui%{?_isa} = %{version}-%{release} +Requires: %{name}-sharp%{?_isa} = %{version}-%{release} +Requires: mono-core >= 1.1.13 +Requires: gtk-sharp2 +BuildRequires: gtk-sharp2-devel +BuildRequires: make + +%description ui-sharp +The avahi-sharp package contains the files needed to run +Mono programs that use avahi-ui. + +%package ui-sharp-devel +Summary: Mono language bindings for developing with avahi-ui +Requires: %{name}-ui-sharp%{?_isa} = %{version}-%{release} + +%description ui-sharp-devel +The avahi-sharp-ui-devel package contains the files needed to develop +Mono programs that use avahi-ui. +%endif + +%package libs +Summary: Libraries for avahi run-time use + +%description libs +The avahi-libs package contains the libraries needed +to run programs that use avahi. + +%package devel +Summary: Libraries and header files for avahi development +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +# for libavahi-core +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The avahi-devel package contains the header files and libraries +necessary for developing programs using avahi. + +%if %{WITH_COMPAT_HOWL} +%package compat-howl +Summary: Libraries for howl compatibility +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Obsoletes: howl-libs < 0.6-16 +Provides: howl-libs = %{version}-%{release} + +%description compat-howl +Libraries that are compatible with those provided by the howl package. + +%package compat-howl-devel +Summary: Header files for development with the howl compatibility libraries +Requires: %{name}-compat-howl%{?_isa} = %{version}-%{release} +Requires: %{name}-devel%{?_isa} = %{version}-%{release} +Obsoletes: howl-devel < 0.6-16 +Provides: howl-devel = %{version}-%{release} + +%description compat-howl-devel +Header files for development with the howl compatibility libraries. +%endif + +%if %{WITH_COMPAT_DNSSD} +%package compat-libdns_sd +Summary: Libraries for Apple Bonjour mDNSResponder compatibility +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description compat-libdns_sd +Libraries for Apple Bonjour mDNSResponder compatibility. + +%package compat-libdns_sd-devel +Summary: Header files for the Apple Bonjour mDNSResponder compatibility libraries +Requires: %{name}-compat-libdns_sd%{?_isa} = %{version}-%{release} +Requires: %{name}-devel%{?_isa} = %{version}-%{release} + +%description compat-libdns_sd-devel +Header files for development with the Apple Bonjour mDNSResponder compatibility +libraries. +%endif + +%package autoipd +Summary: Link-local IPv4 address automatic configuration daemon (IPv4LL) +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description autoipd +avahi-autoipd implements IPv4LL, "Dynamic Configuration of IPv4 +Link-Local Addresses" (IETF RFC3927), a protocol for automatic IP address +configuration from the link-local 169.254.0.0/16 range without the need for a +central server. It is primarily intended to be used in ad-hoc networks which +lack a DHCP server. + +%package dnsconfd +Summary: Configure local unicast DNS settings based on information published in mDNS +Requires: %{name} = %{version}-%{release} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description dnsconfd +avahi-dnsconfd connects to a running avahi-daemon and runs the script +/etc/avahi/dnsconfd.action for each unicast DNS server that is announced on the +local LAN. This is useful for configuring unicast DNS servers in a DHCP-like +fashion with mDNS. + +%if %{WITH_PYTHON} +%package -n python2-avahi +Summary: Python2 Avahi bindings +Obsoletes: python-avahi < 0.7 +Provides: python-avahi = %{version}-%{release} +Requires: %{name} = %{version}-%{release} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description -n python2-avahi +%{summary}. + +%package -n python3-avahi +Summary: Python3 Avahi bindings +Requires: %{name} = %{version}-%{release} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description -n python3-avahi +%{summary}. +%endif + + +%prep +%autosetup -n %{name}-%{version_no_tilde} -p1 + +rm -fv docs/INSTALL + +# Create two sysusers.d config files +cat >avahi.sysusers.conf <avahi-autoipd.sysusers.conf </dev/null 2>&1 || : +if [ "$1" -eq 1 -a -s /etc/localtime ]; then + /usr/bin/cp -cfp /etc/localtime %{_sysconfdir}/avahi/etc/localtime >/dev/null 2>&1 || : +fi +%systemd_post avahi-daemon.socket avahi-daemon.service + +%preun +%systemd_preun avahi-daemon.socket avahi-daemon.service + +%postun +%{?ldconfig} +%systemd_postun_with_restart avahi-daemon.socket avahi-daemon.service + +%post dnsconfd +%systemd_post avahi-dnsconfd.service + +%preun dnsconfd +%systemd_preun avahi-dnsconfd.service + +%postun dnsconfd +%systemd_postun_with_restart avahi-dnsconfd.service + +%ldconfig_scriptlets glib + +%ldconfig_scriptlets compat-howl + +%ldconfig_scriptlets compat-libdns_sd + +%ldconfig_scriptlets libs + +%ldconfig_scriptlets ui + +%ldconfig_scriptlets ui-gtk3 + +%ldconfig_scriptlets gobject + +%files -f %{name}.lang +%doc docs/* avahi-daemon/example.service avahi-daemon/sftp-ssh.service avahi-daemon/ssh.service +%dir %{_sysconfdir}/avahi +%dir %{_sysconfdir}/avahi/etc +%ghost %{_sysconfdir}/avahi/etc/localtime +%config(noreplace) %{_sysconfdir}/avahi/hosts +%dir %{_sysconfdir}/avahi/services +%ghost %attr(0755, avahi, avahi) %dir %{_localstatedir}/run/avahi-daemon +%config(noreplace) %{_sysconfdir}/avahi/avahi-daemon.conf +%config(noreplace) %{_datadir}/dbus-1/system.d/avahi-dbus.conf +%{_sbindir}/avahi-daemon +%dir %{_datadir}/avahi +%{_datadir}/avahi/*.dtd +%dir %{_libdir}/avahi +%if %{WITH_PYTHON} +%{_libdir}/avahi/service-types.db +%endif +%{_mandir}/man5/* +%{_mandir}/man8/avahi-daemon.* +%{_unitdir}/avahi-daemon.service +%{_unitdir}/avahi-daemon.socket +%{_datadir}/dbus-1/interfaces/*.xml +%{_datadir}/dbus-1/system-services/org.freedesktop.Avahi.service +%{_libdir}/libavahi-core.so.* +%{_sysusersdir}/avahi.conf + +%files autoipd +%{_sbindir}/avahi-autoipd +%config(noreplace) %{_sysconfdir}/avahi/avahi-autoipd.action +%attr(1770,avahi-autoipd,avahi-autoipd) %dir %{_localstatedir}/lib/avahi-autoipd/ +%{_mandir}/man8/avahi-autoipd.* +%{_sysusersdir}/avahi-autoipd.conf + +%files dnsconfd +%config(noreplace) %{_sysconfdir}/avahi/avahi-dnsconfd.action +%{_sbindir}/avahi-dnsconfd +%{_mandir}/man8/avahi-dnsconfd.* +%{_unitdir}/avahi-dnsconfd.service + +%files tools +%{_bindir}/avahi-browse +%{_bindir}/avahi-browse-domains +%{_bindir}/avahi-publish +%{_bindir}/avahi-publish-address +%{_bindir}/avahi-publish-service +%{_bindir}/avahi-resolve +%{_bindir}/avahi-resolve-address +%{_bindir}/avahi-resolve-host-name +%{_bindir}/avahi-set-host-name + +%{_mandir}/man1/avahi-browse.1* +%{_mandir}/man1/avahi-browse-domains.1* +%{_mandir}/man1/avahi-publish.1* +%{_mandir}/man1/avahi-publish-address.1* +%{_mandir}/man1/avahi-publish-service.1* +%{_mandir}/man1/avahi-resolve.1* +%{_mandir}/man1/avahi-resolve-address.1* +%{_mandir}/man1/avahi-resolve-host-name.1* +%{_mandir}/man1/avahi-set-host-name.1* + +%if %{without bootstrap} +%files ui-tools +%{_bindir}/bshell +%{_bindir}/bssh +%{_bindir}/bvnc +%{_bindir}/avahi-discover-standalone +%{_mandir}/man1/bshell.1* +%{_mandir}/man1/bssh.1* +%{_mandir}/man1/bvnc.1* +%{_datadir}/applications/b*.desktop +%{_datadir}/avahi/interfaces/ +%if %{WITH_PYTHON} +# avahi-bookmarks is not really a UI tool, but I won't create a seperate package for it... +%{_bindir}/avahi-bookmarks +%{_mandir}/man1/avahi-discover* +%{_mandir}/man1/avahi-bookmarks* +%{_datadir}/applications/avahi-discover.desktop +%{python2_sitelib}/avahi_discover/ +%endif +%endif + +%files devel +%{_libdir}/libavahi-common.so +%{_libdir}/libavahi-core.so +%{_libdir}/libavahi-client.so +%{_libdir}/libavahi-libevent.so +%{_includedir}/avahi-client +%{_includedir}/avahi-common +%{_includedir}/avahi-core +%{_includedir}/avahi-libevent +%{_libdir}/pkgconfig/avahi-core.pc +%{_libdir}/pkgconfig/avahi-client.pc +%{_libdir}/pkgconfig/avahi-libevent.pc + +%files libs +%doc README +%license LICENSE +%{_libdir}/libavahi-common.so.* +%{_libdir}/libavahi-client.so.* +%{_libdir}/libavahi-libevent.so.* + +%files glib +%{_libdir}/libavahi-glib.so.* + +%files glib-devel +%{_libdir}/libavahi-glib.so +%{_includedir}/avahi-glib +%{_libdir}/pkgconfig/avahi-glib.pc + +%files gobject +%{_libdir}/libavahi-gobject.so.* +#%%{_libdir}/girepository-1.0/Avahi-0.6.typelib +#%%{_libdir}/girepository-1.0/AvahiCore-0.6.typelib + +%files gobject-devel +%{_libdir}/libavahi-gobject.so +%{_includedir}/avahi-gobject +%{_libdir}/pkgconfig/avahi-gobject.pc +#%%{_datadir}/gir-1.0/Avahi-0.6.gir +#%%{_datadir}/gir-1.0/AvahiCore-0.6.gir + +%if %{WITH_GTK2} +%files ui +%{_libdir}/libavahi-ui.so.* +%endif + +%if %{WITH_GTK3} +%files ui-gtk3 +%{_libdir}/libavahi-ui-gtk3.so.* +%endif + +%if %{WITH_GTK2} || %{WITH_GTK3} +%files ui-devel +%{_includedir}/avahi-ui +%if %{WITH_GTK2} +%{_libdir}/libavahi-ui.so +%{_libdir}/pkgconfig/avahi-ui.pc +%endif +%if %{WITH_GTK3} +%{_libdir}/libavahi-ui-gtk3.so +%{_libdir}/pkgconfig/avahi-ui-gtk3.pc +%endif +%endif + +%if %{WITH_QT3} +%ldconfig_scriptlets qt3 + +%files qt3 +%{_libdir}/libavahi-qt3.so.* + +%files qt3-devel +%{_libdir}/libavahi-qt3.so +%{_includedir}/avahi-qt3/ +%{_libdir}/pkgconfig/avahi-qt3.pc +%endif + +%if %{WITH_QT4} +%ldconfig_scriptlets qt4 + +%files qt4 +%{_libdir}/libavahi-qt4.so.* + +%files qt4-devel +%{_libdir}/libavahi-qt4.so +%{_includedir}/avahi-qt4/ +%{_libdir}/pkgconfig/avahi-qt4.pc +%endif + +%if %{WITH_QT5} +%ldconfig_scriptlets qt5 + +%files qt5 +%{_libdir}/libavahi-qt5.so.* + +%files qt5-devel +%{_libdir}/libavahi-qt5.so +%{_includedir}/avahi-qt5/ +%{_libdir}/pkgconfig/avahi-qt5.pc +%endif + +%if %{WITH_MONO} +%files sharp +%{_prefix}/lib/mono/avahi-sharp +%{_prefix}/lib/mono/gac/avahi-sharp +%{_libdir}/pkgconfig/avahi-sharp.pc + +%files ui-sharp +%{_prefix}/lib/mono/avahi-ui-sharp +%{_prefix}/lib/mono/gac/avahi-ui-sharp + +%files ui-sharp-devel +%{_libdir}/pkgconfig/avahi-ui-sharp.pc +%endif + +%if %{WITH_COMPAT_HOWL} +%files compat-howl +%{_libdir}/libhowl.so.* + +%files compat-howl-devel +%{_libdir}/libhowl.so +%{_includedir}/avahi-compat-howl +%{_libdir}/pkgconfig/avahi-compat-howl.pc +%{_libdir}/pkgconfig/howl.pc +%endif + +%if %{WITH_COMPAT_DNSSD} +%files compat-libdns_sd +%{_libdir}/libdns_sd.so.* + +%files compat-libdns_sd-devel +%{_libdir}/libdns_sd.so +%{_includedir}/avahi-compat-libdns_sd +%{_includedir}/dns_sd.h +%{_libdir}/pkgconfig/avahi-compat-libdns_sd.pc +%{_libdir}/pkgconfig/libdns_sd.pc +%endif + +%if %{WITH_PYTHON} +%files -n python2-avahi +%{python2_sitelib}/avahi/ + +%files -n python3-avahi +%{python3_sitelib}/avahi/ +%endif + + +%changelog +* Fri Jan 16 2026 Fedora Release Engineering - 0.9~rc2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Fri Jan 16 2026 Fedora Release Engineering - 0.9~rc2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Tue Aug 05 2025 Petr Menšík - 0.9~rc2-6 +- Fix port randomization for wide area queries (CVE-2024-52615) +- Add systemd-devel dependency +- Fix test crashing because FORTIFY_SOURCE protection + +* Wed Jul 23 2025 Fedora Release Engineering - 0.9~rc2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Mon Apr 14 2025 Zbigniew Jędrzejewski-Szmek - 0.9~rc2-4 +- Also create sysusers.d config file for the avahi-autoipd user + +* Thu Jan 23 2025 Zbigniew Jędrzejewski-Szmek - 0.9~rc2-3 +- Add sysusers.d config file to allow rpm to create users/groups automatically + +* Thu Jan 16 2025 Michal Sekletar - 0.9~rc2-2 +- Fix previous changelog entry + +* Thu Jan 16 2025 Michal Sekletar - 0.9~rc2-1 +- Rebase to 0.9-rc2 + +* Thu Jan 16 2025 Fedora Release Engineering - 0.8-31 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Wed Aug 21 2024 Michal Sekletar - 0.8-30 +- fix file attributes of /run/avahi-daemon (rhbz#1608918) + +* Wed Jul 17 2024 Fedora Release Engineering - 0.8-29 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Thu Apr 04 2024 Michal Sekletar - 0.8-28 +- Add gettext-devel to build dependencies + +* Mon Jan 22 2024 Fedora Release Engineering - 0.8-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 0.8-26 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Wed Jul 26 2023 Lukáš Zaoral - 0.8-25 +- migrate to SPDX license format + +* Wed Jul 19 2023 Fedora Release Engineering - 0.8-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed May 10 2023 Tomas Popela - 0.8-23 +- Drop BR on dbus-glib as the project is not using it at all + +* Sun Mar 19 2023 Petr Menšík - 0.8-22 +- Enable unit tests during check +- Prevent crashes on some invalid DBus calls +- Provide versioned howl compatibility package +- Correct bootstrap option + +* Sun Mar 19 2023 Yaakov Selkowitz - 0.8-21 +- Disable GTK2 in ELN/RHEL10 builds + +* Wed Jan 18 2023 Fedora Release Engineering - 0.8-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Nov 11 2022 Petr Menšík - 0.8-19 +- Add upstream PR links to patches + +* Tue Nov 01 2022 Christian Krause - 0.8-18 +- Install glade file for avahi-discover-standalone unconditionally + (fixes #2036073 and #2126721) +- Install desktop files for bssh and bvnc unconditionally + +* Fri Aug 05 2022 Kalev Lember - 0.8-17 +- Avoid systemd_requires as per updated packaging guidelines + +* Wed Jul 20 2022 Fedora Release Engineering - 0.8-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Jan 19 2022 Fedora Release Engineering - 0.8-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Aug 03 2021 Rex Dieter - 0.8-14 +- pull in upstream fix for CVE-2021-36217 (#1989381,#1989382) +- revert "Re-enable LTO" on f34 (still needed) + +* Wed Jul 21 2021 Fedora Release Engineering - 0.8-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon May 10 2021 Jeff Law - 0.8-12 +- Re-enable LTO + +* Thu Apr 29 2021 Rex Dieter - 0.8-11 +- avahi libraries missing -fstack-protector-strong (#1817737) + +* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek - 0.8-10 +- Rebuilt for updated systemd-rpm-macros + See https://pagure.io/fesco/issue/2583. + +* Tue Feb 16 2021 Rex Dieter - 0.8-9 +- cleanup/fix conditionals (#1751484) +- disable lto, workaround FTBFS (#1907727) + +* Tue Jan 26 2021 Fedora Release Engineering - 0.8-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Nov 17 2020 Rex Dieter - 0.8-7 +- fix undefined symbols in libavahi-qt3 (#1897925) + +* Thu Oct 15 2020 Rex Dieter - 0.8-6 +- resurrect ui-tools, not just for python (#1885513) + +* Mon Sep 21 2020 Michal Sekletar - 0.8-5 +- Disable bootstrap + +* Mon Sep 07 2020 Ondřej Lysoněk - 0.8-4 +- Rebuilt due to libevent rebase + +* Mon Jul 27 2020 Fedora Release Engineering - 0.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sun Mar 22 2020 Rex Dieter - 0.8-2 +- pull in some upstream fixes + +* Sun Mar 22 2020 Lubomir Rintel - 0.8-1 +- Update to version 0.8 + +* Thu Feb 20 2020 Petr Viktorin - 0.7-24 +- Don't BuildRequire pygtk2 if building without Python + +* Tue Jan 28 2020 Fedora Release Engineering - 0.7-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Sep 19 2019 Rex Dieter - 0.7-22 +- drop python bindings/support (includes -ui-tools that use the bindings) on f31+ (#1751484) + +* Mon Aug 19 2019 Miro Hrončok - 0.7-21 +- Rebuilt for Python 3.8 + +* Wed Jul 24 2019 Fedora Release Engineering - 0.7-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 22 2019 Michal Sekletár - 0.7-19 +- add support for advertising services on the local machine only (i.e. on loopback) + +* Mon Feb 04 2019 Kalev Lember - 0.7-18 +- Update requires for pygobject3 -> python2-gobject rename + +* Thu Jan 31 2019 Fedora Release Engineering - 0.7-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Mon Jul 30 2018 Adam Williamson - 0.7-16 +- Update python3 sed hack to avoid '/usr/bin/python32' dep + +* Tue Jul 24 2018 Jan Grulich - 0.7-15 +- Requires: tigervnc + Tigervnc removed old obsoleted provides + +* Thu Jul 12 2018 Fedora Release Engineering - 0.7-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 0.7-13 +- Rebuilt for Python 3.7 + +* Thu Apr 05 2018 Rex Dieter - 0.7-12 +- use %%make_build %%ldconfig_scriptlets %%license +- %%build: --enable-shared=yes --enable-static=no --disable-silent-rules + +* Thu Apr 05 2018 Rex Dieter - 0.7-11 +- avahi-discover is missing "gi" module (#1564059) + +* Mon Mar 19 2018 Michal Sekletar - 0.7-10 +- add gcc to build reqs +- disable mono and qt support on RHEL + +* Wed Feb 07 2018 Fedora Release Engineering - 0.7-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Fri Dec 15 2017 Iryna Shcherbina - 0.7-8 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Mon Dec 11 2017 Rex Dieter - 0.7-7 +- %%check: validate .desktop files (#1524175) + +* Tue Oct 24 2017 Merlin Mathesius - 0.7-6 +- Add option to disable qt4 support + +* Sat Oct 07 2017 Rex Dieter - 0.7-5 +- consistently use %%{_unitdir} macro + +* Mon Oct 02 2017 Troy Dawson - 0.7-4 +- Cleanup spec file conditionals + +* Wed Aug 02 2017 Fedora Release Engineering - 0.7-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 0.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon Jul 10 2017 Rex Dieter - 0.7-1 +- avahi-0.7 (#1469100) +- rename python-avahi => python2-avahi + +* Fri Feb 10 2017 Fedora Release Engineering - 0.6.32-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Dec 22 2016 Miro Hrončok - 0.6.32-6 +- Rebuild for Python 3.6 + +* Thu Oct 13 2016 Peter Robinson 0.6.32-5 +- rebuild - mono on aarch64 + +* Fri Aug 05 2016 Rex Dieter - 0.6.32-4 +- -devel: fix typo in Requires: (#1364505) + +* Thu Aug 04 2016 Rex Dieter - 0.6.32-3 +- include dbus xml interfaces in main pkg, apparently used there for runtime introspection + +* Tue Jul 19 2016 Fedora Release Engineering - 0.6.32-2 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Wed Apr 13 2016 Rex Dieter - 0.6.32-1 +- 0.6.32 (final) + +* Fri Mar 18 2016 Rex Dieter - 0.6.32-0.7.rc +- clean/simplify scriptlet deps (#1319207) + +* Wed Feb 03 2016 Fedora Release Engineering - 0.6.32-0.6.rc +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Sat Nov 21 2015 Rex Dieter 0.6.32-0.5.rc +- enable use-ipv6=yes only for f24+ + +* Thu Nov 19 2015 Rex Dieter 0.6.32-0.4.rc +- pull in upstream fixes, translations mostly (#1270332) + +* Tue Nov 10 2015 Fedora Release Engineering - 0.6.32-0.3.rc +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + +* Thu Nov 5 2015 Toshio Kuratomi - 0.6.32-0.2.rc +- Modify a shebang in the python3 module so it doesn't drag in /usr/bin/python2. + +* Sat Oct 10 2015 Rex Dieter - 0.6.32-0.1.rc +- avahi-0.6.32-rc +- -devel: move dbus-1/interfaces here +- Avahi's IPv6 support is disabled by default (#821127) +- avahi: script and/or trigger should not directly enable systemd units (#1094899) + +* Tue Sep 22 2015 Rafael Fonseca - 0.6.31-43 +- use %%{mono_arches} instead of hardcoded list + +* Tue Sep 22 2015 Rex Dieter 0.6.31-42 +- treat "Invalid response packet from host" as avahi_log_debug (#1240711) + +* Fri Sep 18 2015 Richard Hughes - 0.6.31-41 +- Remove no longer required AppData file + +* Thu Sep 17 2015 Rex Dieter 0.6.31-40 +- non-existing homedir /var/lib/avahi-autoipd (#1173822) + +* Thu Sep 17 2015 Rex Dieter 0.6.31-39 +- Syslog Filled With "Invalid response packet from host" Message (#1240711) +- avahi-daemon manpage references file locations under /home/lennart/tmp (#991094) +- fix python-avahi dep botched in build -38 + +* Thu Sep 17 2015 Rex Dieter 0.6.31-38 +- pull in post 0.6.31 upstream fixes (#1246849), python related packaging polish + +* Tue Jul 14 2015 Jason L Tibbitts III - 0.6.31-37 +- Add old patch from SuSE to fix 100%% CPU bug (RHBZ 952193). +- Don't install py2.7 .py{o,c} files in py3.4 package. + +* Sun Jun 21 2015 Bastien Nocera 0.6.31-36 +- Split off Python bindings, add Python3 support + +* Wed Jun 17 2015 Michal Sekletar - 0.6.31-35 +- check that rtnetlink messages has pid == 0, i.e. they sender is kernel (#1227052) + +* Wed Jun 17 2015 Fedora Release Engineering - 0.6.31-34 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon May 18 2015 Peter Robinson 0.6.31-33 +- Rebuild (mono4) + +* Sat May 02 2015 Kalev Lember - 0.6.31-32 +- Rebuilt for GCC 5 C++11 ABI change + +* Thu Mar 26 2015 Richard Hughes - 0.6.31-31 +- Add an AppData file for the software center + +* Thu Nov 27 2014 Peter Lemenkov - 0.6.31-30 +- Drop post-stage dependency on initscripts (rhbz #1168566). See also rhbz #182462. + +* Fri Aug 15 2014 Fedora Release Engineering - 0.6.31-29 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Thu Jun 26 2014 Bastien Nocera 0.6.31-28 +- Disable publish-workstation= and publish-hinfo= by default (#1105647) + +* Sat Jun 07 2014 Fedora Release Engineering - 0.6.31-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue Jun 3 2014 Peter Robinson 0.6.31-26 +- Re-enable qt3 on aarch64 + +* Sat Mar 22 2014 Rex Dieter 0.6.31-25 +- support ppc64le (#1079392) + +* Thu Jan 16 2014 Ville Skyttä - 0.6.31-24 +- Drop INSTALL from docs, fix some trivial rpmlint warnings. + +* Wed Jan 8 2014 Peter Robinson 0.6.31-23 +- Fix minor issue in exclude logic + +* Tue Jan 7 2014 Peter Robinson 0.6.31-22 +- Add option to disable qt3 support (and disable on aarch64) + +* Tue Oct 08 2013 Rex Dieter 0.6.31-21 +- avahi-libs should not require avahi, f20+ (#913168) + +* Thu Sep 26 2013 Rex Dieter 0.6.31-20 +- conform to http://fedoraproject.org/wiki/Packaging/UsersAndGroups#Soft_static_allocation + +* Wed Sep 25 2013 Kalev Lember - 0.6.31-19 +- Make sure the split up -devel package require avahi-devel + +* Sat Sep 21 2013 Kalev Lember - 0.6.31-18 +- Allow building with deprecated GTK+ symbols (#1001676) + +* Fri Sep 20 2013 Rex Dieter - 0.6.31-17 +- -libs: %%doc README LICENSE +- drop some explicit -devel deps, rely on automatic pkgconfig deps +- drop -Werror compiler flag +- cleanup/tighten subpkg deps +- trim changelog +- avahi-libs should not require avahi, f21+ (#913168) + +* Thu Sep 19 2013 Rex Dieter 0.6.31-16 +- no hardened build (#1008395) + +* Thu Sep 19 2013 Rex Dieter 0.6.31-15 +- Fix/workaround gtkstock.h deprecation (#1001676) + +* Mon Aug 26 2013 Jon Ciesla - 0.6.31-14 +- libmng rebuild. + +* Wed Aug 14 2013 Peter Robinson - 0.6.31-13 +- Disable mono on aarch64 as it's not yet been ported + +* Sat Aug 03 2013 Fedora Release Engineering - 0.6.31-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Sat Feb 02 2013 Kalev Lember - 0.6.31-11 +- Correct a typo in inter-subpackage deps + +* Fri Feb 1 2013 Matthias Clasen - 0.6.31-10 +- Tighten inter-subpackage deps + +* Fri Jan 18 2013 Adam Tkac - 0.6.31-9 +- rebuild due to "jpeg8-ABI" feature drop + +* Fri Dec 21 2012 Adam Tkac - 0.6.31-8 +- fix path to ldconfig + +* Fri Dec 21 2012 Adam Tkac - 0.6.31-7 +- rebuild against new libjpeg + +* Tue Aug 7 2012 Lennart Poettering - 0.6.31-6 +- Use new systemd macros +- Other modernizations + +* Mon Aug 6 2012 Stef Walter - 0.6.31-5 +- Don't ship ssh service by default file since openssh-server isn't + running by default, and shouldn't be advertised without user + confirmation. + +* Wed Jul 18 2012 Fedora Release Engineering - 0.6.31-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon May 21 2012 Peter Robinson - 0.6.31-3 +- Merge F-17 into master +- ARM has mono + +* Tue Feb 14 2012 Lennart Poettering - 0.6.31-2 +- Fix tarball + +* Tue Feb 14 2012 Lennart Poettering - 0.6.31-1 +- New upstream release + +* Thu Jan 12 2012 Fedora Release Engineering - 0.6.30-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Nov 29 2011 Christian Krause - 0.6.30-6 +- Change paths for mono assemblies according to updated packaging + guidelines (http://fedoraproject.org/wiki/Packaging:Mono) + +* Mon Nov 14 2011 Adam Jackson 0.6.30-5 +- Rebuild to break bogus libpng dep + +* Mon Aug 22 2011 Lennart Poettering - 0.6.30-4 +- Remove sysv init script (#714649) + +* Thu May 5 2011 Bill Nottingham - 0.6.30-3 +- fix versioning on triggers + +* Tue May 3 2011 Lennart Poettering - 0.6.30-2 +- Enable Avahi by default +- https://bugzilla.redhat.com/show_bug.cgi?id=647831 + +* Mon Apr 4 2011 Lennart Poettering - 0.6.30-1 +- New upstream release + +* Wed Mar 9 2011 Lennart Poettering - 0.6.29-1 +- New upstream release +- Fixes CVE-2011-1002 among other things + +* Thu Feb 10 2011 Matthias Clasen - 0.6.28-9 +- Rebuild against new gtk + +* Mon Feb 07 2011 Fedora Release Engineering - 0.6.28-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Feb 2 2011 Matthias Clasen - 0.6.28-7 +- Rebuild against new gtk + +* Fri Jan 7 2011 Matthias Clasen - 0.6.28-6 +- Rebuild against new gtk + +* Fri Dec 3 2010 Matthias Clasen - 0.6.28-5 +- Rebuild against new gtk + +* Wed Nov 24 2010 Dan Horák - 0.6.28-4 +- Updated the archs without mono + +* Tue Nov 2 2010 Matthias Clasen - 0.6.28-3 +- Rebuild against newer gtk3 + +* Wed Oct 27 2010 paul - 0.6.28-2 +- rebuilt + +* Tue Oct 5 2010 Lennart Poettering - 0.6.28-1 +- New upstream release + +* Wed Aug 4 2010 Lennart Poettering - 0.6.27-3 +- convert from systemd-install to systemctl enable + +* Wed Jul 21 2010 David Malcolm - 0.6.27-2 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + +* Tue Jul 13 2010 Lennart Poettering 0.6.27-1 +- New upstream release + +* Tue Jun 29 2010 Lennart Poettering 0.6.26-4 +- On request of Colin Walters, disable introspection again for now. + +* Tue Jun 29 2010 Lennart Poettering 0.6.26-3 +- Fix systemd unit installation + +* Tue Jun 29 2010 Lennart Poettering 0.6.26-2 +- Add missing dependencies + +* Tue Jun 29 2010 Lennart Poettering 0.6.26-1 +- New upstream release + +* Mon Apr 19 2010 Bastien Nocera 0.6.25-7 +- Split avahi libraries in -libs + +* Mon Jan 25 2010 Lennart Poettering - 0.6.25-6 +- Move avahi-discover from avahi-tools to avahi-ui-tools +- https://bugzilla.redhat.com/show_bug.cgi?id=513768 + +* Fri Jul 24 2009 Fedora Release Engineering - 0.6.25-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Jun 17 2009 Karsten Hopp 0.6.25-4 +- Build *-sharp & *-ui-sharp for s390x + +* Thu Jun 11 2009 Matthias Clasen - 0.6.25-4 +- Use %%find_lang + +* Tue May 26 2009 Michael Schwendt - 0.6.25-3 +- Create avahi-ui-sharp-devel package for pkgconfig dep-chain (#477308). + +* Mon May 25 2009 Xavier Lamien - 0.6.25-2 +- Build arch ppc64 for *-sharp & *-ui-sharp. + +* Mon Apr 13 2009 Lennart Poettering - 0.6.25-1 +- New upstream release + +* Mon Feb 23 2009 Fedora Release Engineering - 0.6.24-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Dec 12 2008 Lennart Poettering - 0.6.24-1 +- New upstream release + +* Wed Dec 3 2008 Ignacio Vazquez-Abrams - 0.6.22-13 +- Fix libtool errors + +* Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.6.22-12 +- Rebuild for Python 2.6 + +* Wed Jun 04 2008 Rex Dieter - 0.6.22-11 +- qt4 bindings (#446904) +- devel: BR: pkgconfig +- nuke rpaths + +* Thu Mar 27 2008 Lennart Poettering - 0.6.22-10 +- Add release part to package dependencies (Closed #311601) + +* Mon Mar 10 2008 Christopher Aillon - 0.6.22-9 +- The qt3 subpackage should (Build)Require: qt3 + +* Mon Mar 03 2008 Kevin Kofler - 0.6.22-8 +- updated (completed) German translation by Fabian Affolter (#427090) + +* Thu Feb 21 2008 Adam Tkac - 0.6.22-7 +- really rebuild against new libcap + +* Sun Feb 17 2008 Adam Tkac - 0.6.22-6 +- rebuild against new libcap + +* Sat Feb 09 2008 Dennis Gilmore - 0.6.22-5 +- sparc64 does not have mono + +* Tue Dec 18 2007 Lubomir Kundrak - 0.6.22-4 +- Make bvnc call vncviewer instead of xvncviewer +- Let ui-tools depend on necessary packages + +* Mon Dec 17 2007 Lennart Poettering - 0.6.22-3 +- Add missing intltool dependency + +* Mon Dec 17 2007 Lennart Poettering - 0.6.22-2 +- Fix mistag + +* Mon Dec 17 2007 Lennart Poettering - 0.6.22-1 +- resolves #274731, #425491: New upstream version + +* Tue Sep 25 2007 Lennart Poettering - 0.6.21-6 +- resolves #279301: fix segfault when no domains are configured in resolv.conf (pulled from upstream SVN r1525) + +* Thu Sep 6 2007 Lennart Poettering - 0.6.21-5 +- resolves #249044: Update init script to use runlevel 96 +- resolves #251700: Fix assertion in libdns_sd-compat + +* Thu Sep 6 2007 Lennart Poettering - 0.6.21-4 +- Ship ssh static service file by default, don't ship ssh-sftp by default +- resolves: #269741: split off avahi-ui-tools package +- resolves: #253734: add missing dependency on avahi-glib-devel to avahi-ui-devel + +* Tue Aug 28 2007 Martin Bacovsky - 0.6.21-3 +- resolves: #246875: Initscript Review + +* Sun Aug 12 2007 Lennart Poettering - 0.6.21-2 +- Fix avahi-browse --help output + +* Sun Aug 12 2007 Lennart Poettering - 0.6.21-1 +- New upstream release + +* Thu Aug 9 2007 Lennart Poettering - 0.6.20-7 +- Fix tagging borkage + +* Thu Aug 9 2007 Lennart Poettering - 0.6.20-6 +- fix avahi-autoipd corrupt packet bug +- drop dependency on python for the main package + +* Wed Jul 11 2007 Lennart Poettering - 0.6.20-5 +- add two patches which are important to get RR updating work properly. + Will be part of upstream 0.6.21 + +* Thu Jul 5 2007 Dan Williams - 0.6.20-4 +- Add Requires(pre): shadow-utils for avahi-autoipd package + +* Mon Jun 25 2007 Bill Nottingham - 0.6.20-3 +- fix %%endif typo + +* Mon Jun 25 2007 Lennart Poettering - 0.6.20-2 +- add gtk-sharp2-devel to build deps + +* Fri Jun 22 2007 Lennart Poettering - 0.6.20-1 +- upgrade to new upstream 0.6.20 +- fix a few rpmlint warnings +- create avahi-autoipd user +- no longer create avahi user with a static uid, move to dynamic uids +- drop a couple of patches merged upstream +- Provide "howl" and "howl-devel" +- Split off avahi-autoipd and avahi-dnsconfd +- Introduce avahi-ui packages for the first time +- Reload D-Bus config after installation using dbus-send +- add a couple of missing ldconfig invocations + +* Mon Mar 12 2007 Martin Bacovsky - 0.6.17-1 +- upgrade to new upstream 0.6.17 +- redundant patches removal +- removed auto* stuff from specfile since that was no longer needed +- Resolves: #232205: 'service {avahi-dnsconfd,avahi-daemon} status' + returns 0 when the service is stopped + +* Fri Feb 2 2007 Christopher Aillon - 0.6.16-3 +- Remove bogus mono-libdir patches + +* Tue Jan 23 2007 Jeremy Katz - 0.6.16-2 +- nuke bogus avahi-sharp -> avahi-devel dep + +* Mon Jan 22 2007 Martin Bacovsky - 0.6.16-1.fc7 +- Resolves: #221763: CVE-2006-6870 Maliciously crafted packed can DoS avahi daemon +- upgrade to new upstream +- patch revision +- Resolves: #218140: avahi configuration file wants a non-existent group + +* Wed Dec 6 2006 Jeremy Katz - 0.6.15-4 +- rebuild against python 2.5 + +* Mon Nov 27 2006 Martin Bacovsky - 0.6.15-3 +- automake-1.10 required for building + +* Mon Nov 27 2006 Martin Bacovsky - 0.6.15-2 +- automake-1.9 required for building + +* Thu Nov 24 2006 Martin Bacovsky - 0.6.15-1 +- Upgrade to 0.6.15 +- patches revision + +* Mon Sep 18 2006 Martin Stransky - 0.6.11-6 +- added patch from #206445 - ia64: unaligned access errors seen + during startup of avahi-daemon +- removed unused patches + +* Thu Sep 7 2006 Dan Walsh - 0.6.11-5 +- Maintain the security context on the localtime file + +* Wed Aug 23 2006 Martin Stransky - 0.6.11-4 +- fix for #204710 - /etc/init.d/avahi-dnsconfd missing line + continuation slash (\) in description + +* Wed Aug 23 2006 Martin Stransky - 0.6.11-3 +- added fix for #200767 - avahi-dnsconfd Segmentation fault + with invalid command line argument +- added dist tag + +* Tue Jul 18 2006 John (J5) Palmieri - 0.6.11-2.fc6 +- add BR for dbus-glib-devel +- fix deprecated functions + +* Mon Jul 17 2006 Jason Vas Dias - 0.6.11-1.fc6 +- Upgrade to upstream version 0.6.11 +- fix bug 195674: set 'use-ipv6=yes' in avahi-daemon.conf +- fix bug 197414: avahi-compat-howl and avahi-compat-dns-sd symlinks +- fix bug 198282: avahi-compat-{howl-devel,dns-sd-devel} Requires: + +* Wed Jul 12 2006 Jesse Keating +- rebuild + +* Tue Jun 13 2006 Jason Vas Dias - 0.6.10-3.FC6 +- rebuild for broken mono deps + +* Tue Jun 06 2006 Jason Vas Dias - 0.6.10-2.FC6 +- fix bug 194203: fix permissions on /var/run/avahi-daemon + +* Tue May 30 2006 Jason Vas Dias - 0.6.10-1.FC6 +- Upgrade to upstream version 0.6.10 +- fix bug 192080: split avahi-compat-libdns_sd into separate package + (same goes for avahi-compat-howl) + +* Tue May 02 2006 Jason Vas Dias - 0.6.9-9.FC6 +- fix avahi-sharp issues for banshee - patches from caillon@redhat.com + +* Thu Apr 20 2006 Jason Vas Dias - 0.6.9-9.FC6 +- fix bug 189427: correct avahi-resolve --help typo + +* Mon Mar 20 2006 Jason Vas Dias - 0.6.9-8.FC6 +- fix bug 185972: remove ellipses in initscript +- fix bug 185965: make chkconfigs unconditional + +* Thu Mar 16 2006 Jason Vas Dias - 0.6.9-6 +- Fix bug 185692: install avahi-sharp into %%{_prefix}/lib, not %%{_libdir} + +* Thu Mar 09 2006 Jason Vas Dias - 0.6.9-4 +- fix scriptlet error introduced by last fix: + if user has disabled avahi-daemon, do not enable it during post + +* Wed Mar 08 2006 Bill Nottingham - 0.6.9-2 +- fix scriplet error during installer +- move service-types* to the tools package (avoids multilib conflicts) + +* Tue Mar 07 2006 Jason Vas Dias - 0.6.9-1 +- Upgrade to upstream version 0.6.9 + +* Thu Feb 23 2006 Jason Vas Dias - 0.6.8-1 +- Upgrade to upstream version 0.6.8 +- fix bug 182462: +Requires(post): initscripts, chkconfig, ldconfig + +* Fri Feb 17 2006 Jason Vas Dias - 0.6.7-1 +- Upgrade to upstream version 0.6.7 + +* Fri Feb 17 2006 Karsten Hopp - 0.6.6-4 +- BuildRequires pygtk2 + +* Fri Feb 10 2006 Jesse Keating - 0.6.6-3.1 +- bump again for double-long bug on ppc(64) + +* Fri Feb 10 2006 Jason Vas Dias - 0.6.6-3 +- rebuild for new gcc (again) +- further fix for bug 178746: fix avahi-dnsconfd initscript + +* Tue Feb 07 2006 Jason Vas Dias - 0.6.6-2 +- rebuild for new gcc, glibc, glibc-kernheaders + +* Wed Feb 01 2006 Jason Vas Dias - 0.6.6-1 +- fix bug 179448: mis-alignment of input cmsghdr msg->msg_control buffer on ia64 +- Upgrade to 0.6.6 + +* Thu Jan 26 2006 Jason Vas Dias - 0.6.5-1 +- Upgrade to upstream version 0.6.5 +- Make /etc/avahi/etc and /etc/avahi/etc/localtime owned by avahi + package; copy system localtime into chroot in post + +* Mon Jan 23 2006 Jason Vas Dias - 0.6.4-4 +- fix bug 178689: copy localtime to chroot +- fix bug 178784: fix avahi-dnsconfd initscript + +* Fri Jan 20 2006 Peter Jones - 0.6.4-3 +- fix subsystem locking in the initscript + +* Thu Jan 19 2006 Jason Vas Dias - 0.6.4-2 +- fix bug 178127: fully localize the initscript + +* Mon Jan 16 2006 Jason Vas Dias - 0.6.4-1 +- Upgrade to upstream version 0.6.4 + +* Thu Jan 12 2006 Jason Vas Dias - 0.6.3-2 +- fix bug 177610: Enable mono support with new avahi-sharp package +- fix bug 177609: add gdbm / gdbm-devel Requires for avahi-browse + +* Mon Jan 09 2006 Jason Vas Dias - 0.6.3-1 +- Upgrade to upstream version 0.6.3 +- fix bug 177148: initscript start should not fail if avahi-daemon running + +* Thu Dec 22 2005 Jason Vas Dias - 0.6.1-3 +- move initscripts from /etc/init.d to /etc/rc.d/init.d + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Fri Dec 09 2005 Jason Vas Dias - 0.6.1-2 +- fix bug 175352: Do not chkconfig --add avahi-daemon + if user has already configured it + +* Wed Dec 07 2005 Jason Vas Dias - 0.6.1-1 +- Upgrade to 0.6.1 + +* Mon Dec 05 2005 Jason Vas Dias - 0.6-6 +- fix bug 174799 - fix .spec file files permissions + +* Fri Dec 02 2005 Jason Vas Dias - 0.6-5 +- python-twisted has been removed from the FC-5 distribution - disable its use + +* Thu Dec 01 2005 Jason Vas Dias - 0.6-4 +- Rebuild for dbus-0.6 - remove use of DBUS_NAME_FLAG_PROHIBIT_REPLACEMENT + +* Wed Nov 30 2005 Jason Vas Dias - 0.6-3 +- fix bug 172047 - tools should require python-twisted +- fix bug 173985 - docs directory permissions + +* Mon Nov 21 2005 Jason Vas Dias - 0.6-1 +- Upgrade to upstream version 0.6 - now provides 'avahi-howl-compat' + libraries / includes. + +* Mon Nov 14 2005 Jason Vas Dias - 0.5.2-7 +- fix bug 172034: fix ownership of /var/run/avahi-daemon/ +- fix bug 172772: .spec file improvements from matthias@rpmforge.net + +* Mon Oct 31 2005 Jason Vas Dias - 0.5.2-6 +- put back avahi-devel Obsoletes: howl-devel + +* Mon Oct 31 2005 Alexander Larsson - 0.5.2-5 +- Obsoletes howl, howl-libs, as we want to get rid of them on updates +- No provides yet, as the howl compat library is in Avahi 0.6.0. + +* Sun Oct 30 2005 Florian La Roche +- disable the Obsoletes: howl until the transition is complete + +* Fri Oct 28 2005 Jason Vas Dias - 0.5.2-3 +- change initscript to start avahi-daemon AFTER messagebus + +* Wed Oct 26 2005 Karsten Hopp 0.5.2-2 +- add buildrequires dbus-python + +* Fri Oct 21 2005 Alexander Larsson - 0.5.2-1 +- Initial package diff --git a/factory/packages/blueprint-compiler/.factory-upstream.json b/factory/packages/blueprint-compiler/.factory-upstream.json new file mode 100644 index 00000000..0a09a6e1 --- /dev/null +++ b/factory/packages/blueprint-compiler/.factory-upstream.json @@ -0,0 +1,13 @@ +{ + "imported_at": "2026-10-10T05:40:14+00:00", + "package": "blueprint-compiler", + "schema": 1, + "source": { + "chroot": "epel-10-x86_64", + "kind": "srpm", + "repository": "https://download.copr.fedorainfracloud.org/results/jreilly1821/c10s-gnome-50", + "srpm_checksum": "0436bc64968e593ca67937dfeea17f11c9e800812bfe8919ec64720bbc9f5fa7", + "srpm_checksum_type": "sha256", + "tree": "6789280a1febd56082dceec1a14907fd65e33e39" + } +} diff --git a/factory/packages/blueprint-compiler/blueprint-compiler.spec b/factory/packages/blueprint-compiler/blueprint-compiler.spec new file mode 100644 index 00000000..4dba5609 --- /dev/null +++ b/factory/packages/blueprint-compiler/blueprint-compiler.spec @@ -0,0 +1,149 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.8.3) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 2; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +Name: blueprint-compiler +Version: 0.22.2 +Release: 1%{?dist} +Summary: A markup language for GTK user interfaces + +%global tarball_version %%(echo %{version} | tr '~' '.') + +License: LGPL-3.0-or-later +URL: https://gitlab.gnome.org/GNOME/blueprint-compiler +Source0: https://download.gnome.org/sources/blueprint-compiler/0.22/blueprint-compiler-0.22.2.tar.xz + +BuildArch: noarch + +BuildRequires: meson +BuildRequires: gtk4-devel +BuildRequires: libadwaita-devel +BuildRequires: python3-devel +BuildRequires: python3-gobject-devel + +Requires: python3-gobject-devel + +%description +GtkBuilder XML format is quite verbose, and many app developers don't like +using WYSIWYG editors for creating UIs. Blueprint files are intended to be a +concise, easy-to-read format that makes it easier to create and edit GTK UIs. +Internally, it compiles to GtkBuilder XML as part of an app's build system. It +adds no new features, just makes the features that exist more accessible. +Another goal is to have excellent developer tooling--including a language +server--so that less knowledge of the format is required. Hopefully this will +increase adoption of cool advanced features like GtkExpression. + + +%prep +%autosetup -p1 -n %{name}-%{tarball_version} + + +%build +%meson +%meson_build + + +%install +%meson_install + + +# Tests fail in mock, but pass otherwise. For some reason, no log is available +# to debug the issue when it fails. +#check +#meson_test + + +%files +%license COPYING +%doc README.md docs/*.rst +%{_bindir}/%{name} +%{python3_sitelib}/blueprintcompiler +%{_datadir}/pkgconfig/%{name}.pc + + +%changelog +## START: Generated by rpmautospec +* Mon Mar 02 2026 Jan Grulich - 0.20.0-2 +- Packit: drop upstream_project_url and rely on release-monitoring only + +* Fri Feb 27 2026 Jan Grulich - 0.20.0-1 +- Update to 0.20.0 + +* Wed Feb 25 2026 Jan Grulich - 0.19.0-3 +- Packit: drop fast_forward_merge_into as current stable branches diverge + +* Tue Feb 24 2026 Jan Grulich - 0.19.0-2 +- Onboard to Packit for stable Fedora branches + +* Mon Jan 19 2026 Jan Horak - 0.19.0-1 +- Update to 0.19.0 + +* Fri Jan 16 2026 Fedora Release Engineering - 0.18.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Fri Jan 16 2026 Fedora Release Engineering - 0.18.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Fri Sep 19 2025 Python Maint - 0.18.0-4 +- Rebuilt for Python 3.14.0rc3 bytecode + +* Fri Aug 15 2025 Python Maint - 0.18.0-3 +- Rebuilt for Python 3.14.0rc2 bytecode + +* Wed Jul 23 2025 Fedora Release Engineering - 0.18.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Tue Jul 08 2025 Barry Dunn - 0.18.0-1 +- Update to 0.18.0 + +* Tue Jun 03 2025 Python Maint - 0.16.0-2 +- Rebuilt for Python 3.14 + +* Wed Mar 12 2025 Lyes Saadi - 0.16.0-1 +- Updating to 0.16.0 + +* Thu Jan 16 2025 Fedora Release Engineering - 0.12.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Wed Jul 17 2024 Fedora Release Engineering - 0.12.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Tue Jul 16 2024 Lyes Saadi - 0.12.0-1 +- Upgrading to 0.12.0 and s390x builds ! (fixes #2270844) + +* Fri Jun 07 2024 Python Maint - 0.10.0-4 +- Rebuilt for Python 3.13 + +* Tue Jan 23 2024 Fedora Release Engineering - 0.10.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 0.10.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Sep 14 2023 Lyes Saadi - 0.10.0-1 +- Updating to 0.10.0 (rhbz#2148671, rhbz#2169892) + +* Wed Jul 19 2023 Fedora Release Engineering - 0.6.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jun 15 2023 Python Maint - 0.6.0-3 +- Rebuilt for Python 3.12 + +* Wed Jan 18 2023 Fedora Release Engineering - 0.6.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sun Nov 27 2022 Lyes Saadi - 0.6.0-1 +- Updating to 0.6.0 + +* Tue Sep 13 2022 Lyes Saadi - 0.4.0-1 +- Updating to 0.4.0 + +* Mon Aug 22 2022 Lyes Saadi - 0.2.0-1 +- Initial import +## END: Generated by rpmautospec diff --git a/factory/packages/cairo/.factory-upstream.json b/factory/packages/cairo/.factory-upstream.json new file mode 100644 index 00000000..34339941 --- /dev/null +++ b/factory/packages/cairo/.factory-upstream.json @@ -0,0 +1,13 @@ +{ + "imported_at": "2026-10-10T05:45:54+00:00", + "package": "cairo", + "schema": 1, + "source": { + "chroot": "epel-10-x86_64", + "kind": "srpm", + "repository": "https://download.copr.fedorainfracloud.org/results/jreilly1821/c10s-gnome-50", + "srpm_checksum": "6c67a0fdbdc32e90009ea399e54e1322428515451e2c19868ee544211d85f470", + "srpm_checksum_type": "sha256", + "tree": "bd492e19d0b8b15edbf0503540672c0ddc8dcd3c" + } +} diff --git a/factory/packages/cairo/cairo-multilib.patch b/factory/packages/cairo/cairo-multilib.patch new file mode 100644 index 00000000..16fd96bb --- /dev/null +++ b/factory/packages/cairo/cairo-multilib.patch @@ -0,0 +1,34 @@ +diff -up cairo-1.12.14/util/cairo-trace/cairo-trace.in.multilib cairo-1.12.14/util/cairo-trace/cairo-trace.in +--- cairo-1.12.14/util/cairo-trace/cairo-trace.in.multilib 2013-07-18 16:03:38.044832193 -0400 ++++ cairo-1.12.14/util/cairo-trace/cairo-trace.in 2013-07-18 16:03:43.981882777 -0400 +@@ -2,6 +2,12 @@ + + prefix=@prefix@ + exec_prefix=@exec_prefix@ ++case `uname -m` in ++ x86_64|s390x|ppc64) libdir=@prefix@/lib64 ++ ;; ++ *) libdir=@prefix@/lib ++ ;; ++esac + + nofile= + flush= +@@ -90,7 +96,7 @@ export CAIRO_TRACE_PROG_NAME + + if test "x$CAIRO_TRACE_SO" = "x"; then + CAIRO_TRACE_SO="" +- for lib in @libdir@/cairo/libcairo-trace.@SHLIB_EXT@ @libdir@/cairo/libcairo-trace.@SHLIB_EXT@* @libdir@/cairo/libcairo-trace.*.@SHLIB_EXT@ ; do ++ for lib in $libdir/cairo/libcairo-trace.@SHLIB_EXT@ $libdir/cairo/libcairo-trace.@SHLIB_EXT@* $libdir/cairo/libcairo-trace.*.@SHLIB_EXT@ ; do + if test -h "$lib" -o -f "$lib"; then + CAIRO_TRACE_SO="$lib" + break +@@ -98,7 +104,7 @@ if test "x$CAIRO_TRACE_SO" = "x"; then + done + fi + if test "x$CAIRO_TRACE_SO" = "x"; then +- echo "Could not find the cairo-trace shared library in @libdir@/cairo/." >&2 ++ echo "Could not find the cairo-trace shared library in $libdir/cairo/." >&2 + echo "Set the CAIRO_TRACE_SO environment variable to the full path of the library." >&2 + exit 15 + fi diff --git a/factory/packages/cairo/cairo.spec b/factory/packages/cairo/cairo.spec new file mode 100644 index 00000000..8cac94a8 --- /dev/null +++ b/factory/packages/cairo/cairo.spec @@ -0,0 +1,159 @@ +%define pixman_version 0.36.0 +%define freetype_version 9.7.3 +%define fontconfig_version 2.2.95 + +Name: cairo +Version: 1.18.4 +Release: %autorelease +Summary: A 2D graphics library + +License: LGPL-2.1-only OR MPL-1.1 +URL: https://cairographics.org +Source: https://cairographics.org/releases/%{name}-%{version}.tar.xz + +Patch: cairo-multilib.patch + +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: gtk-doc +BuildRequires: meson +BuildRequires: pkgconfig(expat) +BuildRequires: pkgconfig(pixman-1) >= %{pixman_version} +BuildRequires: pkgconfig(freetype2) >= %{freetype_version} +BuildRequires: pkgconfig(fontconfig) >= %{fontconfig_version} +BuildRequires: pkgconfig(gobject-2.0) +BuildRequires: pkgconfig(libpng) +BuildRequires: pkgconfig(librsvg-2.0) +BuildRequires: pkgconfig(lzo2) +BuildRequires: pkgconfig(xext) +BuildRequires: pkgconfig(xcb-render) +BuildRequires: pkgconfig(xrender) + +%description +Cairo is a 2D graphics library designed to provide high-quality display +and print output. Currently supported output targets include the X Window +System, in-memory image buffers, and image files (PDF, PostScript, and SVG). + +Cairo is designed to produce consistent output on all output media while +taking advantage of display hardware acceleration when available. + +%package devel +Summary: Development files for cairo +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +Cairo is a 2D graphics library designed to provide high-quality display +and print output. + +This package contains libraries, header files and developer documentation +needed for developing software which uses the cairo graphics library. + +%package gobject +Summary: GObject bindings for cairo +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description gobject +Cairo is a 2D graphics library designed to provide high-quality display +and print output. + +This package contains functionality to make cairo graphics library +integrate well with the GObject object system used by GNOME. + +%package gobject-devel +Summary: Development files for cairo-gobject +Requires: %{name}-devel%{?_isa} = %{version}-%{release} +Requires: %{name}-gobject%{?_isa} = %{version}-%{release} + +%description gobject-devel +Cairo is a 2D graphics library designed to provide high-quality display +and print output. + +This package contains libraries, header files and developer documentation +needed for developing software which uses the cairo Gobject library. + +%package tools +Summary: Development tools for cairo +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description tools +Cairo is a 2D graphics library designed to provide high-quality display +and print output. + +This package contains tools for working with the cairo graphics library. + * cairo-trace: Record cairo library calls for later playback + +%prep +%autosetup -p1 + +%build +meson setup --wrap-mode=nodownload --prefix=/usr --libdir=/usr/lib64 --buildtype=plain build \ + -Dfreetype=enabled \ + -Dfontconfig=enabled \ + -Dglib=enabled \ + -Dgtk_doc=true \ + -Dspectre=disabled \ + -Dsymbol-lookup=disabled \ + -Dtee=enabled \ + -Dtests=disabled \ + -Dxcb=enabled \ + -Dxlib=enabled \ + %{nil} +meson compile -C build + +%install +DESTDIR=%{buildroot} meson install -C build + +%files +%license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1 +%doc AUTHORS BUGS NEWS README.md +%{_libdir}/libcairo.so.2* +%{_libdir}/libcairo-script-interpreter.so.2* + +%files devel +%dir %{_includedir}/cairo/ +%{_includedir}/cairo/cairo-deprecated.h +%{_includedir}/cairo/cairo-features.h +%{_includedir}/cairo/cairo-ft.h +%{_includedir}/cairo/cairo.h +%{_includedir}/cairo/cairo-pdf.h +%{_includedir}/cairo/cairo-ps.h +%{_includedir}/cairo/cairo-script-interpreter.h +%{_includedir}/cairo/cairo-svg.h +%{_includedir}/cairo/cairo-tee.h +%{_includedir}/cairo/cairo-version.h +%{_includedir}/cairo/cairo-xlib-xrender.h +%{_includedir}/cairo/cairo-xlib.h +%{_includedir}/cairo/cairo-script.h +%{_includedir}/cairo/cairo-xcb.h +%{_libdir}/libcairo.so +%{_libdir}/libcairo-script-interpreter.so +%{_libdir}/pkgconfig/cairo-fc.pc +%{_libdir}/pkgconfig/cairo-ft.pc +%{_libdir}/pkgconfig/cairo.pc +%{_libdir}/pkgconfig/cairo-pdf.pc +%{_libdir}/pkgconfig/cairo-png.pc +%{_libdir}/pkgconfig/cairo-ps.pc +%{_libdir}/pkgconfig/cairo-script-interpreter.pc +%{_libdir}/pkgconfig/cairo-svg.pc +%{_libdir}/pkgconfig/cairo-tee.pc +%{_libdir}/pkgconfig/cairo-xlib.pc +%{_libdir}/pkgconfig/cairo-xlib-xrender.pc +%{_libdir}/pkgconfig/cairo-script.pc +%{_libdir}/pkgconfig/cairo-xcb-shm.pc +%{_libdir}/pkgconfig/cairo-xcb.pc +%{_datadir}/gtk-doc/html/cairo + +%files gobject +%{_libdir}/libcairo-gobject.so.2* + +%files gobject-devel +%{_includedir}/cairo/cairo-gobject.h +%{_libdir}/libcairo-gobject.so +%{_libdir}/pkgconfig/cairo-gobject.pc + +%files tools +%{_bindir}/cairo-trace +%{_libdir}/cairo/ + +%changelog +%autochangelog diff --git a/factory/packages/colord-gtk/.factory-upstream.json b/factory/packages/colord-gtk/.factory-upstream.json new file mode 100644 index 00000000..67bcd738 --- /dev/null +++ b/factory/packages/colord-gtk/.factory-upstream.json @@ -0,0 +1,13 @@ +{ + "imported_at": "2026-10-10T05:40:25+00:00", + "package": "colord-gtk", + "schema": 1, + "source": { + "chroot": "epel-10-x86_64", + "kind": "srpm", + "repository": "https://download.copr.fedorainfracloud.org/results/jreilly1821/c10s-gnome-50", + "srpm_checksum": "08066c86eed681547429cff6f4df6dc802f52ac46fed2c4419dff6f9529570dc", + "srpm_checksum_type": "sha256", + "tree": "404f100267ac936ffe43a447ea235cdcd6fc27f1" + } +} diff --git a/factory/packages/colord-gtk/colord-gtk.spec b/factory/packages/colord-gtk/colord-gtk.spec new file mode 100644 index 00000000..7789752e --- /dev/null +++ b/factory/packages/colord-gtk/colord-gtk.spec @@ -0,0 +1,73 @@ +Name: colord-gtk +Version: 0.3.1 +Release: 100%{?dist} +Summary: GTK4 support library for colord + +License: LGPL-2.1-or-later +URL: https://github.com/hughsie/colord-gtk +Source0: https://github.com/hughsie/colord-gtk/archive/refs/tags/%{version}.tar.gz#/colord-gtk-%{version}.tar.gz + +BuildRequires: gcc +BuildRequires: meson +BuildRequires: gettext-devel +BuildRequires: pkgconfig(colord) >= 1.3.3 +BuildRequires: pkgconfig(gtk4) + +%description +colord-gtk4 provides GTK4 support library for colord, a system service +for managing color devices and ICC profiles. + +This package is built without GTK2/GTK3 modules for EL10 compatibility +(EL10 colord-gtk4-devel incorrectly requires colord-gtk-devel which needs gtk3). + +%package -n colord-gtk4 +Summary: GTK4 support library for colord + +%description -n colord-gtk4 +GTK4 widgets for color device management via colord. + +%package -n colord-gtk4-devel +Provides: pkgconfig(colord-gtk4) = %{version} +Summary: Development files for colord-gtk4 +Requires: colord-gtk4%{?_isa} = %{version}-%{release} +# Explicitly NOT requiring colord-gtk-devel (gtk3-based package) + +%description -n colord-gtk4-devel +Development files for building against colord-gtk4. +This package does not require colord-gtk (GTK3) or gtk3-devel. + +%prep +%autosetup -n colord-gtk-%{version} -p1 + +%build +%meson \ + -Dgtk2=false \ + -Dgtk3=false \ + -Dgtk4=true \ + -Dintrospection=false \ + -Dvapi=false \ + -Ddocs=false \ + -Dtests=false \ + -Dman=false +%meson_build + +%install +%meson_install +%find_lang colord-gtk + +%ldconfig_scriptlets -n colord-gtk4 + +%files -n colord-gtk4 -f colord-gtk.lang +%license COPYING +%doc README +%{_libdir}/libcolord-gtk4.so.1{,.*} + +%files -n colord-gtk4-devel +%{_includedir}/colord-1/colord-gtk.h +%{_includedir}/colord-1/colord-gtk/ +%{_libdir}/libcolord-gtk4.so +%{_libdir}/pkgconfig/colord-gtk4.pc + +%changelog +* Sat Mar 14 2026 James Reilly - 0.3.1-1 +- Build gtk4-only, without gtk2/gtk3 for EL10 compatibility diff --git a/factory/packages/docbook-style-xsl/.factory-upstream.json b/factory/packages/docbook-style-xsl/.factory-upstream.json new file mode 100644 index 00000000..caceb7f4 --- /dev/null +++ b/factory/packages/docbook-style-xsl/.factory-upstream.json @@ -0,0 +1,13 @@ +{ + "imported_at": "2026-10-10T05:45:58+00:00", + "package": "docbook-style-xsl", + "schema": 1, + "source": { + "chroot": "epel-10-x86_64", + "kind": "srpm", + "repository": "https://download.copr.fedorainfracloud.org/results/jreilly1821/c10s-gnome-50", + "srpm_checksum": "ae652b41a0d287a152fd7dcf489be6818ee3cdaf114eb977cafe4e996f8d7895", + "srpm_checksum_type": "sha256", + "tree": "42e7bbafe2763c9b92f5e456a517f1727b18bc28" + } +} diff --git a/factory/packages/docbook-style-xsl/docbook-style-xsl-1.79.2-fix-gtk-doc-multilib.patch b/factory/packages/docbook-style-xsl/docbook-style-xsl-1.79.2-fix-gtk-doc-multilib.patch new file mode 100644 index 00000000..46d54e2b --- /dev/null +++ b/factory/packages/docbook-style-xsl/docbook-style-xsl-1.79.2-fix-gtk-doc-multilib.patch @@ -0,0 +1,74 @@ +diff -urN docbook-xsl-nons-1.79.2/fo/autoidx.xsl docbook-xsl-nons-1.79.2.new/fo/autoidx.xsl +--- docbook-xsl-nons-1.79.2/fo/autoidx.xsl 2016-12-09 22:47:31.000000000 +0000 ++++ docbook-xsl-nons-1.79.2.new/fo/autoidx.xsl 2021-01-15 13:20:25.144862117 +0000 +@@ -295,7 +295,8 @@ + + + +- ++ ientry- ++ + + + +@@ -790,7 +791,10 @@ + + + +- ++ ientry- ++ ++ ++ + + + +@@ -852,7 +856,10 @@ + + + +- ++ ientry- ++ ++ ++ + + + +diff -urN docbook-xsl-nons-1.79.2/html/autoidx.xsl docbook-xsl-nons-1.79.2.new/html/autoidx.xsl +--- docbook-xsl-nons-1.79.2/html/autoidx.xsl 2016-12-09 22:47:30.000000000 +0000 ++++ docbook-xsl-nons-1.79.2.new/html/autoidx.xsl 2021-01-15 13:20:25.145862128 +0000 +@@ -306,7 +306,8 @@ + + + +- ++ ientry- ++ + + + +@@ -729,7 +730,10 @@ + + + +- ++ #ientry- ++ ++ ++ + + + +@@ -788,7 +792,10 @@ + + + +- ++ #ientry- ++ ++ ++ + + + diff --git a/factory/packages/docbook-style-xsl/docbook-style-xsl-non-recursive-string-subst.patch b/factory/packages/docbook-style-xsl/docbook-style-xsl-non-recursive-string-subst.patch new file mode 100644 index 00000000..ed302a9d --- /dev/null +++ b/factory/packages/docbook-style-xsl/docbook-style-xsl-non-recursive-string-subst.patch @@ -0,0 +1,30 @@ +Description: use EXSLT "replace" function when available + A recursive implementation of string.subst is problematic, + long strings with many matches will cause stack overflows. +Author: Peter De Wachter +Bug-Debian: https://bugs.debian.org/750593 + +--- docbook-xsl-1.78.1+dfsg.orig/docbook-xsl/lib/lib.xsl ++++ docbook-xsl-1.78.1+dfsg/docbook-xsl/lib/lib.xsl +@@ -10,7 +10,10 @@ + + This module implements DTD-independent functions + +- ******************************************************************** --> ++ ******************************************************************** --> + + + +@@ -56,6 +59,9 @@ + + + ++ ++ ++ + + + diff --git a/factory/packages/docbook-style-xsl/docbook-style-xsl.Makefile b/factory/packages/docbook-style-xsl/docbook-style-xsl.Makefile new file mode 100644 index 00000000..281656de --- /dev/null +++ b/factory/packages/docbook-style-xsl/docbook-style-xsl.Makefile @@ -0,0 +1,52 @@ +BINDIR = /usr/bin +DESTDIR = ..overridden in spec file.. + +all: install + +install: install-xsl install-img install-extensions install-misc install-epub + +install-xsl: + mkdir -p $(DESTDIR)/{common,eclipse,fo,html,htmlhelp/doc,javahelp,lib,template,xhtml,xhtml-1_1,manpages,profiling,highlighting,roundtrip,website} + cp common/*.dtd $(DESTDIR)/common + cp common/*.ent $(DESTDIR)/common + cp common/*.xml $(DESTDIR)/common + cp common/*.xsl $(DESTDIR)/common + cp eclipse/*.xsl $(DESTDIR)/eclipse + cp fo/*.xml $(DESTDIR)/fo + cp fo/*.xsl $(DESTDIR)/fo + cp html/*.xml $(DESTDIR)/html + cp html/*.xsl $(DESTDIR)/html + cp htmlhelp/*.xsl $(DESTDIR)/htmlhelp + cp javahelp/*.xsl $(DESTDIR)/javahelp + cp lib/*.xsl $(DESTDIR)/lib + cp template/*.xsl $(DESTDIR)/template + cp xhtml/*.xsl $(DESTDIR)/xhtml + cp xhtml-1_1/*.xsl $(DESTDIR)/xhtml-1_1 + cp manpages/*.xsl $(DESTDIR)/manpages + cp profiling/*.xsl $(DESTDIR)/profiling + cp highlighting/*.xml $(DESTDIR)/highlighting + cp highlighting/*.xsl $(DESTDIR)/highlighting + cp roundtrip/*.xml $(DESTDIR)/roundtrip + cp roundtrip/*.xsl $(DESTDIR)/roundtrip + cp roundtrip/*.dtd $(DESTDIR)/roundtrip + cp website/*.xsl $(DESTDIR)/website + +install-img: + mkdir -p $(DESTDIR)/images/callouts + cp images/*.gif $(DESTDIR)/images + cp images/*.png $(DESTDIR)/images + cp images/*.svg $(DESTDIR)/images + cp images/callouts/*.png $(DESTDIR)/images/callouts + cp images/callouts/*.gif $(DESTDIR)/images/callouts + cp images/callouts/*.svg $(DESTDIR)/images/callouts + +install-extensions: + mkdir -p $(DESTDIR)/extensions + cp -r extensions/* $(DESTDIR)/extensions + +install-epub: + mkdir -p $(DESTDIR)/epub + cp -r epub/* ${DESTDIR}/epub + +install-misc: + cp VERSION $(DESTDIR) diff --git a/factory/packages/docbook-style-xsl/docbook-style-xsl.spec b/factory/packages/docbook-style-xsl/docbook-style-xsl.spec new file mode 100644 index 00000000..0b2a40e4 --- /dev/null +++ b/factory/packages/docbook-style-xsl/docbook-style-xsl.spec @@ -0,0 +1,605 @@ +Name: docbook-style-xsl +Version: 1.79.2 +Release: 27%{?dist} + +Summary: Norman Walsh's XSL stylesheets for DocBook XML + +License: LicenseRef-DMIT +URL: https://github.com/docbook/xslt10-stylesheets + +Provides: docbook-xsl = %{version} +Requires: docbook-dtd-xml +# xml-common was using /usr/share/xml until 0.6.3-8. +Requires: xml-common >= 0.6.3-8 +# libxml2 required because of usage of /usr/bin/xmlcatalog +Requires(post): libxml2 >= 2.4.8 +Requires(postun): libxml2 >= 2.4.8 +# PassiveTeX before 1.21 can't handle the newer stylesheets. +Conflicts: passivetex < 1.21 +BuildRequires: make + + +BuildArch: noarch +# The imported spec wrote `%2F{%version}`, which is malformed: the braces do +# not open a macro, so rpm expands `%version` and leaves a literal `{` and `}` +# in the URL. The result 404s, and because the factory verifies every source +# against a recorded digest, it fails loudly at the lock rather than silently +# building from something else. Corrected to `%2F%{version}`. +Source0: https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F%{version}/docbook-xsl-nons-%{version}.tar.bz2 +Source1: %{name}.Makefile +Source2: https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F%{version}/docbook-xsl-doc-%{version}.tar.bz2 + + +#Avoid proportional-column-width for passivetex (bug #176766). +Patch1: docbook-xsl-pagesetup.patch +#Hard-code the margin-left work around to expect passivetex (bug #113456). +Patch2: docbook-xsl-marginleft.patch +#fix of #161619 - adjustColumnWidths now available +Patch3: docbook-xsl-newmethods.patch +#change a few non-constant expressions to constant - needed for passivetex(#366441) +Patch4: docbook-xsl-non-constant-expressions.patch +#added fixes for passivetex extension and list-item-body(#161371) +Patch5: docbook-xsl-list-item-body.patch +#workaround missing mandir section problem (#727251) +Patch6: docbook-xsl-mandir.patch +#Non-recursive string.subst that doesn't kill smb.conf.5 generation +Patch7: docbook-style-xsl-non-recursive-string-subst.patch +#Fix multilib problems with gtk-doc documentation +#https://github.com/docbook/xslt10-stylesheets/issues/54 +Patch8: docbook-style-xsl-1.79.2-fix-gtk-doc-multilib.patch + +%description +These XSL stylesheets allow you to transform any DocBook XML document to +other formats, such as HTML, FO, and XHMTL. They are highly customizable. + + +%prep +%setup -c -T -n docbook-xsl-%{version} +tar jxf %{SOURCE0} +mv docbook-xsl-nons-%{version}/* . +pushd .. +tar jxf %{SOURCE2} +popd +%patch -P1 -p1 -b .pagesetup +%patch -P2 -p1 -b .marginleft +%patch -P3 -p1 -b .newmethods +%patch -P4 -p1 -b .nonconstant +%patch -P5 -p1 -b .listitembody +%patch -P6 -p1 -b .mandir +%patch -P7 -p2 -b .non-recursive-subst +%patch -P8 -p1 -b .gtk-doc-multilib + +cp -p %{SOURCE1} Makefile + +# fix of non UTF-8 files rpmlint warnings +for fhtml in $(find ./doc -name '*.html' -type f) +do + iconv -f ISO-8859-1 -t UTF-8 "$fhtml" -o "$fhtml".tmp + mv -f "$fhtml".tmp "$fhtml" + sed -i 's/charset=ISO-8859-1/charset=UTF-8/' "$fhtml" +done + +for f in $(find -name "*'*") +do + mv -v "$f" $(echo "$f" | tr -d "'") +done + + +%build + + +%install +DESTDIR=$RPM_BUILD_ROOT +rm -rf $RPM_BUILD_ROOT +make install BINDIR=$DESTDIR%{_bindir} DESTDIR=$DESTDIR%{_datadir}/sgml/docbook/xsl-stylesheets-%{version} +cp -a VERSION.xsl $DESTDIR%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}/VERSION.xsl +ln -s xsl-stylesheets-%{version} \ + $DESTDIR%{_datadir}/sgml/docbook/xsl-stylesheets + +# Don't ship the extensions (bug #177256). +rm -rf $DESTDIR%{_datadir}/sgml/docbook/xsl-stylesheets/extensions/* + + +%files +%doc BUGS +%doc README +%doc TODO +%doc doc +%{_datadir}/sgml/docbook/xsl-stylesheets-%{version} +%{_datadir}/sgml/docbook/xsl-stylesheets + + +%post +CATALOG=%{_sysconfdir}/xml/catalog +%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \ + "http://cdn.docbook.org/release/xsl-nons/%{version}" \ + "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG +%{_bindir}/xmlcatalog --noout --add "rewriteURI" \ + "http://cdn.docbook.org/release/xsl-nons/%{version}" \ + "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG +%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \ + "http://cdn.docbook.org/release/xsl-nons/current/" \ + "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG +%{_bindir}/xmlcatalog --noout --add "rewriteURI" \ + "http://cdn.docbook.org/release/xsl-nons/current/" \ + "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG +#keep the old one sourceforge URIs at least temporarily +%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \ + "http://docbook.sourceforge.net/release/xsl/current" \ + "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG +%{_bindir}/xmlcatalog --noout --add "rewriteURI" \ + "http://docbook.sourceforge.net/release/xsl/current" \ + "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG + + + +%postun +# remove entries only on removal of package +if [ "$1" = 0 ]; then + CATALOG=%{_sysconfdir}/xml/catalog + %{_bindir}/xmlcatalog --noout --del \ + "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG +fi + +%changelog +* Fri Jan 16 2026 Fedora Release Engineering - 1.79.2-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Fri Jan 16 2026 Fedora Release Engineering - 1.79.2-26 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Wed Jul 23 2025 Fedora Release Engineering - 1.79.2-25 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Thu Jan 16 2025 Fedora Release Engineering - 1.79.2-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Wed Jul 17 2024 Fedora Release Engineering - 1.79.2-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Wed Jan 24 2024 Fedora Release Engineering - 1.79.2-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 1.79.2-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Oct 23 2023 Ondrej Sloup - 1.79.2-20 +- Update license tag to the SPDX format + +* Wed Jul 19 2023 Fedora Release Engineering - 1.79.2-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jan 19 2023 Fedora Release Engineering - 1.79.2-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Jul 21 2022 Fedora Release Engineering - 1.79.2-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu Jan 20 2022 Fedora Release Engineering - 1.79.2-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Jul 21 2021 Fedora Release Engineering - 1.79.2-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 1.79.2-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Jan 15 2021 David King - 1.79.2-13 +- Fix gtk-doc multilib failures + +* Mon Jul 27 2020 Fedora Release Engineering - 1.79.2-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jan 28 2020 Fedora Release Engineering - 1.79.2-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Jul 24 2019 Fedora Release Engineering - 1.79.2-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jan 31 2019 Fedora Release Engineering - 1.79.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jul 12 2018 Fedora Release Engineering - 1.79.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 1.79.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Sep 13 2017 Alexander Bokovoy - 1.79.2-6 +- Use non-recursive string.subst to allow building large documents like smb.conf.5 + +* Wed Jul 26 2017 Fedora Release Engineering - 1.79.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1.79.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Jan 03 2017 Ondrej Vasik - 1.79.2-3 +- keep old sourceforge entries at least temporarily (#1409587) + +* Mon Jan 02 2017 Ondrej Vasik - 1.79.2-2 +- update xmlcatalog entries to docbook.org cdn + +* Mon Jan 02 2017 Ondrej Vasik - 1.79.2-1 +- new upstream release 1.79.2 +- upstream moved to github + +* Fri Jul 08 2016 Ondrej Vasik - 1.79.1-1 +- new upstream release 1.79.1 + +* Wed Feb 03 2016 Fedora Release Engineering - 1.78.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 1.78.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1.78.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Mon Jul 29 2013 Ondrej Vasik 1.78.1-2 +- use DMIT (modified MIT) as a license for the + stylesheets (#988715) + +* Mon Mar 18 2013 Ondrej Vasik 1.78.1-1 +- new upstream release 1.78.1 + +* Wed Feb 13 2013 Fedora Release Engineering - 1.78.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Dec 20 2012 Ondrej Vasik 1.78.0-1 +- new upstream release 1.78.0 + +* Wed Jul 18 2012 Fedora Release Engineering - 1.77.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue Jun 5 2012 Ondrej Vasik 1.77.1-2 +- ship VERSION.xsl file (#829014) + +* Tue Jun 5 2012 Ondrej Vasik 1.77.1-1 +- new stable upstream release 1.77.1 +- defuzz patches + +* Fri Jan 13 2012 Fedora Release Engineering - 1.76.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Sep 6 2011 Ondrej Vasik 1.76.1-4 +- revert previous change, workaround the mandir links issue + in buildroot (#727251) + +* Mon Aug 29 2011 Ondrej Vasik 1.76.1-3 +- make man.output.in.separate.dir "on" by default (#727251) + +* Tue Feb 08 2011 Fedora Release Engineering - 1.76.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Nov 02 2010 Ondrej Vasik 1.76.1-1 +- new upstream release 1.76.1 + +* Mon Sep 06 2010 Ondrej Vasik 1.76.0-1 +- new upstream release 1.76.0 + +* Tue May 04 2010 Ondrej Vasik 1.75.2-6 +- ship eclipse help stylesheets(#588613) + +* Fri Dec 18 2009 Ondrej Vasik 1.75.2-5 +- comment patches purpose +- License Copyright only + +* Fri Jul 24 2009 Fedora Release Engineering - 1.75.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Jul 23 2009 Ondrej Vasik 1.75.2-3 +- upstream changed changed doc tarball after release + (empty reference pdf file in old tarball) + +* Wed Jul 22 2009 Ondrej Vasik 1.75.2-2 +- upstream changed tarballs after release + +* Tue Jul 21 2009 Ondrej Vasik 1.75.2-1 +- New upstream release 1.75.2 + +* Thu May 28 2009 Ondrej Vasik 1.75.1-1 +- New upstream release 1.75.1 + +* Mon May 11 2009 Ondrej Vasik 1.75.0-1 +- New upstream release 1.75.0 +- update marginleft patch + +* Wed Mar 11 2009 Ondrej Vasik 1.74.3-1 +- New upstream release 1.74.3 + +* Tue Feb 24 2009 Fedora Release Engineering - 1.74.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Feb 23 2009 Ondrej Vasik 1.74.2-2 +- updated Makefile: do ship .svg images(#486849), xsl + stylesheets for website, xhtml-1_1, docbook -> epub + convertor + +* Fri Feb 20 2009 Ondrej Vasik 1.74.2-1 +- New upstream release 1.74.2 + +* Wed Feb 18 2009 Ondrej Vasik 1.74.1-1 +- New upstream release, removed included patches + +* Wed Feb 11 2009 Ondrej Vasik 1.74.0-7 +- fix broken varlistentry (#479683) + +* Mon Feb 02 2009 Ondrej Vasik 1.74.0-6 +- fix improper localization for rtl languages, thanks + Muayyad Alsadi(#475077) + +* Wed Jan 28 2009 Ondrej Vasik 1.74.0-5 +- fix xsl stylesheets for rtl languages(#475077) + +* Fri Dec 12 2008 Ondrej Vasik 1.74.0-4 +- Author_Group "" merged between "" + and "" (#473019) + +* Wed Aug 06 2008 Kamil Dudka 1.74.0-3 +- Rediffed all patches to work with patch --fuzz=0 + +* Wed Aug 06 2008 Kamil Dudka 1.74.0-2 +- Tiny changes in docbook-xsl-newmethods.patch to work with xalan + (#452867) + +* Tue Jun 03 2008 Ondrej Vasik 1.74.0-1 +- New upstream release 1.74.0, adapted patches + +* Fri Dec 14 2007 Ondrej Vasik 1.73.2-9 +- added fixes for passivetex extension and list-item-body + (#161371) + +* Tue Dec 11 2007 Ondrej Vasik 1.73.2-8 +- remove entries from xmlcatalog only on removal of package + (required because of the change with droping release + -caused drop of catalog entries during update) + +* Tue Dec 04 2007 Ondrej Vasik 1.73.2-7 +- change a few non-constant expressions to constant that + could now be handled by passivetex(#366441) + +* Mon Dec 03 2007 Ondrej Vasik 1.73.2-6 +- fixed docbook-xsl-pagesetup.patch to follow Norman Walsh's + documentation for nonpassivetex processing(#307001) + +* Tue Nov 27 2007 Ondrej Vasik 1.73.2-5 +- convert all html files in doc to UTF-8 in prep + (latest rpmlint gives warnings) +- no longer using release in style-xsl dir(#389231) + +* Tue Nov 06 2007 Ondrej Vasik 1.73.2-4 +- Merge review(#225704) +- spec file modified to follow guidelines + +* Wed Oct 24 2007 Ondrej Vasik 1.73.2-3 +- rpmlint check +- fixed License Tag, Requires and some cosmetic issues + +* Fri Sep 7 2007 Ondrej Vasik 1.73.2-2 +- Added PreReq of libxml2(#253962) + +* Wed Sep 5 2007 Ondrej Vasik 1.73.2-1 +- new upstream version + +* Thu Aug 30 2007 Ondrej Vasik 1.73.1-2 +- removed patch for #249294(included in new version other way) + +* Wed Aug 29 2007 Ondrej Vasik 1.73.1-1 +- new upstream version(fixing some bugs) +- small new-methods patch change + +* Mon Jul 23 2007 Ondrej Vasik 1.73.0-2 +- fixed manpages/docbook.xsl failure(Tim Waugh,#249294) + +* Mon Jul 23 2007 Ondrej Vasik 1.73.0-1 +- update to latest upstream version +- patch changes because of rejects + +* Mon Jun 18 2007 Ondrej Vasik 1.72.0-3 +- patch fixing #161619 taken from upstream + +* Wed Jan 24 2007 Tomas Mraz 1.72.0-2 +- Install missing *.ent from common. + +* Tue Jan 23 2007 Tim Waugh 1.72.0-1 +- 1.72.0. + +* Fri Jan 19 2007 Tomas Mraz 1.71.1-2 +- Add new wordml and especially highlighting (which is referenced + from html) subdirs to Makefile. + +* Fri Jan 19 2007 Tim Waugh 1.71.1-1 +- 1.71.1. No longer seem to need lists patch. Removed out of date sp + patch. + +* Wed Jul 12 2006 Jesse Keating - 1.69.1-5.1 +- rebuild + +* Tue Jan 24 2006 Tim Waugh 1.69.1-5 +- Don't ship docsrc/* (bug #177256). +- Don't ship the extensions (bug #177256). + +* Thu Jan 19 2006 Tim Waugh 1.69.1-4 +- Better 'lists' patch (bug #161371). + +* Thu Jan 19 2006 Tim Waugh 1.69.1-3 +- Apply patch to fix simpara manpage output, which asciidoc tends to use + (bug #175592). + +* Tue Jan 3 2006 Tim Waugh 1.69.1-2 +- Patches from W. Michael Petullo: + - Fix lists blocking (bug #161371). + - Avoid proportional-column-width for passivetex (bug #176766). + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Fri Aug 12 2005 Tim Waugh 1.69.1-1 +- 1.69.1. + +* Mon Jul 18 2005 Tim Waugh 1.69.0-1 +- 1.69.0. + +* Mon Feb 14 2005 Tim Waugh 1.68.1-1 +- 1.68.1. + +* Wed Feb 9 2005 Tim Waugh 1.68.0-1 +- 1.68.0. + +* Wed Dec 8 2004 Tim Waugh 1.67.2-2 +- Prevent expressions in passivetex output from index.xsl (bug #142229). + +* Thu Dec 2 2004 Tim Waugh 1.67.2-1 +- 1.67.2. +- No longer need nbsp or listblock patches. + +* Mon Nov 22 2004 Tim Waugh 1.67.0-3 +- Avoid non-ASCII in generated man pages. + +* Wed Nov 10 2004 Tim Waugh 1.67.0-1 +- 1.67.0. + +* Tue Nov 2 2004 Tim Waugh 1.66.1-1 +- 1.66.1 (bug #133586). + +* Fri Jun 4 2004 Tim Waugh 1.65.1-2 +- Fix strange filenames (bug #125311). + +* Tue Mar 9 2004 Tim Waugh 1.65.1-1 +- 1.65.1. + +* Mon Mar 1 2004 Tim Waugh 1.65.0-1 +- 1.65.0. + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Tue Jan 20 2004 Tim Waugh 1.64.1-6 +- Fix last margin-left fix (bug #113456). +- Reduce instances of itemized/ordered lists having misalignments. + +* Sun Jan 18 2004 Tim Waugh 1.64.1-5 +- And another (bug #113456). + +* Thu Jan 15 2004 Tim Waugh 1.64.1-4 +- Fixed another instance of bug #113456 in lists layout. + +* Wed Jan 14 2004 Tim Waugh 1.64.1-3 +- Hard-code the margin-left work around to expect passivetex (bug #113456). + +* Wed Dec 24 2003 Tim Waugh 1.64.1-2 +- Another manpage fix. + +* Fri Dec 19 2003 Tim Waugh 1.64.1-1 +- 1.64.1. + +* Thu Dec 18 2003 Tim Waugh 1.64.0-2 +- Another manpage fix. + +* Tue Dec 16 2003 Tim Waugh 1.64.0-1 +- 1.64.0. + +* Fri Dec 12 2003 Tim Waugh 1.62.4-3 +- Use the fr.xml from 1.62.1 (bug #111989). + +* Thu Dec 11 2003 Tim Waugh 1.62.4-2 +- Manpages fixes. + +* Thu Dec 11 2003 Tim Waugh 1.62.4-1 +- 1.62.4. +- No longer need hyphens patch. +- Avoid expressions in margin-left attributes, since passivetex does not + understand them. + +* Fri Jul 4 2003 Tim Waugh 1.61.2-2.1 +- Rebuilt. + +* Fri Jul 4 2003 Tim Waugh 1.61.2-2 +- Rebuilt. + +* Fri May 23 2003 Tim Waugh 1.61.2-1 +- 1.61.2. + +* Sun May 18 2003 Tim Waugh 1.61.1-1 +- 1.61.1. + +* Fri May 9 2003 Tim Waugh 1.61.0-1 +- Prevent hyphenation-character confusing passivetex. +- 1.61.0. + +* Thu Mar 6 2003 Tim Waugh 1.60.1-1 +- 1.60.1. + +* Wed Jan 22 2003 Tim Powers +- rebuilt + +* Mon Dec 2 2002 Tim Waugh 1.58.1-1 +- 1.58.1. +- No longer need marker patch. + +* Mon Nov 4 2002 Tim Waugh 1.57.0-2 +- Ship profiling directory (bug #77191). + +* Tue Oct 22 2002 Tim Waugh 1.57.0-1 +- 1.57.0. + +* Wed Oct 16 2002 Tim Waugh 1.56.1-1 +- 1.56.1. +- Use value-of not copy-of for fo:marker content. +- Conflict with passivetex < 1.21. + +* Fri Jun 21 2002 Tim Powers +- automated rebuild + +* Thu May 23 2002 Tim Powers +- automated rebuild + +* Wed May 1 2002 Tim Waugh 1.50.0-1 +- 1.50.0. + +* Thu Feb 21 2002 Tim Waugh 1.49-1 +- 1.49. +- Rebuild in new environment. + +* Fri Feb 1 2002 Tim Waugh 1.48-4 +- Put URIs instead of pathnames in the XML catalog. + +* Thu Jan 17 2002 Tim Waugh 1.48-3 +- Back to /usr/share/sgml. + +* Wed Jan 09 2002 Tim Powers 1.48-2 +- automated rebuild + +* Mon Jan 7 2002 Tim Waugh 1.48-1 +- 1.48. + +* Sat Dec 8 2001 Tim Waugh 1.47-2 +- Conflict with PassiveTeX before 1.11. + +* Tue Oct 16 2001 Tim Waugh 1.47-1 +- 1.47-experimental. + +* Tue Oct 9 2001 Tim Waugh 1.45-2 +- Fix unversioned symlink. + +* Mon Oct 8 2001 Tim Waugh 1.45-1 +- XML Catalog entries. +- Move files to /usr/share/xml. + +* Mon Oct 1 2001 Tim Waugh 1.45-0.1 +- 1.45. +- Built for Red Hat Linux. + +* Tue Jun 26 2001 Chris Runge +- 1.40 + +* Sat Jun 09 2001 Chris Runge +- added extensions and additional doc +- bin added to doc; the Perl files are for Win32 Perl and so need some + conversion first + +* Fri Jun 08 2001 Chris Runge +- Initial RPM (based on docbook-style-dsssl RPM) +- note: no catalog right now (I don't know how to do it; and not sure why + it is necessary) diff --git a/factory/packages/docbook-style-xsl/docbook-xsl-list-item-body.patch b/factory/packages/docbook-style-xsl/docbook-xsl-list-item-body.patch new file mode 100644 index 00000000..a3d3819f --- /dev/null +++ b/factory/packages/docbook-style-xsl/docbook-xsl-list-item-body.patch @@ -0,0 +1,110 @@ +diff -ruNp docbook-xsl-1.74.0.orig/fo/lists.xsl docbook-xsl-1.74.0/fo/lists.xsl +--- docbook-xsl-1.74.0.orig/fo/lists.xsl 2008-08-06 13:32:46.000000000 +0200 ++++ docbook-xsl-1.74.0/fo/lists.xsl 2008-08-06 13:41:27.000000000 +0200 +@@ -248,9 +248,17 @@ + + + +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -446,10 +454,18 @@ + + + +- +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -925,9 +941,17 @@ + + + +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -951,9 +975,17 @@ + + + +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -1141,9 +1173,17 @@ + + + +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + diff --git a/factory/packages/docbook-style-xsl/docbook-xsl-mandir.patch b/factory/packages/docbook-style-xsl/docbook-xsl-mandir.patch new file mode 100644 index 00000000..2e06b222 --- /dev/null +++ b/factory/packages/docbook-style-xsl/docbook-xsl-mandir.patch @@ -0,0 +1,19 @@ +diff -urNp docbook-xsl-1.76.1-orig/manpages/other.xsl docbook-xsl-1.76.1/manpages/other.xsl +--- docbook-xsl-1.76.1-orig/manpages/other.xsl 2010-08-27 05:14:52.000000000 +0200 ++++ docbook-xsl-1.76.1/manpages/other.xsl 2011-09-06 17:17:07.973737258 +0200 +@@ -595,7 +595,14 @@ manvolnum + Note: + (soelim stub) + +- ++ ++ ++ ++ ++ ++ ++ ++ + + + diff --git a/factory/packages/docbook-style-xsl/docbook-xsl-marginleft.patch b/factory/packages/docbook-style-xsl/docbook-xsl-marginleft.patch new file mode 100644 index 00000000..cb8d121b --- /dev/null +++ b/factory/packages/docbook-style-xsl/docbook-xsl-marginleft.patch @@ -0,0 +1,53 @@ +diff -urNp docbook-xsl-1.78.0-orig/fo/lists.xsl docbook-xsl-1.78.0/fo/lists.xsl +--- docbook-xsl-1.78.0-orig/fo/lists.xsl 2012-12-20 11:45:07.870679175 +0100 ++++ docbook-xsl-1.78.0/fo/lists.xsl 2012-12-20 11:55:31.440307881 +0100 +@@ -376,7 +376,7 @@ + + + +- ++ + + + +@@ -385,7 +385,7 @@ + + + +- em * 0.60 ++ em + + + +@@ -394,7 +394,7 @@ + + + +- em * 0.60 ++ em + + + +@@ -409,8 +409,6 @@ + 1em + + +- + +- + + + +diff -ruNp docbook-xsl-1.74.0.orig/fo/param.xsl docbook-xsl-1.74.0/fo/param.xsl +--- docbook-xsl-1.74.0.orig/fo/param.xsl 2008-06-02 01:06:18.000000000 +0200 ++++ docbook-xsl-1.74.0/fo/param.xsl 2008-08-06 13:32:46.000000000 +0200 +@@ -133,8 +133,8 @@ + + always + +- +- ++ ++ + false + + diff --git a/factory/packages/docbook-style-xsl/docbook-xsl-newmethods.patch b/factory/packages/docbook-style-xsl/docbook-xsl-newmethods.patch new file mode 100644 index 00000000..d5d4d842 --- /dev/null +++ b/factory/packages/docbook-style-xsl/docbook-xsl-newmethods.patch @@ -0,0 +1,394 @@ +diff -ruNp docbook-xsl-1.74.0.orig/html/docbook.xsl docbook-xsl-1.74.0/html/docbook.xsl +--- docbook-xsl-1.74.0.orig/html/docbook.xsl 2008-06-01 23:36:39.000000000 +0200 ++++ docbook-xsl-1.74.0/html/docbook.xsl 2008-08-06 13:37:35.000000000 +0200 +@@ -26,6 +26,7 @@ + + + ++ + + + +@@ -44,6 +45,7 @@ + + + ++ + + + +diff -ruNp docbook-xsl-1.74.0.orig/html/dtbl.xsl docbook-xsl-1.74.0/html/dtbl.xsl +--- docbook-xsl-1.74.0.orig/html/dtbl.xsl 1970-01-01 01:00:00.000000000 +0100 ++++ docbook-xsl-1.74.0/html/dtbl.xsl 2008-08-06 13:37:35.000000000 +0200 +@@ -0,0 +1,293 @@ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ " ++ ++ " is not a known unit. Applying scaling factor of 1 instead. ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ entering adjustColumnWidths( ++ ++ ++ ++ ) ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ total relative widths = ( ++ ++ ) ++ ++ ++ total absolute widths = ( ++ ++ ) ++ ++ ++ ++ ++ ++ ++ ++ all widths are absolute ++ ++ ++ ++ ++ ++ all widths are relative ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ result = ( ++ ++ ++ ++ ) ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ first.bad.column = ( ++ ++ ) ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ 1* ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ 0 ++ ++ ++ ++ ++ ++ ++ ++ ++ 0 ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ +diff -ruNp docbook-xsl-1.74.0.orig/html/table.xsl docbook-xsl-1.74.0/html/table.xsl +--- docbook-xsl-1.74.0.orig/html/table.xsl 2008-06-01 23:36:39.000000000 +0200 ++++ docbook-xsl-1.74.0/html/table.xsl 2008-08-06 13:37:35.000000000 +0200 +@@ -5,7 +5,8 @@ + xmlns:xtbl="xalan://com.nwalsh.xalan.Table" + xmlns:lxslt="http://xml.apache.org/xslt" + xmlns:ptbl="http://nwalsh.com/xslt/ext/xsltproc/python/Table" +- exclude-result-prefixes="doc stbl xtbl lxslt ptbl" ++ xmlns:dtbl="http://docbook.sourceforge.net/dtbl" ++ exclude-result-prefixes="doc stbl xtbl lxslt ptbl dtbl" + version='1.0'> + + +@@ -365,6 +366,9 @@ + + ++ ++ ++ + + + +@@ -389,6 +393,9 @@ + + ++ ++ ++ + + + +diff -ruNp docbook-xsl-1.74.0.orig/lib/dumpfragment.xsl docbook-xsl-1.74.0/lib/dumpfragment.xsl +--- docbook-xsl-1.74.0.orig/lib/dumpfragment.xsl 1970-01-01 01:00:00.000000000 +0100 ++++ docbook-xsl-1.74.0/lib/dumpfragment.xsl 2008-08-06 13:37:35.000000000 +0200 +@@ -0,0 +1,30 @@ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ =" ++ ++ " ++ ++ ++ ++ < ++ ++ > ++ ++ </ ++ > ++ ++ ++ +diff -urNp docbook-xsl-1.76.0-orig/html/param.xsl docbook-xsl-1.76.0/html/param.xsl +--- docbook-xsl-1.76.0-orig/html/param.xsl 2010-08-31 09:27:22.000000000 +0200 ++++ docbook-xsl-1.76.0/html/param.xsl 2010-09-06 11:01:07.916914161 +0200 +@@ -68,6 +68,7 @@ div.annotation-close { position: absolut + http://cdn.docbook.org/release/xsl/images/annot-close.png + http://cdn.docbook.org/release/xsl/images/annot-open.png + ++ + + http://cdn.docbook.org/release/xsl/script/AnchorPosition.js http://cdn.docbook.org/release/xsl/script/PopupWindow.js + diff --git a/factory/packages/docbook-style-xsl/docbook-xsl-non-constant-expressions.patch b/factory/packages/docbook-style-xsl/docbook-xsl-non-constant-expressions.patch new file mode 100644 index 00000000..0c3f6be7 --- /dev/null +++ b/factory/packages/docbook-style-xsl/docbook-xsl-non-constant-expressions.patch @@ -0,0 +1,25 @@ +diff -ruNp docbook-xsl-1.74.0.orig/fo/param.xsl docbook-xsl-1.74.0/fo/param.xsl +--- docbook-xsl-1.74.0.orig/fo/param.xsl 2008-08-06 13:32:46.000000000 +0200 ++++ docbook-xsl-1.74.0/fo/param.xsl 2008-08-06 13:38:36.000000000 +0200 +@@ -23,8 +23,8 @@ + always + always + +- +- ++ ++ + false + center + +@@ -334,8 +334,8 @@ set toc,title + bold + always + +- +- ++ ++ + 0pt + + diff --git a/factory/packages/docbook-style-xsl/docbook-xsl-pagesetup.patch b/factory/packages/docbook-style-xsl/docbook-xsl-pagesetup.patch new file mode 100644 index 00000000..2c9c62be --- /dev/null +++ b/factory/packages/docbook-style-xsl/docbook-xsl-pagesetup.patch @@ -0,0 +1,281 @@ +diff -ruNp docbook-xsl-1.74.0.orig/fo/pagesetup.xsl docbook-xsl-1.74.0/fo/pagesetup.xsl +--- docbook-xsl-1.74.0.orig/fo/pagesetup.xsl 2008-06-01 23:36:39.000000000 +0200 ++++ docbook-xsl-1.74.0/fo/pagesetup.xsl 2008-08-06 13:31:11.000000000 +0200 +@@ -1697,45 +1697,99 @@ + + + +- +- +- proportional-column-width( +- +- header +- +- +- +- +- +- ) +- +- +- +- +- proportional-column-width( +- +- header +- +- +- +- +- +- ) +- +- +- +- +- proportional-column-width( +- +- header +- +- +- +- +- +- ) +- +- ++ ++ ++ ++ ++ ++ header ++ ++ ++ ++ ++ ++ % ++ ++ ++ ++ ++ ++ ++ proportional-column-width( ++ ++ header ++ ++ ++ ++ ++ ++ ) ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ header ++ ++ ++ ++ ++ ++ % ++ ++ ++ ++ ++ ++ ++ proportional-column-width( ++ ++ header ++ ++ ++ ++ ++ ++ ) ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ header ++ ++ ++ ++ ++ ++ % ++ ++ ++ ++ ++ ++ ++ proportional-column-width( ++ ++ header ++ ++ ++ ++ ++ ++ ) ++ ++ ++ ++ + + + +@@ -2021,45 +2066,99 @@ + + + +- +- +- proportional-column-width( +- +- footer +- +- +- +- +- +- ) +- +- +- +- +- proportional-column-width( +- +- footer +- +- +- +- +- +- ) +- +- +- +- +- proportional-column-width( +- +- footer +- +- +- +- +- +- ) +- +- ++ ++ ++ ++ ++ ++ footer ++ ++ ++ ++ ++ ++ % ++ ++ ++ ++ ++ ++ ++ proportional-column-width( ++ ++ footer ++ ++ ++ ++ ++ ++ ) ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ footer ++ ++ ++ ++ ++ ++ % ++ ++ ++ ++ ++ ++ ++ proportional-column-width( ++ ++ footer ++ ++ ++ ++ ++ ++ ) ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ footer ++ ++ ++ ++ ++ ++ % ++ ++ ++ ++ ++ ++ ++ proportional-column-width( ++ ++ footer ++ ++ ++ ++ ++ ++ ) ++ ++ ++ ++ + + + diff --git a/factory/packages/docbook-utils/.factory-upstream.json b/factory/packages/docbook-utils/.factory-upstream.json new file mode 100644 index 00000000..66bdc2ca --- /dev/null +++ b/factory/packages/docbook-utils/.factory-upstream.json @@ -0,0 +1,13 @@ +{ + "imported_at": "2026-10-10T05:40:38+00:00", + "package": "docbook-utils", + "schema": 1, + "source": { + "chroot": "epel-10-x86_64", + "kind": "srpm", + "repository": "https://download.copr.fedorainfracloud.org/results/jreilly1821/c10s-gnome-50", + "srpm_checksum": "71aea6d776c59f3555d65f1e0ec60c1cdb2cc9c627f33b24ad22f9837975ea1c", + "srpm_checksum_type": "sha256", + "tree": "291e976028bd7e9a6abcdcf4198446c6933d58b5" + } +} diff --git a/factory/packages/docbook-utils/db2html b/factory/packages/docbook-utils/db2html new file mode 100755 index 00000000..ca94b823 --- /dev/null +++ b/factory/packages/docbook-utils/db2html @@ -0,0 +1,59 @@ +#! /bin/sh + +ADMON_GRAPHICS=/usr/share/sgml/docbook/dsssl-stylesheets/images/*.gif + +output=docbook2html-dir +skip=0 +dbdircleanup=1 +outputdone=0 +for arg in "$@" +do + if [ $skip -gt 0 ] + then + skip=$(($skip - 1)) + continue + fi + case $arg in + -h|--help|-v|--version) break + ;; + -n|--nostd|-u|--nochunks) ;; + -o|--output) outputdone=1 + ;; + + -*) skip=1 + ;; + *) dbdircleanup=0 + if [ ${outputdone} -eq 1 ]; + then + output="$(echo $arg | sed 's,\.sgml$,,;s,\.sgm$,,;s,\.xml,,')" + outputfile="$basename "$output"" + outputdone=2 + elif [ ${outputdone} -eq 2 ]; + then + outputfile="$(echo $arg | sed 's,\.sgml$,,;s,\.sgm$,,;s,\.xml,,' | \ + rev | cut -d'/' -f1 | rev)" + else + output="$(echo $arg | sed 's,\.sgml$,,;s,\.sgm$,,;s,\.xml,,')" + outputfile=$(basename "$output") + fi + ;; + esac +done + +if [ ${dbdircleanup} -eq 0 ]; +then + echo "Output is $output/$outputfile.html" +fi +if [ -d ${output} ] +then + rm -rf ${output}.junk + mv ${output} ${output}.junk +fi +mkdir ${output} +mkdir ${output}/stylesheet-images +cp ${ADMON_GRAPHICS} ${output}/stylesheet-images +jw -f docbook -b html -o ${output} "$@" +if [ ${dbdircleanup} -eq 1 ]; +then + rm -rf ${output} +fi diff --git a/factory/packages/docbook-utils/docbook-utils.spec b/factory/packages/docbook-utils/docbook-utils.spec new file mode 100644 index 00000000..966cf91c --- /dev/null +++ b/factory/packages/docbook-utils/docbook-utils.spec @@ -0,0 +1,570 @@ +Name: docbook-utils +Version: 0.6.15 +Release: 6%{?dist} + +Summary: Shell scripts for managing DocBook documents +URL: https://github.com/devexp-db/docbook-utils + +License: GPL-2.0-or-later + +Requires: docbook-style-dsssl >= 1.72 +Requires: docbook-dtds +Requires: perl-SGMLSpm >= 1.03ii +Requires: which grep gawk +Requires: text-www-browser + +# In the absence of an already-installed text-www-browser, prefer lynx +Suggests: lynx + +BuildRequires: perl-generators +BuildRequires: perl-SGMLSpm, openjade, docbook-style-dsssl +BuildRequires: make + +BuildArch: noarch +Source0: https://github.com/devexp-db/docbook-utils/releases/download/v%{version}/%{name}-%{version}.tar.xz +Source1: db2html +Source2: gdp-both.dsl +#We will ship newer version of docbook2man-spec.pl for better handling of docbook2man conversion +#You could check it at http://sourceforge.net/projects/docbook2x/ +Source3: docbook2man-spec.pl + +Obsoletes: stylesheets < %{version}-%{release} +Provides: stylesheets = %{version}-%{release} + +%description +This package contains scripts are for easy conversion from DocBook +files to other formats (for example, HTML, RTF, and PostScript), and +for comparing SGML files. + +%package pdf +Requires: texlive-jadetex >= 7 +Requires: docbook-utils = %{version} +Requires: tex(dvips) +Requires: texlive-collection-fontsrecommended +Requires: texlive-collection-formatsextra +License: GPL-1.0-or-later +Obsoletes: stylesheets-db2pdf <= %{version}-%{release} +Provides: stylesheets-db2pdf = %{version}-%{release} +Summary: A script for converting DocBook documents to PDF format +URL: http://sources.redhat.com/docbook-tools/ + +%description pdf +This package contains a script for converting DocBook documents to +PDF format. + +%prep +%setup -q + +%build +./configure --prefix=%{_prefix} --mandir=%{_mandir} --libdir=%{_libdir} +make %{?_smp_mflags} + +%install +export DESTDIR=$RPM_BUILD_ROOT +make install prefix=%{_prefix} mandir=%{_mandir} docdir=/tmp +for util in dvi html pdf ps rtf +do + ln -s docbook2$util $RPM_BUILD_ROOT%{_bindir}/db2$util + ln -s jw.1.gz $RPM_BUILD_ROOT/%{_mandir}/man1/db2$util.1 +done +ln -s jw.1.gz $RPM_BUILD_ROOT/%{_mandir}/man1/docbook2txt.1 +# db2html is not just a symlink, as it has to create the output directory +rm -f $RPM_BUILD_ROOT%{_bindir}/db2html +install -p -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/db2html +install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/utils-%{version}/docbook-utils.dsl +install -p -m 755 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/utils-%{version}/helpers/docbook2man-spec.pl + +rm -rf $RPM_BUILD_ROOT/tmp + +%files +%doc README COPYING TODO +%{_bindir}/jw +%{_bindir}/docbook2html +%{_bindir}/docbook2man +%{_bindir}/docbook2rtf +%{_bindir}/docbook2tex +%{_bindir}/docbook2texi +%{_bindir}/docbook2txt +%attr(0755,root,root) %{_bindir}/db2html +%{_bindir}/db2rtf +%{_bindir}/sgmldiff +%{_datadir}/sgml/docbook/utils-%{version} +%{_mandir}/*/db2dvi.* +%{_mandir}/*/db2html.* +%{_mandir}/*/db2ps.* +%{_mandir}/*/db2rtf.* +%{_mandir}/*/docbook2html.* +%{_mandir}/*/docbook2rtf.* +%{_mandir}/*/docbook2man.* +%{_mandir}/*/docbook2tex.* +%{_mandir}/*/docbook2texi.* +%{_mandir}/*/docbook2txt.* +%{_mandir}/*/jw.* +%{_mandir}/*/sgmldiff.* +%{_mandir}/*/*-spec.* + +%files pdf +%{_bindir}/docbook2pdf +%{_bindir}/docbook2dvi +%{_bindir}/docbook2ps +%{_bindir}/db2dvi +%{_bindir}/db2pdf +%{_bindir}/db2ps +%{_mandir}/*/db2pdf.* +%{_mandir}/*/docbook2pdf.* +%{_mandir}/*/docbook2dvi.* +%{_mandir}/*/docbook2ps.* + +%changelog +* Tue Feb 10 2026 Than Ngo - 0.6.15-6 +- Fix rhbz#2437555 - F44FailsToInstall + +* Fri Jan 16 2026 Fedora Release Engineering - 0.6.15-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Fri Jan 16 2026 Fedora Release Engineering - 0.6.15-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Wed Jul 23 2025 Fedora Release Engineering - 0.6.15-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Thu Jan 16 2025 Fedora Release Engineering - 0.6.15-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Wed Oct 9 2024 Ales Nezbeda - 0.6.15-1 +- Switch to an active upstream +- Remove patches as they are now upstream + +* Wed Jul 17 2024 Fedora Release Engineering - 0.6.14-62 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Mon Jun 17 2024 Miroslav Suchý - 0.6.14-61 +- convert license to SPDX + +* Wed Jan 24 2024 Fedora Release Engineering - 0.6.14-60 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 0.6.14-59 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Oct 23 2023 Ondrej Sloup - 0.6.14-58 +- Update license tag to the SPDX format + +* Wed Jul 19 2023 Fedora Release Engineering - 0.6.14-57 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jan 19 2023 Fedora Release Engineering - 0.6.14-56 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Jul 21 2022 Fedora Release Engineering - 0.6.14-55 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu Jan 20 2022 Fedora Release Engineering - 0.6.14-54 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Jul 21 2021 Fedora Release Engineering - 0.6.14-53 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 0.6.14-52 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Jan 18 2021 Kamil Dudka - 0.6.14-51 +- suggest lynx rather than elinks to satisfy text-www-browser + +* Mon Jul 27 2020 Fedora Release Engineering - 0.6.14-50 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jan 28 2020 Fedora Release Engineering - 0.6.14-49 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Jul 24 2019 Fedora Release Engineering - 0.6.14-48 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jan 31 2019 Fedora Release Engineering - 0.6.14-47 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jul 12 2018 Fedora Release Engineering - 0.6.14-46 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Mon Mar 12 2018 Ondrej Mosnáček - 0.6.14-45 +- Fix jadetex dependency + +* Wed Feb 07 2018 Fedora Release Engineering - 0.6.14-44 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 0.6.14-43 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 0.6.14-42 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Jul 01 2016 Stephen Gallagher - 0.6.14-41 +- Add "Suggests: elinks" to satisfy text-www-browser +- Resolves: rhbz#1310897 + +* Wed Feb 03 2016 Fedora Release Engineering - 0.6.14-40 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 0.6.14-39 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.6.14-38 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 0.6.14-37 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Jul 17 2013 Petr Pisar - 0.6.14-36 +- Perl 5.18 rebuild + +* Wed Feb 13 2013 Fedora Release Engineering - 0.6.14-35 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Dec 11 2012 Ondrej Vasik 0.6.14-34 +- fix the sgmlinclude patch (#797120) + +* Mon Nov 12 2012 Ondrej Vasik 0.6.14-33 +- add missing requires in pdf subpackage added due to texlive + update (#875344) + +* Wed Jul 18 2012 Fedora Release Engineering - 0.6.14-32 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Wed May 30 2012 Ondrej Vasik 0.6.14-31 +- fix escaping of double-quotes in docbook2man (#826139) +- fix the wrong format of C-style functions in docbook2man (#662869) +- fix stray .fi at the end of funcsynopsis section (#662869) + +* Fri Jan 13 2012 Fedora Release Engineering - 0.6.14-30 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Fri Nov 25 2011 Ondrej Vasik 0.6.14-29 +- improve handling of jw options in db2html,respect + --output (#756928) + +* Fri Nov 25 2011 Ondrej Vasik 0.6.14-28 +- cleanup output dir for empty db2html input (#756930) + +* Tue Feb 08 2011 Fedora Release Engineering - 0.6.14-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Oct 04 2010 Ondrej Vasik 0.6.14-26 +- fix autogenerated manpage header format(#639347) + +* Tue Sep 28 2010 Ondrej Vasik 0.6.14-25 +- make [[:space:]] class syntax compatible with new grep(#637594) + +* Mon May 31 2010 Ondrej Vasik 0.6.14-24 +- do not produce final echo, it causes some manpage noise + with new perl(#513271, #587012) + +* Tue Oct 27 2009 Ondrej Vasik 0.6.14-23 +- do not obsolete self + +* Mon Oct 12 2009 Ondrej Vasik 0.6.14-22 +- fix url in pdf subpackage + +* Wed Oct 07 2009 Ondrej Vasik 0.6.14-21 +- fix locale-based papersize selection (#527395) + +* Thu Aug 27 2009 Ondrej Vasik 0.6.14-20 +- provide symlink manpage for docbook2txt + +* Thu Aug 13 2009 Ondrej Vasik 0.6.14-19 +- add note about openjade limitation in rtf section of jw + manpage(#516942) + +* Fri Jul 24 2009 Ondrej Vasik 0.6.14-18 +- another quoted variable fixes for spaces in filenames +- use SGML_INCLUDE in man backend(upstream) +- change upstream URL to something useful +- escape dots and single quotes in column 1 in docbook2man-spec.pl + +* Mon Jun 29 2009 Ondrej Vasik 0.6.14-17 +- fix pdf subpackage requires(to match TeXLive2008 provides) + +* Tue Feb 24 2009 Fedora Release Engineering - 0.6.14-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Nov 28 2008 Ondrej Vasik 0.6.14-15 +- require grep,gawk, fix jw script to find SGML_BASE_DIR even + with grep with colors(#473278), finish funcsynopsis patch + drop + +* Mon Sep 08 2008 Ondrej Vasik 0.6-14-14 +- ship new version of docbook2man-spec.pl to avoid issues + with the old one +- dropped funcsynopsis patch - docbook2man-spec.pl from + tarball used no longer + +* Thu Nov 22 2007 Ondrej Vasik 0.6.14-13 +- fix of w3m params while converting to txt + +* Tue Nov 05 2007 Ondrej Vasik 0.6.14-12 +- Merge Review(#225705) +- corrected some other packaging guidelines issues + +* Thu Nov 01 2007 Ondrej Vasik 0.6.14-11 +- rpmlint check +- fixed: dist tag, summary ended with dot, license tag, + versioned provides/obsoletes + some cosmetic changes + +* Fri Oct 12 2007 Ondrej Vasik 0.6.14-10 +- generalized text browser requirement(#174566) + +* Tue Sep 18 2007 Ondrej Vasik 0.6.14-9 +- fixed typo in Source URL + +* Mon May 21 2007 Ondrej Vasik 0.6.14-8 +- Added more fixes for handling spaces in directory name +- SGML_FILE variable is factored out of SGML_ARGUMENTS +- (changes taken from upstream) + +* Tue Apr 24 2007 Petr Mejzlik 0.6.14-7 +- add missing dist tag, bump release + +* Tue Apr 24 2007 Petr Mejzlik 0.6.14-6 +- Fixed a minor bug in processing of (bug #217649) + +* Wed Jul 12 2006 Jesse Keating - 0.6.14-5.1 +- rebuild + +* Thu Mar 09 2006 Florian La Roche +- use 755 instead of 775 for /usr/bin/db2html + +* Thu Jan 5 2006 Tim Waugh 0.6.14-5 +- Move dvi and ps tools into pdf sub-package (bug #174897). + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Thu Aug 19 2004 Tim Waugh 0.6.14-4 +- Apply CVS patch to protect spaces in jw (bug #130329). + +* Tue Jun 15 2004 Elliot Lee +- rebuilt + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Wed Feb 11 2004 Tim Waugh 0.6.14-1 +- 0.6.14. +- All patches integrated. + +* Thu Nov 27 2003 Tim Waugh 0.6.13-9 +- Requires jadetex (bug #110755). + +* Thu Nov 27 2003 Tim Waugh 0.6.13-8 +- Build requires docbook-style-dsssl (bug #110754). + +* Tue Jun 10 2003 Tim Waugh 0.6.13-7 +- Fix manpage output: escape dots in column 1 (bug #97087). + +* Tue May 27 2003 Tim Waugh 0.6.13-6 +- Rebuild. + +* Fri May 23 2003 Tim Waugh 0.6.13-5 +- Build requires openjade. + +* Thu May 22 2003 Tim Waugh 0.6.13-4 +- Require elinks (bug #91472). + +* Thu May 1 2003 Tim Waugh 0.6.13-3 +- Move docbook2pdf man pages to pdf subpackage (bug #90041). + +* Wed Apr 30 2003 Elliot Lee 0.6.13-2 +- Add s/head -1/head -n 1/ patch to make ppc64 happy (among other things) + +* Mon Mar 17 2003 Tim Waugh 0.6.13-1 +- 0.6.13, fixing bug #86152. + +* Fri Feb 14 2003 Elliot Lee 0.6.12-6 +- tetex-dvips requirement should go on main package (not just pdf + subpackage) because docbook2ps requires dvips too. + +* Wed Feb 5 2003 Tim Waugh 0.6.12-5 +- Build requires perl-SGMLSpm (bug #83474). + +* Wed Jan 22 2003 Tim Powers 0.6.12-4 +- rebuilt + +* Mon Jan 13 2003 Tim Waugh 0.6.12-3 +- Fixes from CVS. + +* Tue Oct 22 2002 Tim Waugh 0.6.12-2 +- No longer need separate stylesheet for A4. +- Don't install files not packaged. + +* Wed Oct 16 2002 Tim Waugh 0.6.12-1 +- 0.6.12. + +* Thu Jun 27 2002 Tim Waugh 0.6.11-2 +- 0.6.11. + +* Fri Jun 21 2002 Tim Powers 0.6.10-5 +- automated rebuild + +* Sun May 26 2002 Tim Powers 0.6.10-4 +- automated rebuild + +* Mon May 20 2002 Tim Waugh 0.6.10-3 +- Improvements for man page output. + +* Fri May 3 2002 Tim Waugh 0.6.10-2 +- Don't define graphic-default-extension in the stylesheet---it messes + up PS+PDF output from the same source. + +* Wed May 1 2002 Tim Waugh 0.6.10-1 +- 0.6.10. +- No longer need automake files. +- No longer need '.', jw-custom, '@', pdf, nochunks, txt, '-o', manpage, + sdata, help, ol, '-V', sgml_xml, excl, link, pagesize, or texinputs + patches. + +* Fri Apr 12 2002 Tim Waugh 0.6.9-25 +- Turned off use-id-as-filename in gdp-both.dsl. + +* Fri Mar 22 2002 Tim Waugh 0.6.9-24 +- Pick up images from the right place (bug #61652). + +* Wed Mar 6 2002 Tim Waugh 0.6.9-23 +- Add URL tags, and provide: stylesheets and stylesheets-pdf (bug #60226). + +* Thu Feb 21 2002 Tim Waugh 0.6.9-22 +- Rebuild in new environment. + +* Tue Feb 5 2002 Tim Waugh 0.6.9-21 +- Edited the wrong file when making the patch.. fix breakage introduced + by trying to fix bug #58375. + +* Tue Feb 5 2002 Tim Waugh 0.6.9-20 +- Fix docbook frontend (bug #51478). +- Make the old db2html script understand the .xml filename extension + (bug #59194). +- Determine page size to use automatically from LC_PAPER (bug #58375). + +* Fri Jan 25 2002 Tim Waugh 0.6.9-19 +- Require the DocBook DTDs. + +* Tue Jan 22 2002 Tim Waugh 0.6.9-18 +- Fix bug #46913 again, since the last change broke it. + +* Sun Jan 20 2002 Tim Waugh 0.6.9-16 +- Several more fixes that will be in the next upstream version. + +* Sat Jan 19 2002 Tim Waugh 0.6.9-15 +- Support -V (bug #31518). + +* Wed Jan 09 2002 Tim Powers 0.6.9-14 +- automated rebuild + +* Wed Jan 9 2002 Tim Waugh 0.6.9-13 +- Fix generated man output for orderedlists. + +* Mon Dec 3 2001 Tim Waugh 0.6.9-12 +- Fix generated man output for funcprototypes with more than one + paramdef. + +* Wed Nov 28 2001 Tim Waugh 0.6.9-11 +- Rebuild to fix man pages (bug #56449). + +* Thu Nov 22 2001 Tim Waugh 0.6.9-10 +- Fix jw behaviour when executed with no parameter. +- Fix 'jw --help'. + +* Wed Nov 14 2001 Tim Waugh 0.6.9-9 +- Actually apply the patch that makes man backend understand −. +- Also don't redefine and for HTML output either. + +* Tue Nov 13 2001 Tim Waugh 0.6.9-8 +- Default stylesheet: and as rationale markers + probably isn't really appropriate for general use. +- Default stylesheet: larger top margin to make some RTF readers + happy (bug #56011). +- Make man backend understand −. +- Specfile cleanups (%%{_bindir}, %%{_docdir}). + +* Mon Nov 12 2001 Tim Waugh 0.6.9-7 +- The fix for bug #53546 broke '--dsl none'. Fix it. + +* Fri Nov 2 2001 Tim Waugh 0.6.9-6 +- Explicit synopsis for each docbook2[xxx] command in the jw man page. +- Clean up all temporary files in pdf backend. + +* Mon Oct 1 2001 Tim Waugh 0.6.9-5 +- Fix ADDRESS element output (bug #50605). + +* Fri Sep 28 2001 Tim Waugh 0.6.9-4 +- Adjust stylesheet so that it works with docbook-dsssl 1.72. +- Fix jw so that -o and -d can be used together (bug #53546). + +* Thu Sep 6 2001 Tim Waugh 0.6.9-3 +- Fix txt backend so that it works. +- Fix jw so that it uses the HTML stylesheet for text backends. +- Use links if lynx isn't available, in txt backend. + +* Mon Aug 13 2001 Tim Waugh 0.6.9-2 +- Larger bottom margin in gdp-both.dsl to fix RTF output (bug #49677). + +* Tue Jul 3 2001 Tim Waugh 0.6.9-1 +- 0.6.9. +- With --nochunks, send output to a file instead of stdout (bug #46913). + +* Mon Jun 4 2001 Tim Waugh 0.6.8-2 +- Make sure COPYING isn't installed as a symlink. + +* Mon May 21 2001 Tim Waugh 0.6.8-1 +- 0.6.8. + +* Mon May 21 2001 Tim Waugh 0.6-14 +- db2html: copy admon graphics to output directory (bug #40143). +- Require docbook-style-dsssl 1.64-2 for symbolic link used by db2html. +- db2html: handle arguments with spaces better. + +* Sat Mar 24 2001 Tim Waugh 0.6-13 +- Fix man pages (bug #32820). + +* Mon Mar 12 2001 Tim Waugh +- Fix argument parsing in docbook2xxx (bug #31518). +- Fix argument passing in db2html (bug #31520). +- Fix pdf generation (bug #31524). + +* Fri Feb 23 2001 Tim Waugh +- Allow the use of custom backends and frontends (bug #29067). + +* Fri Feb 16 2001 Tim Waugh +- Use gdp-both.dsl as the default stylesheet. + +* Mon Feb 12 2001 Tim Waugh +- REALLY only create output directory for db2html (duh). +- Handle filenames with dots in properly. + +* Sun Feb 11 2001 Tim Waugh +- Only create output directory for db2html (bug #27092). (docbook2html + does not create an output directory in the upstream version, but + the compatibility script has been made to do so.) + +* Mon Jan 22 2001 Tim Waugh +- Move the jadetex requirement to the -pdf subpackage. + +* Tue Jan 16 2001 Tim Waugh +- Put output files in new directory instead of current directory. + +* Mon Jan 15 2001 Tim Waugh +- Don't play so many macro games. +- Be sure to own utils directory. + +* Fri Jan 12 2001 Tim Waugh +- Split off docbook2pdf into subpackage for dependency reasons. + +* Mon Jan 08 2001 Tim Waugh +- Change group. +- Use %%{_mandir} and %%{_prefix}. +- db2* symlinks. +- Obsolete stylesheets (and -db2pdf). +- Change Copyright: to License:. +- Remove Packager: line. +- Reword description. + +* Mon Jan 08 2001 Tim Waugh +- Based on Eric Bischoff's new-trials packages. diff --git a/factory/packages/docbook-utils/docbook2man-spec.pl b/factory/packages/docbook-utils/docbook2man-spec.pl new file mode 100755 index 00000000..58939cb2 --- /dev/null +++ b/factory/packages/docbook-utils/docbook2man-spec.pl @@ -0,0 +1,1564 @@ +=head1 NAME + +docbook2man-spec.pl - convert DocBook RefEntries to Unix manpages + +=head1 SYNOPSIS + +The sgmlspl script from the SGMLSpm Perl module must be used to run +this script. Use it like this: + +nsgmls some-docbook-document.sgml | sgmlspl docbook2man-spec.pl + +See man page or included DocBook documentation for details. + +=head1 DESCRIPTION + +This is a sgmlspl spec file that produces Unix-style +man pages from DocBook RefEntry markup. + +=head1 COPYRIGHT + +Copyright (C) 1998-2001 Steve Cheng + +Copyright (C) 1999 Thomas Lockhart + +This program is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +You should have received a copy of the GNU General Public License along with +this program; see the file COPYING. If not, please write to the Free +Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + +=cut + +# $Id: docbook2man-spec.pl,v 1.11 2010/10/04 10:23:31 ovasik Exp $ + +use SGMLS; # Use the SGMLS package. +use SGMLS::Output; # Use stack-based output. +use SGMLS::Refs; + + +######################################################################## +# SGMLSPL script produced automatically by the script sgmlspl.pl +# +# Document Type: any, but processes only RefEntries +# Edited by: me :) +######################################################################## + + +$write_manpages = 0; +$blank_xrefs = 0; + +$default_sect = "1"; +$default_date = `date "+%d %B %Y"`; +$cite_numeral_only = 1; + +while (@ARGV) { + my $arg = shift @ARGV; + if ($arg eq "--section") { + $default_sect = shift @ARGV || die "$arg requires an argument\n"; + } elsif ($arg eq "--date") { + $default_date = shift @ARGV || die "$arg requires an argument\n"; + } elsif ($arg eq "--lowercase") { + $lowercase_names = 1; + } elsif ($arg eq "--preserve-case") { + $lowercase_names = 0; + } elsif ($arg eq "--cite-numeral-only") { + $cite_numeral_only = 1; + } elsif ($arg eq "--nocite-numeral-only") { + $cite_numeral_only = 0; + } elsif ($arg eq "--help") { + print "Usage: $0", + " [ --section