File test_environment.patch of Package lua-cjson
---
Makefile | 4 ++--
runtests.sh | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
Index: lua-cjson-2.1.0.9/Makefile
===================================================================
--- lua-cjson-2.1.0.9.orig/Makefile 2021-02-15 19:58:29.000000000 +0100
+++ lua-cjson-2.1.0.9/Makefile 2025-07-23 18:57:44.293475352 +0200
@@ -13,9 +13,9 @@
##### Build defaults #####
LUA_VERSION = 5.1
TARGET = cjson.so
-PREFIX = /usr/local
+PREFIX ?= /usr/local
#CFLAGS = -g -Wall -pedantic -fno-inline
-CFLAGS = -O3 -Wall -pedantic -DNDEBUG -g
+CFLAGS ?= -O3 -Wall -pedantic -DNDEBUG -g
CJSON_CFLAGS = -fpic
CJSON_LDFLAGS = -shared
LUA_INCLUDE_DIR ?= $(PREFIX)/include
Index: lua-cjson-2.1.0.9/runtests.sh
===================================================================
--- lua-cjson-2.1.0.9.orig/runtests.sh 2021-02-15 19:58:29.000000000 +0100
+++ lua-cjson-2.1.0.9/runtests.sh 2025-07-23 18:58:07.869374021 +0200
@@ -1,5 +1,5 @@
#!/bin/bash
-set -eo pipefail
+set -exo pipefail
PLATFORM="`uname -s`"
[ "$1" ] && VERSION="$1" || VERSION="2.1devel"