[Slackbuilds-users] bat: failed build (newer rust required?)

Erich Ritz erich.public at protonmail.com
Tue May 5 00:05:28 UTC 2020


Hi Benjamin and list,

Trying to build system/bat from a 64-bit chroot using sbopkg I get the following error:

...
   Compiling git2 v0.13.3
error: enum variants on type aliases are experimental
  --> /tmp/SBo/bat-0.15.0/vendor/git2-0.13.3/src/apply.rs:24:48
   |
24 |             raw::GIT_APPLY_LOCATION_WORKDIR => Self::WorkDir,
   |                                                ^^^^^^^^^^^^^

error: enum variants on type aliases are experimental
  --> /tmp/SBo/bat-0.15.0/vendor/git2-0.13.3/src/apply.rs:25:46
   |
25 |             raw::GIT_APPLY_LOCATION_INDEX => Self::Index,
   |                                              ^^^^^^^^^^^

error: enum variants on type aliases are experimental
  --> /tmp/SBo/bat-0.15.0/vendor/git2-0.13.3/src/apply.rs:26:45
   |
26 |             raw::GIT_APPLY_LOCATION_BOTH => Self::Both,
   |                                             ^^^^^^^^^^

error: enum variants on type aliases are experimental
  --> /tmp/SBo/bat-0.15.0/vendor/git2-0.13.3/src/apply.rs:32:13
   |
32 |             Self::WorkDir => raw::GIT_APPLY_LOCATION_WORKDIR,
   |             ^^^^^^^^^^^^^

error: enum variants on type aliases are experimental
  --> /tmp/SBo/bat-0.15.0/vendor/git2-0.13.3/src/apply.rs:33:13
   |
33 |             Self::Index => raw::GIT_APPLY_LOCATION_INDEX,
   |             ^^^^^^^^^^^

error: enum variants on type aliases are experimental
  --> /tmp/SBo/bat-0.15.0/vendor/git2-0.13.3/src/apply.rs:34:13
   |
34 |             Self::Both => raw::GIT_APPLY_LOCATION_BOTH,
   |             ^^^^^^^^^^

error: aborting due to 6 previous errors

error: Could not compile `git2`.
warning: build failed, waiting for other jobs to finish...
error: build failed

I have rust 1.36.0 installed:

# ls /var/log/packages/ | grep rust
rust-1.36.0-x86_64-1_slack14.2

Does bat (actually in this case it looks like the git2 library (crate, whatever)) require a newer rust?

Erich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20200505/b627f63e/attachment.htm>


More information about the SlackBuilds-users mailing list