From nobody@FreeBSD.org  Wed Dec  1 18:11:03 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3D83416A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  1 Dec 2004 18:11:03 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2D46543D48
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  1 Dec 2004 18:11:03 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id iB1IB3RK083411
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 1 Dec 2004 18:11:03 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id iB1IB32G083410;
	Wed, 1 Dec 2004 18:11:03 GMT
	(envelope-from nobody)
Message-Id: <200412011811.iB1IB32G083410@www.freebsd.org>
Date: Wed, 1 Dec 2004 18:11:03 GMT
From: hraghav <hraghav@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Installer installs the wrong version of linux_base 
X-Send-Pr-Version: www-2.3

>Number:         74593
>Category:       bin
>Synopsis:       [sysinstall] [patch] Installer installs the wrong version of linux_base
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-qa
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 01 18:20:26 GMT 2004
>Closed-Date:    Sun Aug 28 05:40:00 GMT 2005
>Last-Modified:  Sun Aug 28 05:40:00 GMT 2005
>Originator:     hraghav
>Release:        5.3-RELEASE
>Organization:
>Environment:
>Description:
When we install the 5.3 using the MINIINST image, at one point we're prompted for whether we need Linux Compatibility. Answering yes to this question, install linux_base-6.1.6 (RedHat Linux 6)instead of linux_base which is 7.x (RedHat Linux 7.1).

Netscape 7 port runs only in linux_base port. Pls. consider fixing the installer for future releases to install linux_base instead of linux_base-6.1.6.
>How-To-Repeat:
- Install FreeBSD 5.3-RELEASE
- Do a pkg_info | grep -i linux
>Fix:
      
>Release-Note:
>Audit-Trail:

From: Matteo Riondato <rionda@gufi.org>
To: bug-followup@freebsd.org
Cc: hraghav <hraghav@yahoo.com>
Subject: Re: i386/74593 Installer installs the wrong version of linux_base
Date: Sun, 3 Apr 2005 22:24:51 +0200

 --kPvmKZRaHW6UEX9w
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 The origin of the problem is the index_search function in
 src/usr.sbin/sysinstall/index.c, called from config.c:526 .
 
 The search is done in a sorted INDEX so linux_base-6* comes before
 linux_base-7* (which is the "real" linux_base).=20
 
 Obviously this bug appears only when there are more than one package
 with the same basename.
 
 Please note that in 5.3-RELEASE, only 2 packages of those included
 depended on linux_base-6.
 
 I'm going to try to fix this.
 Best Regards
 --=20
 Rionda aka Matteo Riondato
 Disinformato per default
 G.U.F.I. Staff Member (http://www.gufi.org)
 FreeSBIE Developer (http://www.freesbie.org)
 
 --kPvmKZRaHW6UEX9w
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.0 (FreeBSD)
 
 iD8DBQFCUFET2Mp4pR7Fa+wRAjlHAJ9dPmM2shzFgIekQjmlTL8SH2KNRACfcSio
 gnSQP9IiS2RVaPxq635hwvI=
 =MxkJ
 -----END PGP SIGNATURE-----
 
 --kPvmKZRaHW6UEX9w--

From: "Simon L. Nielsen" <simon@FreeBSD.org>
To: Matteo Riondato <rionda@gufi.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: i386/74593 Installer installs the wrong version of linux_base
Date: Mon, 4 Apr 2005 23:38:29 +0200

 --JlJsEFsx9RQyiX4C
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 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.
 
 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#rev1=
 =2E224
 
 --=20
 Simon L. Nielsen
 
 --JlJsEFsx9RQyiX4C
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.0 (FreeBSD)
 
 iD8DBQFCUbPVh9pcDSc1mlERAnUJAKDDS0G/Ew24gacKsgIHFu8q6NwRugCgm+bb
 nneKIV44PkeIPRvHzxZbdK0=
 =KCKN
 -----END PGP SIGNATURE-----
 
 --JlJsEFsx9RQyiX4C--

From: Matteo Riondato <rionda@gufi.org>
To: "Simon L. Nielsen" <simon@FreeBSD.org>
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)
Responsible-Changed-From-To: freebsd-i386->freebsd-qa 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Apr 12 00:39:55 GMT 2005 
Responsible-Changed-Why:  
Over to sysinstall maintainers. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=74593 
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Sun Aug 28 05:38:00 GMT 2005 
State-Changed-Why:  
A version of this patch that actually updated the default package to 
linux_base-8 was committed by jhb on Apr 12 2005. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=74593 
>Unformatted:
