From owner-freebsd-i386@FreeBSD.ORG Tue Apr 5 08:50:12 2005 Return-Path: Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 615A016A4CE for ; Tue, 5 Apr 2005 08:50:12 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B1E543D45 for ; Tue, 5 Apr 2005 08:50:12 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j358oCeS063963 for ; Tue, 5 Apr 2005 08:50:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j358oCW8063962; Tue, 5 Apr 2005 08:50:12 GMT (envelope-from gnats) Date: Tue, 5 Apr 2005 08:50:12 GMT Message-Id: <200504050850.j358oCW8063962@freefall.freebsd.org> To: freebsd-i386@FreeBSD.org From: Matteo Riondato Subject: Re: i386/74593 Installer installs the wrong version of linux_base X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Matteo Riondato List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2005 08:50:12 -0000 The following reply was made to PR i386/74593; it has been noted by GNATS. From: Matteo Riondato To: "Simon L. Nielsen" Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: i386/74593 Installer installs the wrong version of linux_base Date: Tue, 5 Apr 2005 10:41:48 +0200 On Mon, Apr 04, 2005 at 11:38:29PM +0200, Simon L. Nielsen wrote: > On 2005.04.03 20:30:13 +0000, Matteo Riondato wrote: > > > > The origin of the problem is the index_search function in > > src/usr.sbin/sysinstall/index.c, called from config.c:526 . > > =20 > > The search is done in a sorted INDEX so linux_base-6* comes before > > linux_base-7* (which is the "real" linux_base).=3D20 > > =20 > > Obviously this bug appears only when there are more than one package > > with the same basename. >=20 > This sounds very similar to a problem I had with the MTA selection > code. See: > http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.sbin/sysinstall/config.c#re= v1.224 Then this patch to src/usr.sbin/sysinstall/config.c can be used to solve this problem:=20 --- config.c.orig Tue Apr 5 10:34:32 2005 +++ config.c Tue Apr 5 10:34:45 2005 @@ -523,7 +523,7 @@ variable_set2(VAR_LINUX_ENABLE, "YES", 1); Mkdir("/compat/linux"); msgNotify("Installing Linux compatibility library..."); - i =3D package_add("linux_base");=20 + i =3D package_add("linux_base-7"); restorescr(w); return i; } Best Regards=20 --=20 Rionda aka Matteo Riondato Disinformato per default G.U.F.I. Staff Member (http://www.gufi.org) FreeSBIE Developer (http://www.freesbie.org)