From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailout08.t-online.de (mailout08.t-online.de [194.25.134.20]) by sourceware.org (Postfix) with ESMTPS id AE3EB3858D28 for ; Sat, 16 Sep 2023 14:17:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AE3EB3858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=t-online.de Authentication-Results: sourceware.org; spf=none smtp.mailfrom=t-online.de Received: from fwd73.aul.t-online.de (fwd73.aul.t-online.de [10.223.144.99]) by mailout08.t-online.de (Postfix) with SMTP id EA641C07A for ; Sat, 16 Sep 2023 16:17:21 +0200 (CEST) Received: from [192.168.2.101] ([91.57.246.1]) by fwd73.t-online.de with (TLSv1.3:TLS_AES_256_GCM_SHA384 encrypted) esmtp id 1qhW6q-4ErNaq0; Sat, 16 Sep 2023 16:17:20 +0200 To: cygwin@cygwin.com From: Christian Franke 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 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 List-Id: 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