Bug 259437 - devel/aarch64-none-elf-gcc: attempt to remove non-existent hiearchy
Summary: devel/aarch64-none-elf-gcc: attempt to remove non-existent hiearchy
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Emmanuel Vadot
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-25 13:57 UTC by Joerg Wunsch
Modified: 2023-03-09 21:35 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (manu)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.