Rebuilding RPMs results in bad update behavior

Michael Schwendt mschwendt.tmp0701.nospam at arcor.de
Tue Jun 12 09:39:14 UTC 2007


On Tue, 12 Jun 2007 01:13:09 -0400, J French wrote:

> 
> 
> Matthew Miller wrote:
> > On Mon, Jun 11, 2007 at 11:33:29PM -0400, J French wrote:
> >> Now, when I go to rpm -Uvh the resulting rpm, I get "the installed 
> >> version is NEWER than this one". How in the world is this even possible? 
> >> So now, any packages I rebuild get marked as older than the binaries? 
> > 
> > echo '%dist .fc8.jfrench' >> ~/.rpmmacros
> Right, why should I have to do that?

Because you don't have the redhat-rpm-config package installed?

$ rpm --eval %dist
.fc7
$ rpm -qf /usr/lib/rpm/redhat/macros 
redhat-rpm-config-8.0.45-15.fc7

For many packages, this %dist macro is appended to the package release tag.
If undefined, the rebuilt package has a lower release tag.




More information about the fedora-devel-list mailing list