Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Oct 2022 14:02:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 267290] devel/git-delta: Mark BROKEN on i386
Message-ID:  <bug-267290-7788-1SNJgBVdUa@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-267290-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-267290-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267290

--- 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 work=
ing
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 l=
ong"
(which width is machine-dependent) with uint64_t if one prefers to stay wit=
hin
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]

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-267290-7788-1SNJgBVdUa>