meta-openembedded/meta-oe/recipes-security/nmap/files
Hongxu Jia efc0b522c1
nmap: fix racing issue at do_compile
There are two build-lua rules, one in Makefile.in, another in
ncat/Makefile.in which is required by build-ncat

Build them may cause potential racing

$ bitbake lib32-nmap
$ grep -e "Compiling liblua" -e 'nmap-7.95/liblua' -e ": error" -n patch-to/temp/log.do_compile
Compiling liblua
make[1]: Entering directory 'path-to/build/tmp/work/corei7-32-wrsmllib32-linux/lib32-nmap/7.95/nmap-7.95/liblua'
Compiling liblua
make[2]: Entering directory 'path-to/build/tmp/work/corei7-32-wrsmllib32-linux/lib32-nmap/7.95/nmap-7.95/liblua'
make[2]: Leaving directory 'path-to/tmp/work/corei7-32-wrsmllib32-linux/lib32-nmap/7.95/nmap-7.95/liblua'
path-to/tmp/work/corei7-32-wrsmllib32-linux/lib32-nmap/7.95/recipe-sysroot-native/usr/bin/i686-wrsmllib32-linux/../../libexec/i686-wrsmllib32-linux/gcc/i686-wrsmllib32-linux/14.2.0/ld: ./../liblua/liblua.a: error adding symbols: no more archived files
collect2: error: ld returned 1 exit status
make[1]: Leaving directory 'path-to/tmp/work/corei7-32-wrsmllib32-linux/lib32-nmap/7.95/nmap-7.95/liblua'

Explicitly make build-ncat depends on build-lua to avoid racing,
after applying the patch
...
Compiling liblua
make[1]: Entering directory 'path-to/tmp/work/corei7-32-wrsmllib32-linux/lib32-nmap/7.95/nmap-7.95/liblua'
make[1]: Leaving directory 'path-to/tmp/work/corei7-32-wrsmllib32-linux/lib32-nmap/7.95/nmap-7.95/liblua'
Compiling liblua
make[2]: Entering directory 'path-to/tmp/work/corei7-32-wrsmllib32-linux/lib32-nmap/7.95/nmap-7.95/liblua'
make[2]: Leaving directory 'path-to/tmp/work/corei7-32-wrsmllib32-linux/lib32-nmap/7.95/nmap-7.95/liblua'
...

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-02-12 09:16:07 -08:00
..
0001-fix-racing-between-build-ncat-and-build-lua.patch nmap: fix racing issue at do_compile 2025-02-12 09:16:07 -08:00
0001-Include-time.h-header-to-pass-clang-compilation.patch *.patch: add Upstream-Status to all patches 2023-06-21 09:15:20 -07:00
0002-Fix-building-with-libc.patch
0003-Fix-off-by-one-overflow-in-the-IP-protocol-table.patch nmap: Fix off-by-one overflow in the IP protocol table. 2024-10-14 23:25:11 -07:00
nmap-redefine-the-python-library-dir.patch nmap: Upgrade to 7.95 2024-09-04 15:35:46 -07:00
nmap-replace-shtool-mkdir-with-coreutils-mkdir-command.patch nmap: Upgrade to 7.95 2024-09-04 15:35:46 -07:00