summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-03-06Merge #107masterbors[bot]
107: Workaround for missing libs on freebsd 13 r=jmesmon a=fabiojmendes This pull request fixes linking issues on downstream libs on FreeBSD 13. See [libzetta-rs #166](https://github.com/Inner-Heaven/libzetta-rs/issues/166) for details. I also updated the url for grcov binary so the workflows will run. Hopefully this workaround can be removed once this [issue is fixed](https://github.com/Inner-Heaven/libzetta-rs/issues/166#issuecomment-1057534021) on FreeBSD side. Co-authored-by: Fabio Mendes <fabiojmendes@gmail.com>
2022-03-04Workaround for missing libs on freebsd 13Fabio Mendes
Update codecov.yml Update coveralls.yml
2021-10-27Merge #84bors[bot]
84: gha/cadacy: use github action to submit coverage r=jmesmon a=jmesmon Was seeing some errors using the `get.sh` direct method for pushing codacy coverage info, try using the action instead Co-authored-by: Cody P Schafer <dev@codyps.com>
2021-10-25gha/cadacy: use github action to submit coverageCody P Schafer
2021-10-25Merge #82 #83bors[bot]
82: build(deps): bump pkg-config from 0.3.20 to 0.3.22 r=jmesmon a=dependabot[bot] Bumps [pkg-config](https://github.com/rust-lang/pkg-config-rs) from 0.3.20 to 0.3.22. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/rust-lang/pkg-config-rs/blob/master/CHANGELOG.md">pkg-config's changelog</a>.</em></p> <blockquote> <h2>[0.3.22] - 2021-10-24</h2> <h3>Fixed</h3> <ul> <li><code>pkg-config</code> compiles again with Rust 1.30 or newer. 0.3.21 accidentally made use of API only available since 1.40 (<a href="https://github-redirect.dependabot.com/rust-lang/pkg-config-rs/issues/124">#124</a>, <a href="https://github-redirect.dependabot.com/rust-lang/pkg-config-rs/issues/125">#125</a>).</li> </ul> <h3>Changed</h3> <ul> <li>Switched from Travis to GitHub Actions for the CI. Travis is dysfunctional since quite some time (<a href="https://github-redirect.dependabot.com/rust-lang/pkg-config-rs/issues/126">#126</a>).</li> </ul> <h2>[0.3.21] - 2021-10-22</h2> <h3>Fixed</h3> <ul> <li>Tests succeed again on macOS (<a href="https://github-redirect.dependabot.com/rust-lang/pkg-config-rs/issues/122">#122</a>).</li> </ul> <h3>Changed</h3> <ul> <li>Improve error message in case of missing pkg-config and provide instructions how it can be installed (<a href="https://github-redirect.dependabot.com/rust-lang/pkg-config-rs/issues/121">#121</a>).</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/rust-lang/pkg-config-rs/commit/0ce2ca1b3dd7308379ffa101963b3edc01ef6f9a"><code>0ce2ca1</code></a> Release 0.3.22</li> <li><a href="https://github.com/rust-lang/pkg-config-rs/commit/06b97fe4a839103de27ed9d5c2dd0839b2f5c8f7"><code>06b97fe</code></a> Link to system-deps instead of metadeps</li> <li><a href="https://github.com/rust-lang/pkg-config-rs/commit/8f7ade819f60f0956cc64ee2163ce7854f81d6c5"><code>8f7ade8</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/rust-lang/pkg-config-rs/issues/126">#126</a> from Enselic/basic-github-actions-port</li> <li><a href="https://github.com/rust-lang/pkg-config-rs/commit/238e8b3f6e80871fef84ed2281f8556a311705a0"><code>238e8b3</code></a> Update CI badge</li> <li><a href="https://github.com/rust-lang/pkg-config-rs/commit/ea3a34ca8cd54f2a3d16d31396113eafb094b979"><code>ea3a34c</code></a> rm '.travis.yml'</li> <li><a href="https://github.com/rust-lang/pkg-config-rs/commit/a0824ebf6df3f258fa3de6debfac69ccfc7a8a94"><code>a0824eb</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/rust-lang/pkg-config-rs/issues/125">#125</a> from stephank/fix/msrv</li> <li><a href="https://github.com/rust-lang/pkg-config-rs/commit/83a7c8951cb393ebfbab4791ae390e5cf54895ef"><code>83a7c89</code></a> Port basics of .travis.yml to GitHub Actions</li> <li><a href="https://github.com/rust-lang/pkg-config-rs/commit/9e82a305129a405a0ce0f3777e502c094bd7f054"><code>9e82a30</code></a> Fix compatibility with Rust 1.30</li> <li><a href="https://github.com/rust-lang/pkg-config-rs/commit/6ff4b54f9611215bb8a54502e706e6cb45667c64"><code>6ff4b54</code></a> Update version to 0.3.21</li> <li><a href="https://github.com/rust-lang/pkg-config-rs/commit/ccebac6bee73a331ea99f0e709be3dbdc31c5854"><code>ccebac6</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/rust-lang/pkg-config-rs/issues/123">#123</a> from kornelski/installhelp</li> <li>Additional commits viewable in <a href="https://github.com/rust-lang/pkg-config-rs/compare/0.3.20...0.3.22">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pkg-config&package-manager=cargo&previous-version=0.3.20&new-version=0.3.22)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can trigger a rebase of this PR by commenting ``@dependabot` rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) 83: build(deps): bump libc from 0.2.104 to 0.2.105 r=jmesmon a=dependabot[bot] Bumps [libc](https://github.com/rust-lang/libc) from 0.2.104 to 0.2.105. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/rust-lang/libc/releases">libc's releases</a>.</em></p> <blockquote> <h2>0.2.105</h2> <h2>What's Changed</h2> <ul> <li>Haiku: Add utmpx functions and constants by <a href="https://github.com/GrayJack"><code>`@​GrayJack</code></a>` in <a href="https://github-redirect.dependabot.com/rust-lang/libc/pull/2460">rust-lang/libc#2460</a></li> <li>Fix most libc-test compile warnings and errors for DragonFly by <a href="https://github.com/rtzoeller"><code>`@​rtzoeller</code></a>` in <a href="https://github-redirect.dependabot.com/rust-lang/libc/pull/2461">rust-lang/libc#2461</a></li> <li>Deprecate XU_NGROUPS on DragonFly by <a href="https://github.com/rtzoeller"><code>`@​rtzoeller</code></a>` in <a href="https://github-redirect.dependabot.com/rust-lang/libc/pull/2462">rust-lang/libc#2462</a></li> <li>netbsd add missing posix_spawn constants. by <a href="https://github.com/devnexen"><code>`@​devnexen</code></a>` in <a href="https://github-redirect.dependabot.com/rust-lang/libc/pull/2464">rust-lang/libc#2464</a></li> <li>Adds pthread_mutexattr_[g|s]etrobust and pthread_mutex_consistent bindings by <a href="https://github.com/awidegreen"><code>`@​awidegreen</code></a>` in <a href="https://github-redirect.dependabot.com/rust-lang/libc/pull/2455">rust-lang/libc#2455</a></li> <li>Freebsd items by <a href="https://github.com/GuillaumeGomez"><code>`@​GuillaumeGomez</code></a>` in <a href="https://github-redirect.dependabot.com/rust-lang/libc/pull/2451">rust-lang/libc#2451</a></li> <li>add more errno constants to uclibc by <a href="https://github.com/atopia"><code>`@​atopia</code></a>` in <a href="https://github-redirect.dependabot.com/rust-lang/libc/pull/2466">rust-lang/libc#2466</a></li> <li>apple further Big Sur update adding few more fn. by <a href="https://github.com/devnexen"><code>`@​devnexen</code></a>` in <a href="https://github-redirect.dependabot.com/rust-lang/libc/pull/2459">rust-lang/libc#2459</a></li> <li>Properly expose more constants on FreeBSD by <a href="https://github.com/asomers"><code>`@​asomers</code></a>` in <a href="https://github-redirect.dependabot.com/rust-lang/libc/pull/2465">rust-lang/libc#2465</a></li> <li>Add fexecve() to DragonFly by <a href="https://github.com/rtzoeller"><code>`@​rtzoeller</code></a>` in <a href="https://github-redirect.dependabot.com/rust-lang/libc/pull/2467">rust-lang/libc#2467</a></li> <li>Adding some NT_* consts from elf.h by <a href="https://github.com/irgstg"><code>`@​irgstg</code></a>` in <a href="https://github-redirect.dependabot.com/rust-lang/libc/pull/2463">rust-lang/libc#2463</a></li> <li>Add missing CPU_* macros to android, and sync with Linux by <a href="https://github.com/joshtriplett"><code>`@​joshtriplett</code></a>` in <a href="https://github-redirect.dependabot.com/rust-lang/libc/pull/2470">rust-lang/libc#2470</a></li> <li>linux: Add CLOSE_RANGE_* flags by <a href="https://github.com/NeoRaider"><code>`@​NeoRaider</code></a>` in <a href="https://github-redirect.dependabot.com/rust-lang/libc/pull/2471">rust-lang/libc#2471</a></li> <li>Add NETLINK_EXT_ACK and NETLINK_GET_STRICT_CHK on Linux by <a href="https://github.com/tklauser"><code>`@​tklauser</code></a>` in <a href="https://github-redirect.dependabot.com/rust-lang/libc/pull/2453">rust-lang/libc#2453</a></li> <li>darwin libproc Big Sur update. by <a href="https://github.com/devnexen"><code>`@​devnexen</code></a>` in <a href="https://github-redirect.dependabot.com/rust-lang/libc/pull/2472">rust-lang/libc#2472</a></li> <li>Add a couple pthread functions for redox by <a href="https://github.com/coolreader18"><code>`@​coolreader18</code></a>` in <a href="https://github-redirect.dependabot.com/rust-lang/libc/pull/2473">rust-lang/libc#2473</a></li> <li>linux_like: Add CLONE_PIDFD flag by <a href="https://github.com/NeoRaider"><code>`@​NeoRaider</code></a>` in <a href="https://github-redirect.dependabot.com/rust-lang/libc/pull/2474">rust-lang/libc#2474</a></li> <li>freebsd add numa domain api by <a href="https://github.com/devnexen"><code>`@​devnexen</code></a>` in <a href="https://github-redirect.dependabot.com/rust-lang/libc/pull/2475">rust-lang/libc#2475</a></li> <li>Upgrade crate version to 0.2.105 by <a href="https://github.com/GuillaumeGomez"><code>`@​GuillaumeGomez</code></a>` in <a href="https://github-redirect.dependabot.com/rust-lang/libc/pull/2469">rust-lang/libc#2469</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/awidegreen"><code>`@​awidegreen</code></a>` made their first contribution in <a href="https://github-redirect.dependabot.com/rust-lang/libc/pull/2455">rust-lang/libc#2455</a></li> <li><a href="https://github.com/atopia"><code>`@​atopia</code></a>` made their first contribution in <a href="https://github-redirect.dependabot.com/rust-lang/libc/pull/2466">rust-lang/libc#2466</a></li> <li><a href="https://github.com/irgstg"><code>`@​irgstg</code></a>` made their first contribution in <a href="https://github-redirect.dependabot.com/rust-lang/libc/pull/2463">rust-lang/libc#2463</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/rust-lang/libc/compare/0.2.104...0.2.105">https://github.com/rust-lang/libc/compare/0.2.104...0.2.105</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/rust-lang/libc/commit/6877d17250388905289cc13377ac0c6a5131592e"><code>6877d17</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/rust-lang/libc/issues/2469">#2469</a> - GuillaumeGomez:upgrade-version, r=JohnTitor</li> <li><a href="https://github.com/rust-lang/libc/commit/4f0b03761903e53ed2574a5b31ea003b35dfc496"><code>4f0b037</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/rust-lang/libc/issues/2475">#2475</a> - devnexen:fbsd_numa_domain, r=JohnTitor</li> <li><a href="https://github.com/rust-lang/libc/commit/a2693689ebe760e534c27240204ca5a27b7881cd"><code>a269368</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/rust-lang/libc/issues/2474">#2474</a> - NeoRaider:pidfd, r=JohnTitor</li> <li><a href="https://github.com/rust-lang/libc/commit/e2638e3bcf79880a9c271da1d75b4fe832b2f019"><code>e2638e3</code></a> libc-test: include linux/sched.h test_linux()</li> <li><a href="https://github.com/rust-lang/libc/commit/91810ce1d2a8c0b446f29cba5692c9ab137cf56a"><code>91810ce</code></a> freebsd add numa domain api</li> <li><a href="https://github.com/rust-lang/libc/commit/e51d06678d7a09b65d97219e899d2c129de3ce8c"><code>e51d066</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/rust-lang/libc/issues/2473">#2473</a> - coolreader18:redox-pthread, r=JohnTitor</li> <li><a href="https://github.com/rust-lang/libc/commit/7ee7e14a35aaed3f98d6dfcc8a789e004f35de30"><code>7ee7e14</code></a> linux, android: Add CLONE_PIDFD flag</li> <li><a href="https://github.com/rust-lang/libc/commit/71b2de468119a57c1f86272f036ab19fc9564233"><code>71b2de4</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/rust-lang/libc/issues/2472">#2472</a> - devnexen:macos_big_sur_update2, r=JohnTitor</li> <li><a href="https://github.com/rust-lang/libc/commit/77636bb798f69a7b3f2724040046e1f8268a5e9e"><code>77636bb</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/rust-lang/libc/issues/2453">#2453</a> - tklauser:linux-netlink-consts, r=JohnTitor</li> <li><a href="https://github.com/rust-lang/libc/commit/2c65744eaebb36f02a096e3bea8f175579fb1b5e"><code>2c65744</code></a> Add NETLINK_EXT_ACK and NETLINK_GET_STRICT_CHK on Linux</li> <li>Additional commits viewable in <a href="https://github.com/rust-lang/libc/compare/0.2.104...0.2.105">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=libc&package-manager=cargo&previous-version=0.2.104&new-version=0.2.105)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can trigger a rebase of this PR by commenting ``@dependabot` rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-25build(deps): bump libc from 0.2.104 to 0.2.105dependabot[bot]
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.104 to 0.2.105. - [Release notes](https://github.com/rust-lang/libc/releases) - [Commits](https://github.com/rust-lang/libc/compare/0.2.104...0.2.105) --- updated-dependencies: - dependency-name: libc dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2021-10-25build(deps): bump pkg-config from 0.3.20 to 0.3.22dependabot[bot]
Bumps [pkg-config](https://github.com/rust-lang/pkg-config-rs) from 0.3.20 to 0.3.22. - [Release notes](https://github.com/rust-lang/pkg-config-rs/releases) - [Changelog](https://github.com/rust-lang/pkg-config-rs/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/pkg-config-rs/compare/0.3.20...0.3.22) --- updated-dependencies: - dependency-name: pkg-config dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2021-10-22Merge #81bors[bot]
81: gha/mac: reduce builds, update to macos-11, update openzfs to 2.1.0, check md5 r=jmesmon a=jmesmon Co-authored-by: Cody P Schafer <dev@codyps.com>
2021-10-22gha/mac: disable md5sum checking, md5sum command not in base imageCody P Schafer
2021-10-22bors: require mac tooCody P Schafer
2021-10-22gha/mac: reduce builds, update to macos-11, update openzfs to 2.1.0, check md5Cody P Schafer
2021-10-22Merge #79bors[bot]
79: update all deps & suppress warnings in bindgen generated code r=jmesmon a=jmesmon Also regenerate bindgen headers. Co-authored-by: Cody P Schafer <dev@codyps.com>
2021-10-22gha: always run apt update to avoid breakage when azure.archive.ubuntu.com ↵Cody P Schafer
drops packages
2021-10-22zfs-core: fix for new rand versionCody P Schafer
2021-10-22gha/check: configure apt retriesCody P Schafer
2021-10-16nvpair-sys: fix warning suppressionCody P Schafer
2021-10-16zfs-core-sys: suppress warnings from bindgen generated codeCody P Schafer
2021-10-16zfs-core-sys: generate-bindings using zfs-2.1.1 on linuxCody P Schafer
2021-10-16update all depsCody P Schafer
2021-10-16Merge #74bors[bot]
74: NvList type is Send r=jmesmon a=ahrens The NvList type can be safely sent to other threads. Mark it as such by implementing `Send`. This is needed to use NvList's with async rust. Let me know if I've misunderstood the semantics of `Send`. It seems perfectly safe to operate on a `nvlist_t*` from a different thread, as long as it's only manipulated by one thread at a time. Co-authored-by: Matthew Ahrens <mahrens@delphix.com>
2021-09-21NvList type is SendMatthew Ahrens
The NvList type can be safely sent to other threads. Mark it as such by implementing `Send`.
2021-09-01Merge #72bors[bot]
72: build(deps): bump libc from 0.2.98 to 0.2.101 r=jmesmon a=dependabot[bot] Bumps [libc](https://github.com/rust-lang/libc) from 0.2.98 to 0.2.101. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/rust-lang/libc/releases">libc's releases</a>.</em></p> <blockquote> <h2>0.2.100</h2> <p>Bump patch version to 0.2.100.</p> <h2>0.2.99</h2> <p>Bump patch version to 0.2.99.</p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/rust-lang/libc/commit/2cffe84529fb86a150c6848409d75aa96d237944"><code>2cffe84</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/rust-lang/libc/issues/2361">#2361</a> - hcsch:libc-0.2.101, r=Amanieu</li> <li><a href="https://github.com/rust-lang/libc/commit/d16dfc4bcaed702f32a1c23efd295e07a18f7d34"><code>d16dfc4</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/rust-lang/libc/issues/2364">#2364</a> - rtzoeller:dragonflybsd_fix_statfs, r=Amanieu</li> <li><a href="https://github.com/rust-lang/libc/commit/f09c62c081954047fd93b8d85b96e69078ae3094"><code>f09c62c</code></a> Fix DragonFlyBSD's statfs</li> <li><a href="https://github.com/rust-lang/libc/commit/2b9253a5c599b9c4b4eac10a19e9a980ff0d2d28"><code>2b9253a</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/rust-lang/libc/issues/2363">#2363</a> - devnexen:dfbsd_utmpxname, r=Amanieu</li> <li><a href="https://github.com/rust-lang/libc/commit/da6078725cad7c43b565802fad186e370756b579"><code>da60787</code></a> dragonflybsd further utmpx db fn</li> <li><a href="https://github.com/rust-lang/libc/commit/cf5b24fecf4c2ad70e683f8ca27c8c2b886f4e61"><code>cf5b24f</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/rust-lang/libc/issues/2360">#2360</a> - devnexen:haiku_cpuid_info, r=Amanieu</li> <li><a href="https://github.com/rust-lang/libc/commit/28a482bb8b2c2df65f743613e3cde13ff1074984"><code>28a482b</code></a> Bump to 0.2.101</li> <li><a href="https://github.com/rust-lang/libc/commit/72fdbd8aef23773aedefed23555a9bc77e73c35a"><code>72fdbd8</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/rust-lang/libc/issues/2358">#2358</a> - hcsch:add-strtof, r=JohnTitor</li> <li><a href="https://github.com/rust-lang/libc/commit/3b10fd5e673e6d03a60af92a787f21f0417e8813"><code>3b10fd5</code></a> haiku adding cpuid_info data.</li> <li><a href="https://github.com/rust-lang/libc/commit/594192ff713f25dc285ffd3f9f6a1bd3e9350f3b"><code>594192f</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/rust-lang/libc/issues/2356">#2356</a> - devnexen:fbsd_ucontext_aarch64, r=Amanieu</li> <li>Additional commits viewable in <a href="https://github.com/rust-lang/libc/compare/0.2.98...0.2.101">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=libc&package-manager=cargo&previous-version=0.2.98&new-version=0.2.101)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can trigger a rebase of this PR by commenting ``@dependabot` rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-01Merge #71bors[bot]
71: remove native from cargo:rustc-link-lib r=jmesmon a=rcgoodfellow `native` is only defined for `rustc-link-search` https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib Having it present in `rustc-link-lib` results in build errors. Co-authored-by: Ryan Goodfellow <ryan.goodfellow@oxide.computer>
2021-08-26build(deps): bump libc from 0.2.98 to 0.2.101dependabot[bot]
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.98 to 0.2.101. - [Release notes](https://github.com/rust-lang/libc/releases) - [Commits](https://github.com/rust-lang/libc/compare/0.2.98...0.2.101) --- updated-dependencies: - dependency-name: libc dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2021-08-25remove native from cargo:rustc-link-libRyan Goodfellow
native is only defined for rustc-link-search https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib Having it present in rustc-link-lib results in build errors.
2021-08-04Merge #67bors[bot]
67: fix crosscompilations and support macos with zfs 2.0.1 r=jmesmon a=jmesmon Co-authored-by: Cody P Schafer <dev@codyps.com>
2021-08-04cargo fmtCody P Schafer
2021-08-04nvpair-sys: suppress warning for deref_nullptr generated by bindgenCody P Schafer
2021-08-04zfs-core-sys/build: clippyCody P Schafer
2021-08-04nvpair-sys: fix generation on macosCody P Schafer
2021-08-04cargo fmtCody P Schafer
2021-08-04gha: add mac build testCody P Schafer
2021-08-04zfs-core: fix tests for openzfs 2.0 on macosCody P Schafer
2021-08-04sys: fix crosscompilation & support macos with openzfs-on-osx 2.0.1Cody P Schafer
2021-08-04Merge #66bors[bot]
66: Fix linking to libzutil on FreeBSD r=jmesmon a=asomers Rust needs to use -as-needed when linking to transitive dependencies. At least, on some targets. It's undocumented which targets require that. This option is not documented in the Cargo Book, only in the RFC Book: https://rust-lang.github.io/rfcs/2951-native-link-modifiers.html Fixes #65 Co-authored-by: Alan Somers <asomers@gmail.com>
2021-07-27Fix linking to libzutil on FreeBSDAlan Somers
Rust needs to use -as-needed when linking to transitive dependencies. At least, on some targets. It's undocumented which targets require that. This option is not documented in the Cargo Book, only in the RFC Book: https://rust-lang.github.io/rfcs/2951-native-link-modifiers.html Fixes #65
2021-04-25Merge #59bors[bot]
59: Conditionally link libspl and zutil on FreeBSD r=jmesmon a=andoriyu FreeBSD's version of `libnvpair` uses functions (for example `libspl_assertf`) from `libspl`. Right now build is broken on FreeBSD due to this. `libzfs_core` depends `libzutil` that holds a shim for `zfs_ioctl_fd` function. Error in question: ``` Compiling nvpair-sys v0.4.0 (/usr/home/andoriyu/rust-libzfs/nvpair-sys) error: linking with `cc` failed: exit code: 1 | = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-Wl,--eh-frame-hdr" "-L" "/usr/home/andoriyu/.rustup/toolchains/stable-x86_64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/lib" "/usr/home/andoriyu/rust-libzfs/target/debug/deps/nvpair_sys-ad5d16b4ad387379.1fspym4vx839le7u.rcgu.o" "/usr/home/andoriyu/rust-libzfs/target/debug/deps/nvpair_sys-ad5d16b4ad387379.1kpmeduvbomt860u.rcgu.o" "/usr/home/andoriyu/rust-libzfs/target/debug/deps/nvpair_sys-ad5d16b4ad387379.2dc0lftqfmb92asf.rcgu.o" "/usr/home/andoriyu/rust-libzfs/target/debug/deps/nvpair_sys-ad5d16b4ad387379.2j13m67krmezibkk.rcgu.o" "/usr/home/andoriyu/rust-libzfs/target/debug/deps/nvpair_sys-ad5d16b4ad387379.2lxj8z2t6i242zfb.rcgu.o" "/usr/home/andoriyu/rust-libzfs/target/debug/deps/nvpair_sys-ad5d16b4ad387379.4gx1tne5eh8pz0ms.rcgu.o" "/usr/home/andoriyu/rust-libzfs/target/debug/deps/nvpair_sys-ad5d16b4ad387379.4mvchp1wcaaer2tt.rcgu.o" "/usr/home/andoriyu/rust-libzfs/target/debug/deps/nvpair_sys-ad5d16b4ad387379.595xf4hg1eph114a.rcgu.o" "/usr/home/andoriyu/rust-libzfs/target/debug/deps/nvpair_sys-ad5d16b4ad387379.59j3v6hdsmtrjjn3.rcgu.o" "/usr/home/andoriyu/rust-libzfs/target/debug/deps/nvpair_sys-ad5d16b4ad387379.5c2m9lqpx77e4ia8.rcgu.o" "/usr/home/andoriyu/rust-libzfs/target/debug/deps/nvpair_sys-ad5d16b4ad387379.5fiwe119pvarbdjz.rcgu.o" "/usr/home/andoriyu/rust-libzfs/target/debug/deps/nvpair_sys-ad5d16b4ad387379.l6q8u4qlad0ktl.rcgu.o" "-o" "/usr/home/andoriyu/rust-libzfs/target/debug/deps/nvpair_sys-ad5d16b4ad387379" "/usr/home/andoriyu/rust-libzfs/target/debug/deps/nvpair_sys-ad5d16b4ad387379.1hdsdnooxdjenarh.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/usr/home/andoriyu/rust-libzfs/target/debug/deps" "-L" "/usr/home/andoriyu/.rustup/toolchains/stable-x86_64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/lib" "-lnvpair" "-lzfs" "-Wl,-Bstatic" "/usr/home/andoriyu/.rustup/toolchains/stable-x86_64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/lib/libtest-e4d8e27bba2fafe9.rlib" "/usr/home/andoriyu/.rustup/toolchains/stable-x86_64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/lib/libterm-fca7fddc86ed2a6e.rlib" "/usr/home/andoriyu/.rustup/toolchains/stable-x86_64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/lib/libgetopts-87ba50558c91e972.rlib" "/usr/home/andoriyu/.rustup/toolchains/stable-x86_64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/lib/libunicode_width-38a5366dda98a80a.rlib" "/usr/home/andoriyu/.rustup/toolchains/stable-x86_64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/lib/librustc_std_workspace_std-b9e12c95cb61720b.rlib" "-Wl,--start-group" "/usr/home/andoriyu/.rustup/toolchains/stable-x86_64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/lib/libstd-3d778e71a3d2144e.rlib" "/usr/home/andoriyu/.rustup/toolchains/stable-x86_64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/lib/libpanic_unwind-01501494a9a2272f.rlib" "/usr/home/andoriyu/.rustup/toolchains/stable-x86_64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/lib/libminiz_oxide-f780d681cfa742d5.rlib" "/usr/home/andoriyu/.rustup/toolchains/stable-x86_64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/lib/libadler-c3fd082d3858d393.rlib" "/usr/home/andoriyu/.rustup/toolchains/stable-x86_64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/lib/libobject-09482ed94636277a.rlib" "/usr/home/andoriyu/.rustup/toolchains/stable-x86_64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/lib/libaddr2line-fbfea5310935424c.rlib" "/usr/home/andoriyu/.rustup/toolchains/stable-x86_64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/lib/libgimli-f5392f9b4b2d37a0.rlib" "/usr/home/andoriyu/.rustup/toolchains/stable-x86_64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/lib/librustc_demangle-8a4a12e283f6bf35.rlib" "/usr/home/andoriyu/.rustup/toolchains/stable-x86_64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/lib/libhashbrown-9da1e161ce2fe917.rlib" "/usr/home/andoriyu/.rustup/toolchains/stable-x86_64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/lib/librustc_std_workspace_alloc-25f1642cbffacef7.rlib" "/usr/home/andoriyu/.rustup/toolchains/stable-x86_64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/lib/libunwind-78301c711dd787ac.rlib" "/usr/home/andoriyu/.rustup/toolchains/stable-x86_64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/lib/libcfg_if-e0b4ed13ac3323ca.rlib" "/usr/home/andoriyu/.rustup/toolchains/stable-x86_64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/lib/liblibc-b40818509f09fb0f.rlib" "/usr/home/andoriyu/.rustup/toolchains/stable-x86_64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/lib/liballoc-dcd1311f0a05c03f.rlib" "/usr/home/andoriyu/.rustup/toolchains/stable-x86_64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/lib/librustc_std_workspace_core-766670794099a124.rlib" "/usr/home/andoriyu/.rustup/toolchains/stable-x86_64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/lib/libcore-5f7d9add231d0df8.rlib" "-Wl,--end-group" "/usr/home/andoriyu/.rustup/toolchains/stable-x86_64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/lib/libcompiler_builtins-84b862f5ffd396b9.rlib" "-Wl,-Bdynamic" "-lexecinfo" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lrt" "-lutil" "-lutil" = note: ld: error: /usr/lib/libnvpair.so: undefined reference to libspl_assertf [--no-allow-shlib-undefined] cc: error: linker command failed with exit code 1 (use -v to see invocation) ``` Co-authored-by: Andrey Cherkashin <148123+andoriyu@users.noreply.github.com>
2021-04-24Update build.rsAndrey Cherkashin
2021-04-24Update build.rsAndrey Cherkashin
2021-04-18Link linux-compat library on freebsdAndrey Cherkashin
2021-04-18Conditionally link libspl on FreeBSDAndrey Cherkashin
FreeBSD's version of `libnvpair` uses functions (for example `libspl_assertf`) from `libspl`. Right now build is broken on FreeBSD due to this.
2021-04-10Merge #58bors[bot]
58: encode/decode array types r=jmesmon a=ahrens Add NvEncode for all integer and integer-array types. Add NvData (and decoding) for all integer-array types, and nvlist-array. I'm a bit new to Rust but I tried to follow the examples in this file. Please let me know if this could be more idiomatic. There's a lot of copy/pasted code for the various integer sizes and signed-ness. It wasn't clear to me how to handle these in a general way. Co-authored-by: Matthew Ahrens <mahrens@delphix.com>
2021-04-10Merge #57bors[bot]
57: add wrappers for nvlist_pack/unpack r=jmesmon a=ahrens Add wrappers for nvlist_pack() and nvlist_unpack(). I'm a bit new to Rust but I tried to follow the examples in this file. Please let me know if this could be more idiomatic. Closes #56 Co-authored-by: Matthew Ahrens <mahrens@delphix.com>
2021-04-09encode/decode array typesMatthew Ahrens
Add NvEncode for all integer and integer-array types. Add NvData (and decoding) for all integer-array types, and nvlist-array. Signed-off-by: Matthew Ahrens <mahrens@delphix.com>
2021-04-09add wrappers for nvlist_pack/unpackMatthew Ahrens
Signed-off-by: Matthew Ahrens <mahrens@delphix.com>
2021-03-14Merge #42bors[bot]
42: build(deps): bump tempfile from 3.1.0 to 3.2.0 r=jmesmon a=dependabot[bot] Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.1.0 to 3.2.0. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/Stebalien/tempfile/blob/master/NEWS">tempfile's changelog</a>.</em></p> <blockquote> <h1>3.2.0</h1> <p>Features:</p> <ul> <li>Bump rand dependency to <code>0.8</code>.</li> <li>Bump cfg-if dependency to <code>1.0</code></li> </ul> <p>Other than that, this release mostly includes small cleanups and simplifications.</p> <p>Breaking: The minimum rust version is now <code>1.40.0</code>.</p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/Stebalien/tempfile/commits">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=tempfile&package-manager=cargo&previous-version=3.1.0&new-version=3.2.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can trigger a rebase of this PR by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-14Merge #50bors[bot]
50: Bump libc from 0.2.81 to 0.2.88 r=jmesmon a=dependabot[bot] Bumps [libc](https://github.com/rust-lang/libc) from 0.2.81 to 0.2.88. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/rust-lang/libc/releases">libc's releases</a>.</em></p> <blockquote> <h2>0.2.88</h2> <p>Bump patch version to 0.2.88.</p> <h2>0.2.87</h2> <p>Bump patch version to 0.2.87.</p> <h2>0.2.86</h2> <p>Bump patch version to 0.2.86.</p> <h2>0.2.82</h2> <p>Bump patch version to 0.2.82.</p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/rust-lang/libc/commit/fc51a0f327ba148ffc1e6a11b7448f649b80608a"><code>fc51a0f</code></a> Auto merge of <a href="https://github.com/rust-lang/libc/issues/2103">#2103</a> - JohnTitor:version-bump, r=JohnTitor</li> <li><a href="https://github.com/rust-lang/libc/commit/9abcbd15de9f281feea0a419e833958623a664f0"><code>9abcbd1</code></a> Bump up libc version to 0.2.88</li> <li><a href="https://github.com/rust-lang/libc/commit/990afbb5adf9d6fd8d81202c7613f422ee61cf45"><code>990afbb</code></a> Auto merge of <a href="https://github.com/rust-lang/libc/issues/2102">#2102</a> - de-vri-es:linux-arm32-accept4, r=JohnTitor</li> <li><a href="https://github.com/rust-lang/libc/commit/b98d5292b8cfe96213503997d9cd1f3f49bfce40"><code>b98d529</code></a> Re-add accept4 for Android on 32 bit ARM.</li> <li><a href="https://github.com/rust-lang/libc/commit/3a7135f491b8faac564c13e7d0c5fd6b10e03855"><code>3a7135f</code></a> Auto merge of <a href="https://github.com/rust-lang/libc/issues/2100">#2100</a> - TheDoctor314:gettid, r=JohnTitor</li> <li><a href="https://github.com/rust-lang/libc/commit/b719be41508f18b7abd7b521b7f555773c02d1fe"><code>b719be4</code></a> Skip tests for <code>gettid</code> on musl</li> <li><a href="https://github.com/rust-lang/libc/commit/2de2cb74c82cde76a6b75ade8cf7e539052c7e2b"><code>2de2cb7</code></a> Add gettid() for Linux and Android</li> <li><a href="https://github.com/rust-lang/libc/commit/ec86e5fb3258a844ece771d2c6f0fbf152086eab"><code>ec86e5f</code></a> Auto merge of <a href="https://github.com/rust-lang/libc/issues/2097">#2097</a> - cmusser:topic/dfly-waitid, r=JohnTitor</li> <li><a href="https://github.com/rust-lang/libc/commit/c334f98ad97fdaa28f431b0c439686eef1048f3f"><code>c334f98</code></a> dragonflybsd: expose waitid() prototype + related constants</li> <li><a href="https://github.com/rust-lang/libc/commit/6b1e6a2a72488481034fc2e1b409f379f96fd8f1"><code>6b1e6a2</code></a> Auto merge of <a href="https://github.com/rust-lang/libc/issues/2099">#2099</a> - JohnTitor:fix-doc-links, r=JohnTitor</li> <li>Additional commits viewable in <a href="https://github.com/rust-lang/libc/compare/0.2.81...0.2.88">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=libc&package-manager=cargo&previous-version=0.2.81&new-version=0.2.88)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can trigger a rebase of this PR by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-08Bump libc from 0.2.81 to 0.2.88dependabot[bot]
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.81 to 0.2.88. - [Release notes](https://github.com/rust-lang/libc/releases) - [Commits](https://github.com/rust-lang/libc/compare/0.2.81...0.2.88) Signed-off-by: dependabot[bot] <support@github.com>
2021-01-12build(deps): bump tempfile from 3.1.0 to 3.2.0dependabot[bot]
Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.1.0 to 3.2.0. - [Release notes](https://github.com/Stebalien/tempfile/releases) - [Changelog](https://github.com/Stebalien/tempfile/blob/master/NEWS) - [Commits](https://github.com/Stebalien/tempfile/commits) Signed-off-by: dependabot[bot] <support@github.com>
2020-12-14Merge #38bors[bot]
38: release nvpair-0.5.0, zfs-core-sys-0.5.0, zfs-core-0.5.0 r=jmesmon a=jmesmon Co-authored-by: Cody P Schafer <dev@codyps.com>