Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109933 - dev-tcltk/snack installs to wrong path
Summary: dev-tcltk/snack installs to wrong path
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: TCL/TK Project
URL:
Whiteboard:
Keywords:
: 127165 136541 149275 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-20 09:47 UTC by Christian Fernandez
Modified: 2006-11-23 03:29 UTC (History)
6 users (show)

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


Attachments
Adds --libdir=/usr/lib to myconf (snack-2.2.9-fix-libdir.patch,378 bytes, patch)
2005-10-20 12:56 UTC, Andy Kissner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Fernandez 2005-10-20 09:47:41 UTC
the application WaveSurfer all versions complains that can't find snack 2.2
librarys and wavesurfer wont start and crash with an error.


Reproducible: Always
Steps to Reproduce:
1. emerge snack
2. emerge wavesurfer
3. from X windows/KDE run wavesurfer

Actual Results:  
Error in startup script: can't find package snack
    while executing
"package require snack"
    (file "/usr/lib/wsurf1.8/wsurf.tcl" line 10)
    invoked from within
"_source /usr/lib/wsurf1.8/wsurf.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel _source [list $file]"
    (procedure "source" line 5)
    invoked from within
"source /usr/lib/wsurf1.8/wsurf.tcl"
    ("package ifneeded" script)
    invoked from within
"package require -exact wsurf $version"
    (file "/usr/bin/wavesurfer" line 2579)

Expected Results:  
to run :-)

we notes that snack installs his libraries under /lib INSTAED of /usr/lib
so what we did in the mean time is a small hack linking:
ln -s /lib/snack2.2 /usr/lib/snack2.2

run wavesurfer and it works..
We report this so the ebuild for SNACK can be fix to install in /usr/lib
not on /usr.
we are about to maintain 28 gentoo desktops and we will like this fix so we dont
have to hack all instaltions.

Thanks
Comment 1 Andy Kissner 2005-10-20 12:56:43 UTC
Created attachment 71090 [details, diff]
Adds --libdir=/usr/lib to myconf

I doubt that this is acceptable for the mainstream tree, but here's a patch
that will at least get snack working at your local site (i.e. installed at
/usr/lib)
Comment 2 Christian Fernandez 2005-10-20 23:43:51 UTC
hmm they should make it official cause anyone in the world that will try to run
wavesurfer will get this issue... is very easy to reproduce.
thanks for the patch... but if you think about it.. if they not going to fix the
ebuild is kind of better to just go ahead and do symlinks, if not just think
about the tedious job to have 20 gentoo boxes and having to be modifing ebuilds.
I kind of rather do symlinks.
But really they should fix this so it will create the symlinks in the ebuild so
other applications will be able to find Snack libs.

Cheers
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-18 13:18:11 UTC
tcltk herd, why does it install in /lib ?
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-03-22 03:07:51 UTC
*** Bug 127165 has been marked as a duplicate of this bug. ***
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-03-22 03:09:13 UTC
Not a wavesurfer bug, snack needs to be fixed. Re-assigning.
Comment 6 bohux 2006-08-23 01:43:06 UTC
export TCLLIBPATH="/lib/snack2.2" solved the problem for me (for bash).
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-09-10 14:34:37 UTC
Not so hard to fix, I guess?

<snip>
- inherit eutils
+ inherit eutils multilib

...

-       econf ${myconf} || die "configure failed"
+       econf ${myconf} --libdir="/usr/$(get_libdir)" --includedir="/usr/include" || die "configure failed"
</snip>
Comment 8 MATSUU Takuto (RETIRED) gentoo-dev 2006-09-14 16:38:44 UTC
sorry for delay.
fixed it
Comment 9 MATSUU Takuto (RETIRED) gentoo-dev 2006-09-14 16:39:27 UTC
*** Bug 136541 has been marked as a duplicate of this bug. ***
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-09-27 03:03:08 UTC
*** Bug 149275 has been marked as a duplicate of this bug. ***