Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (5) </ 1 [2] 3 4 5 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Creating safe extensions, any ideas are welcome< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Aug. 16 2004,20:09 QUOTE

That's not a bad idea, but it still doesn't address the possibility of overwriting libs between extensions, because you're still using a shared lib directory.  What I hope to achieve is a way to point a specific application to a specific lib directory, i.e. $PREFIX/lib.
Additionally, my hope is to keep from making any chages to the base DSL system...writing to /etc/ld.conf.so is not an option for me.

It seems that one issue I'm trying to avoid stems from the way in which DSL extensions work as opposed to typical packages such as .deb, and to apt-get.  Apt-get, for example, checks for dependencies and downloads them if necessary.  With DSL extensions, the packager manually deals with dependency checking while putting together the package.  After this point, there is no checking...the package is simply installed, and if the user already has a particular file, whether it be the actual lib or a symlink, that file is overwritten automatically.  This could cause previously installed programs to fail.  I don't know what the chances of this are, but the fact remains that it is a possibility.

It would help if I understood better about modifying sources...i know a decent amount about bash, but next to nothing about programming.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
nucpc Offline





Group: Members
Posts: 89
Joined: Dec. 2003
Posted: Aug. 16 2004,20:39 QUOTE

Yep I think I know exactly your problem.....and I'm also, afraid, not skilled enough to
help you. For random order loaded extensions you need exactly what you suggest
but I guess most of them will be constructed to use shared libraries......tricky.

An /opt/lib with it's citation up first might at least provide you a `one at a time' check,
while keeping you off the base system. Whilst on the subject an /opt/bin, already
cited in /etc/profile, might also help you recover from an extension clash.......i.e.
clean out /opt/bin and /opt/lib and start again.....and yep.... my .tar.gz does this as
well (bye bye old /etc/profile)

Cheers.
Back to top
Profile PM 
nucpc Offline





Group: Members
Posts: 89
Joined: Dec. 2003
Posted: Aug. 16 2004,20:42 QUOTE

Oh yes, just to confirm I'm not suggesting that you use my .tar.gz approach (that's
pure personal use)  just that if the directories and their citations were already there then
things might be a bit cleaner..........
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Aug. 16 2004,20:52 QUOTE

mikshaw,

A good example of a wrapper concerning the separation of the apps libs is provided in the abiword.dsl

The approach you are talking about is a good one and follows the approach used in the construction of abiword.

I have pasted it here. But best to try abiword and the look in /opt/abiword

export PATH=/opt/abiword/bin:$PATH
export LD_LIBRARY_PATH=/opt/abiword/lib
abiword
Back to top
Profile PM WEB 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Aug. 20 2004,04:16 QUOTE

Thank you, robert...$LD_LIBRARY_PATH is exactly what I needed to get this working!

$AUDACITY_PATH is apparently just for configs and maybe plugins.
The extension seems to be working now...I tested a few of the builtin effects and some random edits on an mp3 file, and had no troubles.  Playback seems to be a lot smoother than with Sweep, too.
I just wish the interface was a little slimmer, though...it would probably be a much smaller package if it just used text menus instead of those big candy icons.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
22 replies since Aug. 15 2004,21:02 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (5) </ 1 [2] 3 4 5 >/
reply to topic new topic new poll
Quick Reply: Creating safe extensions

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code