From owner-freebsd-ports-bugs@FreeBSD.ORG Mon May 7 15:30:07 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7FE7E16A477 for ; Mon, 7 May 2007 15:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 6259D13C4C7 for ; Mon, 7 May 2007 15:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l47FU7Te097919 for ; Mon, 7 May 2007 15:30:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l47FU7O8097918; Mon, 7 May 2007 15:30:07 GMT (envelope-from gnats) Resent-Date: Mon, 7 May 2007 15:30:07 GMT Resent-Message-Id: <200705071530.l47FU7O8097918@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, Victor Snezhko Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0041916A400 for ; Mon, 7 May 2007 15:22:10 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id E7AB013C4CA for ; Mon, 7 May 2007 15:22:10 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l47FMAxo041788 for ; Mon, 7 May 2007 15:22:10 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l47FH9sa035015; Mon, 7 May 2007 15:17:09 GMT (envelope-from nobody) Message-Id: <200705071517.l47FH9sa035015@www.freebsd.org> Date: Mon, 7 May 2007 15:17:09 GMT From: Victor Snezhko To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: ports/112496: [patch] sysutils/devcpu fails to build on machines without ruby X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 May 2007 15:30:07 -0000 >Number: 112496 >Category: ports >Synopsis: [patch] sysutils/devcpu fails to build on machines without ruby >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon May 07 15:30:04 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Victor Snezhko >Release: 6.2-RELEASE-p4 >Organization: IndorSoft >Environment: FreeBSD freebsd.local 6.2-RELEASE-p4 FreeBSD 6.2-RELEASE-p4 #15: Sun May 6 21:04:42 NOVST 2007 root@freebsd.local:/usr/obj/usr/src/sys/VVS i386 >Description: If ruby is not installed on a machine, sysutils/devcpu fails to patch itself before building. ======================================================== [vvs@freebsd /usr/ports/sysutils/devcpu]$ sudo make install clean ===> Found saved configuration for devcpu-0.8.1 ===> Extracting for devcpu-0.8.1 => MD5 Checksum OK for devcpu-0.8.1.tar.bz2. => SHA256 Checksum OK for devcpu-0.8.1.tar.bz2. ===> Patching for devcpu-0.8.1 ===> Fixing the #! line of tools/extract_mcodes.rb /usr/local/bin/ruby18: not found *** Error code 127 Stop in /usr/ports/sysutils/devcpu. *** Error code 1 Stop in /usr/ports/sysutils/devcpu. ======================================================== This happens because starting with rev 1.4 port's Makefile erroneously defines both RUBY_SHEBANG_FILES and RUBY_NO_BUILD_DEPENDS. RUBY_SHEBANG_FILES obviously uses ruby at the stage of patching, so RUBY_NO_BUILD_DEPENDS should go away. Please commit the attached patch after the ports unfreeze. That way ruby will be installed before it is needed by shebang. >How-To-Repeat: On the machine without ruby installed: # cd /usr/ports/sysutils/devcpu # make install >Fix: Patch attached with submission follows: --- Makefile.orig Mon May 7 22:08:36 2007 +++ Makefile Mon May 7 22:09:00 2007 @@ -17,7 +17,6 @@ USE_BZIP2= yes USE_RC_SUBR= devcpu USE_RUBY= yes -RUBY_NO_BUILD_DEPENDS= yes RUBY_NO_RUN_DEPENDS= yes RUBY_SHEBANG_FILES= tools/extract_mcodes.rb >Release-Note: >Audit-Trail: >Unformatted: