-
Notifications
You must be signed in to change notification settings - Fork 61
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
[wireguard][1.0.20210219] - Updated package (and include wireguard-tools) #285
Conversation
i don't have anything to add here, sorry. maybe @matteodelabre, @LinusCDE or @Eeems? |
1.) We should open a separate toltec issue for the symlink handling issue. 2.) You may want to call your package something like wireguard-tools-remarkable and have it "provide" wireguard-tools. 3.) Not without having the bidirectional dependency. There isn't a usecase for wireguard-tools without wireguard, so that would be reasonable to do. 4.) You can put both tools on the same package recipe if you like. Look at rmkit for an example. Lastly, any reason you're not installing the manuals? |
Done: #291.
That makes sense, but I don't think Toltec currently supports the
Okay, a bidirectional dependency definitely makes sense. However, with the bidirectional dependency, this happens:
It's obviously pretty easy to resolve, but it's not a friendly experience for users.
I thought about this, but if I understand correctly, even in split packages, there is only one build function. Since wireguard-tools and wireguard-linux-compat come in separate source archives, I would have to do a lot of shuffling around in the build phase, which might negate the tidiness of having them both in the same recipe.
No, not really. I think I just made some assumptions based on #235. I've added them back. |
You're right. We had one PR (that looks stale) to add a Edit: The plan was to make This may also deserve its own issue.
Ugh, yeah, that's not great. This should resolve more cleanly. Maybe you could just flip the dependency around? Make wg-tools depend on wireguard. That makes wireguard independently installable without wg-tools though, which is a little weird. This is sort of what Arch does, by having no dependencies in Or maybe we need a "wireguard" metapackage that depends on two much more obscurely named packages One downside to this is that there are alternatives to wireguard-linux-compat out there like boringtun, but that's something to think about if/when it gets packaged I suppose.
If the build script is cleaner separately, that's fine.
Maybe a split package actually does make sense here, but for man pages, not the module/tooling. Given other packages don't currently install manuals, this is fine the way it is for now. Easy enough to adjust down the road. |
I just realized that almost every single one of these problems can be resolved by putting the |
Only the possible future inclusion of a boringtun (or similar) package, but we can sort that out if/when someone packages it. |
Some other ideas regarding (2.):
|
Sounds good. I've just pushed a version of the wireguard package that includes the wireguard-tools files.
This is good to know. For this particular case, I think it'll be simplest just to combine the packages. |
I know this one has been sitting out here a while. I can and will test it, but it may be a week or so still before I can make time. Apologies for that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This package installs and works great on rM2. @Eeems and @matteodelabre agree the simplified approach of calling both the kernel module and tools wireguard
works for now. LGTM
new packages: [ddvk-hacks] Add ddvk-hacks (toltec-dev#247) updated packages: [wireguard][1.0.20210219] - Updated package (and include wireguard-tools) (toltec-dev#285) [rm2fb] update rm2fb to work with xochitl 2.6 (v1.0.1) (toltec-dev#301) [recrossable] Update recrossable (toltec-dev#312) [wikipedia] Initial wikipedia package. [appmarkable] Update appmarkable to 0.0.0-9 and rmservewacominput to 0.3.0-1 (toltec-dev#308) with rm2 support [rmkit] patch genie to fix crash in testing (toltec-dev#304) [oxide] Update Oxide to v2.1.2 (toltec-dev#241) [rm2fb] update rm2fb with wait ioctl and no-op on rM1 (toltec-dev#298) [rmkit] add bufshot app, add lamp, add iago, add changelog (toltec-dev#276) [rmkit] update rmkit to latest (2021-02-17) (toltec-dev#286) [zshelf][0.3.1] - Updated Package (toltec-dev#287) tooling: Pin the Ubuntu version used in workflows to 20.04 (toltec-dev#316) Provide better version number error messages (toltec-dev#314) util.auto_extract: Extract broken symlinks and missing directories (toltec-dev#302) change web background color to #fcfaf8 (toltec-dev#280) Implement build-time package dependencies (toltec-dev#274) Rewrite repo-build-web in Python (toltec-dev#266) Print last 50 lines of output on build error (toltec-dev#263) Hardcode REMOTE_HTTP secret in PR workflows (toltec-dev#262) Rewrite repo-build and package-build in Python (toltec-dev#218) Make bootstrap execution conditional on hash verification (toltec-dev#257) Add Toltec web home page (toltec-dev#193)
…ols) (toltec-dev#285) Add wireguard: * Update wireguard and clean up recipe * Create wg-tools package * Update wireguard to 1.0.20210219 * Include man pages * Add wireguard-tools files to wireguard * Remove separate wireguard-tools package
…guard-tools) (toltec-dev#285)" This reverts commit 34e58d0.
As promised in #270 (comment), I've created a recipe to package wireguard-tools. In addition, to getting rid of files that were only relevant on OpenWRT, this recipe also includes
wg-quick(8)
, which makes it easy to set up a wireguard tunnel with systemd.I also updated the version of wireguard to
1.0.20210124
in this same PR, since they're so tightly coupled; I hope that's okay.There are a few things I'd like to discuss:
wg
, which is not present until the package is built. Automatically extracting the source caused a bunch of errors around that symlink, so I did it manually in theprepare
section and ended up still having to create a dummy file. This seems like a pretty rare situation, so it's probably fine to have an ad hoc solution like this, but it might make more sense to make the tooling ignore broken symlinks in source archives.wireguard-tools
in Entware. I don't know how conflicts are resolved, but, ideally, this package would also be named wireguard-tools.