Repository navigation
fix(publish): import libexif and ghostscript for libgphoto2 and libppd - #269
Merged
Merged
Conversation
Utah's image build installs from the published factory repository plus Hummingbird, and Fedora is not visible there. Two factory recipes had been resolving runtime dependencies from Fedora 44 in the build root: - libgphoto2 links libexif.so.12 and liblockdev.so.1 - libppd Requires ghostscript >= 10.0.0 (libcupsfilters also links libexif.so.12 and BuildRequires ghostscript) Import the Fedora Rawhide recipes for libexif (0.6.26) and ghostscript (10.08.0). Each Source0 is the upstream GitHub release, whose bytes match the SHA-512 in the imported `sources` file; the Fedora lookaside is a fallback only. lockdev is not imported. Fedora builds a 2011 alioth nightly snapshot pinned by MD5 only; alioth is gone, Debian dropped lockdev after jessie at 1.0.3, and no upstream serves those bytes. As ffmpeg did for libqrencode and openal (#249), libgphoto2 drops lockdev-devel and configures with --disable-lockdev --disable-ttylock. lockdev only locks legacy RS-232 camera ports. Trim ghostscript so libgs's runtime closure is Hummingbird plus the factory (lcms2, openjpeg). New bconds, each explained in the spec: - system_resources 0: ship the Resource/ fonts, CMaps and DroidSansFallback from the tarball instead of symlinking to (and Requiring) urw-base35-fonts, adobe-mappings-cmap/-pdf and google-droid-sans-fonts, none of which is in Hummingbird. License gains Apache-2.0, BSD-3-Clause and MIT for the bundled files. - system_jbig2dec_ijs 0: build the bundled jbig2dec and ijs; libjbig2dec and libijs are in neither repository. JBIG2 and the ijs device still work. - libpaper 0 (--without-libpaper): libpaper.so.2 is in neither repository, and CUPS passes the page size explicitly. - gtk 0 / x11 0 (--disable-gtk --without-x): the gsx viewer and X11 devices are unused, and they would put ghostscript, libppd and cups-filters behind gtk3 and libXt in the build order. - dvipdf 0: ghostscript-tools-dvipdf Requires texlive-dvips. The cups raster device, gs, libgs, fontutils, printing tools and docs stay. Stages: libexif 0; ghostscript 1 (git, lcms2, openjpeg). libgphoto2 now BuildRequires a factory libexif, so it gets stage 1 (gvfs stays at 3). libcupsfilters BuildRequires ghostscript and libexif, so it moves 0 -> 2, libppd 1 -> 3, and cups-filters and cups-browsed 2 -> 4. The recipe set grows from 397 to 399, so update the count assertions and docs/architecture.md, and record the printing closure in docs/skills/repeated-mistakes.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QMTLsnqW2jtz5QsNC3W3qv
hanthor
added a commit
that referenced
this pull request
Sep 26, 2026
#278) Utah's image build against d5455dc1 (utah #282) found two runtime gaps: - libcupsfilters links libpdfio.so.1 and nothing in the factory or Hummingbird provides it. Import Fedora Rawhide pdfio 1.6.5; Source0 is the upstream GitHub release (michaelrsweet/pdfio), whose bytes match the SHA-512 in the imported sources file, the lookaside a fallback, and the detached .sig comes from the lookaside and is checked by the spec's gpgverify. No stage: waves are solved from BuildRequires, which put it before libcupsfilters. Only libcupsfilters needs it: its devel Requires pkgconfig(pdfio); libppd and cups-filters reach pdfio only through it. - libgphoto2-2.5.33-4 still required liblockdev.so.1. #269 dropped lockdev at the same Release, the run that would have built it was cancelled, and the first state label then recorded the new recipe as published. Release 5 so it rebuilds. Recipe count 399 -> 400 in tests and docs. Claude-Session: https://claude.ai/code/session_01QMTLsnqW2jtz5QsNC3W3qv Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
23 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Utah's image build installs from the published factory repository plus Hummingbird. Fedora is not visible there. Two factory recipes had been getting runtime dependencies from Fedora 44 in the build root:
libexif.so.12andliblockdev.so.1.ghostscript >= 10.0.0.libcupsfiltersalso linkslibexif.so.12and BuildRequiresghostscript.Imported from Fedora Rawhide (2 recipes)
Each recipe was imported with
tools/import_rawhide.py. Each Source0 is the upstream release, and its bytes match the SHA-512 in the importedsourcesfile. The Fedora lookaside appears only infallback_urls.tools/source_pipeline.pyaccepts both.lockdev: not imported, disabled in libgphoto2 instead
No upstream serves lockdev's source:
lockdev-1.0.4.20111007git.tar.gz, and pins it by MD5 only.#249 made the same call for ffmpeg's libqrencode and openal. libgphoto2 therefore drops
lockdev-develand configures with--disable-lockdev --disable-ttylock. These flags stop configure from finding Fedora 44's lockdev-devel if something else pulls it into the root. lockdev only locks legacy RS-232 camera ports. USB and PTP/IP cameras never use it, and Fedora's flatpak build leaves it out the same way.Other options, if serial-port locking is wanted:
url, which breaks the source rule;tools/generated_sources.pyentry, but there is no pinned upstream input to generate it from.ghostscript trims
Fedora's spec has no switches for these, so I added bconds. Each one is off, and a comment in the spec says why. The runtime Requires of Fedora 44's
ghostscript,libgsand subpackages were checked against Hummingbird (dnf repoquery --repo public-hummingbird-x86_64-rpms) andpackages/.system_resourcesurw-base35-fonts,adobe-mappings-cmap(and-deprecated),adobe-mappings-pdf,google-droid-sans-fonts: none is in Hummingbird or the factoryResource/fonts, CMaps and DroidSansFallback that ship in the tarball, instead of symlinking to and Requiring the four data packages.Licensegains Apache-2.0, BSD-3-Clause and MIT for the bundled files.system_jbig2dec_ijslibjbig2dec.so.0,libijs-0.35.so: in neitherlibpaperlibpaper.so.2: in neither--without-libpaper. It only reads the default paper size from /etc/papersize, and CUPS passes the page size explicitly.gtk,x11--disable-gtk --without-x. Drops theghostscript-gtk(gsx) viewer and the X11 devices. Nothing in the Utah contract uses them, and they would put ghostscript, libppd and cups-filters behind gtk3 and libXt in the build order. RHEL builds--without-xtoo.dvipdftexlive-dvips: in neitherghostscript-tools-dvipdf.The rest stays:
ghostscript(gs, gsnd, ps2pdf and so on),libgswith the cups raster device,libgs-devel,-tools-fontutils,-tools-printing,-docand pdf2dsc.After the trims, libgs links glibc, cups-libs, fontconfig, freetype, libjpeg-turbo, libpng, libtiff and zlib-ng, all from Hummingbird, plus lcms2 and openjpeg from the factory. Fedora 44's libgs links neither libidn2 nor dbus, and Hummingbird has both anyway.
The runtime closures of libexif and lockdev in Fedora 44 are satisfied by Hummingbird: libexif needs only glibc; lockdev needs glibc, systemd and
group(lock)from setup.Stage bumps
The other factory consumers of libexif are gstreamer1-plugins-bad-free and localsearch, both already at stage 4. The waves are solved from BuildRequires anyway, so these numbers only keep the lock consistent.
Validation
quay.io/fedora/fedora:44withconfig/hummingbird.repo, every BuildRequires of ghostscript, libexif, libgphoto2 and libppd resolves. None needs a compat package or Rust crates, and ghostscript already builds with-std=gnu17.rpmspec -q/-Pwith the new bconds gives the expected subpackages and configure line.just checkpasses up to pytest, which is not installed on the host.uvx pytest tests -q: 616 passed.tools/source_pipeline.pyaccepts both sources.docs/architecture.md(89 of 399 recipes now carry a hand-assigned stage).docs/skills/repeated-mistakes.md§17 now includes ghostscript and libexif in the printing closure.🤖 Generated with Claude Code
https://claude.ai/code/session_01QMTLsnqW2jtz5QsNC3W3qv