Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144243 - The artsdsp script (from kde-base/arts) sets a wrong path for artsdsp libs in LD_PRELOAD before excecuting the wrapped program
Summary: The artsdsp script (from kde-base/arts) sets a wrong path for artsdsp libs in...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-17 13:02 UTC by Juan Manuel Peralta
Modified: 2006-08-23 09:51 UTC (History)
0 users

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 Juan Manuel Peralta 2006-08-17 13:02:39 UTC
The artsdsp script tryes to figure out if the "to be wrapped" program is 32 or 64 bytes, and then uses that to setup LD_PRELOAD libs. The problem is that it points to the same 64 libs on 64 archs, even when the program to be runned is 32 bytes. The problem is in this switch:

    32-bit)
        arch_libdir=lib
...
     64-bit)
        arch_libdir=lib64

where lib turns out to be a symlink to lib64, under /usr/kde/3.5/ (at least for amd64)

In my case, this affected the netscape-plugin (32bytes) runned from konqueror (64bytes) using the nsplugin32 ebuild from the forums.  Flash animations worked, but without sound.  The following patch fixed the issue in my case:

--- artsdsp.orig        2006-08-17 11:46:40.000000000 -0500
+++ artsdsp     2006-08-17 11:48:50.000000000 -0500
@@ -108,2 +108,3 @@
     32-bit)
+          prefix=/emul/linux/x86/usr
        arch_libdir=lib
@@ -111,2 +112,3 @@
     64-bit)
+          prefix=/usr/kde/3.5
        arch_libdir=lib64
@@ -119,3 +121,3 @@

-prefix=/usr/kde/3.5
+#prefix=/usr/kde/3.5
 exec_prefix=${prefix}
@@ -131,2 +133,5 @@
 fi
+if test -f ${libdir}/libaoss.so.0; then
+  LD_PRELOAD=$LD_PRELOAD:${libdir}/libaoss.so.0
+fi
 export LD_PRELOAD

Many amd64 users would probably benefit from this.

Juan.

Portage 2.1.1_pre5-r1 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.4
Last Sync: Wed, 16 Aug 2006 14:30:07 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
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.59-r7
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-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-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/splash /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="es_CR.UTF-8"
LC_ALL="es_CR.UTF-8"
LINGUAS="es"
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="/usr/tmp-portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/portage /usr/portage/local/layman/portage-xgl"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa arts avi berkdb bitmap-fonts bzip2 cdparanoia cli crypt cups curl dbus dlloader dri dts dv dvb dvd dvdr eds elibc_glibc emboss encode expat fam fbcon ffmpeg flac foomaticdb fortran gcj gif glitz gpm gstreamer gtk2 hal imagemagick imlib input_devices_keyboard input_devices_mouse input_devices_synaptics ipv6 isdnlog jack java jpeg kde kernel_linux linguas_es lzw lzw-tiff mad mp3 mpeg ncurses nls nptl nptli ogg oggvorbis opengl oss pam pcre pda pdflib perl pic png pppd python qt qt3 qt4 quicktime readline reflection samba scanner sdl session spell spl ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode usb userland_GNU v4l v4l2 video_cards_fbdev video_cards_fglrx video_cards_radeon video_cards_v4l video_cards_vesa video_cards_vga vorbis xcomposite xine xml xml2 xmms xorg xpm xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2006-08-23 09:47:17 UTC
Thanks for your bug report Juan. arts-3.5.4-r1 should work fine, otherwise reopen, please.
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2006-08-23 09:51:51 UTC
.