public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Marco Atzeri <marco.atzeri@gmail.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: cygport: patch for debug info
Date: Tue, 13 Feb 2018 09:33:00 -0000	[thread overview]
Message-ID: <5635d0e4-73ee-7cb9-7cd0-8a72a5f6d8fb@gmail.com> (raw)

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

                 reply	other threads:[~2018-02-13  9:33 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=5635d0e4-73ee-7cb9-7cd0-8a72a5f6d8fb@gmail.com \
    --to=marco.atzeri@gmail.com \
    --cc=cygwin@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).