i386/74593 Installer installs the wrong version of linux_base

Matteo Riondato rionda at gufi.org
Tue Apr 5 01:50:12 PDT 2005


The following reply was made to PR i386/74593; it has been noted by GNATS.

From: Matteo Riondato <rionda at gufi.org>
To: "Simon L. Nielsen" <simon at FreeBSD.org>
Cc: freebsd-gnats-submit at 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)


More information about the freebsd-i386 mailing list