Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 302967

Summary: dev-ruby/mysql-ruby-2.8.1-r1 does not build ruby19 target
Product: Gentoo Linux Reporter: Balint Dobai-Pataky <dpblnt>
Component: [OLD] LibraryAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description Balint Dobai-Pataky 2010-01-31 11:38:13 UTC
# emerge -va -j1 mysql-ruby

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] dev-ruby/mysql-ruby-2.8.1-r1 [2.8.1] USE="-test%" RUBY_TARGETS="ruby18%* (-ruby19)" 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] 

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-ruby/mysql-ruby-2.8.1-r1
 * mysql-ruby-2.8.1.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                             [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                   [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                  [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                 [ ok ]
>>> cfg-update-1.8.2-r1: Checksum index is up-to-date ...
 * CPV:  dev-ruby/mysql-ruby-2.8.1-r1
 * REPO: gentoo
 * USE:  amd64 elibc_glibc kernel_linux multilib ruby_targets_ruby18 userland_GNU
>>> Unpacking source...
 * Running unpack phase for all ...
>>> Unpacking mysql-ruby-2.8.1.tar.gz to /dev/shm/portage/dev-ruby/mysql-ruby-2.8.1-r1/work/all
>>> Source unpacked in /dev/shm/portage/dev-ruby/mysql-ruby-2.8.1-r1/work
>>> Preparing source in /dev/shm/portage/dev-ruby/mysql-ruby-2.8.1-r1/work ...
 * Running prepare phase for all ...
 * Applying mysql-ruby-2.8.1-test.patch ...                                                                                                             [ ok ]
 * Running source copy phase for ruby18 ...
>>> Source prepared.
>>> Configuring source in /dev/shm/portage/dev-ruby/mysql-ruby-2.8.1-r1/work ...
 * Running configure phase for ruby18 ...
checking for mysql_query() in -lmysqlclient... yes
checking for mysql_ssl_set()... yes
checking for rb_str_set_len()... no
checking for rb_thread_start_timer()... yes
checking for mysql.h... no
checking for mysql/mysql.h... yes
creating Makefile
>>> Source configured.
>>> Compiling source in /dev/shm/portage/dev-ruby/mysql-ruby-2.8.1-r1/work ...
 * Running compile phase for ruby18 ...
make -j3 
x86_64-pc-linux-gnu-gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DHAVE_MYSQL_SSL_SET -DHAVE_RB_THREAD_START_TIMER -DHAVE_MYSQL_MYSQL_H -I/usr/local/include   -fPIC -O2 -march=native -pipe -mtune=native -fno-strict-aliasing  -fPIC  -c mysql.c
mysql.c: In function ‘time_inspect’:
mysql.c:1797: warning: format ‘%04d’ expects type ‘int’, but argument 3 has type ‘long int’
mysql.c:1797: warning: format ‘%02d’ expects type ‘int’, but argument 4 has type ‘long int’
mysql.c:1797: warning: format ‘%02d’ expects type ‘int’, but argument 5 has type ‘long int’
mysql.c:1797: warning: format ‘%02d’ expects type ‘int’, but argument 6 has type ‘long int’
mysql.c:1797: warning: format ‘%02d’ expects type ‘int’, but argument 7 has type ‘long int’
mysql.c:1797: warning: format ‘%02d’ expects type ‘int’, but argument 8 has type ‘long int’
mysql.c: In function ‘time_to_s’:
mysql.c:1810: warning: format ‘%04d’ expects type ‘int’, but argument 3 has type ‘long int’
mysql.c:1810: warning: format ‘%02d’ expects type ‘int’, but argument 4 has type ‘long int’
mysql.c:1810: warning: format ‘%02d’ expects type ‘int’, but argument 5 has type ‘long int’
mysql.c:1810: warning: format ‘%02d’ expects type ‘int’, but argument 6 has type ‘long int’
mysql.c:1810: warning: format ‘%02d’ expects type ‘int’, but argument 7 has type ‘long int’
mysql.c:1810: warning: format ‘%02d’ expects type ‘int’, but argument 8 has type ‘long int’
x86_64-pc-linux-gnu-gcc -shared -o mysql.so mysql.o -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L/usr/local/lib -Wl,-R/usr/local/lib -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic    -Wl,-R -Wl,/usr/lib64 -L/usr/lib64 -lruby18 -lmysqlclient  -lpthread -lrt -ldl -lcrypt -lm   -lc
 * Running compile phase for all ...
>>> Source compiled.
>>> Test phase [not enabled]: dev-ruby/mysql-ruby-2.8.1-r1

>>> Install mysql-ruby-2.8.1-r1 into /dev/shm/portage/dev-ruby/mysql-ruby-2.8.1-r1/image/ category dev-ruby
 * Running install phase for ruby18 ...
make -j3 DESTDIR=/dev/shm/portage/dev-ruby/mysql-ruby-2.8.1-r1/image/ install 
mkdir -p /dev/shm/portage/dev-ruby/mysql-ruby-2.8.1-r1/image//usr/lib64/ruby/site_ruby/1.8/x86_64-linux
/usr/bin/install -c -m 0755 mysql.so /dev/shm/portage/dev-ruby/mysql-ruby-2.8.1-r1/image//usr/lib64/ruby/site_ruby/1.8/x86_64-linux
 * Running install phase for all ...
 * Running check install phase for ruby18 ...
>>> Completed installing mysql-ruby-2.8.1-r1 into /dev/shm/portage/dev-ruby/mysql-ruby-2.8.1-r1/image/

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment
   usr/lib64/ruby/site_ruby/1.8/x86_64-linux/mysql.so

>>> Installing (1 of 1) dev-ruby/mysql-ruby-2.8.1-r1
 * checking 5 files for package collisions
--- /usr/
--- /usr/share/
--- /usr/share/doc/
>>> /usr/share/doc/mysql-ruby-2.8.1-r1/
>>> /usr/share/doc/mysql-ruby-2.8.1-r1/html/
>>> /usr/share/doc/mysql-ruby-2.8.1-r1/html/tommy.css
>>> /usr/share/doc/mysql-ruby-2.8.1-r1/html/README_ja.html
>>> /usr/share/doc/mysql-ruby-2.8.1-r1/html/README.html
--- /usr/lib64/
--- /usr/lib64/ruby/
--- /usr/lib64/ruby/gems/
--- /usr/lib64/ruby/gems/1.8/
--- /usr/lib64/ruby/gems/1.8/specifications/
>>> /usr/lib64/ruby/gems/1.8/specifications/mysql-2.8.1.gemspec
--- /usr/lib64/ruby/site_ruby/
--- /usr/lib64/ruby/site_ruby/1.8/
--- /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/
>>> /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/mysql.so
>>> Safely unmerging already-installed instance...
No package files given... Grabbing a set.
<<<          obj /usr/share/mysql-ruby/test/test.rb
<<<          obj /usr/share/doc/mysql-ruby-2.8.1/html/tommy.css
<<<          obj /usr/share/doc/mysql-ruby-2.8.1/html/README_ja.html
<<<          obj /usr/share/doc/mysql-ruby-2.8.1/html/README.html
--- replaced dir /usr/share/doc
--- replaced dir /usr/share
<<<          obj /usr/lib64/ruby19/site_ruby/1.9.1/x86_64-linux/mysql.so
--- replaced obj /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/mysql.so
--- replaced dir /usr/lib64/ruby/site_ruby/1.8/x86_64-linux
--- replaced dir /usr/lib64/ruby/site_ruby/1.8
--- replaced dir /usr/lib64/ruby/site_ruby
--- replaced dir /usr/lib64/ruby
--- replaced dir /usr/lib64
--- replaced dir /usr
<<<          dir /usr/share/mysql-ruby/test
<<<          dir /usr/share/mysql-ruby
<<<          dir /usr/share/doc/mysql-ruby-2.8.1/html
<<<          dir /usr/share/doc/mysql-ruby-2.8.1
--- !empty   dir /usr/lib64/ruby19/site_ruby/1.9.1/x86_64-linux
--- !empty   dir /usr/lib64/ruby19/site_ruby/1.9.1
--- !empty   dir /usr/lib64/ruby19/site_ruby
--- !empty   dir /usr/lib64/ruby19
>>> Original instance of package unmerged safely.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.


Reproducible: Always
Comment 1 Balint Dobai-Pataky 2010-01-31 11:39:24 UTC
Created attachment 217987 [details]
emerge --info

# grep RUBY /etc/make.conf
RUBY_TARGETS="ruby18 ruby19"

# qlist mysql-ruby|grep so
/usr/lib64/ruby/site_ruby/1.8/x86_64-linux/mysql.so
Comment 2 Alex Legler (RETIRED) archtester gentoo-dev Security 2010-01-31 11:50:50 UTC
The ruby19 flag is put in parentheses which indicates it is masked. The ruby team does not encourage you to use it at this point in time. If you still want to use it, you need to unmask the flag manually. Review the portage docs for details on that.