Re: Compile gforth on Cygwin

Anton Ertl <anton-8NJIiSa5LzB3ZGU3T6kWFyEcasqEdqbRs2V0tQ3P5b8@public.gmane.org>
Newsgroups gmane.comp.lang.forth.gforth
Message-ID <[email protected]>
On Sun, Apr 01, 2018 at 02:24:35PM +0200, Bernd Paysan wrote:
> All chcon errors are ignored one way or the other.  If MASSAGE_EXE is called 
> in a longer script line, with ($(MASSAGE_EXE $@ || true), otherwise with 
> preceeding - to that line. The latter results in an error message with 
> "(ignored)" afterwards.

Indeed, the last one looks as follows:

cd engine && make libgforth-itc OPT=-noll OPTDEFINES= OPTOBJECTS=dblsub.o
make[1]: Entering directory '/home/druffer/gforth/engine'
make[1]: 'libgforth-itc' is up to date.
make[1]: Leaving directory '/home/druffer/gforth/engine'
ln -s -f engine/libgforth-itc libgforth-itc
chcon -t unconfined_execmem_exec_t libgforth-itc
chcon: can't apply partial context to unlabeled file 'libgforth-itc'
Makefile:1243: recipe for target 'libgforth-itc' failed
make: [libgforth-itc] Error 1 (ignored)

> I'll change all those to the || true method, which does not list an error.

At least "make" does not report an error, the chcon still does, e.g.:

if test -z "-ll-reg"; then \
        for i in -ll-reg -noll-reg -ll -noll; do rm gforth${i}; make DOSTRIP=tru
+e optgforth OPT=$i && cp -p gforth${i} gforth-ll-reg && break; done; \
else \
        (cd engine && make DOSTRIP=true gforth-ll-reg ) && \
        cp -p engine/gforth-ll-reg gforth-ll-reg && \
        (chcon -t unconfined_execmem_exec_t gforth-ll-reg || true); \
        true; \
         make checkone check-nofast ENGINE=./engine/gforth-ll-reg; \
fi
make[3]: Entering directory '/home/druffer/gforth/engine'
make[3]: 'gforth-ll-reg' is up to date.
make[3]: Leaving directory '/home/druffer/gforth/engine'
chcon: can't apply partial context to unlabeled file 'gforth-ll-reg'

- anton
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.