Jacob MeuserMon Nov 15 19:27:15 PST 2004
On Mon, Nov 15, 2004 at 06:45:23PM -0800, larry price wrote:
> On Mon, 15 Nov 2004 17:40:30 -0800, Jim Beard <beard at counterclaim.com> wrote:
> > So where I'm at now is I have an rpm that depends on
> > libmysqlclient.so.10 and I have libmysqlclient.so.12 installed. Even
> > if I create a symlink for libmysqlclient.so.10 library, rpm still won't
> > want to install the rpm will it? Thats what I'm currently wondering
> > about...
>
> if after doing ln -s $lib.so $lib.so.10
> (and do point it at .so just for future proofing)
> the rpm will not install,
> then, depending on your tolerance for potential pain, go ahead and use the
> --nodeps and --force options available for rpm
>
> 80% of the time you'll be okay, 20% of the time you've created more
> problems for yourself
just a word of warning ...
usually a library is named like libfoo.so.x.y, where x is the major
version and y is the minor version. when you have libfoo.so.x,
then x is the major version, and you have no minor version info.
changes in library major versions are supposed to signal incompatable
API changes. changes in minor versions are suppoed to signal changes
that should be compatable with the previous API ... an example would be
adding a function, another would be simply fixing a bug.
so, if you link a program against libfoo.so.1.0, you should have no
problems linking the same program against libfoo.so.1.1,
libfoo.so.1.2, libfoo.so.1.3, etc.
now, that is not how they are always used, and it may be that the
programs, libraries, etc that you are trying to make work will not
hit those API changes, however, in the case of php-mysql, the intent
is to wrap the mysql API with php. eventually, you will likely hit
an incompatability.
to say nothing about ABI changes, since you're using a library that
isn't the same library the program was linked with.
> I believe there's a verbose trial mode but you'll need to read the man
> page for rpm for that.
>
> ps.
> This sort of thing is exactly what soured me on redhat in the first place,
> debian does somewhat better, ports style build systems are somewhat
> more scrutable,
> there are no perfect solutions; dependency management is a hard problem.
yes, especially when you have to be flexible enough to compensate for
packages that do not follow things that can help, like sane library
versioning :(
> pps, before you do radical rpm --damage-my-system;
> touch rollback
> then you can launch a find job
> find /usr/lib -type f -newer rollback -exec rm -i {} \;
>
> to interactively delete the files you didn't want to install
> after you discover you didn't want to do that.
>
> --
> http://Zoneverte.org -- information explained
> Do you know what your IT infrastructure does?
> _______________________________________________
> EUGLUG mailing list
> euglug at euglug.org
> http://www.euglug.org/mailman/listinfo/euglug
--
<jakemsr at jakemsr.com>