-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
New package: linux-surface 5.13.13 #32823
Conversation
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.
- Most of the supported archs here don't make sense.
- Why does this vendor more patches on top of upstream instead of using the github release?
- Supporting device kernels is icky already, they definitely won't be versioned. Package should be
linux-surface
directly.
I'm not keen on yet another device kernel, but we might have to cope.
Would it be possible to have this as a restricted package at least? Having it directly in the upstream repo would be perfect for installing void on surface devices EDIT: I can hapilly remove all the unneeded archs. |
Why maintain the patches in the void-packages repo, though? There are a lot of them and nobody really knows what they do or how to rebase them if need be. Why not just download the repo and apply the patches from there? Also FYI they don't seem to support Linux 5.13, you probably want to use 5.10 (which is an LTS kernel). https://github.com/linux-surface/linux-surface/tree/master/patches#maintained-versions |
That's a fair argument, could adjust the template to do that
I have been running the 5.13 kernel on my surface book (with arch linux) for quite some time now and it works without issues |
why haven't the patches been mainlined? |
To be honest I am not sure. Probably because it contains unofficial drivers for proprietary drivers |
Just force pushed some requested changes:
|
I am testing it on my surface book (gen 1) at the moment. It seems the package is having some issues with generating initramfs |
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.
We should wait for upstreaming rather than accept custom kernels outside arm imho.
srcpkgs/linux5.13-surface/template
Outdated
# configure the kernel; otherwise use arch defaults and all stuff | ||
# as modules (allmodconfig). | ||
local arch subarch | ||
cd $XBPS_BUILDDIR/linux-$majorVersion/linux-$majorVersion |
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.
Set build_wrksrc, and look at manual what is current working directory for functions, most of cd won't be needed.
Fix indentaton.
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.
Done
srcpkgs/linux5.13-surface/template
Outdated
version=5.13.13 | ||
revision=3 | ||
wrksrc="linux-${version%.*}" | ||
short_desc="Linux kernel and modules containing patches and drivers for Microsoft Surface series devices ( series)" |
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.
what series?
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.
Typo, removed
@@ -0,0 +1,7 @@ | |||
#!/bin/sh |
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.
Have you considered symlinking files/
rather than copying?
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.
Done
srcpkgs/linux5.13-surface/template
Outdated
homepage="https://github.com/linux-surface/linux-surface" | ||
distfiles="https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-${version%.*}.tar.xz | ||
https://cdn.kernel.org/pub/linux/kernel/v5.x/patch-${version}.xz | ||
https://github.com/linux-surface/linux-surface/archive/refs/tags/arch-${version}-${revision}.tar.gz>surface-linux.tar.gz" |
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.
Revision must be independent from any external resources, use version=5.13.13.3, arch-${version%.*}-${version##*.}
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.
Done, set revision to 1
and version to 5.13.13
Using a static link to the linux-surface distfile
srcpkgs/linux5.13-surface/template
Outdated
# Template file for 'linux5.13-surface' | ||
pkgname=linux5.13-surface | ||
version=5.13.13 | ||
revision=3 |
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.
Revision must be independent from any external resources. Use version=5.13.13.3, arch-${version%.*}-${version##*.}
, set revision to 1.
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.
Done, set revision to 1
and version to 5.13.13
Using a static link to the linux-surface distfile
4982aac
to
996a30c
Compare
Just tested the new package / kernel on my surface book and stuff works. However, for full device support more custom built packages (like a custom libwacom, iptsd = ipts daemon, etc) are needed. |
i'm opposed to packaging device-specific things that are upstreamable but they for whatever reason don't, so i'd be against packaging patched libwacom (go tell them to upstream it) device-specific kernels have a precedent by now (i don't like it, but they're there) so i won't complain about that (fix things blocking review though: rename to linux-surface since there's no way we'll be packaging multiple versions, fix your tabs->spaces issues, simplify the template where appropriate, ...) |
I renamed the package to "linux-surface" and fixed the tabs vs spaces indentation |
This PR would not be ready for merge imo :) |
is there supposed to be a dotconfig in the filesdir? the PR does not contain one but as it seems to me there should (otherwise none of the logic for also |
No, in do_configure() the specific architecture dotconfig file (in this case
I left it in the same position as it was in the original |
exactly, I don't see any dotconfig in this PR so the merging will never run |
They are sym-linked to EDIT: see here #32823 (comment) |
ah, I haven't noticed it was a symlink |
that said, I'm not sure if I'm a fan because that means the kernel will have to be updated strictly in sync with main 5.13, as dotconfigs can change even between patch releases (cc @Chocimier) |
The dotconfig can change and that's completly fine. I still merge it with the custom surface kernel config which takes higher priority. The idea is to have the normal void linux kernel (with all its custom config) supplemented with everything needed to run surface devices |
it's not fine, because merging and having the base dotconfig be compatible with the current version of linux-surface are two unrelated things |
So you would prefer to not have it symlinked, but instead have its own config for the base kernel config? |
If linking doesn't help to keep config recent, then don't. |
74044a3
to
2255ae9
Compare
I have now removed the symbolic link to Also made the package a restricted package |
New linux kernel for Microsoft Surface devices as a restricted package Taken from upstream https://github.com/linux-surface/linux-surface
Can somebody give me some feedback if this would be mergable this way? |
@Chocimier @q66 could you please review this PR or tell me if this does not have a chance of making it into the repo? |
I don't have any more comments, but also I don't use x86_64 so I'll leave it to some other maintainer |
I still prefer this work being mainlined rather than packaged separately. |
i think everyone does, but that doesn't help users |
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it. |
I was looking for a compatible tablet device that Void supports so I was sad to see this is not merged. Anybody here using Void on linux surface anyway? |
New linux kernel for Microsoft Surface devices.
Taken from upstream https://github.com/linux-surface/linux-surface
template file is a copy from the linux kernel 5.13 template
[ci-skip]
General
Have the results of the proposed changes been tested?