public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/cjs] rawhide: Add 'pkgconfig(girepository-2.0)' BuildRequires for GIRepository library
@ 2026-07-25 23:18 Michal Schorm
  0 siblings, 0 replies; only message in thread
From: Michal Schorm @ 2026-07-25 23:18 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/cjs
            Branch : rawhide
            Commit : edc846da21903202a467b6015a8434d69e2e7312
            Author : Michal Schorm <mschorm@redhat.com>
            Date   : 2026-07-26T00:50:06+02:00
            Stats  : +3/-3 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/cjs/c/edc846da21903202a467b6015a8434d69e2e7312?branch=rawhide

            Log:
            Add 'pkgconfig(girepository-2.0)' BuildRequires for GIRepository library

Since GLib 2.80, the GObject Introspection ecosystem is split across
two packages:

- 'glib2-devel' provides 'pkgconfig(girepository-2.0)' — the
  GIRepository library API that cjs links against.
  'meson.build' line 145: dependency('girepository-2.0')
  https://github.com/linuxmint/cjs/blob/140.0/meson.build#L145

- 'gobject-introspection-devel' provides
  'pkgconfig(gobject-introspection-1.0)' — the build tools
  ('g-ir-scanner', 'g-ir-compiler') that cjs needs to generate
  the 'GjsPrivate-1.0' typelib via gnome.generate_gir().
  'meson.build' line 594: gnome.generate_gir(libgjs, ...)
  https://github.com/linuxmint/cjs/blob/140.0/meson.build#L594

'glib2-devel' does NOT pull in 'gobject-introspection-devel', so
both BuildRequires are needed independently:
- 'pkgconfig(girepository-2.0)' for the library (new, added here)
- 'pkgconfig(gobject-introspection-1.0)' for the tools (existing,
  kept — but drop the stale '>= 1.66.0' version constraint and the
  now-unused '%{gobject_introspection_version}' macro)

Drop the stale '>= 1.66.0' version constraint from the runtime
Requires on 'gobject-introspection' — the soname-based auto-requires
already ensures the right version at install time.

Linux Mint 'debian/control' line 15: 'libgirepository-2.0-dev (>= 2.86.0-7~)'
https://github.com/linuxmint/cjs/blob/140.0/debian/control#L15

Co-Authored-By: Claude AI <noreply@anthropic.com>

---
diff --git a/cjs.spec b/cjs.spec
index c8f32e1..1d47f33 100644
--- a/cjs.spec
+++ b/cjs.spec
@@ -1,5 +1,4 @@
 %global glib2_version 2.86.0
-%global gobject_introspection_version 1.66.0
 %global gtk3_version 3.20
 %global mozjs140_version 140.6.0
 
@@ -20,7 +19,8 @@ BuildRequires: gettext
 BuildRequires: meson
 BuildRequires: pkgconfig(cairo-gobject)
 BuildRequires: pkgconfig(gio-2.0) >= %{glib2_version}
-BuildRequires: pkgconfig(gobject-introspection-1.0) >= %{gobject_introspection_version}
+BuildRequires: pkgconfig(girepository-2.0) >= %{glib2_version}
+BuildRequires: pkgconfig(gobject-introspection-1.0)
 BuildRequires: pkgconfig(gtk+-3.0) >= %{gtk3_version}
 BuildRequires: pkgconfig(mozjs-140) >= %{mozjs140_version}
 BuildRequires: pkgconfig(readline)
@@ -36,7 +36,7 @@ BuildRequires: mutter
 BuildRequires: xwayland-run
 
 Requires: glib2%{?_isa} >= %{glib2_version}
-Requires: gobject-introspection%{?_isa} >= %{gobject_introspection_version}
+Requires: gobject-introspection%{?_isa}
 Requires: gtk3%{?_isa} >= %{gtk3_version}
 Requires: mozjs140%{?_isa} >= %{mozjs140_version}
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-25 23:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-25 23:18 [rpms/cjs] rawhide: Add 'pkgconfig(girepository-2.0)' BuildRequires for GIRepository library Michal Schorm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox