Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Aug 2003 23:21:17 -0400 (EDT)
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        Bosko Milekic <bmilekic@technokratis.com>
Cc:        cvs-all@freebsd.org
Subject:   Re: cvs commit: src/usr.sbin/pkg_install/lib match.c
Message-ID:  <20030803231836.T567@shumai.marcuscom.com>
In-Reply-To: <20030803230334.GA23042@technokratis.com>
References:  <200308040302.h7432aiM066088@repoman.freebsd.org> <20030803230334.GA23042@technokratis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 3 Aug 2003, Bosko Milekic wrote:

>
> On Sun, Aug 03, 2003 at 08:02:36PM -0700, Bosko Milekic wrote:
> > bmilekic    2003/08/03 20:02:36 PDT
> >
> >   FreeBSD src repository
> >
> >   Modified files:
> >     usr.sbin/pkg_install/lib match.c
> >   Log:
> >   Backout 1.14, it seems to be causing problems with libxml build
> >   and I don't have time to investigate this code in much detail right
> >   now.
>
> 	It's actually not the libxml build, but one that depends on both
> 	libxml and libxml2.

Actually, it affects a bunch of similar builds.  Any port with has another
port with a similar name (e.g. gnome vs. gnome2 ports, any portname with a
portname-devel, etc.) will run into this problem.  What happens is that
the port to be checked passes its origin to the matchbyorigin() function,
then that origin's strlen is passed to strncmp.  Therefore, it only checks
at most the number of characters in the original origin (missing the 2,
-devel, -snap, etc.).

Thanks for backing this out, Bosko.

Joe

>
> >   Revision  Changes    Path
> >   1.15      +1 -1      src/usr.sbin/pkg_install/lib/match.c
> >
>
> --
> Bosko Milekic  *  bmilekic@technokratis.com  *  bmilekic@FreeBSD.org
> TECHNOkRATIS Consulting Services  *  http://www.technokratis.com/
> _______________________________________________
> cvs-src@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/cvs-src
> To unsubscribe, send any mail to "cvs-src-unsubscribe@freebsd.org"
>
>

PGP Key : http://www.marcuscom.com/pgp.asc



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030803231836.T567>