NetBSD Problem Report #48064

From www@NetBSD.org  Fri Jul 19 02:29:27 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 83E5571E1C
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 19 Jul 2013 02:29:27 +0000 (UTC)
Message-Id: <20130719022925.6ED3171E1E@mollari.NetBSD.org>
Date: Fri, 19 Jul 2013 02:29:25 +0000 (UTC)
From: wandns@yahoo.fr
Reply-To: wandns@yahoo.fr
To: gnats-bugs@NetBSD.org
Subject: Build of ruby-tk Fails (ruby-1.9.3-p448, patch attached)
X-Send-Pr-Version: www-1.0

>Number:         48064
>Category:       pkg
>Synopsis:       Build of ruby-tk Fails (ruby-1.9.3-p448, patch attached)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    taca
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 19 02:30:00 +0000 2013
>Closed-Date:    Mon Jul 22 15:10:07 +0000 2013
>Last-Modified:  Mon Jul 22 15:10:07 +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]

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->taca
Responsible-Changed-By: taca@NetBSD.org
Responsible-Changed-When: Fri, 19 Jul 2013 07:50:48 +0000
Responsible-Changed-Why:
I'll take it.


State-Changed-From-To: open->analyzed
State-Changed-By: taca@NetBSD.org
State-Changed-When: Fri, 19 Jul 2013 07:50:48 +0000
State-Changed-Why:
It already fixed in ruby-trunk by your https://bugs.ruby-lang.org/issues/8656.
And it was fixed on ruby_1_9_3 branch another way on 26th June.


From: "Takahiro Kambe" <taca@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48064 CVS commit: pkgsrc/lang/ruby193-base
Date: Fri, 19 Jul 2013 15:32:58 +0000

 Module Name:	pkgsrc
 Committed By:	taca
 Date:		Fri Jul 19 15:32:58 UTC 2013

 Modified Files:
 	pkgsrc/lang/ruby193-base: distinfo
 Added Files:
 	pkgsrc/lang/ruby193-base/patches: patch-ext_tk_extconf.rb

 Log Message:
 Build fix for x11/ruby-tk package.  Reported by PR pkg/48064.


 To generate a diff of this commit:
 cvs rdiff -u -r1.23 -r1.24 pkgsrc/lang/ruby193-base/distinfo
 cvs rdiff -u -r0 -r1.1 \
     pkgsrc/lang/ruby193-base/patches/patch-ext_tk_extconf.rb

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: analyzed->pending-pullups
State-Changed-By: taca@NetBSD.org
State-Changed-When: Fri, 19 Jul 2013 15:45:46 +0000
State-Changed-Why:
pkgsrc-2013Q2 should be fixed, too.


From: "Matthias Scheler" <tron@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48064 CVS commit: [pkgsrc-2013Q2] pkgsrc/lang/ruby193-base
Date: Mon, 22 Jul 2013 09:45:19 +0000

 Module Name:	pkgsrc
 Committed By:	tron
 Date:		Mon Jul 22 09:45:19 UTC 2013

 Modified Files:
 	pkgsrc/lang/ruby193-base [pkgsrc-2013Q2]: distinfo
 Added Files:
 	pkgsrc/lang/ruby193-base/patches [pkgsrc-2013Q2]:
 	    patch-ext_tk_extconf.rb

 Log Message:
 Pullup ticket #4186 - requested by taca
 x11/ruby-tk: build fix

 Revisions pulled up:
 - lang/ruby193-base/distinfo                                    1.24
 - lang/ruby193-base/patches/patch-ext_tk_extconf.rb             1.1

 ---
    Module Name:	pkgsrc
    Committed By:	taca
    Date:		Fri Jul 19 15:32:58 UTC 2013

    Modified Files:
    	pkgsrc/lang/ruby193-base: distinfo
    Added Files:
    	pkgsrc/lang/ruby193-base/patches: patch-ext_tk_extconf.rb

    Log Message:
    Build fix for x11/ruby-tk package.  Reported by PR pkg/48064.


 To generate a diff of this commit:
 cvs rdiff -u -r1.22.2.1 -r1.22.2.2 pkgsrc/lang/ruby193-base/distinfo
 cvs rdiff -u -r0 -r1.1.2.2 \
     pkgsrc/lang/ruby193-base/patches/patch-ext_tk_extconf.rb

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: pending-pullups->closed
State-Changed-By: taca@NetBSD.org
State-Changed-When: Mon, 22 Jul 2013 15:10:07 +0000
State-Changed-Why:
Pulled-up now.  Thanks for your problem report.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.