Michal Bielicki wrote: > I am not sure I agree with you. En lieu of the vision that there will > be many independant repos, I rather think that we have to find a way > of not needing to > put a dependancy of a particular package, but rather on something the > package provides. > > Just my 2c EUR > > It can easily be achieved via virtual packages mechanism. Depending on file introduces files to high-level management tools and breaks levels isolation. Moreover, files with the same name aren't guaranteed to have the very same content -- thus, it brings not benefit over depending on packages. Contrary, imagine the case: liba (high-level encoding library) may be built in two ways, with or without some patented codecs (depending on your country). so we have two packages, liba-full and liba, both containing liba.so. In many ways these liba.so are the same, but one of them doesn't have rip_cd_into_mp3() function, only rip_cd_into_flac(). Now imagine fancy encoder, which intended to rip cd, lookup tracks in musicbrainz database and insert appropriate ID tags in mp3 files. It wouldn't be satisfied by liba, only by liba-full. Soname bump also isn't a way to go, since lots of programs don't care too much about this: they can encode to mp3 or flac depending on user's choice, and it's up to user which format she prefers.
> cheers > > Michal > > On Jun 3, 2008, at 12:00 PM, Alexander Vlasov wrote: > > >> Hello, >> >> dependency on file is TERRIBLY wrong idea. Anyone who maintained big >> enough set of RPM-based linuxes can confirm this. >> >> Alan Coopersmith wrote: >> >>> When an ELF object links against a shared library, pkg determines >>> which package that library is in and adds the dependency >>> automatically. >>> >>> Is there a way to specify in distro-import or elsewhere a file that >>> a package depends on in way that pkg can't detect (such as a system() >>> or popen() call)? >>> >>> (This is in response to the comments in >>> http://defect.opensolaris.org/bz/show_bug.cgi?id=1781 about the >>> dependency and the possibility of the package name changing - which >>> we know will happen when the pkg rename/refactoring occurs.) >>> >>> >>> >> _______________________________________________ >> pkg-discuss mailing list >> [email protected] >> http://mail.opensolaris.org/mailman/listinfo/pkg-discuss >> > > _______________________________________________ > pkg-discuss mailing list > [email protected] > http://mail.opensolaris.org/mailman/listinfo/pkg-discuss > _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
