Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Aug 2001 08:38:45 +0900
From:      Takanori Saneto <sanewo@ba2.so-net.ne.jp>
To:        freebsd-current@FreeBSD.ORG
Cc:        Takanori Saneto <sanewo@ba2.so-net.ne.jp>
Subject:   issue on STRIP make variable
Message-ID:  <200108212338.f7LNckV19470@mail.ba2.so-net.ne.jp>
In-Reply-To: <873d6l4l0u.fsf@muse.sanewo> (Takanori Saneto's message of "Tue, 21 Aug 2001 22:09:37 %2B0900")

next in thread | previous in thread | raw e-mail | index | archive | help
(I once tried to send this message which did not seem to reach to the
list, so I'm trying again. If you see this message twice, sorry for
it)

In article <873d6l4l0u.fsf@muse.sanewo>,
	Takanori Saneto <sanewo@ba2.so-net.ne.jp> wrote:
>Hi, folks,

>I think there is problem about the treatment of STRIP make variable.

>I can't decide whether it is configuration problem, software bug, or
>both.

>Under current confguration, when DEBUG_FLAGS is defined (e.g. in
>/etc/make.conf), build of ports/lang/ruby will fail as shown below:

>"Makefile", line 77: Malformed conditional (${STRIP} == -s)
>"Makefile", line 77: Need an operator
>"Makefile", line 79: if-less endif
>"Makefile", line 79: Need an operator
>make: fatal errors encountered -- cannot continue

>This is because:

>1. In /usr/share/mk/bsd.prog.mk, if DEBUG_FLAGS is defined, STRIP will
>   not be defined.

>2. In /usr/ports/lang/ruby/Makefile, there is a conditional which
>   refers STRIP as:

>.if ${STRIP} == -s

>3. and make will fail if a variable in conditional is not defined.


>There could be couple solutions for this problem.

>1. In bsd.prog.mk, always define STRIP (when DEBUG_FLAGS is defined,
>   define STRIP as null).

>2. In ruby's Makefile, change conditional to

>.if defined(STRIP) && ${STRIP} == -s

>3. or fix make so that it won't fail for undefined variable in
>   conditional (i.e. treat it as if it had an empty value).

>Any suggestions?
>-- 
>さねを <URL:mailto:sanewo@ba2.so-net.ne.jp>

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




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