Bug 2221279 - cups source rpm doesn't actually build lspp support
Summary: cups source rpm doesn't actually build lspp support
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: cups
Version: 9.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Zdenek Dohnal
QA Contact: Petr Dancak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-07 18:09 UTC by Carlos Santos
Modified: 2023-07-18 12:54 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-161807 0 None None None 2023-07-07 18:10:03 UTC

Description Carlos Santos 2023-07-07 18:09:32 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.