[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #61846] Try to disable nullability-completeness for flock.c for Dar
From: |
Boud Roukema |
Subject: |
[bug #61846] Try to disable nullability-completeness for flock.c for Darwin |
Date: |
Tue, 18 Jan 2022 06:44:57 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 |
URL:
<https://savannah.nongnu.org/bugs/?61846>
Summary: Try to disable nullability-completeness for flock.c
for Darwin
Project: Maneage
Submitted by: boud
Submitted on: Tue 18 Jan 2022 11:44:55 AM UTC
Category: Software
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Nullability completeness appears to be a requirement in recent
Darwin/xnu systems with an Xcode 12.5.1 [1] environment for
compiling C and C++ programs. One recent fix in Maneage was
implemented in commit a981196 [2], but this does not seem to
apply to flock, which is built by
`reproduce/software/shell/pre-make-build.sh`.
This commit 5690ab5 [0] adds `CFLAGS=-Wno-nullability-completeness' to
the `build_program' instruction in pre-make-build.sh with the
aim of compiling flock with this flag.
This commit [0] should hopefully solve the bug. In the source of
flock-0.2.3, `Makefile.am' includes `-Werror' as a C compile
flag, meaning that any warnings will be treated as errors.
The nullability attributes appear to only be used by clang,
not gcc. By disabling the `nullability-completeness' warning,
i.e. with `-Wno-nullability-completeness', the warning will
be omitted, so the Clang compiler should not consider there
to be a compilation error.
Since `flock' is the final tool built in pre-make-build.sh,
it seems that it is the only one that needs this compile
option for Darwin/xnu systems [3].
An alternative option for someone who knows what flock does
and has verified that the updates are safe could be to update
to flock-0.3.0 or flock-0.4.0 [4]. However, this tool is
used early in the whole build system, so the consequences of
an update would need to be well checked.
[0]
https://codeberg.org/boud/maneage_dev/commit/5690ab5825d957d40d7a306d84e7a5bb98d6f522
[1] https://en.wikipedia.org/wiki/Xcode
[2]
http://git.maneage.org/project.git/commit/?id=a981196b2e2eea6fe0517040c49a32f757ad28cf
[3] macOS adds GUIS on top of Darwin/xnu:
https://en.wikipedia.org/wiki/MacOS#Architecture
[4] https://github.com/discoteq/flock/tags
_______________________________________________________
Reply to this item at:
<https://savannah.nongnu.org/bugs/?61846>
_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #61846] Try to disable nullability-completeness for flock.c for Darwin,
Boud Roukema <=