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:
%_host is set to x86_64-unknown-linux-gnu in RHEL 6.1 in /usr/lib/rpm/macros
This results in many packages, when rebuilt, in being built incorrectly. For example:
grub rebuilds with:
/usr/share/grub/x86_64-unknown
where it should be
/usr/share/grub/x86_64-redhat
Also, a rebuild of the bash SRPM will produce this for the Machine Type:
echo ${BASH_VERSINFO[5]}
x86_64-unknown-linux-gnu
I know that a custom .rpmmacros can be used to set %_host to x86_64-redhat-linux-gnu for building x86_64 SRPMS ... but config.guess should also get the correct value by default without having to set it manually, otherwise it also has to be set in ./configure statements when building non SRPM items.
==================================================================
I think that %_host should be x86_64-redhat-linux-gnu instead of x86_64-unknown-linux-gnu on RHEL-6.1 ... that is the default behavior for other versions of RHEL (5.x and 4.x)
How reproducible:
Always
Steps to Reproduce:
1. Install RHEL-6.1 x86_64
2. Issue the command: rpm --eval "%_host"
Actual results:
x86_64-unknown-linux-gnu
Expected results:
x86_64-redhat-linux-gnu
The i386 build is also incorrect, in a different way.
_host i686-pc-linux-gnu
In all of the RHEL builds, the _host is:
_host i386-redhat-linux-gnu
Comment 5RHEL Program Management
2011-10-07 16:04:59 UTC
Since RHEL 6.2 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.
Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.
devel_ack ... I guess. The defaults are what config.guess upstream gives for RHEL/Fedora, so incorrect is in the eye of the beholder to some degree. But then, parts of the toolchain (at least gcc) is set for <arch>-redhat-linux and various packages expect it that way, and koji appears to override it to <arch>-redhat-linux-gnu anyway, so might as well have rpm defaults match what everything expects.
(In reply to comment #4)
> The i386 build is also incorrect, in a different way.
>
> _host i686-pc-linux-gnu
>
> In all of the RHEL builds, the _host is:
>
> _host i386-redhat-linux-gnu
Hi Panu,
do you plan to fix also what is described above? I'm asking because I'm preparing the test for this bug. Is this a bug at all?
(In reply to comment #9)
> Hi Panu,
>
> do you plan to fix also what is described above? I'm asking because I'm
> preparing the test for this bug. Is this a bug at all?
See comment #6, the "correct" value of these is in the eye of the beholder, i686-pc-linux-gnu and x86_64-unknown-linux-gnu are upstream config.guess values. But since there are various things in the distro that expect the <arch>-redhat-linux-gnu host we might as well "fix" rpm to always use those. Here's the Fedora "fix": http://pkgs.fedoraproject.org/cgit/rpm.git/commit/?id=4660edea189ee99d0aa80aee0461f472d00d8d76, probably the same thing will work for RHEL too.
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, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
http://rhn.redhat.com/errata/RHBA-2013-0461.html
Description of problem: %_host is set to x86_64-unknown-linux-gnu in RHEL 6.1 in /usr/lib/rpm/macros This results in many packages, when rebuilt, in being built incorrectly. For example: grub rebuilds with: /usr/share/grub/x86_64-unknown where it should be /usr/share/grub/x86_64-redhat Also, a rebuild of the bash SRPM will produce this for the Machine Type: echo ${BASH_VERSINFO[5]} x86_64-unknown-linux-gnu I know that a custom .rpmmacros can be used to set %_host to x86_64-redhat-linux-gnu for building x86_64 SRPMS ... but config.guess should also get the correct value by default without having to set it manually, otherwise it also has to be set in ./configure statements when building non SRPM items. ================================================================== I think that %_host should be x86_64-redhat-linux-gnu instead of x86_64-unknown-linux-gnu on RHEL-6.1 ... that is the default behavior for other versions of RHEL (5.x and 4.x) How reproducible: Always Steps to Reproduce: 1. Install RHEL-6.1 x86_64 2. Issue the command: rpm --eval "%_host" Actual results: x86_64-unknown-linux-gnu Expected results: x86_64-redhat-linux-gnu