This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/2 rebase] Handle CPAN/etc. DLLs in rebaseall


On Mon, Feb 11, 2013 at 10:29:13PM -0600, Yaakov wrote:
>On Mon, 11 Feb 2013 09:57:21 -0500, Christopher Faylor wrote:
>> On Mon, Feb 11, 2013 at 03:48:17AM -0600, Yaakov wrote:
>> >The attached patch finds DLLs in certain directories that may have been
>> >installed via CPAN (Perl), easy_install (Python), pecl (PHP), gem
>> >(Ruby), or R's install.packages() command.
>[snip]
>> >+    # some interpreters include a method for installing addons outside of the
>> >+    # package manager, such as CPAN and RubyGems.
>> >+    for d in /usr/lib/perl5/site_perl /usr/lib/py*/site-packages \
>> >+             /usr/lib/php /usr/lib/R/site-library /usr/lib/ruby/gems
>> 
>> Wouldn't it be a little better to maintain a list of directories to
>> search in an external file?  Then savvy packages could update that
>> file as needed.
>
>I'm not sure that is the best way to handle it, for a few reasons:
>
>1) Each of those packages will need to be rebuilt to provide such a file
>before it would be of any benefit, vs. isolating the changes to
>rebaseall (which needs to be updated either way) which could be
>shipped immediately.
>
>2) CPAN-like systems don't arrive every day, so this list should be
>static for the foreseeable future.  If this were a more fluid list, I
>would tend to agree with you, but in this case I think it's an overkill.

Even if we ship with the file containing just the list of directories
that you listed, I think we're ahead of the game.  I guess you'd have
to be careful not to overwrite the file on updates but that's hardly
a new technology.

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]