DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 518IuI763412524 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 518IuI763412524 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=JX3cDXgV X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A182F385772A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1739040977; bh=Ui+DG2y27lsemFXJXtsW0IE/Fgwu1cKZPBV25Z50u+E=; h=To:Subject:In-Reply-To:References:Date:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=JX3cDXgVTHTIfmMwdSr8IAkmfp/gsR9lRH5JiezDohwUIGisIPBAA8WwswrRzm5Nt kuSB0RDOsdbMioegpyzWaJv1JHeS9UmIXbDFfgVk6HAbfney6ZY0S2OG84ATsNSVKI KE5eNIYe8mg1Au/5Y5q699CmjcwP3Kza5qXkWWwI= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E871B3858D38 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E871B3858D38 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1739040950; cv=none; b=gkZebnYEwMujuuVhyPfxwmxKZOoUHVZCxh1c0TX8Y3aH5f63PmWD97TUy8Nj7y4FA3fy2ISt0Jr9z3OOJDnDra/03YxepRl9gvl2GHxVwLElNpkMCCXX26Z58EuCRgWiJheGD+9lY2c2IuWPvA+GNj+k+MJNpckrE132JQzXcSM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1739040950; c=relaxed/simple; bh=tEQcX3iPccU1vDfvP5Ifhh1ZMGnSwAVVq1ewy+494JA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=s97pIiQ+Z9PYxsDuRxq6NE/6UJTazuFn7Vbp1rl+pYfV+eAngbWFVCdjXgA4dD/Nlv8kWoDMYILgF2F+DFfkQ84yh4eTkU/NKtJVLXNMPKTBI9te4s5aSo3FIH/BmfGkep7mFkmF8LJT80oCUco8LMafKNP743KT+zDKP39QCfM= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E871B3858D38 To: cygwin AT cygwin DOT com Subject: Re: Request to package perl module installer, App::cpanminus In-Reply-To: (Bean via Cygwin's message of "Tue, 4 Feb 2025 23:53:31 +0000") References: Date: Sat, 08 Feb 2025 19:55:37 +0100 Message-ID: <87tt942rme.fsf@Gerda.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-purgate-server: smtpa04 X-purgate-type: clean X-purgate: clean X-purgate-size: 3010 X-purgate-ID: 155817::1739040944-B2430BF1-3F906EFD/10/3626336762 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: ASSI via Cygwin Reply-To: ASSI Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" 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. > 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. > 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. 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. 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--- 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