delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/03/22/10:40:32

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D546A3857825
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=dinwoodie.org
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dinwoodie.org
Date: Tue, 22 Mar 2022 14:39:50 +0000
From: Adam Dinwoodie <adam AT dinwoodie DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: Unable to install source packages when running setup from
command line
Message-ID: <20220322143950.cybmsfguefllyxit@lucy.dinwoodie.org>
References: <20220320182012 DOT palikdvrzv36bsh4 AT lucy DOT dinwoodie DOT org>
<6a5f9651-0a66-083e-284e-f1e3cff6c8e5 AT dronecode DOT org DOT uk>
MIME-Version: 1.0
In-Reply-To: <6a5f9651-0a66-083e-284e-f1e3cff6c8e5@dronecode.org.uk>
X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
RDNS_DYNAMIC, SPF_HELO_PASS, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
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>
Reply-To: cygwin AT cygwin DOT com
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 Tue, Mar 22, 2022 at 01:54:48PM +0000, Jon Turney wrote:
> On 20/03/2022 18:20, Adam Dinwoodie wrote:
> > Hi,
> > 
> > I *suspect* this is a bug, but it might just be this isn't supposed to
> > work: there doesn't seem to be a way to download a source package for an
> > already-installed Cygwin package when using setup from the command line.
> > 
> > If I run, for example:
> > 
> >      /bin/setup-x86_64.exe -d -l 'C:\Users\Adam\Downloads' -s http://www.mirrorservice.org/sites/sourceware.org/pub/cygwin/ -IP bash-completion -R 'C:\cygwin64'
> > 
> > I'd expected this to select and automatically install the source package
> > for bash-completion.  In fact, "bash-completion" does show up in the
> > list of pending packages, but the "Src?" column is unchecked and greyed
> > out; I can't even select it manually in the GUI selection tool.
> > Unsurprisingly, when I continue through the installer, the source
> > package doesn't get installed.  I see similar behaviour if -M or -q are
> > also added to the argument list.
> > 
> > Everything works as expected if I don't specify a package on the command
> > line, and just select the source package from the GUI manually.  And
> > while selecting a package that isn't currently installed seems to hit
> > the same bug I've previously described with not showing up in the
> > "Pending" list[0], it does successfully install both the requested
> > package and the source package.
> > 
> > I've attached the setup.log and setup.log.full files, in case they're
> > useful for working out what's going wrong.
> 
> Yeah, this is a bug.
> 
> The design of '--include-source' is a bit weird, being "also install source
> for everything we are installing"  not "also install source of named
> packages" (so '-IP foo' does nothing if foo is already installed) (see [1])
> 
> As usual, PTC :)

Urgh, fine!  I've been long avoiding looking at any of the actual Cygwin
DLL or setup code -- pretty much all my code-wrangling experience has
been on Linux or other POSIX-y systems -- but I suspect I'm increasingly
hitting the point of my desire and interest in fixing things overtaking
my wariness of Windows APIs :P

-- 
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