[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: redhat_base-8.0p2
- To: ports_(_at_)_openbsd_(_dot_)_org
- Subject: Re: redhat_base-8.0p2
- From: Han Boetes <han_(_at_)_mijncomputer_(_dot_)_nl>
- Date: Sun, 14 Sep 2003 19:13:55 +0159
- Mail-followup-to: ports_(_at_)_openbsd_(_dot_)_org
Andrew Dalgleish <openbsd_(_at_)_ajd_(_dot_)_net_(_dot_)_au> wrote:
> On Sun, Sep 14, 2003 at 12:47:05PM +0000, Brad Brad wrote:
> > Hi, when building the redhat compat port on the 10/11 september snapshot i
> > get the following build error.
> [snip]
> > chroot
> > /usr/ports/emulators/redhat/base/w-redhat_base-8.0p2/fake-i386/usr/local/emul/redhat
> > /sbin/ldconfig
> > *** Error code 1 (ignored)
> [snip]
>
> As Thorsten points out, you need to
> sudo sysctl -w kern.emul.linux=1
>
> However, if you don't do this there is a worrying side effect:
> the 'chroot...ldconfig' step sets the system date back to 1970
Perhaps it would be nice if the port would check if the sysctl is set?
pre-install:
[ $(sysctl kern.emul.linux|cut -d' ' -f3) != 1 ] && \
echo "You have to enable the kern.emul.linux sysctl for this port" &&\
exit 1
Three lines of code and no more faq's.
# Han
--
http://www.xs4all.nl/~hanb/software
http://www.xs4all.nl/~hanb/documents/quotingguide.html
Visit your host, monkey.org