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.
Bug 641739 - rpmbuild of grub on x86_64 require glibc-static.i686
Summary: rpmbuild of grub on x86_64 require glibc-static.i686
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: distribution
Version: 6.0
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: RHEL Program Management
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-10-10 21:00 UTC by Akemi Yagi
Modified: 2012-07-09 15:55 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 641411
Environment:
Last Closed: 2010-11-28 23:20:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 630171 1 None None None 2021-01-20 06:05:38 UTC

Internal Links: 630171

Description Akemi Yagi 2010-10-10 21:00:20 UTC
+++ This bug was initially created as a clone of Bug #641411 +++

Created attachment 452371 [details]
diff file of grub.spec

Description of problem: i do not know how to fix

Version-Release number of selected component (if applicable):
grub-0.97-64.fc13.x86_64

How reproducible: always

Steps to Reproduce:
1. rpmbuild -ba grub.spec
  
Actual results: it will fail in configure.

Comment 1 Akemi Yagi 2010-10-10 21:05:09 UTC
This is against grub-0.97-62.el6.src.rpm in RHEL 6 beta2. Problem is actually two-fold.

(1) grub.x86_64 spec needs Requires glibc-static.i386
(2) glibc-static.i386 is not available from the x86_64 repo. Note that glibc-static.x86_64 is in the optional repo.

Comment 3 Akemi Yagi 2010-10-10 21:19:39 UTC
Of course I meant BuildRequires.

Comment 4 Peter Jones 2010-10-12 17:45:32 UTC
This isn't something that's feasible to change at all in grub - we have to have a 32-bit glibc-static to build no matter what. If anything, this has to be fixed in the repo.

Comment 5 Gilles J. Seguin 2010-10-13 11:00:58 UTC
(In reply to comment #4)
> This isn't something that's feasible to change at all in grub - we have to have
> a 32-bit glibc-static to build no matter what. If anything, this has to be
> fixed in the repo.

you will have to rephrase your message
- my message is about requisting/changing grub.spec file, is this what you means by fixing the repo.
- my message is about adding something to grub.spec file, such that if for following command you have that result, obviously the build will fail.
rpm -q glibc-static.i686
package glibc-static is not installed

if "rpmbuild -bb grub.spec" command try to build the package, the spec file is missing dependency.

Now the fun is,
BuildRequires: glibc-static.i686
does not work, what i am missing ?

if i installed glibc-static.i686 the package will be build, but not before.

Comment 6 Akemi Yagi 2010-10-13 12:03:27 UTC
My observation is as follows:

System: RHEL 6beta2, x86_64
Source file is grub-0.97-62.el6.src.rpm from RHEL 6beta2
The spec file contains a line: BuildRequires: glibc-static

(1) When not using mock.

If you manually install glibc-static.i686 from the i686 beta-optional repo. grub builds fine. No modification to the spec file required.

(2) When using mock.

First, the missing glibc-static.i686 must be made available through a local repo in the mock cfg file.

Second, add this line to the spec file: BuildRequires: /usr/lib/libc.a

In summary, two actions are needed to successfully build grub on an x86_64 system. One is to add glibc-static.i686 to the *x86_64 repo*. The other is to add /usr/lib/libc.a as a BuildRequires.

Comment 7 Gilles J. Seguin 2010-10-14 17:20:00 UTC
(In reply to comment #6)
> [...]
> Second, add this line to the spec file: 

BuildRequires: /usr/lib/libc.a
 
> In summary, two actions are needed to successfully build grub on an x86_64
> system. One is to add glibc-static.i686 to the *x86_64 repo*. The other is to
> add /usr/lib/libc.a as a BuildRequires.

agree, solved also 641411
thanks for your time Akemi

Comment 8 Daniel Riek 2010-11-28 23:19:53 UTC
Unless I am missing the point here, this is not a RHEL bug: Optional includes build-requirements for RHEL that are not supported for production use. This one of the reasons for Optional.

So the appropriate solution appears to be making RHEL-Optional available for the mock build environment.

Comment 9 Akemi Yagi 2010-11-29 00:15:43 UTC
Sorry, I'm afraid you are missing one point. 

As described in comment 6, 'making RHEL-Optional available' is *not* sufficient to build grub.x86_64.  This is because glibc-static *i686* is required to build grub *x86_64* (please pay special attention to the arch).

The x86_64 optional repo includes a number of i686 files. However, glibc-static is x86_64 only, no i686. Therfore, the fix in this case is to add glibc-static.i686 to the x86_64 optional repo.

Comment 10 Anton Arapov 2011-07-21 11:43:10 UTC
hit same issue with bug 630171, glibc-static.i686 required for the compilation of the libhugetlbfs on x86_64 arch.

Comment 11 Johnny Hughes 2011-11-22 08:29:54 UTC
How is it NOTABUG that:

1) You do not have glibc-static.i686 in the x86_64 repo and it is required to build several packages.

2) You do not have a require defined for glibc-static.i686 in the grub SPEC filer for building the grub.x86_64.

Both of those ARE_TOO_A_BUG !

Comment 12 Akemi Yagi 2011-12-09 01:42:43 UTC
As of RHEL 6.2, glibc-static.i686 is available in the x86_64 optional repository.


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