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

Re: redhat_base-8.0p2



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