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

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

--- Comment #7 from Nuno Teixeira <eduardo@FreeBSD.org> ---
(In reply to Alexey Dokuchaev from comment #6)

Good news!

'/get_cpu/s,unsigned long,uint64_t,' for 'get_cpu' reduced error to:

---
warning: c/freebsd.c:47:10: error: conflicting types for 'get_proc_total'
warning: uint64_t get_proc_total(void) {
warning:          ^
warning: c/info.h:34:15: note: previous declaration is here
warning: unsigned long get_proc_total(void);
warning:               ^
warning: 1 error generated.
---

I added '/get_proc_total/s,unsigned long,uint64_t,' for 'get_proc_total':

and it builds ok.

reinplace_warnings.txt says that both freebsd.c and test.c weren't touched:
---
- - REINPLACE_CMD ran, but did not modify file contents:
cargo-crates/sys-info-0.9.1/c/freebsd.c
- - REINPLACE_CMD ran, but did not modify file contents:
cargo-crates/sys-info-0.9.1/c/test.c
- - REINPLACE_CMD ran, but did not modify file contents:
cargo-crates/sys-info-0.9.1/c/freebsd.c
- - REINPLACE_CMD ran, but did not modify file contents:
cargo-crates/sys-info-0.9.1/c/test.c
---

Need to test devel/git-delta and sysutils/topgrade inside a i386 jail to do a
test run.

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

Be right back with test run results :)

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