git: c914b62538fe - main - devel/libdatadog: Fix build on 32-bit architectures
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 19 Nov 2022 08:18:42 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=c914b62538fee28e2a9e9d79b83cfe3e8c407d91 commit c914b62538fee28e2a9e9d79b83cfe3e8c407d91 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-11-19 08:13:56 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-11-19 08:13:56 +0000 devel/libdatadog: Fix build on 32-bit architectures PR: 267470 Reported by: eduardo --- devel/libdatadog/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/devel/libdatadog/Makefile b/devel/libdatadog/Makefile index 83e2c4200898..c0d70612e2be 100644 --- a/devel/libdatadog/Makefile +++ b/devel/libdatadog/Makefile @@ -165,6 +165,8 @@ CARGO_CRATES= aho-corasick-0.7.18 \ post-patch: ${SED} -e 's|@Datadog_VERSION@|${PORTVERSION}|' ${WRKSRC}/profiling-ffi/datadog_profiling.pc.in > ${WRKSRC}/datadog_profiling.pc ${SED} -e 's|@DDog_VERSION@|${PORTVERSION}|' ${WRKSRC}/profiling-ffi/datadog_profiling_with_rpath.pc.in > ${WRKSRC}/datadog_profiling_with_rpath.pc + # Fix sys-info-0.9.1 on 32-bit architectures, see also https://github.com/FillZpp/sys-info-rs/issues/80 + @${SED} -i '' -e '/get_cpu/ s|unsigned long|uint64_t|; /get_proc_total/ s|unsigned long|uint64_t|' ${WRKSRC}/cargo-crates/sys-info-0.9.1/c/*.[ch] post-build: @cd ${WRKSRC} && cbindgen --crate ddcommon-ffi --config ddcommon-ffi/cbindgen.toml --output ${WRKSRC}/common.h