numactl currently FTBFS since arm does not define __NR_migrate_pages.
As described in the Debian bug comments [1] the function should just return -1 and set errno when __NR_migrate_pages is undefined. This prevents it from failing the build.
Failure from the buildlog [2]:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c syscall.c -fPIC -DPIC -o .libs/syscall.o
syscall.c:113:2: error: #error "Add syscalls for your architecture or update kernel headers"
#error "Add syscalls for your architecture or update kernel headers"
^~~~~
syscall.c: In function ‘migrate_pages’:
syscall.c:209:17: error: ‘__NR_migrate_pages’ undeclared (first use in this function); did you mean ‘numa_migrate_pages’?
return syscall(__NR_migrate_pages, pid, maxnode, frommask, tomask); ^~~~~~~~~~~~~~~~~~ numa_migrate_pages
syscall.c:209:17: note: each undeclared identifier is reported only once for each function it appears in
numactl currently FTBFS since arm does not define __NR_migrate_pages.
As described in the Debian bug comments [1] the function should just return -1 and set errno when __NR_migrate_pages is undefined. This prevents it from failing the build.
Failure from the buildlog [2]:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug- prefix- map=/<< PKGBUILDDIR> >=. -fstack- protector- strong -Wformat -Werror= format- security -c syscall.c -fPIC -DPIC -o .libs/syscall.o pages’ undeclared (first use in this function); did you mean ‘numa_migrate_ pages’? __NR_migrate_ pages, pid, maxnode, frommask, tomask);
^~~~ ~~~~~~~ ~~~~~~~
numa_ migrate_ pages
syscall.c:113:2: error: #error "Add syscalls for your architecture or update kernel headers"
#error "Add syscalls for your architecture or update kernel headers"
^~~~~
syscall.c: In function ‘migrate_pages’:
syscall.c:209:17: error: ‘__NR_migrate_
return syscall(
syscall.c:209:17: note: each undeclared identifier is reported only once for each function it appears in
[1] https:/ /bugs.debian. org/cgi- bin/bugreport. cgi?bug= 796802# 15 /launchpadlibra rian.net/ 332625047/ buildlog_ ubuntu- artful- armhf.numactl_ 2.0.11- 2.1_BUILDING. txt.gz
[2] https:/