delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/02/09/06:03:35

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 519B3YAL3718941
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 519B3YAL3718941
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=LGlWyz/I
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A47A53858023
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1739099010;
bh=2y8MxVEZt8hsjPkmTlCas16UPzTN1tUqdXWO0V5kSyw=;
h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=LGlWyz/IyuPzFsE/uL9ogpm25nW8E/hXPMhQEwpU6fQB2VcJpIVvjHAuKqX7VXnFZ
2k8HAhbEASG85UEFFMdMXrZoFnDAVJVAhRnrJFJ+MtXp6lKZmdIMgwAia1SsUEBCSm
fXl6zw5AwZFwXzpoC0AhE32ao7cEtAzBIdplgHFg=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 556ED3858C62
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 556ED3858C62
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1739098941; cv=none;
b=sLCms4klSJVczCP1/jMC+B/Acxkl0wmPp2JZ0SHC+rJFf3s54y+R5HzKcOeDDMYwOAPF7iFVYm7q//RFuqBBe5uSXplnVN12MMDh4KLqx1A+9UZTPnsnDjdQ7yKrUZk31FZkzIRsT8mjglCakYpgAe1g0r+3nost2notMbAXHlo=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1739098941; c=relaxed/simple;
bh=ykgqX+Hyb0N81QHYPslfF/GDaPK4N+/zf6rzNA9OtKw=;
h=Date:From:To:Subject:Message-ID:MIME-Version;
b=so30Kn/nWhFSZmlsLn6xWYZZH2NysAhU9fb+5IUufo8/bLmWWplMPsXDnDoTOmJNoxqGF16WggKOU7/Gm2eDnav6CnELLCURMHDgYL99kYmBysqpmoy3IPidpujafvVmXXERAUJfRao4+b9unajT11n2WqV3TruZauWBoAG9agU=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 556ED3858C62
Date: Sun, 9 Feb 2025 11:02:19 +0000
To: ASSI via Cygwin <cygwin AT cygwin DOT com>
Subject: Re: Request to package perl module installer, App::cpanminus
Message-ID: <nnc7755xt3apr22brl6d5yt6o6cffc5465zcsoly5exhjg4qts@c2n5un64p7db>
Mail-Followup-To: ASSI via Cygwin <cygwin AT cygwin DOT com>
References: <mlq7cq4e7nyfwsd7ua2w6hdcla6oumy2zveslrjf76x5ub7egr AT 7pt3zek6nptj>
<87tt942rme DOT fsf AT Gerda DOT invalid>
MIME-Version: 1.0
In-Reply-To: <87tt942rme.fsf@Gerda.invalid>
User-Agent: NeoMutt/20240425
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Dr Bean via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Dr Bean <drbean AT freeshell DOT org>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

On Sat, 08 Feb 2025, ASSI via Cygwin wrote:

> Dr Bean via Cygwin writes:
> > ASSI, what about adding to the long list of packages you maintain 
> > another one, App::cpanminus, providing the commandline tool, 'cpanm', a 
> > popular alternative to the venerable CPAN, and the installer of choice 
> > of perl app developers?

> Last I looked (which has been several years ago) it had some problems
> that I don't really remember the details of anymore and that probably
> have been fixed in the meantime or fixed themselves by Cygwin having
> more up-to-date Perl versions.  The problems with the CPAN meta DB
> mirrors are likely solved as well, especially since the fallback is
> MetaCPAN these days.  However I've switched to using the MetaCPAN API
> directly for almost anything and that solved all CPAN slowness I've
> experienced before that prompted my use of cpanm to work around it.

That's useful, describing the work you did with cpanm.

> > https://metacpan.org/pod/App::cpanminus
> > https://github.com/miyagawa/cpanminus

> > I am motivated to ask this by the efforts of the developer of 
> > App::perlbrew, a/the perl environment manager to extend support for 
> > cygwin, 

> > https://metacpan.org/pod/App::perlbrew
> > https://github.com/gugod/App-perlbrew/pull/838#issuecomment-2631585142

> As a sidenote, you were not using the current Perl for whatever reason.

Oops, I have perl 5, version 36, subversion 3 (v5.36.3), with 'Keep'
in the Full view Select Packages screen.

I didn't see it in the Pending view, so thought I had the current perl.
I must have downgraded at some point. Probably because of a CPAN module
incompatibility?

> > which would be helped if there were a cpanm package.
> 
> Well, cpanm is a standalone script with bundled dependencies, so it's an
> anathema to system packaging as it will skip any adaptations for Cygwin
> that the system packages might have but not the fatpacked ones.  Also it
> uses local::lib, which comes with added configuration complexity that
> can only be handled properly by whoever uses it, again not something I
> want to get in the midst of.

I didn't think about the problems packaging it that any maintainer who
takes it on in the future would face.

Perl on cygwin is a trouble-free experience using the system packages.
I try not to install from CPAN, preferring a system package if it is 
available. I don't use cpanm, perlbrew or local::lib myself. When 
installing CPAN modules from the metacpan.org site, I do it with 
old-school cpan.

> So, to summarize: App::cpanminus builds out of the box and passes its
> own tests, but just like local::lib I don't want to distribute it as a
> system package and /usr/local/ is left for whoever is in charge of that
> system, not Cygwin upstream.

I think that that's the right decision, a responsible one on your part.

In view of my own old-school system-package-only conservatism, I'm not 
convinced I'm the right person to package cpanm either.

But if we can't get Soren to package it, I guess I should think about 
doing it.

> Here's the cygport file to produce a
> system package if you want to play with that:
> 
> --8<---------------cut here---------------start------------->8---
> # -*- mode: sh; sh-shell: bash -*-
> BUILD_REQUIRES+=" libcrypt-devel" # perl.h
> NAME="perl-App-cpanminus"
> VERSION="1.7048"
> RELEASE="1"
> CPAN_AUTHOR="MIYAGAWA"
> HOMEPAGE="https://metacpan.org/release/MIYAGAWA/App-cpanminus-1.7048"
> LICENSE="Artistic-1.0-Perl OR GPL-1.0-or-later"
> DESCRIPTION="Perl distribution App-cpanminus, providing Perl modules:
> App::cpanminus.
> 
> Get, unpack, build and install modules from CPAN."
> 
> [ "${CYGPORT_RPM_DIR:-no}" == "no" ] && [ -s "${PN}.src.patch" ] && PATCH_URI+=" ${PN}.src.patch"
> ARCH=noarch
> DIFF_EXCLUDES="MYMETA.*"
> 
> export PERL_NO_VENDOR_DEPS=1
> inherit perl
> --8<---------------cut here---------------end--------------->8---

Thanks for the cygport file. That will help Soren or me get started.
But we will probably need help uploading to the cygwin package repos.


-- 
Greg "Dr Bean" Matheson		Intention and action, night and
http://drbean.sdf.org		day. Action and intention,
drbean AT freeshell DOT org		long day's journey into night.
				
> 
> 
> Regards,
> Achim.
> -- 
> +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
> 
> Factory and User Sound Singles for Waldorf Blofeld:
> http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
> 
> -- 
> Problem reports:      https://cygwin.com/problems.html
> FAQ:                  https://cygwin.com/faq/
> Documentation:        https://cygwin.com/docs.html
> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

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

- Raw text -


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