public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* cygport: patch for debug info
@ 2018-02-13  9:33 Marco Atzeri
  0 siblings, 0 replies; only message in thread
From: Marco Atzeri @ 2018-02-13  9:33 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 792 bytes --]

Hi Yaakov,
can you also consider to add the attached patch?

Without it the extraction of debug info enter in a never ending loop
in lib/src_postinst.cygpart

I am using a symbolic link in my build directory to share between
the two archs.

$ readlink -f /pub/devel
/cygdrive/e/cyg_pub/devel

and when using "/pub/devel" as baseline the loop never matches
as one side is using readlink and the other not.

------------ lib/src_postinst.cygpart -----
  while [ $(readlink -f ${ltlibdir}/${dlname%/bin/*}) != 
${D}$(__host_prefix) ]
  do
      dlname=../${dlname}
  done
---------------------------------------------

If I am not wrong it also hit a similar problem somewhere
else and adjusting "_topdir" is the simpler solution;
or at least never gave me anymore problem.

Regards
Marco







[-- Attachment #2: cygport.patch --]
[-- Type: text/plain, Size: 253 bytes --]

--- /usr/bin/cygport~	2015-07-20 09:12:08.000000000 +0200
+++ /usr/bin/cygport	2015-11-21 17:45:13.583854800 +0100
@@ -395,7 +395,7 @@
 then
 	if [ -f ./${cygportfile} ]
 	then
-		_topdir=.;
+		_topdir=$(readlink -f .);
 	else
 		_topdir=/usr/src;
 	fi

[-- Attachment #3: Type: text/plain, Size: 219 bytes --]


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

only message in thread, other threads:[~2018-02-13  9:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-13  9:33 cygport: patch for debug info 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).