ports/112496: [patch] sysutils/devcpu fails to build on machines without ruby
Victor Snezhko
snezhko at indorsoft.ru
Mon May 7 15:30:07 UTC 2007
>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 at 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 at 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:
More information about the freebsd-ports-bugs
mailing list