Skip to content

compilation failure on NetBSD #1598

@0323pin

Description

@0323pin

Duplicates

  • I have searched the existing issues

Current behavior 😯

Building the latest release on NetBSD fails with:

error[E0609]: no field `st_mtimensec` on type `rustix::fs::Stat`
  --> /usr/pkgsrc/sysutils/onefetch/work/vendor/gix-index-0.40.0/src/fs.rs:65:38
   |
65 |             let nanoseconds = self.0.st_mtimensec;
   |                                      ^^^^^^^^^^^^ unknown field
   |
help: a field with a similar name exists
   |
65 |             let nanoseconds = self.0.st_mtime_nsec;
   |                                              +

error[E0609]: no field `st_ctimensec` on type `rustix::fs::Stat`
  --> /usr/pkgsrc/sysutils/onefetch/work/vendor/gix-index-0.40.0/src/fs.rs:94:38
   |
94 |             let nanoseconds = self.0.st_ctimensec;
   |                                      ^^^^^^^^^^^^ unknown field
   |
help: a field with a similar name exists
   |
94 |             let nanoseconds = self.0.st_ctime_nsec;
   |                                              +

error: could not compile `gix-index` (lib) due to 2 previous errors

Expected behavior 🤔

No response

Steps to reproduce 🕹

No response

Additional context/Screenshots 🔦

No response

Possible Solution 💡

Updating gix-index above 0.40.0, see GitoxideLabs/gitoxide#2005
and rustix above 1.0.0, see https://github.com/bytecodealliance/rustix/blob/main/CHANGES.md?plain=1#L239
should solve the issue

Could you please bump these dependencies?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions