the port fails to comile in 12-CURRENT: > clang -O2 -pipe -fstack-protector -fno-strict-aliasing -Wall -DFREEBSD -c photoproc.c -o photoproc.o > photoproc.c:397:51: error: use of undeclared identifier 'P_KTHREAD' > ((pp->ki_flag & P_SYSTEM ) || (pp->ki_flag & P_KTHREAD))) > ^ > photoproc.c:464:75: error: use of undeclared identifier 'P_KTHREAD' > if (filterkernel && ((pbase->ki_flag & P_SYSTEM ) || (pbase->ki_flag & P_KTHREAD))) > ^ > photoproc.c:577:74: error: use of undeclared identifier 'P_KTHREAD' > if (filterkernel && ((pbase->ki_flag & P_SYSTEM ) || (pbase->ki_flag & P_KTHREAD))) > ^ > photoproc.c:674:51: error: use of undeclared identifier 'P_KTHREAD' > if ((pp->ki_flag & P_SYSTEM ) || (pp->ki_flag & P_KTHREAD)) > ^ > photoproc.c:690:44: error: use of undeclared identifier 'P_KTHREAD' > curtask->cpu.rtprio = ((pp->ki_flag & P_KTHREAD) ? pp->ki_pri.pri_native : > ^ > photoproc.c:694:44: error: use of undeclared identifier 'P_KTHREAD' > curtask->cpu.rtprio = ((pp->ki_flag & P_KTHREAD) ? pp->ki_pri.pri_native : Konstantin Belousov <kostikbel@gmail.com> commented in freebsd-ports@: The flag was renamed to P_KPROC in HEAD/stable-12.
Created attachment 172612 [details] patch portlint is OK, testbuild is fine.
with this patch it compiles and runs fine on r302904 (amd64)
A commit references this bug: Author: pi Date: Sun Jul 31 10:31:31 UTC 2016 New revision: 419354 URL: https://svnweb.freebsd.org/changeset/ports/419354 Log: sysutils/atop: fix after r302904 due to flag rename (P_KPROC -> P_KTHREAD) PR: 211173 Approved by: samm@os2.kiev.ua (maintainer timeout) MFH: 2016Q3 Changes: head/sysutils/atop/Makefile head/sysutils/atop/files/patch-atop.h
The change P_KPROC -> P_KTHREAD was in r295435.
Comment on attachment 172612 [details] patch maintainer timeout, implicit approval
A commit references this bug: Author: pi Date: Sun Jul 31 16:49:18 UTC 2016 New revision: 419394 URL: https://svnweb.freebsd.org/changeset/ports/419394 Log: sysutils/atop: fix after r302904 due to flag rename (P_KPROC -> P_KTHREAD) PR: 211173 MFH: r419354 Approved by: ports-secteam (junovitch) Changes: _U branches/2016Q3/ branches/2016Q3/sysutils/atop/Makefile branches/2016Q3/sysutils/atop/files/patch-atop.h