On Fri, Jan 20, 2012 at 11:01 AM, Joel Berger <[email protected]> wrote:
>>> My concept for Alien::Base is to never \emph{install} to system. If library
>>> is installed in system, then use it. If not then install to a
>>> File::ShareDir location.
>
> On Fri, Jan 20, 2012 at 9:49 AM, Chris Marshall <[email protected]>
> wrote:
>> The needed library may be already installed
>> on the system. I don't think Alien::XXX should
>> re-install XXX in another location as that might
>> cause surprising breakage and path problems.
> A File::ShareDir install would be totally independent of anything
> already installed, and it is in the Perl directories which is what is
> expected when one installs a Perl module. I know that the optimal
> would be to install system-wide, but I kept finding edge cases, and
> use cases that I didn't want to handle. Perhaps this all can be added
> later.
I was specifically referring to the case where the needed
dependency is *already* installed systemwide so all the
Alien::XXX would need to do would provide the configuration
information needed to compile, link, run...
I agree that if Alien::XXX needs to install something, it
should be in a perl-specific library location.
Cheers,
Chris
> I figured if an Alien:: module is installed it is most likely for a
> Perl module dep. Therefore as long as I can make the Perl module happy
> then other tools exist to install for the system.
>
> \begin{rant}
> Actually it really irks me that there is no good way to hook into apt
> (i know that this is a linux-only arg) but grrr, its a Perl-based
> system. If only you could invoke it a get some useful info. Even the
> apt-cache search results are tremendously hard to get to work in all
> cases.
> \end{rant}
>
> Which libraries need root priv when outside system folders? Some HW
> drivers, anything else?
Yes, that would include OpenGL.
I don't think worrying about all possible edge cases
is useful at this time. I just wanted to mention one
specific one that I would need handled for the perl
OpenGL module. Personally, I think having just a
plain die from 'use Alien' is only partially useful which
is the motivation for a non-fatal Alien capability.
The number of actual multi-platform working Alien
modules is not large. Once we get to doing some
implementations from your work I think there will
be use cases on which to base further discussion.
Cheers,
Chris
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl