From: Marco Atzeri <marco.atzeri@gmail.com>
To: "cygwin-apps@cygwin.com" <cygwin-apps@cygwin.com>
Subject: cygport: patch for proper debuginfo
Date: Sat, 11 Apr 2020 16:21:52 +0200 [thread overview]
Message-ID: <998ce7c0-aa22-872f-9be8-8ef6aa6dd804@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 554 bytes --]
In some conditions the debuginfo creation enters in a never ending loop
due to the asymmetrical usage of readlink between
lib/src_postinst.cygpart :
origdlname=${dlname}
while [ $(readlink -f ${ltlibdir}/${dlname%/bin/*}) !=
${D}$(__host_prefix) ]
do
dlname=../${dlname}
done
and bin/cygport.in:
_topdir=.;
This happens when the directory of building has a link in one
of the parent directories
$ pwd
/pub/devel/openblas
$ readlink -f .
/cygdrive/d/cyg_pub/devel/openblas
Regards
Marco
[-- Attachment #2: readlink.patch --]
[-- Type: text/plain, Size: 292 bytes --]
diff --git a/bin/cygport.in b/bin/cygport.in
index 1fe804d..2eeff26 100755
--- a/bin/cygport.in
+++ b/bin/cygport.in
@@ -397,7 +397,7 @@ if [ "x${_topdir}" = "x${argv[1]}" ]
then
if [ -f ./${cygportfile} ]
then
- _topdir=.;
+ _topdir=$(readlink -f .);
else
_topdir=/usr/src;
fi
reply other threads:[~2020-04-11 14:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=998ce7c0-aa22-872f-9be8-8ef6aa6dd804@gmail.com \
--to=marco.atzeri@gmail.com \
--cc=cygwin-apps@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).