Created attachment 163827 [details] Patch to add armv6hf to the cases where posix mutexes are used successfully compiled portupgrade on armv6hf platform, but when invoked it core dumps. trace shows illegal instruction in the db5 library. the Makefile notes that db5 uses a deprecated function and enables posix mutexes for aarch64 and armv6 architectures (references FreeBSD bug #197227) If I do the same for armv6hf I can successfully run portupgrade patch to Makefile attached
Can we do something like that instead? .if ${ARCH} == "aarch64" || ${ARCH:Marmv6*}
Can we please also fix this in the other db* ports? ;)
db48 needs to die. I will patch db6 as well.
A commit references this bug: Author: mandree Date: Sat Dec 19 11:03:37 UTC 2015 New revision: 404013 URL: https://svnweb.freebsd.org/changeset/ports/404013 Log: Fix crash by using POSIX mutexes on all armv6* ARCHes not just armv6. This is to fix illegal-instruction crashes on armv6hf. PR: 205001 Submitted by: dave@dogwood.com Reviewed by: mikael.urankar@gmail.com MFH: 2015Q4 Changes: head/databases/db5/Makefile head/databases/db6/Makefile
requesting MFH permission from portmgr@
over to the correct team.
A commit references this bug: Author: mandree Date: Tue Dec 22 08:46:33 UTC 2015 New revision: 404223 URL: https://svnweb.freebsd.org/changeset/ports/404223 Log: MFH: r401088 r404013 As with armv6 we need to use POSIX mutexes. Without this the ports try to use fcntl mutexes and fails as they are deprecated. Approved by: mandree (maintainer) Differential Revision: https://reviews.freebsd.org/D4107 Fix crash by using POSIX mutexes on all armv6* ARCHes not just armv6. This is to fix illegal-instruction crashes on armv6hf. PR: 205001 Submitted by: dave@dogwood.com Reviewed by: mikael.urankar@gmail.com Approved by: ports-secteam (feld@) Changes: _U branches/2015Q4/ branches/2015Q4/databases/db48/Makefile branches/2015Q4/databases/db5/Makefile branches/2015Q4/databases/db6/Makefile