[sr #110740] AC_PROG_MKDIR_P has incorrect result on NetBSD

Thomas Klausner <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.bugs
Message-ID <[email protected]>
URL:
  <https://savannah.gnu.org/support/?110740>

                 Summary: AC_PROG_MKDIR_P has incorrect result on NetBSD
                 Project: Autoconf
               Submitter: tk
               Submitted: Tue 11 Oct 2022 03:19:07 PM UTC
                Category: None
                Priority: 5 - Normal
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: *BSD


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Tue 11 Oct 2022 03:19:07 PM UTC By: Thomas Klausner <tk>
The AC_PROG_MKDIR_P() macro is supposed to check for a race-free mkdir(1).
NetBSD's is race-free but is not detected as such.

Basic test case is attached. When configure is run, I get:

checking for a race-free mkdir -p... ./install-sh -c -d

Looking at the generated configure code, the test seems to consist of running
'mkdir --version' and comparing the result to a few known-good values. This
fails on NetBSD since NetBSD's mkdir does not support --version.

Looking at the FreeBSD and OpenBSD and macOS man pages, --version is not
supported either, so this will fail in the same way there.






    _______________________________________________________
File Attachments:


-------------------------------------------------------
Date: Tue 11 Oct 2022 03:19:08 PM UTC  Name: configure.ac  Size: 40B   By: tk

<http://savannah.gnu.org/support/download.php?file_id=53836>
-------------------------------------------------------
Date: Tue 11 Oct 2022 03:19:07 PM UTC  Name: configure.ac  Size: 40B   By: tk

<http://savannah.gnu.org/support/download.php?file_id=53835>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/support/?110740>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.