Alexander Leidinger wrote at 15:51 +0100 on Dec 1, 2007:
> Regarding the package-spec... the dependency is specific to a
> particular lib, the spec in the patch just says >=0. I'm a little bit
> uncomfortable regarding this. When we want to switch to a new linux
> base, we need to change most of the libs, and then the dependency
> doesn't match anymore (which means an overlooked ports is catched on
> pointyhat or on the tinderboxes). While we can add some text to
> UPDATING, I would like to have the dependency explicitly recorded in
> the port. Unlike the FreeBSD native ports, we have a more strict
> dependency regarding libs in the linux ports. I agree that the package
> spec will work for a lot of users, but with my experience with
> maintaining the linux ports and providing help for them since
> linux_base-8 I suggest to follow the practice we have currently in the
> linux infrastructure ports, as we can circumvent some pitfalls this way.


You don't have to specify a package >=0. It can be a specific
package rev. (yes, >=0 is probably a bit over-broad).

Specifying a specific file in that package as the RUN_DEPENDS key
(such as ${LINUXBASE}/usr/lib/libglib-2.0.so.0) is really just a
different way of doing things, and it doesn't capture dependencies
that are more than just that lib (for instance, what if a different
required lib that happens to be part of the same package changes, but
the one specified in the dependency remains the same?). I also
dislike the hard-coded absolute pathname (for other unrelated
reasons).

In one sense you can have finer control by specifying a package rev
than just one file in that package.

And with the advent of lib versioning, keying on a .so.N will not help
you if you want to capture the need for a new rev of a package, but N
doesn't change.

Those are just some "counterpoint" thoughts to look at things from a
different perspective. I would probably lean toward using the
"package spec" way of doing things and certainly not reject it just
because it's not the way things are currently done.

Maybe it'd be worth trying to use that way for a bit, at least for
this patch if not the rest of the linux ports, and see if it winds up
being better or not.

_______________________________________________
freebsd-emulation@freebsd.org mailing list
http://lists.freebsd.org/mailman/lis...ebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.org"