pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/48064: Build of ruby-tk Fails (ruby-1.9.3-p448, patch attached)



>Number:         48064
>Category:       pkg
>Synopsis:       Build of ruby-tk Fails (ruby-1.9.3-p448, patch attached)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 19 02:30:00 +0000 2013
>Originator:     Alex D
>Release:        N/A
>Organization:
>Environment:
Darwin d012m010 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 
2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
>Description:
This is a bug in ruby-1.9.3-p448. The problem can be seen here: 
https://bugs.ruby-lang.org/projects/ruby-trunk/repository/entry/ext/tk/extconf.rb
 on line 318.

This:
    next unless File.exist?(File.join(dir, "Tk.framework"), "Headers")  
should be: 
    next unless File.exist?(File.join(dir, "Tk.framework", "Headers"))

I will try to open a bug directly with Ruby; however, I thought that this 
report would be useful in the meantime.

How to repeat:
cd /pkgsrc
cvs update -dP
cd x11/ruby-tk
bmake clean
bmake

--------------------------------------------------------------------------------
=> Bootstrap dependency digest>=20010302: found digest-20121220
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/pkg/sbin/pkg_admin -K /var/db/pkg 
fetch-pkg-vulnerabilities'.
=> Checksum SHA1 OK for ruby-1.9.3-p448.tar.bz2
=> Checksum RMD160 OK for ruby-1.9.3-p448.tar.bz2
===> Installing dependencies for ruby193-tk-1.9.3p448
=> Tool dependency nbpatch-[0-9]*: found nbpatch-20100124
=> Full dependency ruby193-base>=1.9.3: found ruby193-base-1.9.3p448nb1
=> Full dependency tcl>=8.5.7: found tcl-8.5.14
=> Full dependency tk>=8.5.14nb3: found tk-8.5.14nb3
===> Overriding tools for ruby193-tk-1.9.3p448
===> Extracting for ruby193-tk-1.9.3p448
/bin/chmod 644 
/pkgsrc/x11/ruby-tk/work/ruby-1.9.3-p448/ext/tk/sample/tkextlib/tktable/tcllogo.gif
===> Patching for ruby193-tk-1.9.3p448
===> Creating toolchain wrappers for ruby193-tk-1.9.3p448
===> Configuring for ruby193-tk-1.9.3p448
=> Replacing ruby193 interpreter in lib/tkextlib/pkg_checker.rb.
===>  Running extconf.rb in . to configure
/usr/pkg/bin/ruby193 extconf.rb --with-X11-dir=/usr/X11 --with-opt-dir=/usr/pkg 
--vendor --enable-pthread
Configure options for Ruby/Tk may be updated.
So, delete files which depend on old configs.
check functions.checking for ruby_native_thread_p() in ruby.h... yes
.checking for rb_errinfo() in ruby.h... yes
.checking for rb_safe_level() in ruby.h... yes
.checking for rb_hash_lookup() in ruby.h... yes
.checking for rb_proc_new() in ruby.h... yes
.checking for rb_obj_untrust() in ruby.h... yes
.checking for rb_obj_taint() in ruby.h... yes
.checking for rb_set_safe_level_force() in ruby.h... yes
.checking for rb_sourcefile() in ruby.h... yes

check struct members.checking for struct RArray.ptr in ruby.h... no
.checking for struct RArray.len in ruby.h... no

check libraries.checking for t_open() in -lnsl... no
.checking for socket() in -lsocket... no
.checking for dlopen() in -ldl... yes
.checking for log() in -lm... yes

Use ActiveTcl libraries (if available).
Search tclConfig.sh and tkConfig.sh.*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/pkg/bin/ruby193
        --with-tk-old-extconf
        --without-tk-old-extconf
        --with-tk-old-extconf
        --without-tk-old-extconf
        --with-ActiveTcl
        --without-ActiveTcl
        --with-tk-shlib-search-path
        --without-tk-shlib-search-path
        --with-tcltkversion
        --without-tcltkversion
        --with-tcl-build-dir
        --without-tcl-build-dir
        --with-tk-build-dir
        --without-tk-build-dir
        --with-tcl-config
        --without-tcl-config
        --with-tk-config
        --without-tk-config
        --with-tclConfig-dir
        --without-tclConfig-dir
        --with-tkConfig-dir
        --without-tkConfig-dir
        --with-tclConfig-file
        --without-tclConfig-file
        --with-tkConfig-file
        --without-tkConfig-file
        --with-tcllib
        --without-tcllib
        --with-tklib
        --without-tklib
        --with-tcl-dir
        --without-tcl-dir
        --with-tk-dir
        --without-tk-dir
        --with-tcl-include
        --without-tcl-include
        --with-tk-include
        --without-tk-include
        --with-tcl-lib
        --without-tcl-lib
        --with-tk-lib
        --without-tk-lib
        --with-tcltk-framework
        --without-tcltk-framework
        --with-tcl-framework-dir
        --without-tcl-framework-dir
        --with-tk-framework-dir
        --without-tk-framework-dir
        --with-tcl-framework-header
        --without-tcl-framework-header
        --with-tk-framework-header
        --without-tk-framework-header
        --with-X11
        --without-X11
        --with-X11-dir
        --with-X11-include
        --without-X11-include
        --with-X11-lib
        --without-X11-lib
        --enable-tcltk-stubs
        --disable-tcltk-stubs
        --enable-tcl-h-ver-check
        --disable-tcl-h-ver-check
        --enable-tk-h-ver-check
        --disable-tk-h-ver-check
        --enable-mac-tcltk-framework
        --disable-mac-tcltk-framework
        --enable-tcltk-framework
        --disable-tcltk-framework
        --enable-pthread
        --enable-tcl-thread
        --disable-tcl-thread
        --enable-space-on-tk-libpath
        --disable-space-on-tk-libpath
        --with-nsllib
        --without-nsllib
        --with-socketlib
        --without-socketlib
        --with-dllib
        --without-dllib
        --with-mlib
        --without-mlib
        --with-tcl-build-dir
        --without-tcl-build-dir
        --with-tk-build-dir
        --without-tk-build-dir
        --with-tcltkversion
        --without-tcltkversion
        --with-ActiveTcl
        --without-ActiveTcl
        --enable-space-on-tk-libpath
        --disable-space-on-tk-libpath
        --enable-tcltk-stubs
        --disable-tcltk-stubs
        --with-tcltk-stubs
        --without-tcltk-stubs
        --with-tcl-dir
        --without-tcl-dir
        --with-tcl-include
        --without-tcl-include=${tcl-dir}/include
        --with-tcl-lib
        --without-tcl-lib=${tcl-dir}/lib
        --with-tk-dir
        --without-tk-dir
        --with-tk-include
        --without-tk-include=${tk-dir}/include
        --with-tk-lib
        --without-tk-lib=${tk-dir}/lib
        --with-tclConfig-file
        --without-tclConfig-file
        --with-tkConfig-file
        --without-tkConfig-file
        --with-tclConfig-dir
        --without-tclConfig-dir
        --with-tkConfig-dir
        --without-tkConfig-dir
        --with-tcltk-framework
        --without-tcltk-framework
        --enable-tcltk-framework
        --disable-tcltk-framework
        --enable-tcltk-framework
        --disable-tcltk-framework
extconf.rb:318:in `exist?': wrong number of arguments(2 for 1) (ArgumentError)
        from extconf.rb:318:in `block in find_macosx_framework'
        from extconf.rb:315:in `each'
        from extconf.rb:315:in `find_macosx_framework'
        from extconf.rb:442:in `get_tclConfig_dirs'
        from extconf.rb:698:in `search_tclConfig'
        from extconf.rb:913:in `get_tclConfig'
        from extconf.rb:1900:in `<main>'
*** Error code 1

Stop.
bmake: stopped in /pkgsrc/x11/ruby-tk
*** Error code 1

Stop.
bmake: stopped in /pkgsrc/x11/ruby-tk
--------------------------------------------------------------------------------

>How-To-Repeat:
Attempt to build ruby-tk.
>Fix:
--- /pkgsrc/x11/ruby-tk/work/ruby-1.9.3-p448/ext/tk/extconf.rb  2013-06-26 
03:57:49.000000000 -0400
+++ /pkgsrc/x11/ruby-tk/extconf.rb.fixed        2013-07-18 22:16:25.000000000 
-0400
@@ -315,7 +315,7 @@
   paths.map{|dir| dir.strip.chomp('/')}.each{|dir|
     next unless File.exist?(File.join(dir, "Tcl.framework", "Headers"))
     next unless File.directory?(tcldir = File.join(dir, "Tcl.framework"))
-    next unless File.exist?(File.join(dir, "Tk.framework"), "Headers")
+    next unless File.exist?(File.join(dir, "Tk.framework", "Headers"))
     next unless File.directory?(tkdir  = File.join(dir, "Tk.framework"))
     TkLib_Config["tcltk-framework"] = dir
     return [tcldir, tkdir]



Home | Main Index | Thread Index | Old Index