Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 May 2007 15:17:09 GMT
From:      Victor Snezhko<snezhko@indorsoft.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/112496: [patch] sysutils/devcpu fails to build on machines without ruby
Message-ID:  <200705071517.l47FH9sa035015@www.freebsd.org>
Resent-Message-ID: <200705071530.l47FU7O8097918@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



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