[PKG-IRC-Maintainers] Bug#529823: inspircd: FTBFS against gnutls26 >= 2.7.x

Andreas Metzler ametzler at downhill.at.eu.org
Sat Jun 20 07:29:01 UTC 2009


On 2009-05-22 Robin Burchell <w00t at inspircd.org> wrote:
> Thanks Andreas.

> This has been filed upstream (ID 864 in our tracker) and hopefully we can
> have it resolved within a few weeks.
[...]

I see that http://www.inspircd.org/bugtrack/view_bug.php?bug_id=864 is
now marked as fixed, thanks.

I have a simple question regarding part of the bugfix:

-chomp($config{HAS_GNUTLS}   = `libgnutls-config --version 2>/dev/null | cut -c 1,2,3`); # GNUTLS Version.
+chomp($config{HAS_GNUTLS}   = `pkg-config --modversion gnutls 2>/dev/null | cut -c 1,2,3`); # GNUTLS Version.

What is the point of "cut -c 1,2,3"? Why do you drop the minor
revision, and if you do shouldn't you use "cut -d. -f 1,2" to properly
handle two-digit reviosion numbers? (Since gnutls has not yet used
something like 1.11.2 this has not yet had any effects.)

thanks, cu andreas


-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'





More information about the Pkg-irc-maintainers mailing list