NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: emulators/suse100_base on NetBSD-5/[i386|amd64] broken?



On Tue, May 26, 2009 at 04:24:27PM +0200, Fredrik Pettai wrote:
> On May 13, 2009, at 7:47 PM, Fredrik Pettai wrote:
> >On May 1, 2009, at 11:42 AM, Thomas Klausner wrote:
> >>On Fri, May 01, 2009 at 01:26:39AM +0200, Fredrik Pettai wrote:
> >>># pkg_info | grep suse
> >>>suse_base-10.0nb5   Linux compatibility package
> >>>suse_compat-10.0nb3 Linux compatibility package with old shared
> >>>libraries
> >>>
> >>># sysctl emul.linux.kern.osrelease
> >>>emul.linux.kern.osrelease: 2.4.18
> 
> I've been testing the linux emulation a bit more, and found more  
> broken things with it in NetBSD 5.0 (at least from RC4) -> NetBSD  
> 5.99.11. /emul/linux{32}/proc is mounted as describe by  
> suse100{_32}_base MESSAGE file and /emul/linux{32}/etc/mtab exists (a  
> link pointing on /emul/linux{32}/proc/mounts, which looks fine.
> 
> One simple thing I've come across that doesn't work anymore is the / 
> emul/linux{32}/bin/df command, that fails on both i386/amd64 arch's.

Indeed, the emulation prefix handling was changed prior NetBSD 5.0,
and now symlinks cannot refer files outside the emulation root.

I've forgotten about it, but the attached patch should fix it.

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.
Index: emulators/suse100_base/INSTALL
===================================================================
RCS file: /cvsroot/pkgsrc/emulators/suse100_base/INSTALL,v
retrieving revision 1.8
diff -u -p -r1.8 INSTALL
--- emulators/suse100_base/INSTALL      23 Aug 2007 21:50:23 -0000      1.8
+++ emulators/suse100_base/INSTALL      26 May 2009 14:40:47 -0000
@@ -142,7 +145,7 @@ POST-INSTALL)
 
        # Make /etc/mtab usable for Linux programs.
        ${RM} -f ${EMULDIR}/etc/mtab
-       ${LN} -fs ${EMULDIR}/proc/mounts ${EMULDIR}/etc/mtab
+       ${LN} -fs /proc/mounts ${EMULDIR}/etc/mtab
 
        # Run any actions that require root privileges.
        ${TEST} ! -x ./+ROOT_ACTIONS ||


Home | Main Index | Thread Index | Old Index