Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 rock-master-20.06-ruby-gui-vizkit (0.1-1) UNRELEASED; urgency=medium
 .
   * Initial release (Closes: #nnnn)
Author: MAINTAINER <rock-user@rock.dfki.uni-bremen.de>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2020-09-16

--- rock-master-20.06-ruby-gui-vizkit-0.1.orig/ext/vizkittypelib/CMakeLists.txt
+++ rock-master-20.06-ruby-gui-vizkit-0.1/ext/vizkittypelib/CMakeLists.txt
@@ -1,6 +1,8 @@
 cmake_minimum_required(VERSION 2.6)
 find_package(Rock)
 rock_init(vizkit 1.0)
+set(GEM_DEBUG ON)
+set(GEM_OS_PKG ON)
 set(RUBY_USE_PROJECT_INSTALL_PREFIX TRUE)
 include(RockRuby)
 
@@ -10,6 +12,7 @@ pkg_check_modules(TYPELIBRUBY "typelib_r
 pkg_check_modules(QT "QtCore" REQUIRED)
 include_directories(${QT_HEADER_DIR})
 link_directories(${QT_LIBRARY_DIRS})
+rock_activate_cxx11()
 
 if (TYPELIB_FOUND AND TYPELIBRUBY_FOUND AND GEM_FOUND)
     rock_ruby_rice_extension(vizkittypelib MODULE
@@ -27,10 +30,10 @@ if (TYPELIB_FOUND AND TYPELIBRUBY_FOUND
         ${GEM_LIBRARIES})
 else()
     if (NOT TYPELIB_FOUND)
-        message(FATAL_ERROR "cannot find typelib")
+        message(STATUS "cannot find typelib, the vizkit-ruby bridge is disabled")
     elseif (NOT TYPELIBRUBY_FOUND)
-        message(FATAL_ERROR "cannot find typelib's ruby bindings")
+        message(STATUS "cannot find typelib's ruby bindings, the vizkit-ruby bridge is disabled")
     elseif (NOT GEM_FOUND)
-        message(FATAL_ERROR "cannot find the rice gem")
+        message(STATUS "cannot find the rice gem, the vizkit-ruby bridge is disabled")
     endif()
 endif()
--- rock-master-20.06-ruby-gui-vizkit-0.1.orig/lib/vizkit/vizkit_items.rb
+++ rock-master-20.06-ruby-gui-vizkit-0.1/lib/vizkit/vizkit_items.rb
@@ -202,7 +202,7 @@ module Vizkit
 
     class TypelibItem < VizkitItem
         DIRECTLY_DISPLAYED_RUBY_TYPES = [String,Numeric,Symbol,Time,TrueClass,FalseClass]
-        MAX_NUMBER_OF_CHILDS = 20
+        MAX_NUMBER_OF_CHILDS = ENV.has_key?('GUI_VIZKIT__MAX_NUMBER_OF_CHILDS') ? ENV['GUI_VIZKIT__MAX_NUMBER_OF_CHILDS'].to_i : 60
         attr_reader :typelib_val
 
         def initialize(typelib_val=nil,bitfield_type: nil, **options)
