* cygport may not create debug info if top directory contains a symlink
@ 2023-09-16 14:17 Christian Franke
0 siblings, 0 replies; only message in thread
From: Christian Franke @ 2023-09-16 14:17 UTC (permalink / raw)
To: cygwin
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-09-16 14:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-16 14:17 cygport may not create debug info if top directory contains a symlink Christian Franke
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).