Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 261736 - app-mobilephone/obexftp-0.22 compilation fails with ruby-1.9 eselected
Summary: app-mobilephone/obexftp-0.22 compilation fails with ruby-1.9 eselected
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Alin Năstac (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ruby19
  Show dependency tree
 
Reported: 2009-03-08 17:53 UTC by Mariusz Pękala
Modified: 2009-04-27 21:30 UTC (History)
3 users (show)

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


Attachments
obexftp-ruby18.patch (obexftp-ruby18.patch,418 bytes, patch)
2009-04-19 08:59 UTC, Alex Legler (RETIRED)
Details | Diff
"emerge -1v obexftp" before patch (emerge-pre.log,50.81 KB, text/plain)
2009-04-27 21:28 UTC, Laszlo Valko
Details
"emerge -1v obexftp" after patch (emerge-post.log,32.82 KB, text/plain)
2009-04-27 21:29 UTC, Laszlo Valko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mariusz Pękala 2009-03-08 17:53:26 UTC
When I have eselected ruby-1.9.1 (from ruby overlay) instead of ruby 1.8, compilation of app-mobilephone/obexftp-0.22 fails. For ruby-1.8.6* it compiles successfully.


Reproducible: Always

Steps to Reproduce:
1. eselect ruby set ruby18
2. emerge =app-mobilephone/obexftp-0.22
3. eselect ruby set ruby19
4. emerge =app-mobilephone/obexftp-0.22

Actual Results:  
Making all in ruby
make[3]: Wejście do katalogu `/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/swig/ruby'
PREFIX=/usr /usr/bin/ruby extconf.rb --with-obexftp-include=../..
creating Makefile
make -fMakefile.ruby
make[4]: Wejście do katalogu `/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/swig/ruby'
i686-pc-linux-gnu-gcc -I. -I/usr/include/ruby19-1.9.1/i686-linux -I/usr/include/ruby19-1.9.1/ruby/backward -I/usr/include/ruby19-1.9.1 -I. -I../..  -D_FILE_OFFSET_BITS=64  -fPIC -O2 -march=athlon-xp -pipe -fno-strict-aliasing -O2 -g -Wall -Wno-parentheses  -fPIC  -o ruby_wrap.o -c ruby_wrap.c
ruby_wrap.c: In function ‘_wrap_Client_callback’:
ruby_wrap.c:2109: warning: assignment makes pointer from integer without a cast
ruby_wrap.c: In function ‘_wrap_Client_get’:
ruby_wrap.c:2413: warning: pointer targets in passing argument 1 of ‘rb_str_new’ differ in signedness
ruby_wrap.c: In function ‘_wrap_Client_list’:
ruby_wrap.c:2448: warning: pointer targets in passing argument 1 of ‘rb_str_new’ differ in signedness
ruby_wrap.c: In function ‘_wrap_Client_get_capability’:
ruby_wrap.c:2483: warning: pointer targets in passing argument 1 of ‘rb_str_new’ differ in signedness
ruby_wrap.c: In function ‘_wrap_Client_put_data’:
ruby_wrap.c:2583: error: ‘struct RString’ has no member named ‘len’
make[4]: *** [ruby_wrap.o] Błąd 1
make[4]: Opuszczenie katalogu `/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/swig/ruby'
make[3]: *** [obexftp.so] Błąd 2
make[3]: Opuszczenie katalogu `/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/swig/ruby'
make[2]: *** [all-recursive] Błąd 1
make[2]: Opuszczenie katalogu `/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/swig'
make[1]: *** [all-recursive] Błąd 1
make[1]: Opuszczenie katalogu `/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22'
make: *** [all] Błąd 2
 *
 * ERROR: app-mobilephone/obexftp-0.22 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2957:  Called die


Expected Results:  
If obexftp is capable of running with ruby19, when compiled with ruby18, it should temporarily switch the ruby version.
If obexftp cannot work with ruby19, it should disable ruby support, I suppose.

I found no errors running obexftp with ruby19 active, however I haven't really TESTED it.

Ruby versions:
ruby 1.9.1p0 (2009-01-30 revision 21907) [i686-linux]
ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-linux]

# emerge --info
Portage 2.2_rc23 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-i686-AMD_Athlon-tm-_XP_2400+-with-glibc2.0
Timestamp of tree: Sun, 08 Mar 2009 13:30:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.4.4-r14, 2.5.2-r7
dev-util/cmake:      2.4.8
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage-distfiles"
FEATURES="collision-protect distlocks fixpackages metadata-transfer parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="pl en ja"
MAKEOPTS="-j1"
PKGDIR="/usr/portage-packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS=" --exclude-from=/etc/portage/rsync_excludes --progress "
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/armagetron /usr/portage/local/layman/ruby /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dfx 3dnow X Xaw3d a52 aac aalib acpi alsa apache2 arts audiofile bash-completion berkdb bidi bluetooth branding bzip2 cairo cdparanoia cdr chroot cjk cli cracklib crypt cups dbus dga djbfft doc dri dts dv dvb dvd dvdr dvdread eds emboss encode evo examples exif f77 faad fam ffmpeg firefox flac font-server foomaticdb fortran fpx gcj gd gdbm gif gimp gimpprint gmp gnome gnutls gphoto2 gpm graphviz gstreamer gtk gtkhtml hal hardenedphp iconv idn isdnlog jack java jbig jpeg junit kde kdeenablefinal lcms ldap libcaca libclamav libnotify mad maildir matroska md5sum midi mikmod mmx mng mp3 mpeg mudflap ncurses nls nptl nptlonly oav objc ogg openexr opengl openmp pam pcre pdf perl png portaudio postgres povray ppds pppd python qt3 qt3support qt4 quicktime readline reflection ruby samba scanner sdk sdl session skey slang smartcard source speex spell spl sqlite sse ssl startup-notification subversion svg svga sysfs tcltk tcpd tetex theora tiff timidity truetype unicode usb v4l vcd vorbis win32codecs wmf x86 xine xinerama xml xml2 xorg xprint xulrunner xv xvid yv12 zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en ja" USERLAND="GNU" VIDEO_CARDS="radeon vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-09 18:27:12 UTC
Reassigning to maintainer, CCing mobile-phone herd, CCing ruby herd as well.
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2009-03-22 16:54:07 UTC
Ruby folks, please help me squeeze this bug. Feel free to submit a patch for the latest obexftp version available (currently 0.23).
Comment 3 Alex Legler (RETIRED) archtester gentoo-dev Security 2009-04-19 08:59:50 UTC
Created attachment 188853 [details, diff]
obexftp-ruby18.patch

Alin, that should do the trick.
I used .22, as .23 is still in p.mask, but I hope you get the idea. :)
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2009-04-25 10:57:25 UTC
OK, I've "fixed" it as explained in previous comment.
Comment 5 Laszlo Valko 2009-04-27 21:28:52 UTC
Created attachment 189649 [details]
"emerge -1v obexftp" before patch
Comment 6 Laszlo Valko 2009-04-27 21:29:22 UTC
Created attachment 189651 [details]
"emerge -1v obexftp" after patch
Comment 7 Laszlo Valko 2009-04-27 21:30:46 UTC
Alex, your patch broke compiling obexftp if I there's no ruby on my system.
Attached you'll find the emerge output before & after emerge --sync.