Package Details: linux-clear-headers 6.12.6-1

Git Clone URL: https://aur.archlinux.org/linux-clear.git (read-only, click to copy)
Package Base: linux-clear
Description: Linux kernel with patches from Clear Linux which allow for higher performance. This package includes header files and scripts for building kernel modules.
Upstream URL: https://git.staropensource.de/JeremyStarTM/aur-linux-clear
Keywords: clear clearlinux intel kernel linux
Licenses: GPL-2.0-only
Submitter: metak
Maintainer: JeremyStarTM
Last Packager: JeremyStarTM
Votes: 73
Popularity: 0.50
First Submitted: 2018-01-18 21:47 (UTC)
Last Updated: 2024-12-23 00:00 (UTC)

Pinned Comments

JeremyStarTM commented on 2024-12-22 18:24 (UTC) (edited on 2024-12-22 18:24 (UTC) by JeremyStarTM)

Important update
I have updated and renamed some settings envvars. Please check your scripts, aliases, brain memory or whatever you use to store your build command and update them accordingly. Please read the description in the PKGBUILD file instead of the short summary in the pinned comment on the AUR or in the README in the repository as some important details important to this update are only found inside the PKGBUILD.

JeremyStarTM commented on 2024-08-06 19:37 (UTC) (edited on 2024-12-22 18:20 (UTC) by JeremyStarTM)

Information comment
This comment provides useful information about this package. Make sure to read it through, you won't regret it.

Repository URL
This package is hosted at sos!git. If you want to contribute to the package, you can do it here: https://git.staropensource.de/JeremyStarTM/aur-linux-clear

Issue handling
Please only submit issues in the package's repository if they aren't bug reports about the package or help requests. Please keep them to the AUR only. This prevents unnecessary signups.

Updates
I usually publish updates 0-3 days after a kernel release, depending on how busy I am.
If I however get wind of security-relevant updates or any vulnerabilities I will try to update the kernel as soon as possible and write a comment about the vulnerability/update. So make sure to subscribe to this package's comment mailing list.

PKGBUILD environment variable customization
The PKGBUILD file supports customization via environment variables. Here's a list of all of them:
- _makemenuconfig: Invokes make menuconfig (ncurses-based default configuration menu) before compilation starts
- _makenconfig: Invokes make nconfig (ncurses-based nicer configuration menu) before compilation starts
- _makexconfig: Invokes make xconfig (X11-based GUI configuration menu) before compilation starts
- _reuse_current: Will use the configuration of the running kernel, if the running kernel is compiled with IKCONFIG_PROC
- _reuse_file: Will use the configuration file named kconfig contained in the PKGBUILD file's directory
- _update_kconfig_on_reuse: Specifies whether the kernel configuration shall be updated when using any of the 'reuse*' flags
- _copyfinalconfig: Copies the final kernel configuration into the repository root as kconfig-new before compilation starts
- _localmodcfg: Only compiles modules found in modprobed-db's database (which decreases compilation time and kernel size)
- _use_llvm_lto: Compiles the kernel with LLVM instead of GCC. Should work, if not open an issue
- _subarch: Specifies the subarchitecture to compile for (see the PKGBUILD file for a list of all subarches). Default is 41 (Generic x86-64), which is compatible with all amd64 processors. Must be a number
- _use_llvm_lto: Enables compilation with LLVM. Untested but should work. If not write a comment on the AUR.
- _subarch_microarch: Specifies the microarchitecture to compile for. Only applies to and is required by the GENERIC_CPU subarch. Must be a number between 1 and 4 (click for more information)
- _debug_kernel: Force enables kernel debugging options when set to y, force disables debug options when set to n or relies on the kconfig when unset
- _debug_script: Enables debugging for the PKGBUILD file

All of these variables just need to be set for them to apply, except for _subarch, _subarch_microarch and _debug_kernel. For more information please check their documentation inside the PKGBUILD file

GPG errors
If makepkg complains about invalid PGP keys, try running this command first: gpg --locate-keys torvalds@kernel.org gregkh@kernel.org sashal@kernel.org benh@debian.org. This command only needs to be executed once.

Build tool
If you want a dead simple way to compile this package, you can try out my build tool. It includes a few no nonsense changes to the kernel configuration and allows you to configure the PKGBUILD file in a simple manner and decrease build time. And if you don't want that, using makepkg as-is works fine too.

Latest Comments

« First ‹ Previous 1 .. 39 40 41 42 43 44 45 46 47 48 49 .. 52 Next › Last »

ltsdw commented on 2018-11-20 18:20 (UTC) (edited on 2018-11-20 18:22 (UTC) by ltsdw)

Getting this every time I compile:

Error! echo
Your kernel headers for kernel 4.19.2-2-clear cannot be found at
/usr/lib/modules/4.19.2-2-clear/build or /usr/lib/modules/4.19.2-2-clear/source.

Always have to install the linux-clear-headers binary from your repo.

ltsdw commented on 2018-11-14 20:58 (UTC)

I tried recompile again and still doesn't installing headers for me, so I installed the binary one from your repo.

metak commented on 2018-11-03 13:49 (UTC)

@enihcam I've added the provides wireguard module and I've also enabled the XZ compressed modules to further reduce the size. From roughly ~77 MiB installed size down to ~26 Mib.

enihcam commented on 2018-11-03 12:18 (UTC) (edited on 2018-11-03 12:30 (UTC) by enihcam)

@metak, you need to add the following line into PKGBUILD: provides=('WIREGUARD-MODULE')

Otherwise, when you install wireguard-tools, wireguard-dkms would be installed as its dependency.

I have written a note at https://wiki.archlinux.org/index.php/WireGuard#Installation.

metak commented on 2018-10-17 10:14 (UTC)

@enihcam No need. Bison is in base-devel group and should already be installed. Official linux package also doesn't have it makedepends.

enihcam commented on 2018-10-17 06:22 (UTC)

not a big deal. bison is needed to compile the kernel, but it is not in makedepends.

metak commented on 2018-09-12 21:16 (UTC)

NOTICE! I've set CONFIG_MNATIVE as default like @Enverex asked previously. If there are any issues please let me know. (of course, this doesn't affect the binaries in my repo)

metak commented on 2018-09-10 11:34 (UTC) (edited on 2018-09-10 11:35 (UTC) by metak)

@jwm1611 Slight improvement is what you can expect, but no miracles. As far as clearlinux distribution optimizations go, they're mostly in userland and not the kernel. I don't use Manjaro so I can't comment on that one. If you're having issues with keys try building with --skippgpcheck.

jwm1611 commented on 2018-09-07 19:46 (UTC) (edited on 2018-09-07 20:21 (UTC) by jwm1611)

Not sure if it should be expected that this package will not work on Manjaro, but I decided to test this out. Just attempted install of linux-clear 4.18.6-1 on Manjaro (with kernel 4.18.5-1-MANJARO) with all updates applied as of today, and installation ended prematurely here:

configuration written to .config

==> Sources are ready. :: failed to verify integrity or prepare linux-clear package

After checking the scroll-back, I saw that I needed to import Linus Torvalds' key. I was able to import his key with sudo pacman-key -r 79BE3E4300411886, but was still unable to get the kernel source tarball to verify during the linux-clear package install with pacaur, even after following that up with sudo pacman-key --lsign-key 79BE3E4300411886.

I ended up having to follow these instructions to get the correct signature to import, so I could then get the tarball verification to succeed: https://bbs.archlinux.org/viewtopic.php?pid=1493850#p1493850

"This isn't a solution to the error message you're getting, but it's a way to import the PGP keys. I'll run through importing Linus' key for Kernel Packaging. Greg's will be the same process.

1) Go to a keyserver, say http://pgp.mit.edu; 2) Search for the key you're looking for with matching fingerprints, in this case, Linus Torvalds or 00411886 (the last 8 digits of the long fingerprint 79BE3E4300411886 in the error message); 3) Click on the keyID (so 00411886 for Linus) 4) Copy all the text on the page into a text editor and save it as a linus.asc file; 5) Navigate to the folder you saved linus.asc and run:

gpg --import linus.asc

6) Done (provided there are no error messages)."

However, my cached package data for linux-clear still needed to be cleared out before successfully reinstalling the package, because for some reason things still came to a stop with the same error, even though no integrity checks had failed:

==> ERROR: A failure occurred in prepare(). Aborting... :: failed to verify integrity or prepare linux-clear package

The linux-clear kernel successfully built for me, and here are my before and after Geekbench scores:

4.18.5-1-MANJARO: https://browser.geekbench.com/v4/cpu/9744312 single: 5079 multi: 17426

linux-clear 4.18.6-1: https://browser.geekbench.com/v4/cpu/9745449 single: 5108 multi: 17502

Looks like modest gains which are likely beyond margin of error, but I haven't done any scientific testing.

As far as my perception goes, my system already felt insanely responsive running on this Samsung 970 Pro 512gb SSD with delidded 3770K @ 4.8ghz on all cores (highest I could get before voltage scaling curve hit the cliff). Will test further, thanks for your work on this package!