Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 552342 - Version bump dev-ruby/ruby-glib2-2.2.5
Summary: Version bump dev-ruby/ruby-glib2-2.2.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
: 552878 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-06-17 03:10 UTC by Viktor Yu. Kovalskii
Modified: 2015-07-09 09:21 UTC (History)
2 users (show)

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


Attachments
ruby-glib2-2.2.3-glib-2.44.patch (ruby-glib2-2.2.3-glib-2.44.patch,784 bytes, patch)
2015-07-06 13:46 UTC, PhobosK
Details | Diff
ruby-glib2-2.2.3-r1.ebuild.patch (ruby-glib2-2.2.3-r1.ebuild.patch,733 bytes, patch)
2015-07-06 13:48 UTC, PhobosK
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Viktor Yu. Kovalskii 2015-06-17 03:10:34 UTC
Ruby-GNOME 2 was released 2015-04-24.

From Readme.txt:
It is a GLib 2.44 support release. 
=== Changes 
==== Ruby/GLib2
 * Improvements
 * Supported GLib 2.44.
 [GitHub#361][Reported by Benjamin Maisano]
 === Thanks * Benjamin Maisano

Reproducible: Always
Comment 1 Hans de Graaff gentoo-dev Security 2015-06-18 05:51:24 UTC
Unfortunately these new versions cause segmentation faults and I have not been able to investigate them yet.
Comment 2 Viktor Yu. Kovalskii 2015-06-18 06:01:39 UTC
Right now dev-ruby/ruby-glib2 can't be compiled with =dev-libs/glib-2.44.1.

Upstream fixes this bug at https://github.com/ruby-gnome2/ruby-gnome2/commit/c5cdb741a9eb72351739e48a38946b87c292c293

(see upstream bug: https://github.com/ruby-gnome2/ruby-gnome2/issues/361#ref-commit-c5cdb74)

Maybe we can apply this patch to =dev-ruby/ruby-glib2-2.2.3 for =dev-libs/glib-2.44.1 support?
Comment 3 Hans de Graaff gentoo-dev Security 2015-06-23 05:25:56 UTC
*** Bug 552878 has been marked as a duplicate of this bug. ***
Comment 4 Toralf Förster gentoo-dev 2015-07-06 13:29:26 UTC
at least this suffers from the meniton bug :

dev-ruby/ruby-glib2-2.2.3-r1  : glib-enum-types.c:1181:9: error: ‘G_WIN32_OS_ANY’ undeclared (first use in this function)

x86_64-pc-linux-gnu-gcc -I. -I/usr/include/ruby-1.9.1/x86_64-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I/var/tmp/portage/dev-ruby/ruby-glib2-2.2.3-r1/work/ruby19/ruby-gnome2-all-2.2.3/glib2/ext/glib2 -I/usr/lib64/ruby/site_ruby/1.9.1/x86_64-linux  -I/usr/lib64/ruby/vendor_ruby/1.9.1/x86_64-linux  -DHAVE_RB_DEFINE_ALLOC_FUNC -DHAVE_RB_BLOCK_PROC -DHAVE_OBJECT_ALLOCATE -DHAVE_UNISTD_H -DHAVE_G_SPAWN_CLOSE_PID -DHAVE_G_THREAD_INIT -DHAVE_G_MAIN_DEPTH -DHAVE_G_LISTENV -DHAVE_RB_CHECK_ARRAY_TYPE -DHAVE_RB_CHECK_HASH_TYPE -DHAVE_RB_EXEC_RECURSIVE -DHAVE_RB_ERRINFO -DHAVE_RB_SOURCEFILE -DHAVE_RB_SOURCELINE -DHAVE_RB_THREAD_CALL_WITHOUT_GVL -DHAVE_RUBY_NATIVE_THREAD_P -DHAVE_RB_THREAD_CALL_WITH_GVL -DHAVE_RB_STR_NEW_CSTR -DHAVE_RB_GC_REGISTER_MARK_OBJECT -DRUBY_GLIB2_COMPILATION    -fPIC -march=native -O2 -pipe -fno-strict-aliasing -fPIC -march=native -O2 -pipe -Wall -Waggregate-return -Wcast-align -Wextra -Wformat=2 -Winit-self -Wlarger-than-65500 -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpacked -Wpointer-arith -Wswitch-default -Wswitch-enum -Wundef -Wunsafe-loop-optimizations -Wwrite-strings -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -o glib-enum-types.o -c glib-enum-types.c
glib-enum-types.c: In function ‘g_win32_os_type_get_type’:
glib-enum-types.c:1181:9: error: ‘G_WIN32_OS_ANY’ undeclared (first use in this function)
       { G_WIN32_OS_ANY, "G_WIN32_OS_ANY", "any" },
         ^
glib-enum-types.c:1181:9: note: each undeclared identifier is reported only once for each function it appears in
glib-enum-types.c:1182:9: error: ‘G_WIN32_OS_WORKSTATION’ undeclared (first use in this function)
       { G_WIN32_OS_WORKSTATION, "G_WIN32_OS_WORKSTATION", "workstation" },
         ^
glib-enum-types.c:1183:9: error: ‘G_WIN32_OS_SERVER’ undeclared (first use in this function)
       { G_WIN32_OS_SERVER, "G_WIN32_OS_SERVER", "server" },
         ^
Makefile:206: recipe for target 'glib-enum-types.o' failed
make[1]: *** [glib-enum-types.o] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-ruby/ruby-glib2-2.2.3-r1/work/ruby19/ruby-gnome2-all-2.2.3/glib2/ext/glib2'
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: dev-ruby/ruby-glib2-2.2.3-r1::gentoo failed (compile phase):
 *   emake failed
  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named amd64-unstable_20150621-132035) at a hardened host acting as a tinderbox.

Portage 2.2.20 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.9.3, glibc-2.20-r2, 4.0.7-hardened-r1 x86_64)
=================================================================
System uname: Linux-4.0.7-hardened-r1-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16164692 total,   1845096 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 06 Jul 2015 09:45:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25 p1.2) 2.25
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.2.2 [disabled]
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/ccache:          3.2.2::gentoo
dev-util/cmake:           3.2.3::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25-r1::gentoo
sys-devel/gcc:            4.8.4::gentoo, 4.9.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.0::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

local
    location: /usr/local/portage
    masters: gentoo

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: 9999

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/entropy /etc/stunnel/stunnel.conf /opt/openfire/resources/security/ /usr/lib64/tomoyo/conf /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/qpsmtpd/plugins /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb /var/lib/i2pd/certificates /var/rancid/.cloginrc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/games/angband/edit/ /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --tree --quiet-build"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo rsync://mirror.netcologne.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gor.bytemark.co.uk/gentoo/ rsync://ftp.snt.utwente.nl/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi aes-ni alsa amd64 apache2 avx avx2 berkdb bluetooth branding btrfs bzip2 cairo cdda cdr cli consolekit corefonts cracklib crypt cups cxx dbus declarative designer dnssec dot dri drmkms dts dvd dvdr ecc emboss encode exif extraengine fam ffmpeg firefox flac fontconfig fortran fpm gd gdbm gif glamor gpm gtk gudev gui iconv icu ipv6 isag jadetex jpeg kde kipi kvm lapack lcms libkms libnotify libvirtd logrotate mad mbox minizip mmx mmxext mng modules mp3 mp4 mpeg multilib mysql ncurses nls nptl ogg opengl openmp openssl pam pango pax_kernel pcre pcre16 pdf phonon plasma png policykit ppds pwquality python qemu qt3support qt4 qz5 readline scrpyt sdl session spell spice sqlite sse sse2 sse4 sse4_1 sse4_2 ssh-askpass ssl ssse3 startup-notification svg tcl tcpd theora thinkpad threads tiff tk tls truetype udev udisks uml unicode upower usb usbredir uxa v4l v4l2 video vorbis wxwidgets x264 xa xcb xcomposite xinerama xkb xml xmp xscreensaver xslt xv xvfb xvid xvmc zenmap zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk330 1 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 5 PhobosK 2015-07-06 13:46:43 UTC
Created attachment 406248 [details, diff]
ruby-glib2-2.2.3-glib-2.44.patch

I've tested this patch and it works OK. 

=dev-ruby/ruby-glib2-2.2.3-r1 compiles and works with no problem with =dev-libs/glib-2.44.1.
I'll upload an ebuild patch for fixing...
Comment 6 PhobosK 2015-07-06 13:48:26 UTC
Created attachment 406250 [details, diff]
ruby-glib2-2.2.3-r1.ebuild.patch

The proposed working =ruby-glib2-2.2.3-r1 ebuild patch
Comment 7 Hans de Graaff gentoo-dev Security 2015-07-09 09:21:05 UTC
(In reply to Hans de Graaff from comment #1)
> Unfortunately these new versions cause segmentation faults and I have not
> been able to investigate them yet.

ruby-glib-2.2.5 now ships its Makefiles and these get clobbered by ruby-ng's copy-via-hard-link mechanism.

ruby-glib-2.2.5 is now in the tree.