Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 252400 - media-sound/fmod should install in /opt, not /usr
Summary: media-sound/fmod should install in /opt, not /usr
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-24 15:49 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2009-06-03 19:37 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 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-12-24 15:49:55 UTC
It makes it quite nasty to deal with the way it is now since it does not fall into my whitelist for proprietary software; in /usr I'd expect only code that we built ourselves, what is the reason to have fmod in there rather than /opt?
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2009-05-13 08:14:16 UTC
Yes, you are right, I don't know what I was thinking installing them in /usr

I'll try to get into this today.. there's a new release of fmod anyway.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2009-05-21 21:22:45 UTC
Done
Comment 3 Philip L 2009-06-03 13:29:13 UTC
How is one expected to link to it or include its headers now?
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2009-06-03 18:11:31 UTC
- It still symlinks includes to /usr/include/fmodex, this works.
- It adds a LDPATH to the libraries using env.d to /etc/ld.so.conf, but I tried with media-sound/bpmdetect and it couldn't link to -lfmodex, this is a problem.

Diego, I'm going to move the binary only libraries back to libdir because it simply doesn't work, unless you can expain to me why LDPATH doesn't work when linker is trying to link -lfmodex even if the path is in LDPATH.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2009-06-03 18:12:19 UTC
media-sound/bpmdetect is a good test subject.
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-06-03 18:23:29 UTC
We already had a similar issue with cuda: https://bugs.gentoo.org/show_bug.cgi?id=255839

Yes it does work, and no you're not going to keep prebuilt binaries in /usr.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2009-06-03 18:34:33 UTC
The patch where libfmodex.so is definately in env.d -> ld.so.conf, in linkers path but it still fails to find -lfmodex. I don't see referencing to the another bug a solution, this worked fine until moved to /opt.
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2009-06-03 18:35:04 UTC
(In reply to comment #7)
> The patch where libfmodex.so is definately in env.d -> ld.so.conf, in linkers

* The path
Comment 9 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-06-03 18:46:32 UTC
just a damn -L/opt/whatever is not good enough to you?
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2009-06-03 19:37:57 UTC
(In reply to comment #9)
> just a damn -L/opt/whatever is not good enough to you?
> 

It is. Sorry Diego for causing you this hassle, it was scons based application which didn't respect anything I added to it. Ended up adding the -L by patch 
to the SConstruct.

Again, _really_, _sorry_ for the hassle. The package is fine now, installed in /opt.