Michael Matz píše v St 21. 02. 2007 v 20:00 +0100:
Hi,
On Wed, 21 Feb 2007, andreas.hanke@gmx-topmail.de wrote:
The problem is the way dependency information is extracted from .la files and transfered into the packages. The current approach seems to look at all .la files in the buildroot, then it tells the packager which packages provide the other .la files that a certain .la file depends on and finally translates this into a package name and asks the packager to add this package name to "Requires".
This approach (the manual translation into a package name) is horribly broken because it cannot be undone automatically. Once the dependency disappears, the package name will remain in "Requires" until someone removes it manually.
Yes, ideally we somewhen would want to add these dependencies automatically. I'm not sure why we aren't doing that already, and could only speculate that it might have to do with lazy packagers including .la files in main rpms (not -devel or the like), which would generate silly install dependencies just because of these .la files (although never required at runtime then).
I am an author of the current script. I see a big problem, that not all .la files are in -devel packages and you cannot add libtool dependencies to non -devel packages. So the check has to go recursively to the next -devel package. Another problem of my check was in .la files provided twice (mDNSResponder/avahi and fam/gamin). I guess it's not matter just now. You can use file Requires (e. g. Requires: /usr/lib/libfoo.la) only for packages, which has .la file. If the package has no .la file, you have to find .so file and then add it to the dependency chain. But it may be possible to assign files to packages automatically and then use package requires have a special black list, where you would prefer file requires (for .la files provided by more packages). -- Best Regards / S pozdravem, Stanislav Brabec software developer --------------------------------------------------------------------- SUSE LINUX, s. r. o. e-mail: sbrabec@suse.cz Lihovarská 1060/12 tel: +420 284 028 966 190 00 Praha 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org