[Bug 267290] devel/git-delta: Mark BROKEN on i386

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 29 Oct 2022 14:02:18 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267290

--- Comment #6 from Alexey Dokuchaev <danfe@FreeBSD.org> ---
(In reply to Nuno Teixeira from comment #5)
> Any clue on how to fix it?
From what I can see, sys-info-0.9.1 crate is extracted into the port's working
directory, so fixing it should be as easy as simply patch relevant files
(freebsd.c, info.h, lib.rs) to replace uint64_t, unsigned long, u64 in
problematic functions with uint_32t and u32 (my preferred version because I
don't like to use huge types for small numbers) or just replace "unsigned long"
(which width is machine-dependent) with uint64_t if one prefers to stay within
64-bit domain.  The latter would also yield smaller a patch (as only C code
would need patching) and perhaps even just one sed(1) call would suffice.  Try
this:

post-patch:
        @${REINPLACE_CMD} -e '/get_cpu/s,unsigned long,uint64_t,' \
                ${WRKSRC}/cargo-crates/sys-info-0.9.1/c/*.[ch]

-- 
You are receiving this mail because:
You are the assignee for the bug.