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

cups source rpm doesn't actually build lspp support on RHEL 9

    • cups-2.3.3op2-30.el9
    • None
    • Moderate
    • rhel-sst-cs-stacks
    • ssg_core_services
    • 25
    • 3
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:

      Building cups from the source RPM does not build the lspp support

      Version-Release number of selected component (if applicable):

      RHEL 9.2
      cups-2.3.3op2-16.el9.src.rpm

      How reproducible:

      Always

      Steps to Reproduce:

      $ sudo yum install yum-utils rpmdevtools gcc gcc-c++ make automake autoconf rpm-build
      $ sudo yumdownloader --downloaddir /tmp --source cups
      $ rpmdev-setuptree
      $ mkdir cups-2.3.3op2
      $ cd ~/rpmbuild/SOURCES/
      $ rpm2cpio /tmp/cups-2.3.3op2-16.el9.src.rpm | cpio -idm
      $ sudo yum install $(sed -n -e 's/^BuildRequires://p' cups.spec)
      $ rpmbuild -ba cups.spec
      $ grep WITH_LSPP ../BUILD/cups-2.3.3op2/config.h

      Actual results:

      cups is notconfigured with lspp support and config.h contains

      /* #undef WITH_LSPP */

      Expected results:

      cups should be configured with lspp support and config.h should contain

      #define WITH_LSPP 1

      Additional info:

      The problem happens because cups-lspp.patch adds this to the configure script:

      if test x"$enable_lspp" != xno; then
      case "$uname" in
      Linux)

      Since the "uname" environment variable is not set, the test always fails.

      The problem can be circumvented by building with

      $ env uname=Linux rpmbuild -ba cups.spe

      However, it seems like the provided cups-lspp.patch has not been updated to
      the RHEL9 baseline. Errors include the following:

      ipp.c:39:10: fatal error: selinux/flask.h: No such file or directory
      39 | #include <selinux/flask.h>

      ^~~~~~~~~~~~~~~~~
      compilation terminated.

              zdohnal@redhat.com Zdenek Dohnal
              rhn-support-casantos Carlos Santos
              Ganesh Naik
              Petr Dancak Petr Dancak
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: