Kernel rpm versioning changes

Dave Jones davej at redhat.com
Tue Jul 3 19:35:53 UTC 2007


On Tue, Jul 03, 2007 at 03:32:51PM -0400, Dave Jones wrote:
 > On Tue, Jul 03, 2007 at 12:26:06PM -0700, Roland McGrath wrote:
 >  > > On Tue, Jul 03, 2007 at 03:56:45PM -0300, Eduardo Habkost wrote:
 >  > >  > On Tue, Jul 03, 2007 at 11:52:00AM -0700, Roland McGrath wrote:
 >  > >  > > > It's non-obvious to me what %{?buildid} is, but it seems to
 >  > >  > > > auto-increment.
 >  > >  > > 
 >  > >  > > buildid is the "please set this to .me" one.  
 >  > >  > > fedora_build is the one to bump on commit.
 >  > >  > 
 >  > >  > Can't %{fedora_build} be set based on the $Revision$ keyword, to be
 >  > >  > incremented automatically on commit, just like %{specrelease} was
 >  > >  > auto-incremeted previously?
 >  > > 
 >  > > Yes, it can. With..
 >  > > 
 >  > > %define fedora_build %(R="$Revision: 1.3125 $"; RR="${R##: }"; echo %${RR%%?} | sed s/1\.//)
 >  > > 
 >  > > Which would yield..
 >  > > 
 >  > > kernel-2.6.22-0.3125.rc7.fc8
 >  > 
 >  > %define fedora_cvs_origin 3120
 >  > %define fedora_build %(R="$Revision: 1.3125 $"; R="${R%% \$}"; R="${R##: 1.}"; expr $R - %{fedora_cvs_origin})
 >  > 
 >  > Change fedora_cvs_origin to current $Revision$ s/1.// when you change sublevel.
 > 
 > I'm guessing the idea here is that it starts counting from 0 again each
 > time we rebase?  Sounds admirable, but it doesn't seem to work when I
 > try it with your change.

never mind, I got bitten by the 'thou shalt not comment out macros with #'
bug yet again.  I committed this change, thanks.

	Dave

-- 
http://www.codemonkey.org.uk




More information about the Fedora-kernel-list mailing list