stress-ng: reduce downstream patches#29969
Conversation
|
Getting : |
Drop 002-disable-atomics-mips-and-ppc.patch. It papered over link errors for 64-bit atomics on MIPS and PPC, which happen because stress-ng strips -latomic whenever $(CC) matches "musl-gcc" -- as our cross toolchains do. Pass LIB_ATOMIC=-latomic instead; libatomic is already in DEPENDS. Its stress-fractal hunk was in any case dead since upstream 24c30b7fa narrowed the row counter back to int32_t, which MIPS32 and PPC32 increment atomically inline. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
Backport upstream e0c4d324a, which lets a LIB_* variable be emptied to skip that library's check. Drop 001-disable-extra-stressors.patch, which hardcoded the same choice, and drive it from a Config.in menu instead. Defaults keep the previously built set of stressors: only crypt, aio, bsd, jpeg, kmod, sctp and zlib are probed. apparmor, EGL, GBM, GLES2, IPSec_MB and Judy have no OpenWrt package, so they are never probed. Drop the backport once it is in a release. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
thanks |
|
Confirm fixed, thanks. |
openwrt-ai
left a comment
There was a problem hiding this comment.
Reviewed 2 new commits; no new issues found. The LIB_* gating is complete — all 23 entries in the upstream libraries target are accounted for (14 driven by Config.in/STRESS_NG_LIBS, 5 explicitly emptied, 4 system libs always probed), and LIB_ATOMIC is handled separately. The recursive-dependency error raised in the comments is already resolved at head. One readability nit inline.
Generated by Claude Code
|
|
||
| # No OpenWrt package provides these, so never probe for them | ||
| MAKE_FLAGS += \ | ||
| KERNEL=Linux | ||
| KERNEL=Linux \ | ||
| LIB_ATOMIC=-latomic \ | ||
| LIB_EGL= \ | ||
| LIB_GBM= \ | ||
| LIB_GLES2= \ | ||
| LIB_IPSEC_MB= \ |
There was a problem hiding this comment.
nit: the comment "never probe for them" sits directly above KERNEL=Linux and LIB_ATOMIC=-latomic, but neither is a never-probed library — LIB_ATOMIC is in fact being linked (-latomic), the opposite of what the comment says. Splitting the block so the comment only covers the emptied LIB_* entries reads more clearly:
| # No OpenWrt package provides these, so never probe for them | |
| MAKE_FLAGS += \ | |
| KERNEL=Linux | |
| KERNEL=Linux \ | |
| LIB_ATOMIC=-latomic \ | |
| LIB_EGL= \ | |
| LIB_GBM= \ | |
| LIB_GLES2= \ | |
| LIB_IPSEC_MB= \ | |
| MAKE_FLAGS += \ | |
| KERNEL=Linux \ | |
| LIB_ATOMIC=-latomic | |
| # No OpenWrt package provides these, so never probe for them | |
| MAKE_FLAGS += \ | |
| LIB_EGL= \ | |
| LIB_GBM= \ | |
| LIB_GLES2= \ | |
| LIB_IPSEC_MB= \ | |
| LIB_JUDY= |
Generated by Claude Code
| From e0c4d324a0f0006fa090b8370989a03ecb28e334 Mon Sep 17 00:00:00 2001 | ||
| From: Alexandru Ardelean <alex@shruggie.ro> | ||
| Date: Thu, 9 Jul 2026 17:41:34 +0300 | ||
| Subject: [PATCH] Makefile.config: allow external library checks to be | ||
| disabled | ||
|
|
||
| Emptying a LIB_* variable now skips the check, so builds can opt out of | ||
| stressors that pull in external library dependencies. |
There was a problem hiding this comment.
I see commit was applied to upstream - ColinIanKing/stress-ng@e0c4d32
Good job! 👍
📦 Package Details
Maintainer: me
Description:
Remove atomics patch. Fix libatomic
Backport ColinIanKing/stress-ng#638
And add Kconfig symbols to tweak build
🧪 Run Testing Details
✅ Formalities