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 1056802 - shared-mime-info is missing BuildRequires: gcc
Summary: shared-mime-info is missing BuildRequires: gcc
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: shared-mime-info
Version: 6.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Bastien Nocera
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-22 23:27 UTC by Kay Williams
Modified: 2014-01-28 15:47 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-27 08:59:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Kay Williams 2014-01-22 23:27:16 UTC
Description of problem:
Missing 'BuildRequires: gcc' in Specfile.

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

How reproducible:
Always

Steps to Reproduce:
Attempt to build without having gcc installed. :-)  
(We create a minimal environment for building rpms to keep things clean.)

Comment 2 Bastien Nocera 2014-01-27 08:59:59 UTC
This is part of the build essentials you need installed on your system before compiling packages.

If you want to "keep things clean" I would suggest that you use something like "mock" which will setup the compilation environment in such a way that it will not conflict or interact with your runtime environment.

See: http://fedoraproject.org/wiki/Using_Mock_to_test_package_builds

Comment 3 Kay Williams 2014-01-27 16:38:23 UTC
Actually, I am using an alternative to mock, but our solution assumes that required packages are listed in the srpm.

I can add gcc to our solution, but I would hope to address this in a reliable way. Is there formal list of 'build essential' packages somewhere, or (even better) a meta package we can install that brings these in (not mock as it is overkill)? Perhaps the rpm-build package should list essentials?

Thanks for your help.

Comment 4 Bastien Nocera 2014-01-28 09:43:43 UTC
mock (or at least mock in koji) uses a custom yum group call @build to install the minimal deps.

This is the list of packages from an install:
DEBUG util.py:281:  Installing for group install "build":
DEBUG util.py:281:   bash                         x86_64    4.2.45-2.el7             build    996 k
DEBUG util.py:281:   bzip2                        x86_64    1.0.6-8.el7              build     52 k
DEBUG util.py:281:   coreutils                    x86_64    8.21-13.el7              build    3.3 M
DEBUG util.py:281:   cpio                         x86_64    2.11-20.el7              build    209 k
DEBUG util.py:281:   diffutils                    x86_64    3.3-2.el7                build    321 k
DEBUG util.py:281:   epel-release                 noarch    7-0.1                    build     12 k
DEBUG util.py:281:   findutils                    x86_64    1:4.5.11-1.el7           build    559 k
DEBUG util.py:281:   gawk                         x86_64    4.0.2-2.el7              build    866 k
DEBUG util.py:281:   gcc                          x86_64    4.8.2-3.el7              build     16 M
DEBUG util.py:281:   gcc-c++                      x86_64    4.8.2-3.el7              build    7.1 M
DEBUG util.py:281:   grep                         x86_64    2.14-4.el7               build    330 k
DEBUG util.py:281:   gzip                         x86_64    1.5-4.el7                build    128 k
DEBUG util.py:281:   info                         x86_64    5.1-1.el7                build    232 k
DEBUG util.py:281:   make                         x86_64    1:3.82-19.el7            build    419 k
DEBUG util.py:281:   patch                        x86_64    2.7.1-6.el7              build    109 k
DEBUG util.py:281:   redhat-release-everything    x86_64    7.0-0.6.el7              build     23 k
DEBUG util.py:281:   redhat-rpm-config            noarch    9.1.0-56.el7             build     75 k
DEBUG util.py:281:   rpm-build                    x86_64    4.11.1-9.el7             build    139 k
DEBUG util.py:281:   sed                          x86_64    4.2.2-2.el7              build    230 k
DEBUG util.py:281:   shadow-utils                 x86_64    2:4.1.5.1-9.el7          build    1.1 M
DEBUG util.py:281:   tar                          x86_64    2:1.26-26.el7            build    842 k
DEBUG util.py:281:   unzip                        x86_64    6.0-11.el7               build    166 k
DEBUG util.py:281:   which                        x86_64    2.20-5.el7               build     41 k
DEBUG util.py:281:   xz                           x86_64    5.1.2-5alpha.el7         build    199 k

A whole bunch of others are installed as dependency.

Comment 5 Kay Williams 2014-01-28 15:47:42 UTC
Got it. Thanks again.


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