delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/23/10:07:24

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 23 Aug 2010 16:07:05 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: perl: Net::DNS requires Win32::IPHelper
Message-ID: <20100823140705.GG6726@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <1282535618 DOT 6888 DOT 51 DOT camel AT YAAKOV04> <AANLkTimGT6cp8z-dAS=YHZM4fcOwi-Fn4xZtDL=tKhWS AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <AANLkTimGT6cp8z-dAS=YHZM4fcOwi-Fn4xZtDL=tKhWS@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Aug 23 15:36, Reini Urban wrote:
> 2010/8/23 Yaakov (Cygwin/X) <yselkowitz AT users DOT sourceforge DOT net>:
> > Reini,
> >
> > The Net::DNS module, which you ship with perl, depends on perl-libwin32
> > (packaged separately) and Win32::IPHelper, the latter of which depends
> > on Win32::API and enum modules.  Win32::API needs a custom typemap file
> > in order to compile on Cygwin, which AFAICS should be:
> >
> > TYPEMAP
> > HINSTANCE   T_PTR
> > LPCSTR      T_PV
> > LPCWSTR     T_PV
> 
> Oh my. Net::DNS depending on Win32::API is not really helpful.
> He already has a DNS.xs it would be easy to add the IPHelper stuff to this xs.
> perl-libwin32 is a bit fat for a perl require line, I'll see what I
> can do to remove this cyclic dependency.
> Net::DNS is only needed for the old CPAN::Reporter.
> The new CPAN::Reporter 2.0 will use Metabase and has a entirely
> different set of deps.

Here's a question:

Why does the Net::DNS module, which provides only a resolver API, depend
on a Win32-related package at all?  Cygwin 1.7 provides a BSD compatible
resolver API (res_init, res_query, etc) which should be used, just like
on Linux.  Does the module erroneously treat Cygwin as Windows target?
If so, that should be fixed.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019