New commits:
commit d57ca80264a21b1a2d37e61e8122f1ec4ae1869c
Author: Thomas Orgis <sobukus AT sourcemage.org>
Commit: Thomas Orgis <sobukus AT sourcemage.org>
llvm: fix && chain in BUILD, fix build for non-existing llvm-spirv
The call to command -v llvm-spirv causes one if block to return false
if that command is not there. The whole call is there because of some
build system issue that I do not know to apply to us or not. Please
fix that more properly if you know;-)
The missing && caused the build to continue, but the configuration was
off. In my case it meant always building with gcc, not clang.
commit 130bb16163cb5b90fca123b4bd8cb2b0454fa6ff
Author: Thomas Orgis <sobukus AT sourcemage.org>
Commit: Thomas Orgis <sobukus AT sourcemage.org>
simpleinit-msb: fix for 64 bit time_t and safer strncat of utmp line
With GCC 14, the bad usage of time(&ut.ut_time) doesn't fly anymore with
64 bit time_t. This patch fixes that. Still, overflow of the 32 bit data
fields is not handled nicely (errors ignored in simpleinit-msb code).
Also, a strncat() from ut_line did not consider that this could be a
non-null-terminated string. GCC also warned about that.
We still got a use of tmpnam() that we maybe should replace. It is
for naming a fifo. So maybe doing that in a safe temporary directory
would be sensible.
diff --git a/devel/llvm/BUILD b/devel/llvm/BUILD
index b892aef..35a7b61 100755
--- a/devel/llvm/BUILD
+++ b/devel/llvm/BUILD
@@ -59,7 +59,7 @@ fi &&
# workaround for https://github.com/llvm/llvm-project/issues/109537
if [[ "$LLVM_WITH_LIBCLC" == y ]] ;then
- OPTS="$OPTS -DLLVM_SPIRV=$(command -v llvm-spirv)"
+ OPTS="$OPTS -DLLVM_SPIRV=$(command -v llvm-spirv || true)"
fi &&
if [[ "$LLVM_WITH_LLD" == y ]] ;then
@@ -135,7 +135,7 @@ if [ -n "$LLVM_TOOLCHAIN_COMPILER" ] ;then
OPTS="$OPTS -DCMAKE_CXX_COMPILER=g++"
;;
esac
-fi
+fi &&