delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/05/30/10:07:54

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=pM4tpSZpHJRQGgfJ
zR/dg8XJYz5NkfYbMx9ZRKfHzhkVwZ9BMSczQiY3OaXAQu7qXvOzowH6qC8XhlaB
k422iiqek0Pj066cKNT9ZU1drjDsBAkxySHbCftRojEBuGpYRqfnP/4CEY+pJxwD
IfwZMCikPmoXj7BQqNslJht02qo=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=6MOlvuWBa4EO8ZLxNbO4eV
JZQ4s=; b=axi3Cnw1jBjbC56eOzUb/5Wo2+7+usC2/DmBb/OyQEMmu1DwxfmKnb
kuwrkhNgaT16xLY9IdbeTufYemY4+ZNFgCDSmiDcat2WPuwI7IPh8IEKcXADT/2w
/c6wlI3hNp6UbT3qRWte7GQr0iHWMjnnOZPRphwgUsND1tPS8qPoY=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=dirty, dist, H*R:D*ca
X-HELO: smtp-out-no.shaw.ca
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca
Subject: Re: cygport: how to install package sources for debugging without recompiling?
To: cygwin AT cygwin DOT com
References: <0F7D3B1B3C4B894D824F5B822E3E5A178FD75804 AT IRSMSX102 DOT ger DOT corp DOT intel DOT com> <1eeb5325-40d8-baeb-6543-8c0a9035b3c1 AT dronecode DOT org DOT uk>
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Openpgp: preference=signencrypt
Message-ID: <ae370ed4-44e8-b933-1ee4-1ac44572b0a1@SystematicSw.ab.ca>
Date: Thu, 30 May 2019 08:07:38 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0
MIME-Version: 1.0
In-Reply-To: <1eeb5325-40d8-baeb-6543-8c0a9035b3c1@dronecode.org.uk>
X-IsSubscribed: yes

On 2019-05-30 06:52, Jon Turney wrote:
> On 30/05/2019 10:03, Soegtrop, Michael wrote:
>> Cygwin setup allows downloading sources of libraries, but the resulting
>> sources are not immediately useful for debugging. One gets a compressed tar
>> archive, some patches and the cygport file. I know that I can expand sources
>> and apply patches with
>> cyport <package.cygport> prep
>> which gives me what I need for debugging, just not in the right place. E.g.
>> some MinGW runtime file is searched by gdb (without giving any directory
>> commands) at
>> /usr/src/debug/mingw64-x86_64-runtime-6.0.0-1/crt/ucrtexe.c
>> But after above procedure it is in:
>> /usr/src/mingw64-x86_64-runtime-6.0.0-1.src/mingw64-x86_64-runtime-6.0.0-1.noarch/src/mingw-w64/mingw-w64-crt/crt/ucrtexe.c
>> Now of cause I can make a script and copy everything I need where it belongs.
>> But as far as I know
>> cyport <package.cygport> all
>> would put the sources in the /usr/src/debug folder. But I don't want to
>> recompile everything, I just want to put the sources where gdb can find them.
>> Is there some way to tell cyport to do this? If not this would be a great
>> additional feature for cygport (which is a very convenient tool).
> cypgort is a tool for making packages.
> It's already been used to make a package containing what you want:
> mingw64-x86_64-runtime-debuginfo.
> Is there some reason why you can't just install that?

FYI install that means from your ${P}.cygport directory:

$ tar -xf ${P}-${V}-{R}.${ARCH}/dist/${P}/${P}-${V}-{R}.tar.xz -C /
$ tar -xf
${P}-${V}-{R}.${ARCH}/dist/${P}/${P}-debuginfo/${P}-debuginfo-${V}-{R}.tar.xz -C /

as the quick and dirty way to get most packages you just built into your local
Cygwin setup, without the formality of postinstall rebasing etc. which is likely
advisable in all Cygwin 32 setups.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

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