Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Oct 2002 19:55:28 +0400 (MSD)
From:      Dmitry Morozovsky <marck@rinet.ru>
To:        "Michael R. Wayne" <wayne@staff.msen.com>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: 4.7:  buildworld succeeds, installworld fails
Message-ID:  <20021016195205.R12757-100000@woozle.rinet.ru>
In-Reply-To: <20021015130356.C92920@staff.msen.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 15 Oct 2002, Michael R. Wayne wrote:

MRW> On Tue, Oct 15, 2002 at 08:48:08AM -0400, Chris Faulhaber wrote:
MRW> > On Tue, Oct 15, 2002 at 08:39:06AM -0400, ender wrote:
MRW> > > [INSERT SOUND OF FOREHEAD HITTING TABLE HERE]
MRW> > >
MRW> > > Yes.  /tmp is mounted noexec.  *grumble*
MRW> > >
MRW>
MRW> How hard would it be to have the Makefile(s) check for this condition and
MRW> spew a meaningful reminder before aborting?

Possibly, something like this:

Index: Makefile.inc1
===================================================================
RCS file: /home/ncvs/src/Makefile.inc1,v
retrieving revision 1.141.2.56
diff -u -r1.141.2.56 Makefile.inc1
--- Makefile.inc1       30 Aug 2002 18:26:49 -0000      1.141.2.56
+++ Makefile.inc1       16 Oct 2002 15:51:45 -0000
@@ -366,6 +366,9 @@
            test true uname wc zic; do \
                cp `which $$prog` ${INSTALLTMP}; \
        done
+       ${INSTALLTMP}/true || \
+               ( echo "Can't exec ${INSTALLTMP}/true, possibly ${TMPDIR} mounted noexec?" && \
+               false )
        cd ${.CURDIR}; ${IMAKE} re${.TARGET:S/world$//}
        rm -rf ${INSTALLTMP}



Sincerely,
D.Marck                                   [DM5020, DM268-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021016195205.R12757-100000>