public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* cygport: patch for proper debuginfo
@ 2020-04-11 14:21 Marco Atzeri
  0 siblings, 0 replies; only message in thread
From: Marco Atzeri @ 2020-04-11 14:21 UTC (permalink / raw)
  To: cygwin-apps

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-11 14:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-11 14:21 cygport: patch for proper debuginfo Marco Atzeri

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