git: c9d7c51bea3c - main - devel/git-branchless: Fix build on 32-bit systems
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 16 Jan 2023 10:34:20 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=c9d7c51bea3c62b2cf8502141480d2bbe53fd624 commit c9d7c51bea3c62b2cf8502141480d2bbe53fd624 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2023-01-16 10:33:51 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2023-01-16 10:33:51 +0000 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}