<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>155646</bug_id>
          
          <creation_ts>2006-11-19 01:31 0000</creation_ts>
          <short_desc>emerge dev-ruby/rmagick-1.9.3-r1 fails</short_desc>
          <delta_ts>2006-12-03 02:35:07 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>155112</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>Peter.Werner@freemail.hu</reporter>
          <assigned_to>ruby@gentoo.org</assigned_to>
          <cc>fauli@gentoo.org</cc>
    
    <cc>graaff@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>Peter.Werner@freemail.hu</who>
            <bug_when>2006-11-19 01:31:56 0000</bug_when>
            <thetext>Look for &quot;rmutil.c:1551: error: incompatible types in assignment&quot;.

See also bug 155112 comment #2.


=== build tail ===

i686-pc-linux-gnu-gcc -I. -I/usr/lib/ruby/1.8/i686-linux -I/usr/lib/ruby/1.8/i686-linux -I/var/tmp/portage/rmagick-1.9.3-r1/work/RMagick-1.9.3/ext/RMagick -DRUBY_VERSION=0x185  -I/usr/include -fPIC -Wall -g -march=pentium-m -O2 -pipe -fomit-frame-pointer  -c rmutil.c
rmutil.c: In function </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>Peter.Werner@freemail.hu</who>
            <bug_when>2006-11-19 01:31:56 0000</bug_when>
            <thetext>Look for &quot;rmutil.c:1551: error: incompatible types in assignment&quot;.

See also bug 155112 comment #2.


=== build tail ===

i686-pc-linux-gnu-gcc -I. -I/usr/lib/ruby/1.8/i686-linux -I/usr/lib/ruby/1.8/i686-linux -I/var/tmp/portage/rmagick-1.9.3-r1/work/RMagick-1.9.3/ext/RMagick -DRUBY_VERSION=0x185  -I/usr/include -fPIC -Wall -g -march=pentium-m -O2 -pipe -fomit-frame-pointer  -c rmutil.c
rmutil.c: In function Color_from_ColorInfo:
rmutil.c:1510: warning: dereferencing type-punned pointer will break strict-aliasing rules
rmutil.c: In function Color_to_ColorInfo:
rmutil.c:1551: error: incompatible types in assignment
rmutil.c: In function Color_to_s:
rmutil.c:1581: warning: format %d expects type int, but argument 5 has type MagickRealType
rmutil.c:1581: warning: format %d expects type int, but argument 6 has type MagickRealType
rmutil.c:1581: warning: format %d expects type int, but argument 7 has type MagickRealType
rmutil.c:1581: warning: format %d expects type int, but argument 8 has type MagickRealType
make: *** [rmutil.o] Error 1
setup failed
&apos;system make&apos; failed
try &apos;ruby install.rb --help&apos; for usage

!!! ERROR: dev-ruby/rmagick-1.9.3-r1 failed.


=== emerge --info ===

Portage 2.1.1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r2-wp1 i686)
=================================================================
System uname: 2.6.18-gentoo-r2-wp1 i686 Intel(R) Pentium(R) M processor 1.73GHz
Gentoo Base System version 1.12.6
Last Sync: Sat, 18 Nov 2006 16:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-march=pentium-m -O2 -pipe -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c&quot;
CXXFLAGS=&quot;-march=pentium-m -O2 -pipe -fomit-frame-pointer&quot;
DISTDIR=&quot;/mnt/portage/distfiles&quot;
FEATURES=&quot;autoconfig ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://trumpetti.atm.tut.fi/gentoo/ http://gentoo.inode.at/&quot;
LANG=&quot;hu_HU.UTF-8&quot;
LINGUAS=&quot;hu en de&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage-rw/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=&apos;/distfiles&apos; --exclude=&apos;/local&apos; --exclude=&apos;/packages&apos;&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.europe.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 7zip X a52 aac aalib acl acpi alsa apache2 arts bash-completion berkdb bitmap-fonts bzip2 cdparanoia cdr cli cpudetection cracklib crypt cscope cups curl dbus dga directfb dlloader dnd doc dri dts dv dvd dvdr dvdread ecc edl eds elibc_glibc emboss encode esd evo examples exif expat extensions fam fame fbcon ffmpeg firefox flac flash foomaticdb fortran freetds fuse gcj gd gdbm ggi gif gimpprint gnome gnutls gpgme gphoto2 gpm graphviz graphwiz gstreamer gtk gtk2 hal iconv idea idn ieee1394 imagemagick imap innodb input_devices_keyboard input_devices_mouse ipv6 isdnlog j2ee jabber jack java javacomm javadoc javamail javascript jbig jboss jce jikes jms jmx jpeg jpeg2k junit kernel_linux ldap libcaca libg++ linguas_de linguas_en linguas_hu live log4j logrotate lzo mad math matroska memlimit mikmod mjpeg mmap mmx mono mozcalendar mozdevelop mozilla mozsvg mp3 mpeg mpeg4 mule mysql ncurses new-login nfs nls no-suexec nptl nptlonly nsplugin odbc offensive ogg ole opengl openssl oss pam pam_chroot pam_console pam_timestamp pcmcia pcre pdf perl pg-intdatetime php png postfix ppds pppd python qt3 qt4 quicktime readline real reflection rtc samba sasl scanner sdl seamonkey servlet-2.4 session sftplogging shared sharedmem slang smime smp snmp softmmu source sox spell spl srvdir sse sse2 ssl svg svga tcpd tetex theora threads tidy tiff transcode truetype truetype-fonts type1-fonts udev unicode userland_GNU utf8 vhosts video_cards_ati video_cards_fglrx video_cards_radeon vim vorbis win32codecs wma xface xinerama xinetd xml xml2 xmlrpc xorg xsl xv xvid xvmc zlib&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>plato@bu.edu</who>
            <bug_when>2006-11-19 03:54:44 0000</bug_when>
            <thetext>confirmed as a no-go with the same errors as above.

henrywinkler plato # emerge --info
Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r2 i686)
=================================================================
System uname: 2.6.18-gentoo-r2 i686 Intel(R) Pentium(R) M processor 1.86GHz
Gentoo Base System version 1.12.6
Last Sync: Sun, 19 Nov 2006 11:20:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=pentium-m -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c&quot;
CXXFLAGS=&quot;-O2 -march=pentium-m -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig distlocks metadata-transfer sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://adelie.polymtl.ca/ http://mirror.datapipe.net/gentoo ftp://mirror.datapipe.net/gentoo http://www.gtlib.gatech.edu/pub/gentoo http://gentoo.mirrors.tds.net/gentoo&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=&apos;/distfiles&apos; --exclude=&apos;/local&apos; --exclude=&apos;/packages&apos;&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.namerica.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 3dfx 3dnow X a52 aac aalib acpi aiglx alsa apache2 arts artworkextra asf automount bash-completion bcmath beagle berkdb bitmap-fonts bzip2 cairo calendar cdr cgi chm cli cracklib crypt cups curl curl-wrappers dbus directfb dlloader doc dri dv dvd dvdr dvdread effects elibc_glibc emacs encode esd extraengine ffmpeg firebird firefox flac fontconfig fortran ftp gd gdbm gif gimpprint glitz gnome gnutls gpm gstreamer gtk gtk2 gtkhtml guile hal hash iconv imagemagick imap input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jack java jpeg jpeg2k kerberos kernel_linux ldap libcaca libg++ mad matroska mhash mmx mng mono mp3 mp4 mpeg mpm-prefork mysql mysqli nautilus ncurses nls nptl nptlonly nsplugin ntfs offensive ogg openal opengl oss pam pcre pdf pdo perl php plugin png posix postgres ppds pppd python qt3 quicktime rdesktop readline reflection ruby samba session skins soap sockets spell spl sqlite sse sse2 ssl svg svga symlink syslog tcpd theora tidy tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb userland_GNU vcd video_cards_r128 video_cards_radeon video_cards_vga video_cards_vmware vorbis widescreen win32codecs wma wmf wxwindows x264 xine xinerama xml xmlreader xmlrpc xmlwriter xorg xpm xprint xsl xvid zip zlib&quot;Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>graaff@gentoo.org</who>
            <bug_when>2006-11-25 12:10:25 0000</bug_when>
            <thetext>Created an attachment (id=102720)
rmagick-1.14.1.ebuild

I&apos;ve included an ebuild for RMagick 1.14.1. This version fixes some compatibility issues with ImageMagick 6.3.0 and seems to be the way to solve this bug.

Two things to note about the ebuild:

1) I had to change the download path.
2) I had to include a custom src_install section to force the ebuild to install in ${D}. After just copying the latest rmagick ebuild I got access violation errors because the ebuild tried to install directly into the live filesystem. After adding a --prefix option to the &quot;setup.rb install&quot; things end up in the right place, but I&apos;m not sure if this is a hack needed for this particular build, or something that needs to be handled in the ruby eclass. 
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>caleb@gentoo.org</who>
            <bug_when>2006-11-25 12:43:21 0000</bug_when>
            <thetext>if you&apos;re happy to help maintain, I&apos;m happy to say &quot;go for it!&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>graaff@gentoo.org</who>
            <bug_when>2006-11-30 23:24:40 0000</bug_when>
            <thetext>Caleb, I&apos;ll consider maintaining it. However, before updating anything in portage I would really like to get some feedback on the ebuild. In particular the fact that I had to overrule the default install step from the ruby eclass. Even though the ebuild works for me it just doesn&apos;t seem the right thing to do.

I&apos;ll try to have a look at the current rmagick package to see why things don&apos;t work as expected anymore, but some feedback from someone familiar with the gem build system would be welcome.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kernelsensei@gentoo.org</who>
            <bug_when>2006-11-30 23:51:53 0000</bug_when>
            <thetext>Hi Hans,

I tried to write an ebuild for rmagick-1.14.1 too and I had the same problem. The old version uses the install.rb script and the new one, the setup.rb script.

In the eclass, the behavior for the packages which use setup.rb is (in the install step) IIRC:

${RUBY} setup.rb config --prefix=${D}/usr/ ......
${RUBY} setup.rb setup .....

I had a look at the setup.rb script and it seems that the *config*&quot; --prefix=&quot; argument isn&apos;t used at the install time and that we should do :

${RUBY} setup.rb install --prefix=${D}/usr/


Maybe did I miss something or maybe didn&apos;t I quite understand the setup.rb code, so, if you want to have a look to this file too... because if the eclass was buggy, then we would have some other &quot;setup.rb-ed&quot; ruby packages which don&apos;t work, wouldn&apos;t we ?

Boris.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>graaff@gentoo.org</who>
            <bug_when>2006-12-03 02:35:07 0000</bug_when>
            <thetext>I&apos;ve just added an ebuild for dev-ruby/RMagick-1.14.1 to portage.

I&apos;ve also opened a new bug #156972 to determine if this is a general problem that may affect the ruby.eclass.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>102720</attachid>
            <date>2006-11-25 12:10 0000</date>
            <desc>rmagick-1.14.1.ebuild</desc>
            <filename>rmagick-1.14.1.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDA2IEdlbnRvbyBGb3VuZGF0aW9uCiMgRGlzdHJpYnV0ZWQgdW5k
ZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSB2MgojICRIZWFk
ZXI6IC92YXIvY3Zzcm9vdC9nZW50b28teDg2L2Rldi1ydWJ5L3JtYWdpY2svcm1hZ2ljay0xLjEw
LjEuZWJ1aWxkLHYgMS4xIDIwMDYvMDQvMTMgMTE6NTI6NTcgY2FsZWIgRXhwICQKCmluaGVyaXQg
cnVieQoKIwojIFRoZSBnZW0gZm9yIHRoaXMgcGFja2FnZSBkb2Vzbid0IHNlZW0gdG8gcGxheSB3
ZWxsIHdpdGggcG9ydGFnZS4gIEl0IHJ1bnMgYSBHTlVpc2ggY29uZmlndXJlIHNjcmlwdCwgd2l0
aCBhcmd1bWVudAojIHBhc3NlZCBkaXJlY3RseSBmcm9tIHRoZSBnZW0gaW5zdGFsbCBjb21tYW5k
LCBidXQgZ2VtIGluc3RhbGwgZG9lc24ndCB1c2UgdGhlIHNhbWUgc3R5bGUgb2YgYXJndW1lbnRz
LiAgVGh1cywgdW5sZXNzCiMgeW91J3JlIHNtYXJ0IGVub3VnaCB0byBjb21lIHVwIHdpdGggYSBm
aXgsIHBsZWFzZSBsZWF2ZSB0aGlzIGFzIGEgc291cmNlIHBhY2thZ2UgaW5zdGFsbC4KIwoKREVT
Q1JJUFR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