guidance needed for rebuilding an RPM

Stephen Gallagher sgallagh at redhat.com
Wed Mar 6 14:08:08 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed 06 Mar 2013 09:02:36 AM EST, Fulko Hew wrote:
> I need some help/guidance on how to re-build a (normally)
> distributed package (net-snmp) using the latest Fedora spec file,
> but using the latest (upstream git head) version of the source; or
> alternatively, the current Fedora version _with my_ fix applied.
> 
> You see, it may be some time before upstream 'officially' releases 
> the next version, let alone when Fedora (RHEL, SUSE, etc.) release 
> a new package too... but my production systems need the fixes now!
> 
> Who is the net-snmp package maintainer?
> 

Your best bet would be to open a Bugzilla ticket against the net-snmp
package with a pointer to the upstream patch that you want applied, as
well as reasoning why it's important to have it before the next
upstream release. Usually most packagers will apply the patch and
submit an update for Fedora.

If it's urgent for RHEL or SUSE, you should also contact your paid
support representative there and make a request that they release an
errata update.


That said, for applying a patch to the source locally, you probably
want to install the 'fedora-packager' package and then clone the
net-snmp build tree.

fedpkg clone net-snmp

Then you can modify the spec file in that directory, have it apply
your patch and then run

fedpkg local

which will build the package locally.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlE3TcgACgkQeiVVYja6o6PfxwCgoMiVpk/YbjN0pnKkbyK1RY+o
2+kAoKbucC2eE8M0dRj+jWsndiStIAMh
=GCSE
-----END PGP SIGNATURE-----


More information about the devel mailing list