Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-12941

RHEL9 Glib2 package has a backport mistake - breaks builds of some software

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • rhel-9.4
    • rhel-9.0.0.z, rhel-9.1.0.z, rhel-9.2.0.z, rhel-9.3.0, rhel-9.4
    • glib2
    • None
    • None
    • EasyFix
    • rhel-sst-display-desktop-foundation
    • ssg_display
    • 8
    • 9
    • None
    • False
    • Hide

      None

      Show
      None
    • No
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      Build createrepo_c 1.0

      Please provide the package NVR for which bug is seen:

      Any version since RHEL 9.0

      How reproducible: 100%

      Steps to reproduce

      1. Attempt to build createrepo_c 1.0.

      https://github.com/rpm-software-management/createrepo_c/pull/342#issuecomment-1667355328

      It will break because of a misplaced macro defining GLib 2.70 whereas RHEL 9 actually uses GLib 2.68

      The macro was backported by mistake in this MR https://gitlab.com/redhat/centos-stream/rpms/glib2/-/merge_requests/14#note_1601039317

      Expected results

      Should build successfully

      Actual results

      Fails due to mistaken expectations around what version of GLib2 is being presented, due to the incorrect macro definition

            [RHEL-12941] RHEL9 Glib2 package has a backport mistake - breaks builds of some software

            Michael, can you verify that this is the correct change to make to createrepo_c? https://github.com/rpm-software-management/createrepo_c/pull/390

            Daniel Alley added a comment - Michael, can you verify that this is the correct change to make to createrepo_c? https://github.com/rpm-software-management/createrepo_c/pull/390

            Hey, I originally planned to change this, but I've been thinking about this more and wound up changing my mind about this. GPowerProfileMonitor APIs should be treated as version 2.70 for the purposes of `GLIB_VERSION_MIN_REQUIRED` and `GLIB_VERSION_MAX_ALLOWED`. I think this should not be a problem for createrepo_c as long as you switch to using `GLIB_CHECK_VERSION`.

            Michael Catanzaro added a comment - Hey, I originally planned to change this, but I've been thinking about this more and wound up changing my mind about this. GPowerProfileMonitor APIs should be treated as version 2.70 for the purposes of `GLIB_VERSION_MIN_REQUIRED` and `GLIB_VERSION_MAX_ALLOWED`. I think this should not be a problem for createrepo_c as long as you switch to using `GLIB_CHECK_VERSION`.

              mcatanza@redhat.com Michael Catanzaro
              rhn-engineering-dalley Daniel Alley
              Michael Catanzaro Michael Catanzaro
              Tomas Pelka Tomas Pelka
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: