components/ruby/ruby-21/patches/03-common_mk.patch
branchs11-update
changeset 4241 9c60eb0ab04b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/ruby/ruby-21/patches/03-common_mk.patch	Mon May 04 10:54:49 2015 -0700
@@ -0,0 +1,26 @@
+# In-house patch created to keep inappropriate full pathnames
+# on build systems from being included in the ri Ruby doc files.
+# Patch is Solaris specific and not appropriate for upstream use.
+
+diff -ru ruby-2.1.5-orig/common.mk ruby-2.1.5/common.mk
+--- ruby-2.1.5-orig/common.mk	Wed Sep 10 07:07:46 2014
++++ ruby-2.1.5/common.mk	Thu Jan 15 15:33:07 2015
+@@ -416,9 +416,17 @@
+ post-install-gem::
+ 	@$(NULLCMD)
+ 
++# Eliminate full pathname from source directory references
++# in RDoc ri files.
++# Create a symlink here to the source directory so
++# rdoc can reference it from here without the full pathname
++srcdir_base=$(notdir $(srcdir))
+ rdoc: PHONY main
+ 	@echo Generating RDoc documentation
+-	$(Q) $(XRUBY) "$(srcdir)/bin/rdoc" --root "$(srcdir)" --page-dir "$(srcdir)/doc" --encoding=UTF-8 --no-force-update --all --ri --op "$(RDOCOUT)" --debug $(RDOCFLAGS) "$(srcdir)"
++	if [ ! -e $(srcdir_base) ]; then \
++	    /usr/bin/ln -s $(srcdir); \
++	fi
++	$(Q) $(XRUBY) "$(srcdir)/bin/rdoc" --root "$(srcdir)" --page-dir "$(srcdir)/doc" --encoding=UTF-8 --no-force-update --all --ri --op "$(RDOCOUT)" --debug $(RDOCFLAGS) "$(srcdir_base)"
+ 
+ rdoc-coverage: PHONY main
+ 	@echo Generating RDoc coverage report