Skip to content

fix(zbar): drop GIR typelib/gir file listings from %files sections#15972

Open
dmcilvaney wants to merge 3 commits intomicrosoft:tomls/base/mainfrom
dmcilvaney:damcilva/4.0/pkg_fixes/zbar
Open

fix(zbar): drop GIR typelib/gir file listings from %files sections#15972
dmcilvaney wants to merge 3 commits intomicrosoft:tomls/base/mainfrom
dmcilvaney:damcilva/4.0/pkg_fixes/zbar

Conversation

@dmcilvaney
Copy link
Contributor

The zbar f43 spec lists ZBar-1.0.typelib and ZBar-1.0.gir in the zbar-gtk and zbar-gtk-devel subpackages, but those files are only generated when g-ir-scanner is present at build time. Since GLib 2.80, GObject Introspection tools were merged into the glib2 source tree, but the legacy g-ir-scanner binary still ships in the separate gobject-introspection package. The zbar spec never explicitly BuildRequires it — it only worked by accident via transitive deps that no longer pull it in.

Fedora hit the same FTBFS and removed the GIR file listings in rawhide: https://src.fedoraproject.org/rpms/zbar/c/a1e97927fd862a8ca777462155b54c4ee4176923

Apply four spec-search-replace overlays to remove the four affected lines, aligning with the upstream fix.

Tested: built locally, zbar-gtk RPM no longer lists typelib, zbar-gtk-devel no longer lists .gir, zbarimg --version works in mock.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a build failure in the zbar package by removing GObject Introspection (GIR) file listings from the spec's %files sections. Since GLib 2.80, g-ir-scanner was merged into glib2 but ships separately in gobject-introspection. The zbar spec never explicitly BuildRequires it, so typelib/gir files are no longer generated. This aligns with the upstream Fedora fix in rawhide.

Changes:

  • Move zbar from inline definition in components-full.toml to dedicated component file
  • Add four spec-search-replace overlays to remove typelib and .gir file listings from %files sections
  • Include comprehensive explanatory comments and upstream reference

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
base/comps/zbar/zbar.comp.toml New dedicated component file with overlays to remove GIR-related file listings that would cause FTBFS
base/comps/components-full.toml Remove inline zbar entry (moved to dedicated file)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

The zbar f43 spec lists ZBar-1.0.typelib and ZBar-1.0.gir in the
zbar-gtk and zbar-gtk-devel subpackages, but those files are only
generated when g-ir-scanner is present at build time. Since GLib 2.80,
GObject Introspection tools were merged into the glib2 source tree, but
the legacy g-ir-scanner binary still ships in the separate
gobject-introspection package. The zbar spec never explicitly
BuildRequires it — it only worked by accident via transitive deps that
no longer pull it in.

Fedora hit the same FTBFS and removed the GIR file listings in rawhide:
https://src.fedoraproject.org/rpms/zbar/c/a1e97927fd862a8ca777462155b54c4ee4176923

Apply four spec-search-replace overlays to remove the four affected
lines, aligning with the upstream fix.

Tested: built locally, zbar-gtk RPM no longer lists typelib,
zbar-gtk-devel no longer lists .gir, zbarimg --version works in mock.
@dmcilvaney dmcilvaney force-pushed the damcilva/4.0/pkg_fixes/zbar branch from 6d790f8 to dfc1df2 Compare February 25, 2026 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants