Page MenuHomeFreeBSD

New port net-p2p/mt-recorder: Rust based hashing program for the Bitmark Property System
Needs ReviewPublic

Authored by hsw_bitmark.com on Mar 3 2020, 7:06 AM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 3 2024, 3:09 PM
Unknown Object (File)
Sep 20 2024, 1:48 PM
Unknown Object (File)
Sep 14 2024, 9:13 AM
Unknown Object (File)
Sep 8 2024, 3:06 PM
Unknown Object (File)
Sep 8 2024, 2:13 AM
Unknown Object (File)
Sep 7 2024, 7:48 AM
Unknown Object (File)
Aug 19 2024, 10:35 AM
Unknown Object (File)
Aug 18 2024, 4:20 PM
Subscribers

Details

Reviewers
araujo
Group Reviewers
Contributor Reviewers (ports)
Summary

This is a Rust based hashing program for the Bitmark Property System
(net-p2p/bitmark).

It has two flavors the default which compiles with simd for modern
CPUs and mt-recorder@nosimd for older CPUs without the AVX feature

Also update UIDs and GIDs for mt-recorder user/group

Test Plan

poudriere (12.1-RELEASE amd64)

poudriere testport -j 12_1-amd64 net-p2p/mt-recorder
poudriere testport -j 12_1-amd64 net-p2p/mt-recorder@nosimd

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 29850
Build 27674: arc lint + arc unit

Event Timeline

tobik added inline comments.
net-p2p/mt-recorder/Makefile
15โ€“16

Wrong order. See https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/porting-order.html

Also please do not lock it to llvm80 and use ${LLVM_DEFAULT} here.

18

This should probably be an option not a flavor. When compiled with SIMD support the argonautica crate passes -march=native to the build [1], which means the package would be specific to the package builder hardware, i.e., the package would be broken on a large number of systems [2]. It is a waste of resources to build such packages.

[1] https://github.com/bcmyers/argonautica/blob/v0.2.0/argonautica-rs/build.rs#L67
[2] https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/dads-arch.html

23

USES=pkgconfig is already implied by CARGO_CRATES=pkgconfig. Please remove it.

156

Nop with USES=cargo ports. Please remove it.

If the binary needs to be stripped put a ${STRIP_CMD} in post-install.

164โ€“169

There is no reason to use += anywhere in this port.

180

No need for the quotes.

update to address the problems in review by @tobik

net-p2p/mt-recorder/Makefile
19

simd exists on arm*, ppc*. Is it limited to amd64?

My present understanding is that SIMD exists on certain CPUs and that the way the Rust compiler works in that it does a native build
if SIMD feature is enabled which would mean that the build machine would have to support SIMD. Originally I had it as a flavour so
both kinds would have been built. I was recommended to convert to an option defaulted off so that build machines without SIMD
would not fail the SIMD version

linimon retitled this revision from New port net-p2p/mt-recorder (v0.5.3) to New port net-p2p/mt-recorder: Rust based hashing program for the Bitmark Property System.Jun 26 2020, 8:14 AM