FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Redhat > Fedora Build System

 
 
LinkBack Thread Tools
 
Old 02-07-2008, 02:36 PM
Gary Thomas
 
Default Local packages

I'm trying to build a localized repository:
Fedora + Updates + Local Packages

Some of the local packages are derived from the mainline. I
make some [minor] changes to match my hardware (sadly, my
mods aren't suitable for pushing upstream). I want to keep
the version+revision pretty much intact so I know where the
package came from, etc. For example, I need to have a slightly
modified X server (uncommon hardware, yeah!). So, I started
with the package:
xorg-x11-server-1.3.0.0-40.fc8.src.rpm
I make my little change and rebuild, creating:
xorg-x11-server-1.3.0.0-40_AM.fc8.src.rpm
along with the desired binary packages.

I'm trying to run pungi to create a munged/tailored repository,
using the official versions of Fedora & Updates. Sadly, it
seems that the original package always seems to override the
one with my modifications, e.g.
xorg-x11-server-1.3.0.0-40.fc8.src.rpm
is chosen, even when both it and
xorg-x11-server-1.3.0.0-40_AM.fc8.src.rpm
are present.

Is there a way to set the version so that my package always
wins? That way, I can use the 100% official repositories as
the starting point and only have my little mods.

Thanks for any pointers

n.b. at the moment, I'm just pruning the packages I need to
change out of the official versions (local copies of course),
but this is tedious and fraught with error.

--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------

--
Fedora-buildsys-list mailing list
Fedora-buildsys-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list
 
Old 02-07-2008, 03:12 PM
Jesse Keating
 
Default Local packages

On Thu, 07 Feb 2008 08:36:23 -0700
Gary Thomas <gary@mlbassoc.com> wrote:

> I'm trying to run pungi to create a munged/tailored repository,
> using the official versions of Fedora & Updates. Sadly, it
> seems that the original package always seems to override the
> one with my modifications, e.g.
> xorg-x11-server-1.3.0.0-40.fc8.src.rpm
> is chosen, even when both it and
> xorg-x11-server-1.3.0.0-40_AM.fc8.src.rpm
> are present.
>
> Is there a way to set the version so that my package always
> wins? That way, I can use the 100% official repositories as
> the starting point and only have my little mods.

When you modify the package, just add a .1 after the %{?dist}
declaration.

In your case, if you use rpmdev-vercomp you'll see that contrary to
what you'd think, xorg-x11-server-1.3.0.0-40.fc8 is actually rpm newer
than xorg-x11-server-1.3.0.0-40_AM.fc8:

$ rpmdev-vercmp 0:1.3.0.0-40.fc8 0:1.3.0.0-40_AM.fc8
0:1.3.0.0-40.fc8 is newer

But with a simple '.1' at the end of %{?dist} you get a newer package:

[jkeating@lumos scripts]$ rpmdev-vercmp 0:1.3.0.0-40.fc8 0:1.3.0.0-40.fc8.1
0:1.3.0.0-40.fc8.1 is newer


--
All my bits are free, are yours?
--
Fedora-buildsys-list mailing list
Fedora-buildsys-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list
 
Old 02-07-2008, 03:25 PM
Gary Thomas
 
Default Local packages

Jesse Keating wrote:

On Thu, 07 Feb 2008 08:36:23 -0700
Gary Thomas <gary@mlbassoc.com> wrote:


I'm trying to run pungi to create a munged/tailored repository,
using the official versions of Fedora & Updates. Sadly, it
seems that the original package always seems to override the
one with my modifications, e.g.
xorg-x11-server-1.3.0.0-40.fc8.src.rpm
is chosen, even when both it and
xorg-x11-server-1.3.0.0-40_AM.fc8.src.rpm
are present.

Is there a way to set the version so that my package always
wins? That way, I can use the 100% official repositories as
the starting point and only have my little mods.


When you modify the package, just add a .1 after the %{?dist}
declaration.

In your case, if you use rpmdev-vercomp you'll see that contrary to
what you'd think, xorg-x11-server-1.3.0.0-40.fc8 is actually rpm newer
than xorg-x11-server-1.3.0.0-40_AM.fc8:

$ rpmdev-vercmp 0:1.3.0.0-40.fc8 0:1.3.0.0-40_AM.fc8
0:1.3.0.0-40.fc8 is newer

But with a simple '.1' at the end of %{?dist} you get a newer package:

[jkeating@lumos scripts]$ rpmdev-vercmp 0:1.3.0.0-40.fc8 0:1.3.0.0-40.fc8.1
0:1.3.0.0-40.fc8.1 is newer


Cool, thanks! 'rpmdev-vercmp' seems to be a very nice tool
to know about.

--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------

--
Fedora-buildsys-list mailing list
Fedora-buildsys-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list
 

Thread Tools




All times are GMT. The time now is 12:24 AM.

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