[pacman-dev] makepkg bug with epoch code
Dave Reisner
d at falconindy.com
Wed Feb 9 07:02:49 EST 2011
On Wed, Feb 09, 2011 at 08:52:55PM +1000, Allan McRae wrote:
> Have not had time to look into this, but I get this error with the
> kernel26 PKGBUILD in Arch Linux [core] repo:
>
> > makepkg -gc
> ==> Retrieving Sources...
> -> Found linux-2.6.37.tar.bz2
> -> Found patch-2.6.37-4-ARCH.bz2
> -> Found config
> -> Found config.x86_64
> -> Found kernel26.preset
> ==> Generating checksums for source files...
>
> md5sums=('c8ee37b4fdccdb651e0603d35350b434'
> '732176aeb134678b4e369e1d5d5fca2e'
> 'cc49d27766f55df22f9cb78228880e78'
> '8f8059fa252e2f81b31be0c1bdbef123'
> '25584700a0a679542929c4bed31433b6')
> ==> Cleaning up...
> /usr/bin/makepkg: line 234: [[: 2.6.37: syntax error: invalid
> arithmetic operator (error token is ".6.37")
>
>
> Allan
>
>
epoch has its default initializer called on line 1862, but if -g is
specified, we're exiting (invoking clean_up where this happens) on line
1858 before this ever occurs. A simple fix would just be to move the
epoch initialization to right before the GENINTEG block on line 1852.
dave
More information about the pacman-dev
mailing list