FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Build System

LinkBack Thread Tools
Old 04-25-2012, 02:26 PM
Moray Henderson
Default Dist tag question

Hi again,

I've got Koji to build rpms - but the task is still failing with the message

GenericError: Unable to complete build: release mismatch (build: 2, rpm:

The different build steps are giving different results. My .spec file

Release: %{release}%{?dist}

and my build and srpm-build groups both contain redhat-release, which
resolves to centos-release-6-2.el6.centos.7.x86_64 and contains
/etc/rpm/macros.dist to set "%dist .el6".

However buildSRPMFromSCM results in

Building target platforms: x86_64
Building for target x86_64
Wrote: /builddir/build/SRPMS/mypackage-1.0-2.src.rpm

while buildArch also builds a srpm before the binary rpm:

Building target platforms: noarch
Building for target noarch
Wrote: /builddir/build/SRPMS/mypackage-1.0-2.el6.src.rpm

Building target platforms: noarch
Building for target noarch
Wrote: /builddir/build/RPMS/slspkg-1.0-2.el6.noarch.rpm

My Koji hub lists the build as "mypackage-1.0-2". If I get buildSRPMFromSCM
to use the dist macro, will the Koji hub pick up the right name? How do I
get buildSRPMFromSCM to do that?

"To err is human; to purr, feline."

buildsys mailing list

Thread Tools

All times are GMT. The time now is 04:38 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org