Bugzilla – Bug 147946
beagle rpm has explicit libexif dependency
Last modified: 2006-09-30 04:48:47 UTC
beagle rpm has explicit libexif dependency, while it should use the normal rpm dependency mechanism, which also requires libexif in the correct .so version.
libexif is only accessed by managed code, not linked to in the normal fashion. Wade, Joe do either of you know if there is a way to get RPM to pull in the dependency automatically when the library is listed in a .dll.config file?
There's no way to do it right now, the RPM provides/requires scripts for mono only looks at the explicit mono assembly references within .dll and .exe files.
okay, but thats not relevant for discussion. it should require the version it was build against, with other words run Requires: %( rpm -q --provides libexif | head -n 1 ) in your spec file
I guess I don't understand why it matters between depending on an rpm package, or the file in the rpm.. But, on a side note... this would be wonderful if we could pull DllImport deps off, but I don't know of a good easy way to do so. 1. .config files are optional 2. the runtime probes with several methods to find a library name and path on "DllImport" Getting the DllImport (pinvoke) section from the assemblies isn't hard, but we'd have to go through the same methods as the runtime to map that to a filename. Maybe this could be done with a program calling into libmono... ? I'm also not sure it's a good idea since it's a dynamic dep (although mostly static for our purposes with rpms). Ben, you writing the mono-find-provides/requires... do you have a comment?
Believe this is a duplicate now. *** This bug has been marked as a duplicate of bug 198377 ***