GNU bug report logs - #63161
Issue with mkinstalldirs and symb links

Previous Next

Package: automake;

Reported by: Panaiotis Arnaud <Arnaud.Panaiotis.ext <at> vossloh.com>

Date: Sat, 29 Apr 2023 01:21:01 UTC

Severity: normal

Tags: wontfix

Done: Karl Berry <karl <at> freefriends.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 63161 <at> debbugs.gnu.org (full text, mbox):

From: Karl Berry <karl <at> freefriends.org>
To: Arnaud.Panaiotis.ext <at> vossloh.com
Cc: 63161 <at> debbugs.gnu.org
Subject: Re: bug#63161: Issue with mkinstalldirs and symb links
Date: Sat, 29 Apr 2023 22:48:15 +0200
Thanks for the report.

    The glibc installing process is calling
    ./scripts/mkinstalldirs [..]/lib64
    which failed to mkdir -p it.

With literal brackets? I don't understand.

+      if test -L "$@"; then
+        echo "mkdir -p -- \"\$(realpath $*)\""

Neither test -L nor (especially) realpath are portable.
(test -h can be used for the former; have to resort to ls -l|sed
for the latter, I think.)

In any case, "resolving" a broken link is a fundamental change in
behavior.  I'm doubtful that is desirable at this late date. I'm not
sure it's mkinstalldir's job to figure out that you made a broken
symlink and create the directory it points to. If I'm understanding your
scenario correctly.

What do others think? --thanks, karl.




This bug report was last modified 1 year and 149 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.