Re: [Fedora-r-devel-list] R2spec new release

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 15, 2008 at 10:13:26AM +0100, Dan Bolser wrote:
> 
> OK, and then packages from Fedora with deps in CRAN that have been
> locally built can be installed right? Can we set up the RPM so that it
> can 'query R for what it has installed' for the purposes of resolving
> such deps?
> 
> Is this what happens already?

No, dependencies of a rpm package are set up at build time. And if a
dependency is not in the rpm database it won't be considered to be
fulfilled. This design doesn't allow rpm to track something that was not
installed as a rpm, but the reason is that when installed as a rpm there
is a 'promise' that the package is available for all users, while other
kind of installations cannot make that 'promise'. Maybe there are ways,
in some case to be sure that a package is available for all users
although it wasn't installed through rpm (for example in R, maybe there
are ways to know if a package is installed for every users by not
searching in user paths, only in system paths), but these are not taken 
into account in the rpm design. And there are good reasons, indeed, a R
package could be installed system-wide, which is not only R noarch code but
contains some C code linked against a library, and this library isn't on
the loader search path for all the users. rpm would track down the
library too, while R may or may not, in any case it cannot be counted
on, and things become much too complicated in rpm if a knowledge of 3rd
party languages has to be embedded in rpm for things not installed
through rpm.

That being said, a way to create a package without actual files that has
the dependencies can workaround the fact that rpm doesn't know about
packages not installed through rpm.

--
Pat

_______________________________________________
Fedora-r-devel-list mailing list
Fedora-r-devel-list@xxxxxxxxxx
http://www.redhat.com/mailman/listinfo/fedora-r-devel-list

[Index of Archives]     [Fedora Users]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux