Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
When installing httpd package and stating the httpd service on CentOS 8 we expect the welcome screen to correctly reflect that it was built for the CentOS platform.
We found down this problem in one of the recent builds[0]
where you can find the incorrect PLATFORM in the build log:
+ sed -i '/^#define PLATFORM/s/Unix/Red Hat Enterprise Linux 8/' os/unix/os.h
This only seems to affect the stream-httpd-2.4-rhel-8.9.0 branch as it uses the env var ${REDHAT_SUPPORT_PRODUCT} that resolves to "Red Hat Enterprise Linux 8" where c9s branch uses ${NAME} that resolves to "CentOS Stream"
[0] https://kojihub.stream.rdu2.redhat.com/koji/buildinfo?buildID=35572
[1] https://kojihub.stream.rdu2.redhat.com/kojifiles/packages/httpd/2.4.37/62.module_el8+597+3986b266/data/logs/x86_64/build.log
Version-Release number of selected component (if applicable):
httpd-2.4.37-62.module_el8+597+3986b266
How reproducible:
You can see the problem when running a scratch-build
Steps to Reproduce:
1. centpkg clone rpms/httpd --branch stream-httpd-2.4-rhel-8.9.0
2. cd httpd
3. centpkg scratch-build
Actual results:
httpd will be built with "sed -i '/^#define PLATFORM/s/Unix/Red Hat Enterprise Linux 8/' os/unix/os.h" applied
Expected results:
httpd will be built with "sed -i '/^#define PLATFORM/s/Unix/CentOS Stream/' os/unix/os.h" applied
Additional info:
To clarify, I know nothing has changed in this package. This was introduced a few months ago when we switch the c8s workflow.
If I compare this with the c9s package, it uses a different variable from /etc/os-release:
* c8s uses the REDHAT_SUPPORT_PRODUCT variable: https://gitlab.com/redhat/centos-stream/rpms/httpd/-/blob/stream-httpd-2.4-rhel-8.9.0/httpd.spec#L6
* c9s uses the NAME variable: https://gitlab.com/redhat/centos-stream/rpms/httpd/-/blob/c9s/httpd.spec?ref_type=heads#L6
For quick reference, here's what we have in /etc/os-release in c8s (c9s is the same except for the number):
NAME="CentOS Stream"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Stream 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"
Would switching c8s to use the NAME variable be an option that works for you? That way we'd have c8s and c9s consistent.
Nice, thanks!
Any chance we can get a c8s build soon? We can't release c8s now with the current build. Alternatively we could tag in the previous build temporarily so we could release other updates at least.
I am absolutely happy to roll in that change (just change to ${NAME} in the c8s branch) and build and push this all the way through the build system today if everyone is OK with that.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (httpd:2.4 bug fix and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2023:7018
Description of problem: When installing httpd package and stating the httpd service on CentOS 8 we expect the welcome screen to correctly reflect that it was built for the CentOS platform. We found down this problem in one of the recent builds[0] where you can find the incorrect PLATFORM in the build log: + sed -i '/^#define PLATFORM/s/Unix/Red Hat Enterprise Linux 8/' os/unix/os.h This only seems to affect the stream-httpd-2.4-rhel-8.9.0 branch as it uses the env var ${REDHAT_SUPPORT_PRODUCT} that resolves to "Red Hat Enterprise Linux 8" where c9s branch uses ${NAME} that resolves to "CentOS Stream" [0] https://kojihub.stream.rdu2.redhat.com/koji/buildinfo?buildID=35572 [1] https://kojihub.stream.rdu2.redhat.com/kojifiles/packages/httpd/2.4.37/62.module_el8+597+3986b266/data/logs/x86_64/build.log Version-Release number of selected component (if applicable): httpd-2.4.37-62.module_el8+597+3986b266 How reproducible: You can see the problem when running a scratch-build Steps to Reproduce: 1. centpkg clone rpms/httpd --branch stream-httpd-2.4-rhel-8.9.0 2. cd httpd 3. centpkg scratch-build Actual results: httpd will be built with "sed -i '/^#define PLATFORM/s/Unix/Red Hat Enterprise Linux 8/' os/unix/os.h" applied Expected results: httpd will be built with "sed -i '/^#define PLATFORM/s/Unix/CentOS Stream/' os/unix/os.h" applied Additional info: