Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Oct 2024 09:39:24 GMT
From:      Robert Clausecker <fuz@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: c53d5c5ae155 - 2024Q4 - comms/libusbsio: fix build on architectures where uname -p != uname -m
Message-ID:  <202410210939.49L9dOYk034437@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2024Q4 has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c53d5c5ae15563e7b639e6d67026f2684627fd24

commit c53d5c5ae15563e7b639e6d67026f2684627fd24
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2024-10-10 13:59:24 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2024-10-21 09:38:50 +0000

    comms/libusbsio: fix build on architectures where uname -p != uname -m
    
    The source uses uname -m to build a subdirectory, but we used uname -p
    to describe it.  A fix was already attempted, but only incidentally
    correct on ppc.  Use the right variable to fix the build on arm64, too.
    
    Approved by:    portmgr (build fix blanket)
    
    (cherry picked from commit 2effd5a3db89793cb70bedd71740c3c339e08ac4)
---
 comms/libusbsio/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/comms/libusbsio/Makefile b/comms/libusbsio/Makefile
index 84dd21601141..ff7f819be1c7 100644
--- a/comms/libusbsio/Makefile
+++ b/comms/libusbsio/Makefile
@@ -22,7 +22,7 @@ GH_TAGNAME=	8577280966ee91cab606df5b0c64889be71ce7b9
 PLIST_FILES=	lib/${PORTNAME}.a lib/${PORTNAME}.so
 
 do-install:
-	${INSTALL_DATA} ${WRKSRC}/bin/${OPSYS:tl}_${MACHINE_CPU}/${PORTNAME}.a ${STAGEDIR}${PREFIX}/lib
-	${INSTALL_LIB} ${WRKSRC}/bin/${OPSYS:tl}_${MACHINE_CPU}/${PORTNAME}.so ${STAGEDIR}${PREFIX}/lib
+	${INSTALL_DATA} ${WRKSRC}/bin/${OPSYS:tl}_${MACHINE}/${PORTNAME}.a ${STAGEDIR}${PREFIX}/lib
+	${INSTALL_LIB} ${WRKSRC}/bin/${OPSYS:tl}_${MACHINE}/${PORTNAME}.so ${STAGEDIR}${PREFIX}/lib
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202410210939.49L9dOYk034437>