delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/11/06/16:54:25

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 36D01385780D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1636232064;
bh=KPYHs87P4iodD8GV53zX8dfVFJihOHXKyuBjg09n6SQ=;
h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=a91Lyiw/rWSGgje8IKOGQxwEF/sE1PwxWDJkd6qENpkVOlR6tQqRhwZENRJMFzgJG
G559DaZV+B6gsOvN3Tno62m2Ot86fBE8MiFFq1Y4dAgS5UZAQXnTAuKwMfE5bVbDOu
UyuyLR9i1Xd0lOrypHiRE3o/t0HvJgr41y24UzDE=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9BCB23858427
Date: Sat, 6 Nov 2021 21:53:11 +0100
To: cygwin AT cygwin DOT com
Subject: Re: cygport - avoid stripping binaries
Message-ID: <YYbrN5JEhJb6aITG@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <f25e25ff-b1f5-8450-392f-6573a358f60b AT gmail DOT com>
<YYa7nSnI4l6eZHWC AT calimero DOT vinschen DOT de>
<9674a878-a59c-6ea0-9d09-ff45d3f5c579 AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <9674a878-a59c-6ea0-9d09-ff45d3f5c579@gmail.com>
X-Provags-ID: V03:K1:YtttSXvGx7GO3t55Z++CCcsrj/+60ZESYnE5/G+falHQrqG0Sf7
VJHRHIKFK+bEKGjgHRu6Wl1BKsvRdd40Vk57v+YNkndmHJuiJKKwGeVpPPq1gRrYjqTp5pv
IcQyYMYwNtOBVeZyerip3cGHdFxnbKoy6ozpOeFkDw6iqkDtsN9cNYx8tTYQ9GaNZGLGpU5
y+yRrnJZQ4IFj3dKUELwQ==
X-UI-Out-Filterresults: notjunk:1;V03:K0:GZHTEqynuMk=:GRQnO9/AVjsp6aysnXyDvD
jgUy0mEND16M5BFP/5BX16p0ooiYu6KgsZBBT2tHJY8QuKuCLKBrjvQbL+XBYJ9TwQ+RpwpbH
Lwyh/7pkL6ZP/fW+ld8NV0PnQVF5+6x27SWZfM5vSd865HESnnvhySkt1RKRKLfCyp4FJakg/
bBw9ltGES2EBVpXAUjnVXBoW0WCisn7/48fra1GGXq8ONqkM+eZsyGfudg7UJeSs8TG98CyA6
ZgakjJS3gkPNHRzCfrbOfjoeNa+Qy6hGJ/x47I9uKfEf3C6IaiLA69xw49Ogs47Lhdu3p+Wk8
c7b+k0IkaQORWoyIW1dS4269NnOVsuIZU+LO2EEkTZjmWyvk3KXjAfJKut1vh0wMZJ1x2CfRC
Lo0G/EuOp83EtRT8+a74oR1a004jroqCIwTGY28aevlwo7mvMxrdSIoFxIQCWBPTlGG3mAts/
w5IG6nQ2lXCsBCGhFSbiRC+pEUNdBRA/0S+XG2ir+KGP3s4AVeqo808tFc6KLkExh4rIxES2d
0WQRJTfItPeEXtUqBMG2t7MxHbr6oJQp4LpHGtPruOWJfZrAsAPQMsP2zSyCMhAhQ+O+DKrky
2zbbCASxkGUP+z/0PJSKz3TQPui/TJX17+vUwF79BhSDG5A243y6WmUG6dlV3gqf+07StWRYB
aN1S3r9WUt4x+/Y3i2V0BbuB4Nk6RQcLoE1V6bnfp9fS2RxYJw5AybE7SRcn6aKNui/SAvhoo
1L5BDJc4co9Hx5Gt
X-Spam-Status: No, score=-99.6 required=5.0 tests=BAYES_00,
GOOD_FROM_CORINNA_CYGWIN, KAM_DMARC_NONE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE,
RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NEUTRAL,
TXREP autolearn=ham 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>
From: Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Corinna Vinschen <corinna-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 Nov  6 20:29, Federico Kircheis via Cygwin wrote:
> 
> On 06/11/2021 18.30, Corinna Vinschen via Cygwin wrote:
> > On Nov  6 15:31, Federico Kircheis via Cygwin wrote:
> > > it seems that cygport always strip binaries, but I have one program that
> > > when stripped does not work correctly.
> > 
> > Out of curiosity, what program is that?  And why does it require the
> > symbols to be present in the executable?
> > 
> > 
> > Corinna
> > 
> 
> Hi Corinna,
> 
> it's pari-gp the program I'm having trouble packaging.
> 
> If I compile it manually, without cygport, then I'm able to execute it.
> If I use cygport, then the program misbehaves.
> 
> I've noticed that cygport strips the binaries, so I thought that could be
> the issue.

If the application isn't doing some really weird stuff, I seriously
doubt it.

> Why does cygport strip binaries by default?
> Doesn't it generally makes harder to debug issues?

Actually, no.  What cygport really does is this:

- create binaries with debug info
- create debug info files from the non-stripped binaries and copy
  them to usr/debug/...
- strip the binary and pack it into the base package "foo"
- pack the debug info files into the debug package "foo-debug"

So, a user of the package gets just the smaller stripped foo binary,
while a developer can install the foo-debug package and actually
debug the foo binary.

> Is it a common practice for GNU/Linux distribution to strip binaries when
> creating packages?

Yes.  Plus generating the debug info package.


Corinna

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