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

Make the dependency on emacs optional in protobuf spec file

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • rhel-9.6
    • CentOS Stream 9
    • protobuf
    • protobuf-3.14.0-16.el9
    • None
    • Low
    • sst_kernel_tps
    • ssg_core_kernel
    • None
    • None
    • CentOS Stream
    • None
    • Requested
    • None
    • None

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

      I am trying to use the "bear" command (from the EPEL "bear" package) from a Red Hat Universal Base Image (RH UBI) container.

      Installing the package fails due to missing dependencies in RH UBI (c-ares & protobuf).

      I can recompile the packages from sources using the CentOS .spec files, but protobuf requires the emacs & emacs-filesystem packages. I would rather prefer to avoid recompiling emacs from source, because it pulls in a lot of dependencies which are also unavailable on RH UBI (e.g. X11-related libs).

      Please provide the package NVR for which bug is seen:

      protobuf-3.14.0-13.el9.x86_64

      How reproducible:

      Steps to reproduce
      Start an RH UBI container, e.g. `podman run -i --rm registry.access.redhat.com/ubi9/ubi`

      Download the SRPM for protobuf : `curl -O https://mirror.stream.centos.org/9-stream/AppStream/source/tree/Packages/protobuf-3.14.0-13.el9.src.rpm`

      Install the source RPM : `rpm i protobuf*.src.rpm`

      Attempt to rebuild the package with minimal dependencies : `rpm -ba --without=java --without=python ~/rpmbuild/SPECS/protobuf.spec`

      Expected results

      The package should build.

      Actual results
      ```

      [root@6cb3eb56467c SPECS]# rpmbuild -ba --without=python --without=java protobuf.spec 
      warning: line 202: Possible unexpanded macro in: Requires:       emacs-filesystem >= %{_emacs_version}
      setting SOURCE_DATE_EPOCH=1647993600
      error: Failed build dependencies:
          emacs is needed by protobuf-3.14.0-13.el9.x86_64
      ```

        1. protobuf.patch
          2 kB
          François Poirotte

            areber@redhat.com Adrian Reber
            francois.poirotte@c-s.fr François Poirotte (Inactive)
            Adrian Reber Adrian Reber
            bot rhel-cs-apps-subsystem-qe bot rhel-cs-apps-subsystem-qe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: