Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 155646
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Ruby Team <ruby@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Péter Werner <Peter.Werner@freemail.hu>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
rmagick-1.14.1.ebuild rmagick-1.14.1.ebuild text/plain Hans de Graaff 2006-11-25 12:10 0000 1.25 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 155646 depends on: Show dependency tree
Bug 155646 blocks: 155112
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-11-19 01:31 0000
Look for "rmutil.c:1551: error: incompatible types in assignment".

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 

------- Comment #1 From Péter Werner 2006-11-19 01:31:56 0000 -------
Look for "rmutil.c:1551: error: incompatible types in assignment".

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
'system make' failed
try 'ruby install.rb --help' 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="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
DISTDIR="/mnt/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer
parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://gentoo.inode.at/"
LANG="hu_HU.UTF-8"
LINGUAS="hu en de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage-rw/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="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"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS,
PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #2 From Justin Williamson 2006-11-19 03:54:44 0000 -------
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="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe"
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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="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"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="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"Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

------- Comment #3 From Hans de Graaff 2006-11-25 12:10:25 0000 -------
Created an attachment (id=102720) [details]
rmagick-1.14.1.ebuild

I'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 "setup.rb install" things end up in the
right place, but I'm not sure if this is a hack needed for this particular
build, or something that needs to be handled in the ruby eclass. 

------- Comment #4 From Caleb Tennis 2006-11-25 12:43:21 0000 -------
if you're happy to help maintain, I'm happy to say "go for it!"

------- Comment #5 From Hans de Graaff 2006-11-30 23:24:40 0000 -------
Caleb, I'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't seem the right thing to do.

I'll try to have a look at the current rmagick package to see why things don't
work as expected anymore, but some feedback from someone familiar with the gem
build system would be welcome.

------- Comment #6 From Boris Fersing 2006-11-30 23:51:53 0000 -------
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*" --prefix="
argument isn'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'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 "setup.rb-ed" ruby packages which
don't work, wouldn't we ?

Boris.

------- Comment #7 From Hans de Graaff 2006-12-03 02:35:07 0000 -------
I've just added an ebuild for dev-ruby/RMagick-1.14.1 to portage.

I've also opened a new bug #156972 to determine if this is a general problem
that may affect the ruby.eclass.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug