-
-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.8.0 fails to build on NetBSD #1047
Comments
@0323pin unfortunately, the attempt to fix it by separating the problematic dependency into its own crate causes a circular dependency that means it can't be published to Cargo (
|
@arxanas Cheers, I'll try patching Hopefully, I won't hit version mismatch requiring further patches. |
@arxanas I've managed to fix the build and merged the update to 0.8.0 4 patches and injecting a file into Unfortunately, it doesn't look like the relevant pull requests on Feel free to close this issue and thanks for the hints. |
@0323pin I don't plan to maintain forks myself, but, depending on how you're maintaining the NetBSD package, you can use the existing forked repositories in the |
I understand that.
Yes, I'm aware of this and it's doable. It won't stop the bitrot, though. Those crates are not being updated. Don't worry, I'll give it a thought and might consider an alternative solution. Thanks. |
Description of the bug
0.8.0 fails to build on NetBSD using Rust-1.71.1 due to ioctl-rs
Expected behavior
No response
Actual behavior
Compiling ioctl-rs v0.1.6
error[E0425]: cannot find function
ioctl
in this scope--> /usr/pkgsrc/wip/git-branchless/work/vendor/ioctl-rs-0.1.6/src/lib.rs:29:20
|
29 | match unsafe { ioctl(fd, TIOCEXCL) } {
| ^^^^^ not found in this scope
|
help: consider importing this function
|
3 + use libc::ioctl;
|
error[E0425]: cannot find value
TIOCEXCL
in this scope--> /usr/pkgsrc/wip/git-branchless/work/vendor/ioctl-rs-0.1.6/src/lib.rs:29:30
|
29 | match unsafe { ioctl(fd, TIOCEXCL) } {
| ^^^^^^^^ not found in this scope
|
help: consider importing this constant
|
3 + use libc::TIOCEXCL;
|
error[E0425]: cannot find function
ioctl
in this scope--> /usr/pkgsrc/wip/git-branchless/work/vendor/ioctl-rs-0.1.6/src/lib.rs:37:20
|
37 | match unsafe { ioctl(fd, TIOCNXCL) } {
| ^^^^^ not found in this scope
|
help: consider importing this function
|
3 + use libc::ioctl;
|
error[E0425]: cannot find value
TIOCNXCL
in this scope--> /usr/pkgsrc/wip/git-branchless/work/vendor/ioctl-rs-0.1.6/src/lib.rs:37:30
|
37 | match unsafe { ioctl(fd, TIOCNXCL) } {
| ^^^^^^^^ not found in this scope
|
help: consider importing this constant
|
3 + use libc::TIOCNXCL;
|
error[E0425]: cannot find function
ioctl
in this scope--> /usr/pkgsrc/wip/git-branchless/work/vendor/ioctl-rs-0.1.6/src/lib.rs:47:20
|
47 | match unsafe { ioctl(fd, TIOCMGET, &mut bits) } {
| ^^^^^ not found in this scope
|
help: consider importing this function
|
3 + use libc::ioctl;
|
error[E0425]: cannot find value
TIOCMGET
in this scope--> /usr/pkgsrc/wip/git-branchless/work/vendor/ioctl-rs-0.1.6/src/lib.rs:47:30
|
47 | match unsafe { ioctl(fd, TIOCMGET, &mut bits) } {
| ^^^^^^^^ not found in this scope
|
help: consider importing this constant
|
3 + use libc::TIOCMGET;
|
error[E0425]: cannot find function
ioctl
in this scope--> /usr/pkgsrc/wip/git-branchless/work/vendor/ioctl-rs-0.1.6/src/lib.rs:55:20
|
55 | match unsafe { ioctl(fd, TIOCMSET, &bits) } {
| ^^^^^ not found in this scope
|
help: consider importing this function
|
3 + use libc::ioctl;
|
error[E0425]: cannot find value
TIOCMSET
in this scope--> /usr/pkgsrc/wip/git-branchless/work/vendor/ioctl-rs-0.1.6/src/lib.rs:55:30
|
55 | match unsafe { ioctl(fd, TIOCMSET, &bits) } {
| ^^^^^^^^ not found in this scope
|
help: consider importing this constant
|
3 + use libc::TIOCMSET;
|
error[E0425]: cannot find function
ioctl
in this scope--> /usr/pkgsrc/wip/git-branchless/work/vendor/ioctl-rs-0.1.6/src/lib.rs:63:20
|
63 | match unsafe { ioctl(fd, TIOCMBIS, &bits) } {
| ^^^^^ not found in this scope
|
help: consider importing this function
|
3 + use libc::ioctl;
|
error[E0425]: cannot find value
TIOCMBIS
in this scope--> /usr/pkgsrc/wip/git-branchless/work/vendor/ioctl-rs-0.1.6/src/lib.rs:63:30
|
63 | match unsafe { ioctl(fd, TIOCMBIS, &bits) } {
| ^^^^^^^^ not found in this scope
|
help: consider importing this constant
|
3 + use libc::TIOCMBIS;
|
error[E0425]: cannot find function
ioctl
in this scope--> /usr/pkgsrc/wip/git-branchless/work/vendor/ioctl-rs-0.1.6/src/lib.rs:71:20
|
71 | match unsafe { ioctl(fd, TIOCMBIC, &bits) } {
| ^^^^^ not found in this scope
|
help: consider importing this function
|
3 + use libc::ioctl;
|
error[E0425]: cannot find value
TIOCMBIC
in this scope--> /usr/pkgsrc/wip/git-branchless/work/vendor/ioctl-rs-0.1.6/src/lib.rs:71:30
|
71 | match unsafe { ioctl(fd, TIOCMBIC, &bits) } {
| ^^^^^^^^ not found in this scope
|
help: consider importing this constant
|
3 + use libc::TIOCMBIC;
|
For more information about this error, try
rustc --explain E0425
.error: could not compile
ioctl-rs
(lib) due to 12 previous errorswarning: build failed, waiting for other jobs to finish...
*** Error code 101
Stop.
make[1]: stopped in /usr/pkgsrc/wip/git-branchless
*** Error code 1
Stop.
Version of
rustc
1.71.1
Automated bug report
No response
Version of
git-branchless
0.8.0
Version of
git
No response
The text was updated successfully, but these errors were encountered: