Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 616682 - dev-ruby/ruby-gtk2-3.1.1 : : /.../extconf.rb:80:in <main> : can t find gdkkeysyms.h (RuntimeError)
Summary: dev-ruby/ruby-gtk2-3.1.1 : : /.../extconf.rb:80:in <main> : can t find gdkkey...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-26 20:22 UTC by Toralf Förster
Modified: 2018-07-07 06:14 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,5.66 KB, text/plain)
2017-04-26 20:22 UTC, Toralf Förster
Details
dev-ruby:ruby-gtk2-3.1.1:20170426-201500.log (dev-ruby:ruby-gtk2-3.1.1:20170426-201500.log,5.25 KB, text/plain)
2017-04-26 20:22 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,254.41 KB, text/plain)
2017-04-26 20:22 UTC, Toralf Förster
Details
environment (environment,165.47 KB, text/plain)
2017-04-26 20:22 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,25.39 KB, application/x-bzip)
2017-04-26 20:22 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-04-26 20:22:14 UTC
	--curdir
	--ruby=/usr/bin/ruby21
 * ERROR: dev-ruby/ruby-gtk2-3.1.1::gentoo failed (configure phase):
 *   extconf.rb failed
 * 
 * Call stack:

  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named plasma-systemd_20170420-191853) at a hardened host acting as a tinderbox.

  -----------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-5.4.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)
  [3]   jython2.7 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems)
  [2]   ruby22 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
1)	IcedTea JDK 7.2.6.9 [icedtea-7]
*)	IcedTea JDK 7.2.6.9 [icedtea-bin-7]
3)	IcedTea JDK 3.3.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-7 
  [2]   icedtea-bin-7  system-vm
  [3]   icedtea-bin-8
Comment 1 Toralf Förster gentoo-dev 2017-04-26 20:22:17 UTC
Created attachment 470976 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-04-26 20:22:20 UTC
Created attachment 470978 [details]
dev-ruby:ruby-gtk2-3.1.1:20170426-201500.log
Comment 3 Toralf Förster gentoo-dev 2017-04-26 20:22:24 UTC
Created attachment 470980 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-04-26 20:22:27 UTC
Created attachment 470982 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-04-26 20:22:30 UTC
Created attachment 470984 [details]
etc.portage.tbz2
Comment 6 Marco Genasci 2017-05-10 15:20:06 UTC
Fixed upstream in version >=3.1.2, problem is caused by >=dev-ruby/pkg-config-1.1.9 

Workaround: downgrade dev-ruby/pkg-config to 1.1.7


Reference:
https://github.com/ruby-gnome2/ruby-gnome2/issues/1018
https://github.com/ruby-gnome2/ruby-gnome2/commit/14f9ef12fb71d4316975721956d15dc0747812e7
Comment 7 Sławomir Nizio 2017-09-07 21:05:12 UTC
I confirm that downgrading dev-ruby/pkg-config makes it build. Thanks Marco!
Comment 8 ncaq 2017-12-28 14:58:35 UTC
workaround(2)

sudo ln -s /usr/include/gtk-2.0/gdk /usr/include/gdk

Quoted from below

[Arch Linuxにmikutterをインストールする - htlsne’s blog](http://htlsne.hatenablog.com/entry/2017/05/03/115836)
Comment 9 Rick Farina (Zero_Chaos) gentoo-dev 2018-02-28 17:25:30 UTC
(In reply to Marco Genasci from comment #6)
> Fixed upstream in version >=3.1.2, problem is caused by
I added 3.1.3 to the tree as a test, but it doesn't appear to have fixed the issue...
Comment 10 Marco Genasci 2018-02-28 19:28:01 UTC
(In reply to Rick Farina (Zero_Chaos) from comment #9)
> I added 3.1.3 to the tree as a test, but it doesn't appear to have fixed the
> issue...

Strange the patch [1] seems applied from 3.1.2 version

[1] https://github.com/ruby-gnome2/ruby-gnome2/commit/14f9ef12fb71d4316975721956d15dc0747812e7
Comment 11 Marco Genasci 2018-03-01 12:35:13 UTC
Ok I tried 3.1.3 but now some packages (i.e. dev-ruby/ruby-glib2-3.1.3) fails with error:

/usr/lib64/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- native-package-installer (LoadError)
        from /usr/lib64/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /var/tmp/portage/dev-ruby/ruby-glib2-3.1.3/work/ruby22/ruby-gnome2-all-3.1.3/glib2/lib/mkmf-gnome2.rb:16:in `<top (required)>'
        from /usr/lib64/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/lib64/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /var/tmp/portage/dev-ruby/ruby-glib2-3.1.3/work/ruby22/ruby-gnome2-all-3.1.3/glib2/ext/glib2/extconf.rb:15:in `<main>'

This probably caused by this modification (see NEWS file)

    * Extracted native package installer code as
      native-package-installer [1] gem.


[1] https://github.com/ruby-gnome2/native-package-installer
Comment 12 Larry the Git Cow gentoo-dev 2018-07-07 06:14:27 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cdb994d82ec4f3dd046c6c5d0e675b63922f0ee

commit 0cdb994d82ec4f3dd046c6c5d0e675b63922f0ee
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2018-07-06 09:30:00 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2018-07-07 06:14:10 +0000

    dev-ruby/ruby-gtk2: fix build issue
    
    Explicitly add gtk-2.0 include path. This should be fixed more
    comprehensively in later versions of ruby-gtk2.
    
    Closes: https://bugs.gentoo.org/616682
    Package-Manager: Portage-2.3.40, Repoman-2.3.9

 dev-ruby/ruby-gtk2/ruby-gtk2-3.1.1.ebuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)