-
Notifications
You must be signed in to change notification settings - Fork 411
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
trash feature optional? #175
Comments
Hi, I'm willing to help with this issue, but I'm not familiar with NetBSD. I'd like to know what crate/tool is typically used in NetBSD to move files to the trash bin, or if there's a concept of trash bin in NetBSD at all? |
Hi, Yes, trash bin exists on NetBSD. The issue is that support for it is missing in Rust In other projects, if possible, I just switch off the trash feature. Which, in practice means you just delete the files permanently. |
Not meaning to sidetrack here, but add some support for optional trash. It is the same situation on Dragonfly BSD that any cargo that requires trash will not work. |
I have already made the |
Hmm ... something still missing. I've just tried building from #178 with |
The situation with Yazi is a bit complicated. It uses a workspace where the I'm not sure how to make |
@sxyazi I'm getting close on this one, Byron/trash-rs#84 Next step is to submit a patch to Obviously, it needs to be merged and we will need new releases of both |
@0323pin Awesome work! Just reminded by @George-Miao, I've found a new approach to address it. Simply check the target; no need to use conditional features. I've pushed the new code, and it should be working now! |
Yes, that works. Now we don't need to wait for future releases. Obviously, I still need a release of Only a single warning now 👍
Thanks but, I've just adapted the missing definitions from OpenBSD Oh ... almost forgot, ... the evidence 😄 |
@sxyazi thanks 👍 Would it be possible to cut a release tag or, am I asking too much? If possible (and if msrv < 1.71) I could merge the package today, before we enter commit freeze tomorrow, ahead of the stable branch cut in a week. This would mean the package would be available for users of the stable branch very soon after the 27th |
Sorry, Yazi is not ready to release version 0.1.5 yet, but I can create a |
That's fine, we can wait, I'm not in a rush. Also, I can pull the sources from that specific commit and call it v0.1.4 which, sometimes is a bit controversial but, in this case it's explainable. No worries. |
Oh, thank you!! Should I add it to the README? And is there an option to install it from Git in NetBSD, like |
You're welcome, thanks for caring for NetBSD as platform.
yeah, that would be appreciated. Thanks.
For pre-compiled binaries, no, only releases. With some exceptions, like in this case. If you build stuff from source (I build all my packages from source), than you can create your own modifications and build whatever you want. I keep a few git packages myself ( That said, any user can add the wip repository and build anything locally. Well, not everything in wip will build but, you get the point. |
Great seeing this, well done you two. I learned the other day that NetBSD is the oldest BSD, the Grandfather of BSD and Open Source Operating Systems, yes Linux is a kernel, having originated before most all the others, the first to come out of 386BSD! Keep it up! |
I've added it to Yazi's new document, which will soon replace the README as the default document. |
@sxyazi Submitted to |
@sxyazi Combining |
@sxyazi Yes, it works. Building inside the pkgsrc infrastructure,
|
Thanks for the testing, ill merge it now! Edit: Done! |
@sxyazi If a new release is still far away, I can switch the git-tag we are building from. Just let me know 😃 |
@0323pin Yazi isn't fully ready yet, sorry for the long release cycle this time... |
No need to be sorry, I'll just bump the package revision and get this feature enabled. Only thought, I'd ask before doing that. Thanks. |
I'm going to lock this issue because it has been closed for 30 days. ⏳ This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Hi,
NetBSD package maintainer here trying to package
yazi
.I've added support for NetBSD into
shared/src/fs.rs
with the following patch,Unfortunately, the build still fails due to the dependency on
trash
and unsupported features in NetBSDs Rust-libc
.The error is general and applies to all projects with a dependency on
trash
, so I wonder if you would be willing to place trash support beyond a feature gate?Thanks!
The text was updated successfully, but these errors were encountered: