Add Comment

You are not currently logged in. If you do not have a user account then please consider creating one and logging in before you post your comment. This will allow you to track replies to your comment, and take part in the site much more freely.

To add your comment, fill in all the boxes below and then preview it to make sure you're happy with the way that it looks.

This is the comment you were replying to, attached to the article Installing two versions of libraries concurrently?:


Re: Installing two versions of libraries concurrently?
Posted by cleeland (209.74.xx.xx) on Wed 12 Oct 2005 at 15:42
I gave up on dpkg and the like and went with a hack. It was easier. dpkg is just broken with respect to having two versions of the same package installed simultaneously. Trying to do so creates havoc in the dependency system and makes your life a living hell.

To be a little more specific, I initially force-installed the *same* version of the library to a different directory with the intention of wrapping my software's executable with a script that would set LD_LIBRARY_PATH to point to that directory. Through a bit of luck poking around in google, though, I found that other people had encountered similar problems and somebody had concocted a very small shared object that could be LD_PRELOADed to make modern versions of the library conform to the warped view of the library that the commercial software has. So, I wiped out the other-dir installation of the library and used this shared object.

Then I embarked on a new adventure b/c the software executable is setuid, which means that LD_PRELOAD and LD_LIBRARY_PATH get ignored. I tried making my wrapper script setuid, but Debian turns off setuid scripts by default.

I ended up installing perlsuid and writing a perl script wrapper that's setuid, and inside it sets the ruid to the euid, at which point, when it execs the commercial software executable, LD_PRELOAD gets honored b/c the exec system can't tell that anything is running setuid.

Much more work than it should have been. If I were a Real Man, I'd turn this into a debian package that I could install, but I don't know if I have the stamina for that. :-(

Username:Anonymous
Title:
Your Comment:

Posting Format:

 

Inappropriate comments will be removed.

Some help on entry formatting is available

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search