Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55263 - dev-ruby/ruby-panel-applet-0.34 does not build and install correctly because gnome-config cannot find its libraries
Summary: dev-ruby/ruby-panel-applet-0.34 does not build and install correctly because ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-26 10:28 UTC by Ferris McCormick (RETIRED)
Modified: 2005-11-15 03:43 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ferris McCormick (RETIRED) gentoo-dev 2004-06-26 10:28:24 UTC
dev-ruby/ruby-panel-applet-0.34 tries to find it's libraries by using gnome-config, thus:

gnome-config --libs applets

This seems to have 3 problems:
1.  I think the library it wants is panel-applet;
2.  The ebuild needs a DEPEND for gnome-applets  (just ruby-gnome is not enough)
3.  'gnome-config --libs panel-applet' cannot find panel-applet (at least, it
    can't on any of my systems)

Reproducible: Always
Steps to Reproduce:
1.For me, in PORTDIR_OVERLAY add ~sparc to dev-ruby/ruby-panel-applet-0.34.ebuild
2.ACCEPT_KEYWORDS='~sparc' emerge ruby-panel-applet
3.

Actual Results:  
portage thinks ruby-panel-applet is installed, but it is not because the application
never got built:  It looks like this---
==========================
>>> Unpacking ruby-gnome-all-0.34.tar.gz to
/var/tmp/portage/ruby-panel-applet-0.34/work
>>> Source unpacked.
Unknown library `applets'
Unknown library `applets'
checking for XOpenDisplay() in -lX11... no

***
Could not find libX11.
You can specify its path using --with-X11-lib=/path/
>>> Test phase [not enabled]: dev-ruby/ruby-panel-applet-0.34

>>> Install ruby-panel-applet-0.34 into
/var/tmp/portage/ruby-panel-applet-0.34/image/ category dev-ruby
make: *** No rule to make target `site-install'.  Stop.
/usr/lib/portage/bin/dodoc: README does not exist.
man:
prepallstrip:
strip: 
strip: 
>>> Completed installing into /var/tmp/portage/ruby-panel-applet-0.34/image/

>>> Merging dev-ruby/ruby-panel-applet-0.34 to /
--- /usr/
--- /usr/share/
--- /usr/share/doc/
>>> /usr/share/doc/ruby-panel-applet-0.34/
>>> /usr/share/doc/ruby-panel-applet-0.34/sample/
>>> /usr/share/doc/ruby-panel-applet-0.34/sample/clock-applet.rb
>>> /usr/share/doc/ruby-panel-applet-0.34/COPYING.LIB.gz
>>> /usr/share/doc/ruby-panel-applet-0.34/ChangeLog.gz
 * Caching service dependencies...
>>> dev-ruby/ruby-panel-applet-0.34 merged.
>>> Recording dev-ruby/ruby-panel-applet in "world" favorites file...
====================================
And --- no surprise --- if you try to use it,
fmccor@fer-de-lance sample $ ruby clock-applet.rb
clock-applet.rb:6:in `require': No such file to load -- panel-applet (LoadError)
        from clock-applet.rb:6

Expected Results:  
It should find its libraries and build, of course.

fmccor@fer-de-lance NS-EXAMPLES $ emerge info
Portage 2.0.51_pre12 (default-sparc64-2004.0, gcc-3.3.3, glibc-2.3.2-r9, 2.6.6)
=================================================================
System uname: 2.6.6 sparc64 sun4u
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
Binutils: sys-devel/binutils-2.14.90.0.7-r4
ACCEPT_KEYWORDS="sparc"
AUTOCLEAN="yes"
CFLAGS="-mcpu=ultrasparc -O2 -mtune=ultrasparc -pipe"
CHOST="sparc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=ultrasparc -O2 -mtune=ultrasparc -pipe -Wno-deprecated"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache cvs sandbox"
GENTOO_MIRRORS="ftp://mirrors.tds.net/gentoo
http://open-systems.ufl.edu/mirrors/gentoo
ftp://ftp.ussg.iu.edu/pub/linux/gentoo
ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ http://gentoo.netnitco.net"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="sparc X Xaw3d avi berkdb crypt encode fbcon foomaticdb gdbm gif gpm gtk
gtk2 imlib java jpeg libwww mad mikmod motif mozilla mpeg mpi mysql ncurses nls
opengl pam pdflib perl png python qt readline ruby ruby18 sdl slang spell sqlite
ssl tcltk tcpd tetex tiff truetype xml2 xmms xv zlib"

(Everything else in the ruby-gnome-all-0.34 collection builds and runs fine)
Comment 1 Ferris McCormick (RETIRED) gentoo-dev 2004-06-26 10:30:44 UTC
I am almost certain this is not sparc-specific, but I am copying sparc for informational purposes.
Comment 2 Ferris McCormick (RETIRED) gentoo-dev 2004-06-26 10:34:20 UTC
Add CC to ruby@gentoo.org (it's probably theirs, anyway, I suppose.)
Comment 3 Ferris McCormick (RETIRED) gentoo-dev 2004-06-26 10:38:24 UTC
I should have mentioned:  The gnome dependencies for the package are fresh installs, thus:
 Sun May  9 15:52:50 2004 --> gnome-base/gnome-libs-1.4.2
 Sat Jun 26 16:59:46 2004 --> gnome-base/gnome-libs-1.4.2
 Sat Jun 26 16:07:19 2004 --> gnome-base/gnome-applets-2.4.2

Comment 4 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-07-04 08:04:50 UTC
I don't think it's gnome-applets but gnome-panel (=1.4*) that is
missing on your system. Does emerging gnome-panel (=1.4*) fix the
problem?
Comment 5 Jason Wever (RETIRED) gentoo-dev 2005-01-11 16:50:33 UTC
Emerging gnome-panel-1.4.2-r2 makes this compile for me on a ~sparc box.
Comment 6 Ferris McCormick (RETIRED) gentoo-dev 2005-01-12 05:40:50 UTC
Still broken with gnome-panel-2.8.2, though.
Comment 7 Haplo 2005-09-21 09:13:20 UTC
Wow, this bug is like over a year old.
And I'm pretty sure it's an ebuild thing becaused wehn I unpack the source and
manually run configure it works fine.
Any love?
Comment 8 Ferris McCormick (RETIRED) gentoo-dev 2005-09-21 10:54:59 UTC
Current gnome-panel is gnome-base/gnome-panel-2.10.2.  This installs a library
/usr/lib/libpanel-applet-2.so.0.1.5.  An attempt to 'emerge ruby-panel-applet'
with version 0.34 appropriately keyworded gives:
==============================================
>>> md5 src_uri ;-) ruby-gnome-all-0.34.tar.gz
>>> Unpacking source...
>>> Unpacking ruby-gnome-all-0.34.tar.gz to
/var/tmp/portage/ruby-panel-applet-0.34/work
>>> Source unpacked.
extconf.rb:23: warning: Insecure world writable dir /homes/cache/bin, mode 040777
Unknown library `applets'
extconf.rb:24: warning: Insecure world writable dir /homes/cache/bin, mode 040777
Unknown library `applets'
checking for XOpenDisplay() in -lX11... yes
checking for XOpenDevice() in -lXi... yes
checking for XextFindDisplay() in -lXext... yes
checking for XmuInternAtom() in -lXmu... yes
checking for g_print()... no
=========================================================
It wants 'gnome-config --libs applets.  But to get /usr/lib/appletsConf.sh, you
need gnome-base/gnome-panel-1.4.2-r2.  So, ruby-panel-applet needs to depend on
exactly that version of gnome-panel in order to build.  (The warnings are
because I do have such a directory on this system.)

I have verified that if you just have emerged gnome-panel, you get
gnome-panel-2.10.2, which does not have appletsConf.sh, but if you also force
gnome-panel-1.4.2-r2, ruby-panel-applet builds fine.  So, this bug boils down to
a problem in the Dependencies in the ebuild.  It looks like it needs
DEPEND="... =gnome-base/gnome-panel-1.4.2-r2 ..."

If you (or I or someone) makes this change, I'll verify it, close this bug, and
give ruby-panel-applet its ~sparc.
Comment 9 Michael Kohl (RETIRED) gentoo-dev 2005-09-21 11:01:33 UTC
As a member of the ruby herd I'd be grateful if you can get us rid of this bug,
Ferris! Thanks!
Comment 10 Ferris McCormick (RETIRED) gentoo-dev 2005-09-21 12:36:24 UTC
This is fixed on sparc by adding a dependency "sparc? (
=gnome-base/gnome-panel-1.4.2-r2 )".  I think all architectures should require
this, but I cannot verify.  Hence, I am leaving the bug open, but removing sparc
from the CC list and adding ~sparc to the ebuild for 0.34.

Sorry I can't close completely, but I cannot test on other architectures.  I'm
pretty sure that this is not sparc-specific, though, and that the dependency has
to be unconditional in order for this to build.
Comment 11 Haplo 2005-09-21 22:35:48 UTC
rar
I feel dumb, I was looking for panel-applet2 for gnome2 for ruby
I dont have gnome1 installed, so thats probably why it failed.
Still, a) ruby-gnome is out with 0.13 now, and b) since it's shipped as one
package, why all the separate ebuilds, and can we get one for the panel-applet
module since there doesnt seem to be one?
Or do I need to enter another bug.  Anything I might be able to do to help in my
not trained in gentoo zen way?
Comment 12 Michael Kohl (RETIRED) gentoo-dev 2005-09-22 00:57:00 UTC
(In reply to comment #11)
> a) ruby-gnome is out with 0.13 now, 

We know.

> b) since it's shipped as one package, why all the separate ebuilds

When you actually download and unpack that "one package", you'll find there are
folders corresponding to the different ebuilds, where each will have to be
installed seperately. Hope that makes more sense now.

I planned to do the ruby-gnome-0.13.0 version bump since it came out, but I
never really found the time for it. If nobody beats me to it, you'll have to
wait a little longer I'm afraid...
Comment 13 Haplo 2005-09-22 08:24:52 UTC
Ha, ok, makes decent sense.  Only wondered becasue this way some packages got
left out that did get shipped.  Is it more the renaming all the ebuilds and
making sure they install?  BecauseI  can try that and test it in my portage
overlay.  Is there anything else I could do to help? Also, is there code in
portage that runs on this stuff so I can test it works for you?
Comment 14 Michael Kohl (RETIRED) gentoo-dev 2005-11-15 03:43:43 UTC
Haplo, ruby-gnome2-0.14.1 has just been commited. The included
ruby-panel-applet2 should take care of your problems, if not feel free to reopen
this bug.