From c9d7c51bea3c62b2cf8502141480d2bbe53fd624 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Mon, 16 Jan 2023 02:33:51 -0800 Subject: [PATCH] devel/git-branchless: Fix build on 32-bit systems Reported by: fallout --- devel/git-branchless/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/devel/git-branchless/Makefile b/devel/git-branchless/Makefile index 5728bf982cef..93c02e96192f 100644 --- a/devel/git-branchless/Makefile +++ b/devel/git-branchless/Makefile @@ -1,6 +1,7 @@ PORTNAME= git-branchless DISTVERSIONPREFIX= v DISTVERSION= 0.6.0 +PORTREVISION= 1 CATEGORIES= devel MAINTAINER= yuri@FreeBSD.org @@ -349,6 +350,13 @@ CARGO_CRATES= addr2line-0.17.0 \ PLIST_FILES= bin/${PORTNAME} +# sys-info-0.9.1 crate fix: https://github.com/FillZpp/sys-info-rs/issues/80 (same as in devel/git-delta) +post-patch: + @${REINPLACE_CMD} \ + -e '/get_cpu/s|unsigned long|uint64_t|' \ + -e '/get_proc_total/s|unsigned long|uint64_t|' \ + ${WRKSRC}/cargo-crates/sys-info-*/c/*.[ch] + post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}