Bug 1268267

Summary: Remove %{?_isa} from BuildRequires
Product: [Fedora] Fedora Reporter: Pavol Babinčák <pbabinca>
Component: boostAssignee: Jonathan Wakely <jwakely>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 23CC: dakingun, denis.arnaud_fedora, jwakely, me
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: boost-1.58.0-9.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1268268 (view as bug list) Environment:
Last Closed: 2015-12-09 20:49:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1268268    

Description Pavol Babinčák 2015-10-02 11:45:07 UTC
Description of problem:
Boost's spec file has %{?_isa} macros in BuildRequires. This breaks dependency resolving of compose for src architectures. And also yum-builddep call to get build dependencies.

Version-Release number of selected component (if applicable):
boost-1.58.0-8.fc23

How reproducible:
Always

Steps to Reproduce:
1. a) $ sudo yum-builddep boost
   OR
   b) $ sudo dnf builddep boost

Actual results:
Output of b):

    $ dnf builddep boost
    ...
    No matching package to install: 'bzip2-devel(armv7hl-32)'
    No matching package to install: 'libicu-devel(armv7hl-32)'
    No matching package to install: 'libstdc++-devel(armv7hl-32)'
    Package m4-1.4.17-8.fc23.x86_64 is already installed, skipping.
    No matching package to install: 'python-devel(armv7hl-32)'
    No matching package to install: 'python3-devel(armv7hl-32)'
    No matching package to install: 'zlib-devel(armv7hl-32)'
    Not all dependencies satisfied
    The downloaded packages were saved in cache till the next successful transaction.
    You can remove cached packages by executing 'dnf clean packages'.
    Error: Some packages could not be found.

Output of a) called on machine with F20:

    $ sudo yum-builddep boost
    …
    Getting requirements for boost-1.54.0-5.fc20.src
    Error: No Package found for bzip2-devel(armv7hl-32)
    Error: No Package found for libicu-devel(armv7hl-32)
    Error: No Package found for libstdc++-devel(armv7hl-32)
    Error: No Package found for python-devel(armv7hl-32)
    Error: No Package found for python3-devel(armv7hl-32)
    Error: No Package found for zlib-devel(armv7hl-32)


Expected results:
Build requires found and installed.

Additional info:
This is explicitly forbidden in packaging guidelines: https://fedoraproject.org/wiki/Packaging:Guidelines#BuildRequires_and_.25.7B_isa.7D

Comment 1 Jonathan Wakely 2015-11-24 12:18:50 UTC
It was added due to a merge review comment of the Fedora package:
https://bugzilla.redhat.com/show_bug.cgi?id=225622#c38

Was that comment wrong about adding it to BuildRequires or did the guidelines change?

Comment 2 Pavol Babinčák 2015-11-24 13:09:00 UTC
(In reply to Jonathan Wakely from comment #1)
> It was added due to a merge review comment of the Fedora package:
> https://bugzilla.redhat.com/show_bug.cgi?id=225622#c38
> 
> Was that comment wrong about adding it to BuildRequires or did the
> guidelines change?
Packaging guidelines have been enhanced about 3 years after that comment:

https://fedoraproject.org/w/index.php?title=Packaging:Guidelines&diff=341374&oldid=337561

Comment 3 Fedora Update System 2015-12-07 11:29:43 UTC
boost-1.58.0-9.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-83ec6b0171

Comment 4 Fedora Update System 2015-12-08 04:31:50 UTC
boost-1.58.0-9.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update boost'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-83ec6b0171

Comment 5 Fedora Update System 2015-12-09 20:49:28 UTC
boost-1.58.0-9.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.