Bug 259437

Summary: devel/aarch64-none-elf-gcc: attempt to remove non-existent hiearchy
Product: Ports & Packages Reporter: Joerg Wunsch <joerg>
Component: Individual Port(s)Assignee: Emmanuel Vadot <manu>
Status: New ---    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (manu)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Joerg Wunsch freebsd_committer freebsd_triage 2021-10-25 13:57:15 UTC
The port tries to remove /usr/lib/gcc/${GCC_TARGET}/${PORTVERSION}/include-fixed, rather than ${PREFIX}/lib/gcc/${GCC_TARGET}/${PORTVERSION}/include-fixed.

This results in (useless) "fixed" include files remaining to be packaged.

Fix:

diff --git a/devel/aarch64-none-elf-gcc/Makefile b/devel/aarch64-none-elf-gcc/Makefile
index e6d1e217aa33..0595520a0ca2 100644
--- a/devel/aarch64-none-elf-gcc/Makefile
+++ b/devel/aarch64-none-elf-gcc/Makefile
@@ -89,6 +89,6 @@ post-install:
 .endfor
        @${RM} ${STAGEDIR}${PREFIX}/share/info/*
        @${RM} ${STAGEDIR}${PREFIX}/man/man7/*
-       ${RM} -r ${STAGEDIR}/usr/lib/gcc/${GCC_TARGET}/${PORTVERSION}/include-fixed
+       ${RM} -r ${STAGEDIR}${PREFIX}/lib/gcc/${GCC_TARGET}/${PORTVERSION}/include-fixed
 
 .include <bsd.port.post.mk>
Comment 1 Joerg Wunsch freebsd_committer freebsd_triage 2023-03-09 21:35:49 UTC
Just verified: the current port still has it wrong.