From owner-freebsd-current Tue Aug 21 16:39: 8 2001 Delivered-To: freebsd-current@freebsd.org Received: from mgate08.so-net.ne.jp (mgate08.so-net.ne.jp [210.139.254.155]) by hub.freebsd.org (Postfix) with ESMTP id B7B0B37B40E for ; Tue, 21 Aug 2001 16:38:47 -0700 (PDT) (envelope-from sanewo@ba2.so-net.ne.jp) Received: from mail.ba2.so-net.ne.jp (mspool12.so-net.ne.jp [210.139.248.12]) by mgate08.so-net.ne.jp (8.8.8+3.0Wbeta9/3.6W01060506) with ESMTP id IAA19690 for ; Wed, 22 Aug 2001 08:38:46 +0900 (JST) Received: from ba2.so-net.ne.jp (pd3007e.tkyoea00.ap.so-net.ne.jp [61.211.0.126]) by mail.ba2.so-net.ne.jp with ESMTP id f7LNckV19470; Wed, 22 Aug 2001 08:38:46 +0900 (JST) Message-Id: <200108212338.f7LNckV19470@mail.ba2.so-net.ne.jp> To: freebsd-current@FreeBSD.ORG Subject: issue on STRIP make variable Cc: Takanori Saneto From: Takanori Saneto MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=ISO-2022-JP In-Reply-To: <873d6l4l0u.fsf@muse.sanewo> (Takanori Saneto's message of "Tue, 21 Aug 2001 22:09:37 +0900") User-Agent: T-gnus/6.15.4 (based on Oort Gnus v0.04) (revision 05) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 MULE XEmacs/21.5 (beta2) (artichoke) (i386-unknown-freebsd4.3) Date: Wed, 22 Aug 2001 08:38:45 +0900 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG (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 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? >-- >さねを To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message