Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 305417 - net-im/amsn-0.98.1-r1 installs ELF files to /usr/share
Summary: net-im/amsn-0.98.1-r1 installs ELF files to /usr/share
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Gentoo Net-im project
URL:
Whiteboard:
Keywords:
: 388097 388101 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-16 18:10 UTC by Morten Larsen
Modified: 2012-05-28 13:39 UTC (History)
5 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 Morten Larsen 2010-02-16 18:10:42 UTC
Running 'revdep-rebuild --library libjpeg.so.7' does not rebuild TkCximage.so

Reproducible: Always

Steps to Reproduce:
1. Upgrade from media-libs/jpeg-7 to media-libs/jpeg-8
2. Run 'revdep-rebuild --library libjpeg.so.7'
3. Run 'rm /usr/lib64/libjpeg.so.7'
4. Start aMSN as watch how it errors out.
Actual Results:  
revdep-rebuild failed to detect the broken TkCximage.so and aMSN failed to start.

Expected Results:  
revdep-rebuild should have detected that TkCximage.so was broken and rebuild aMSN.

Portage 2.1.7.16 (default/linux/amd64/10.0/no-multilib, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r6 x86_64)
=================================================================                                                  
System uname: Linux-2.6.31-gentoo-r6-x86_64-Intel-R-_Core-TM-2_CPU_T5200_@_1.60GHz-with-gentoo-1.12.13             
Timestamp of tree: Sun, 14 Feb 2010 10:30:01 +0000                                                                 
distcc 3.1 x86_64-pc-linux-gnu [disabled]                                                                          
app-shells/bash:     4.0_p35                                                                                       
dev-java/java-config: 2.1.10                                                                                       
dev-lang/python:     2.6.4                                                                                         
dev-util/cmake:      2.6.4-r3                                                                                      
sys-apps/baselayout: 1.12.13                                                                                       
sys-apps/sandbox:    1.6-r2                                                                                        
sys-devel/autoconf:  2.13, 2.63-r1                                                                                 
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -mtune=core2 -march=core2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
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/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mtune=core2 -march=core2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
LDFLAGS="-Wl,-O1"
LINGUAS="en da"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit X acl alsa amd64 aspell berkdb bzip2 cdr cli cracklib crypt cups custom-cxxflags custom-optimization cxx dbus dri dvd dvdr fortran gdbm gif gpm hal iconv idn ipv6 jpeg jpeg2k kde libffi lm_sensors logitech-mouse logrotate mmx modules mudflap ncurses nls nptl nptlonly opengl openmp pam pcre perl png pppd python qt3support qt4 readline reflection session spell spl sse sse2 ssl svg sysfs tcpd threads tiff truetype unicode wifi xattr xorg zlib" ALSA_CARDS="hda-intel" 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en da" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Rafał Mużyło 2010-02-16 18:44:34 UTC
What were the errors exactly ?
Comment 2 Morten Larsen 2010-02-16 18:56:38 UTC
(In reply to comment #1)
> What were the errors exactly ?

When starting aMSN there was a error popup with something like:
Could not load file "/usr/share/amsn/utils/TkCximage/TkCximage.so": libjpeg.so.7: cannot open shared object file: No such file or directory

And then a message saying that aMSN cannot run without TkCximage.so.
Comment 3 Paul Varner (RETIRED) gentoo-dev 2010-02-16 19:58:26 UTC
I'm a bit surprised that the ebuild is installing libraries under /usr/share.  Anyhow, the resolution is to either install the libraries in the appropriate lib directory or if that is not possible, then a revdep-rebuild control file containing 'SEARCH_DIRS="/usr/share/amsn"' needs to be installed in the /etc/revdep-rebuild directory.

A workaround until this is fixed correctly is to add SEARCH_DIRS="/usr/share/amsn" to your /etc/make.conf file
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2010-02-22 13:19:04 UTC
Fixed Summary to reflect the real problem, /usr/share is no place for ELF's.
Comment 5 Pacho Ramos gentoo-dev 2010-07-02 21:17:09 UTC
This problem is also seen with libpng update
Comment 6 Pacho Ramos gentoo-dev 2011-01-30 13:39:32 UTC
Looking at Fedora spec seems that they move .tcl files to /usr/lib/tcl8.5, but some other changes are needed for that (look at sed commands in spec):
http://pkgs.fedoraproject.org/gitweb/?p=amsn.git;a=blob;f=amsn.spec;h=6408fc0028e7fa6b881cce359c0ef234d4577082;hb=HEAD

It looks to be the only distribution moving that files :-/

(In reply to comment #3)
> I'm a bit surprised that the ebuild is installing libraries under /usr/share. 
> Anyhow, the resolution is to either install the libraries in the appropriate
> lib directory or if that is not possible, then a revdep-rebuild control file
> containing 'SEARCH_DIRS="/usr/share/amsn"' needs to be installed in the
> /etc/revdep-rebuild directory.
> 
> A workaround until this is fixed correctly is to add
> SEARCH_DIRS="/usr/share/amsn" to your /etc/make.conf file
> 

I will commit a revision with a file for /etc/revdep-rebuild (keeping this opened to let maintainers decide if they are ok with this solution or prefer fedora's one) next week if nobody disagrees as I am a bit tired of seen users complaining due amsn being broken from time to time.
Comment 7 Olivier Crete (RETIRED) gentoo-dev 2011-01-30 21:00:04 UTC
I told upstream about it, they will fix it in the next release
Comment 8 Pacho Ramos gentoo-dev 2011-01-31 11:43:53 UTC
Nice, thanks :-)
Comment 9 Pacho Ramos gentoo-dev 2012-05-14 08:55:23 UTC
*** Bug 388097 has been marked as a duplicate of this bug. ***
Comment 10 Pacho Ramos gentoo-dev 2012-05-14 08:55:36 UTC
*** Bug 388101 has been marked as a duplicate of this bug. ***
Comment 11 Youness Alaoui 2012-05-25 22:15:15 UTC
This is fixed in the latest 0.98.9 release.
Thank you.
Comment 12 Pacho Ramos gentoo-dev 2012-05-26 07:05:38 UTC
Thanks Youness
Comment 13 Olivier Crete (RETIRED) gentoo-dev 2012-05-28 13:39:09 UTC
Fixed in 0.98.9