From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Apr 11 19:40:01 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BAD8363B for ; Fri, 11 Apr 2014 19:40:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9B62614C4 for ; Fri, 11 Apr 2014 19:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s3BJe1it092372 for ; Fri, 11 Apr 2014 19:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s3BJe17a092371; Fri, 11 Apr 2014 19:40:01 GMT (envelope-from gnats) Resent-Date: Fri, 11 Apr 2014 19:40:01 GMT Resent-Message-Id: <201404111940.s3BJe17a092371@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, poyopoyo@puripuri.plala.or.jp Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5803841F for ; Fri, 11 Apr 2014 19:32:38 +0000 (UTC) Received: from msa03a.plala.or.jp (msa03.plala.or.jp [IPv6:2400:7800:0:5010::3]) by mx1.freebsd.org (Postfix) with ESMTP id EBA41147C for ; Fri, 11 Apr 2014 19:32:37 +0000 (UTC) Received: from i58-95-173-204.s02.a026.ap.plala.or.jp ([58.95.173.204]) by msa02b.plala.or.jp with ESMTP id <20140411192503.KPHZ17561.msa02b.plala.or.jp@i58-95-173-204.s02.a026.ap.plala.or.jp> for ; Sat, 12 Apr 2014 04:25:03 +0900 Message-Id: <86lhvbu0sk.wl%poyopoyo@puripuri.plala.or.jp> Date: Sat, 12 Apr 2014 04:24:43 +0900 From: poyopoyo@puripuri.plala.or.jp To: FreeBSD-gnats-submit@freebsd.org Subject: ports/188472: [PATCH] devel/smake: unbreak on gcc-free systems X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Apr 2014 19:40:01 -0000 >Number: 188472 >Category: ports >Synopsis: [PATCH] devel/smake: unbreak on gcc-free systems >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Apr 11 19:40:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: SATO Kuro >Release: FreeBSD 10.0-CURRENT amd64 >Organization: personal >Environment: >Description: o fix build on gcc-free system. - replace hard-coded gcc to $(CC) in cc-gcc.rul. The CC definition here is not used anywhere while configure script runs 'gcc' unconditionally, then fails. o prepare rules for any CC string. - It seems in RULES for freebsd, everything is symlink originated in 386-freebsd-cc.rul so it's safe to create another symlink, at least for i386/amd64/sparc64-like systems. >How-To-Repeat: chmod 0 /usr/bin/gcc && make -> fails chmod 555 /usr/bin/gcc && make -> builds ok >Fix: Index: Makefile =================================================================== --- Makefile (revision 351004) +++ Makefile (working copy) @@ -9,11 +9,6 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Portable make program with automake features -DEPRECATED= Abandonware, broken with modern com -EXPIRATION_DATE= 2014-05-12 - -BROKEN= Does not build with modern compilers - LICENSE= CDDL GPLv2 LICENSE_COMB= multi LICENSE_FILE_CDDL= ${WRKSRC}/CDDL.Schily.txt @@ -27,6 +22,12 @@ RULEUSED= "`${WRKSRC}/conf/oarch.sh`" PLIST_SUB= RULESUSED="${RULEUSED}" -#BROKEN_i386= fails to find correct configuration file +MKLINKS= ${WRKSRC}/RULES/MKLINKS +GCCRULE= ${WRKSRC}/RULES/cc-gcc.rul +pre-build: + ${CHMOD} +w ${MKLINKS} ${GCCRULE} + ${REINPLACE_CMD} -i "" -e 's/gcc$$/${CC}/' ${GCCRULE} + echo "\$$symlink i386-freebsd-cc.rul ${ARCH}-freebsd-${CC}.rul" >> ${MKLINKS} + .include >Release-Note: >Audit-Trail: >Unformatted: