Bug 155114 - [patch] graphics/graphviz: Fails to build ruby plugin (w/ruby19)
Summary: [patch] graphics/graphviz: Fails to build ruby plugin (w/ruby19)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dirk Meyer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-28 09:00 UTC by Scot Hetzel
Modified: 2011-03-08 04:46 UTC (History)
0 users

See Also:


Attachments
file.diff (2.30 KB, patch)
2011-02-28 09:00 UTC, Scot Hetzel
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Scot Hetzel 2011-02-28 09:00:20 UTC
When building the graphviz port with the ruby plugin, the configure script fails to locate the ruby program.

The problem is that the configure script expects the ruby program to be named 'ruby'.  But the lang/ruby19 port installs the program as ruby19.

To fix this issue, I added RUBY=${RUBY} to CONFIGURE_ENV.  This then resulted in the configure script failing to find the ruby.h header files.  This is failing due to ruby19 now has the header files in the include dir instead of the lib directory.

Fix: The attached patch fixes these problem.

Changed files:
  Makefile
  files/patch-configure

NOTE: This patch hasn't been tested with lang/ruby18.

Patch attached with submission follows:
How-To-Repeat: Install lang/ruby19
# cd /usr/ports/graphics/graphviz
# make clean ; make config

  Choose the RUBY option

# make install
# pkg_info -g `make -V PKGNAME`
Information for graphviz-2.26.3_3:

Mismatched Checksums:
pkg_info: /usr/local/man/man3/gv.3ruby.gz doesn't exist
pkg_info: /usr/local/lib/graphviz/ruby/gv.so doesn't exist
pkg_info: /usr/local/lib/graphviz/ruby/libgv_ruby.a doesn't exist
pkg_info: /usr/local/lib/graphviz/ruby/libgv_ruby.la doesn't exist
pkg_info: /usr/local/lib/graphviz/ruby/libgv_ruby.so doesn't exist
pkg_info: /usr/local/lib/ruby/site_ruby/1.9/amd64-freebsd9/gv.so doesn't exist
pkg_info: /usr/local/share/graphviz/demo/modgraph.rb doesn't exist
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-02-28 09:00:30 UTC
Responsible Changed
From-To: freebsd-ports-bugs->dinoex

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2011-03-07 21:15:27 UTC
dinoex      2011-03-07 21:15:14 UTC

  FreeBSD ports repository

  Modified files:
    graphics/graphviz    Makefile 
    graphics/graphviz/files patch-configure 
  Log:
  - fix ruby pluging with ruby19
  PR:             155114
  Submitted by:   Scot Hetzel
  
  Revision  Changes    Path
  1.132     +1 -0      ports/graphics/graphviz/Makefile
  1.10      +20 -4     ports/graphics/graphviz/files/patch-configure
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Dirk Meyer freebsd_committer freebsd_triage 2011-03-08 04:46:45 UTC
State Changed
From-To: open->closed

committed, thanks.