NetBSD Problem Report #34817

From www@NetBSD.org  Sat Oct 14 20:28:48 2006
Return-Path: <www@NetBSD.org>
Received: by narn.NetBSD.org (Postfix, from userid 31301)
	id 8838763B86C; Sat, 14 Oct 2006 20:28:48 +0000 (UTC)
Message-Id: <20061014202848.8838763B86C@narn.NetBSD.org>
Date: Sat, 14 Oct 2006 20:28:48 +0000 (UTC)
From: peter.schuller@infidyne.com
Reply-To: peter.schuller@infidyne.com
To: gnats-bugs@NetBSD.org
Subject: [patch] emulators/suse100_base does not install on FreeBSD 6.1
X-Send-Pr-Version: www-1.0

>Number:         34817
>Category:       pkg
>Synopsis:       [patch] emulators/suse100_base does not install on FreeBSD 6.1
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-pkg-people
>State:          analyzed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 14 20:30:00 +0000 2006
>Closed-Date:    
>Last-Modified:  Sun Mar 27 18:35:07 +0000 2011
>Originator:     Peter Schuller
>Release:        
>Organization:
>Environment:
FreeBSD 6.1
>Description:
emulators/suse100_base does not install on modern (devfs using) FreeBSD:s as shown in:

http://distfiles.scode.org/bulk-build/reports/20061004.2238/emulators/suse100_base/.broken.html

In addition, once this is fixed, it still does not build because it uses ${BRANDELF}, which is not defined for the FreeBSD platform.
>How-To-Repeat:

>Fix:
This patch modifies the package to not even try to set up /dev in the linux emulation chroot:

http://distfiles.scode.org/pkgsrc/suse100_base-1.diff

It does not address the potential problems of other packages actually needing /dev to be properly set up.

The patch requires this patch to work:

http://distfiles.scode.org/pkgsrc/suse100_base-2-brandelf.diff

It patches mk/platform/FreeBSD.mk to define BRANDELF.

>Release-Note:

>Audit-Trail:
[20110327 shattered] edited Environment: field

From: Peter Schuller <peter.schuller@infidyne.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/34817: [patch] emulators/suse100_base does not install on FreeBSD 6.1
Date: Sat, 14 Oct 2006 22:34:08 +0200

 > It does not address the potential problems of other packages actually
 > needing /dev to be properly set up.

 To further clarify: I realize this is suboptimal, but the "correct" procedure 
 as far as I can tell, is to set up the system such that devfs is mounted on 
 that particular location on boot, aswell as mount it on package install.

 The FreeBSD equivalent of this package just informs the user of the potential 
 need to setup /dev, but does not attempt to do so. Even if there are packages 
 in pkgsrc that require this, it feels a bit aggressive for the package to 
 actually automate it, barring some pkgsrc-wide policy for how to handle this.

 Opinions?

 -- 
 / Peter Schuller, InfiDyne Technologies HB

 PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller@infidyne.com>'
 Key retrieval: Send an E-Mail to getpgpkey@scode.org
 E-Mail: peter.schuller@infidyne.com Web: http://www.scode.org

From: Juan RP <juan@xtrarom.org>
To: gnats-bugs@NetBSD.org
Cc: Peter Schuller <peter.schuller@infidyne.com>
Subject: Re: pkg/34817: [patch] emulators/suse100_base does not install on
 FreeBSD 6.1
Date: Sat, 14 Oct 2006 23:41:09 +0200

 On Sat, 14 Oct 2006 20:35:04 +0000 (UTC)
 Peter Schuller <peter.schuller@infidyne.com> wrote:

 > The following reply was made to PR pkg/34817; it has been noted by
 > GNATS.
 > 
 > From: Peter Schuller <peter.schuller@infidyne.com>
 > To: gnats-bugs@netbsd.org
 > Cc: 
 > Subject: Re: pkg/34817: [patch] emulators/suse100_base does not
 > install on FreeBSD 6.1 Date: Sat, 14 Oct 2006 22:34:08 +0200
 > 
 >  > It does not address the potential problems of other packages
 >  > actually needing /dev to be properly set up.
 >  
 >  To further clarify: I realize this is suboptimal, but the "correct"
 > procedure as far as I can tell, is to set up the system such that
 > devfs is mounted on that particular location on boot, aswell as mount
 > it on package install. 
 >  The FreeBSD equivalent of this package just informs the user of the
 > potential need to setup /dev, but does not attempt to do so. Even if
 > there are packages in pkgsrc that require this, it feels a bit
 > aggressive for the package to actually automate it, barring some
 > pkgsrc-wide policy for how to handle this. 
 >  Opinions?

 I remember I did something for FreeBSD and pkgsrc years ago, here
 it is:

 http://mail-index.netbsd.org/tech-pkg/2003/09/12/0001.html

 I don't see any problem with your patch, but I don't know where did you
 use brandelf. You'll have to run it on every linux binary to make it
 work.

From: Peter Schuller <peter.schuller@infidyne.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/34817: [patch] emulators/suse100_base does not install on FreeBSD 6.1
Date: Sat, 14 Oct 2006 23:50:54 +0200

 >  I remember I did something for FreeBSD and pkgsrc years ago, here
 >  it is:
 >
 >  http://mail-index.netbsd.org/tech-pkg/2003/09/12/0001.html

 Unless I am misstaken it does not address devfs issues. 2003... a while ago. 
 Was that intended for FreeBSD 4.x perhaps?

 >  I don't see any problem with your patch, but I don't know where did you
 >  use brandelf. You'll have to run it on every linux binary to make it
 >  work.

 Sorry - I did not mean my patch cared about brandelf, but the Makefile already  
 did previously:

 .if ${OPSYS} == "FreeBSD"
         ${BRANDELF} -t Linux ${EMULDIR}/sbin/ldconfig
 .endif 

 Not sure why it's being run on just that. Perhaps it is an obsolete left-over 
 operation from the past (which would explain why BRANDELF has disappeared)?

 -- 
 / Peter Schuller, InfiDyne Technologies HB

 PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller@infidyne.com>'
 Key retrieval: Send an E-Mail to getpgpkey@scode.org
 E-Mail: peter.schuller@infidyne.com Web: http://www.scode.org

Responsible-Changed-From-To: pkg-manager->freebsd-pkg-people
Responsible-Changed-By: cube@netbsd.org
Responsible-Changed-When: Sun, 15 Oct 2006 10:41:35 +0000
Responsible-Changed-Why:
FreeBSD-specific issue.


From: "Johnny C. Lam" <jlam@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/34817 CVS commit: pkgsrc/emulators
Date: Thu, 23 Aug 2007 21:50:23 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	jlam
 Date:		Thu Aug 23 21:50:23 UTC 2007

 Modified Files:
 	pkgsrc/emulators/suse100_base: INSTALL
 	pkgsrc/emulators/suse91_base: INSTALL

 Log Message:
 Only invoke MAKEDEV to create devices if that script exists (which
 doesn't on FreeBSD-6.x).

 This fixes PR pkg/34817 and PR pkg/36081.


 To generate a diff of this commit:
 cvs rdiff -r1.7 -r1.8 pkgsrc/emulators/suse100_base/INSTALL
 cvs rdiff -r1.6 -r1.7 pkgsrc/emulators/suse91_base/INSTALL

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->analyzed
State-Changed-By: jlam@netbsd.org
State-Changed-When: Thu, 23 Aug 2007 21:58:07 +0000
State-Changed-Why:
I've patched the suse*_base packages to not create /dev on FreeBSD, but
as the correct fix involves mounted devfs and such, I would need someone
with a FreeBSD system to tell me how such a thing is exactly done.  For
now, mark this PR as analyzed -- we're just waiting on a proposed fix.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.