delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/09/16/10:17:41

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A74B63858024
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1694873858;
bh=hzTSbD9IQ4C/LWB/R/7M4kj+ghB6FB39o4ymEqqfAEA=;
h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=rm4zbfZ7c/mc9+/24Wbq2ruSXva0Vl3UrO6M1i4Panhtollx8zxqtqv9rmor0Chgt
EbC4lF/vcc3SBeJ1xiGeJTGtaTZZc4wTk4pjeIRlgjqNo97Qs+V9czaoD++8aEbSAx
f8/pCia2OH/D4v0+LNfaWgpJflSTYdB8fka8Efpo=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AE3EB3858D28
To: cygwin AT cygwin DOT com
Subject: cygport may not create debug info if top directory contains a symlink
Message-ID: <9bc07a5f-86d9-76ee-f45d-e1956c9035f8@t-online.de>
Date: Sat, 16 Sep 2023 16:17:19 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
SeaMonkey/2.53.16
MIME-Version: 1.0
X-TOI-EXPURGATEID: 150726::1694873840-9AE8A904-0D0F4806/0/0 CLEAN NORMAL
X-TOI-MSGID: 357b2faf-2340-46a0-97cd-cf84b69d96f2
X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, FREEMAIL_FROM,
KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE,
RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE,
TXREP autolearn=no autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
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-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: Christian Franke via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Christian Franke <Christian DOT Franke AT t-online DOT de>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 38GEHelr014598

Found during tests of busybox package:
If the path of the top build directory contains a symlink and the 
project's build scripts normalize pathnames, no debug info is created by 
cygport.

This is because options like
  -fdebug-prefix-map=${B}=/usr/src/debug/${PF}
have no effect because ${B} contains a symlink but the compiler is run 
with the real source path.
The postinstall code then does not find any line number info with source 
path /usr/src/debug/${PF}/...

Could be fixed easily in line 414 of /bin/cygport:

-declare -r top=$(cd ${_topdir}; pwd);
+declare -r top=$(cd ${_topdir}; /bin/pwd);

No patch provided because I'm not sure whether this has other negative 
side effects.

If this is the case, it possibly makes sense to print a warning if 
"$(pwd)" != "$(/bin/pwd)".

-- 
Regards,
Christian


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