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

please remove the dependency on gpm

    • None
    • Important
    • Patch
    • rhel-sst-cs-plumbers
    • ssg_core_services
    • None
    • None
    • None
    • None
    • None
    • All
    • None

      GPM is the daemon and library that provides support for using mouse on the Linux text console (/dev/tty1-...) . I believe that this functionality is very little used and it is not worth maintaining this package in RHEL. In order to remove GPM, we need to drop dependencies (build and runtime) on the GPM library. Please remove the dependency from the emacs package.

      Note that this only affects mouse support in Linux console (TERM=linux), not in graphical terminal emulators (xterm etc.)

      Here is a patch:

      diff --git a/emacs.spec b/emacs.spec
      index 1ec81a6..40faf40 100644
      --- a/emacs.spec
      +++ b/emacs.spec
      @@ -59,7 +59,6 @@ BuildRequires: m17n-lib-devel
       BuildRequires: libotf-devel
       BuildRequires: libselinux-devel
       BuildRequires: alsa-lib-devel
      -BuildRequires: gpm-devel
       BuildRequires: liblockfile-devel
       BuildRequires: libxml2-devel
       BuildRequires: autoconf
      

      (This is a minimal patch without any %if rhel .. conditionals).

      Note that the lucid and gtk3+ builds are already compiled with --with-gpm=no and the nox version detects during build that it should not use GPM if not present in the build environment:

      checking for gpm.h... no
      ...
        Does Emacs use -lgpm?                                   no
      

      although you can add --with-gpm=no also to this build to be more explicit.

      I verified that emacs builds with this change and mouse in XTerm continues to work.

              jmigacz@redhat.com Jacek Migacz
              rhn-support-pcahyna Pavel Cahyna
              Jacek Migacz Jacek Migacz
              qe-baseos-daemons qe-baseos-daemons
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: