fuel plugin builder can't build packages with arch specific binaries

Bug #1578852 reported by Alex Schultz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Alex Schultz
Mitaka
Won't Fix
High
Fuel Sustaining

Bug Description

When attempting to build a plugin that contained some arch specific binary, the fpb --build failed with the following error:

Processing files: fuel-plugin-kubernetes-1.0-1.0.0-1.noarch
Provides: fuel-plugin-kubernetes-1.0 = 1.0.0-1
Requires(interp): /bin/sh /bin/sh /bin/sh
Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Requires(pre): /bin/sh
Requires(post): /bin/sh
Requires(preun): /bin/sh
error: Arch dependent binaries in noarch package

RPM build errors:
    Arch dependent binaries in noarch package

Steps to reproduce:
1) attempt to build a plugin with arch specific binaries
2) get error

Expected results:
1) should compile

Actual results:
1) failure

Workaround:
Add '%define _binaries_in_noarch_packages_terminate_build 0' to the spec templates used by fpb

Tags: area-python
Maciej Relewicz (rlu)
tags: added: area-python
Changed in fuel:
importance: Undecided → High
assignee: nobody → Fuel Sustaining (fuel-sustaining-team)
milestone: none → 10.0
Maciej Relewicz (rlu)
Changed in fuel:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-plugins (master)

Fix proposed to branch: master
Review: https://review.openstack.org/320059

Changed in fuel:
assignee: Fuel Sustaining (fuel-sustaining-team) → Alex Schultz (alex-schultz)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-plugins (master)

Reviewed: https://review.openstack.org/320059
Committed: https://git.openstack.org/cgit/openstack/fuel-plugins/commit/?id=2d41ae9f4e3612bc360d1dcd45212651979a028a
Submitter: Jenkins
Branch: master

commit 2d41ae9f4e3612bc360d1dcd45212651979a028a
Author: Alex Schultz <email address hidden>
Date: Mon May 23 10:56:10 2016 -0600

    Ignore arch specific binaries in plugin

    This change tells rpmbuilder to not fail the build if arch specific
    binaries are included as part of the plugin. This is helpful if a
    plugin wants to include a binary and deploy it via puppet or some other
    method that will just copy the file.

    Change-Id: Ic3ca86671f0a107b47ab68a54938b6f4040c90b2
    Closes-Bug: #1578852

Changed in fuel:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.