Re: Kernel rpm versioning changes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Fedora-kernel-list mailing list
Fedora-kernel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-kernel-list

[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux