Package Details: linux-mainline-git-headers v6.4.rc1.r0.ac9a78681b92-1

Git Clone URL: https://aur.archlinux.org/linux-mainline-git.git (read-only, click to copy)
Package Base: linux-mainline-git
Description: Headers and scripts for building modules for the Linus Torvalds' Mainline Linux kernel
Upstream URL: https://www.kernel.org
Licenses: GPL2
Submitter: osimarr
Maintainer: osimarr
Last Packager: osimarr
Votes: 4
Popularity: 0.61
First Submitted: 2022-03-01 04:10 (UTC)
Last Updated: 2023-05-07 21:23 (UTC)

Pinned Comments

osimarr commented on 2022-03-01 04:17 (UTC) (edited on 2023-05-12 03:59 (UTC) by osimarr)

This package has moved to https://aur.archlinux.org/pkgbase/linux-git

I've created this package to follow official Linux mainline from Linus Torvalds' repository. The build script and config file are going to be up-to-date with Arch's official Linux package, unless it's required an update to be functional. But I removed the documentation package on purpose because it consumes too much build time.

Latest Comments

gamezelda commented on 2023-04-24 22:49 (UTC)

FWIW the kernel can be successfully built with both CONFIG_X86_KERNEL_IBT and CONFIG_DEBUG_INFO_BTF in the config like in the Arch kernel by applying this patch: https://lore.kernel.org/bpf/20230418214925.ay3jpf2zhw75kgmd@treble/

osimarr commented on 2023-02-28 04:12 (UTC)

@gamezelda I noticed that, thanks for the report. scripts/setlocalversion was modified on mainline for v6.3. I just updated PKGBUILD to fix the compilation problem.

gamezelda commented on 2023-02-27 20:49 (UTC)

The build is failing at the beginning now due to some changes to setlocalversion. This is how linux-next-git fixed it:

https://aur.archlinux.org/cgit/aur.git/diff/PKGBUILD?h=linux-next-git&id=2efbf6b0b321b3bc54ce0d2ffcca7633e36ea0f2&id2=92f467855363888c2bcbb7060ab2f501c5fc8ddf

osimarr commented on 2023-02-22 02:31 (UTC) (edited on 2023-02-22 14:56 (UTC) by osimarr)

@gamezelda thanks for the heads up. I updated PKGBUILD and config to match v6.2-arch1 and while at it, I used your suggestion to disable CONFIG_DEBUG_INFO_BTF on config.extra. I believe we can remove that once pahole package is updated.

@soloturn I'll look into the partial clone and see if there's something I can include in the build scripts.

gamezelda commented on 2023-02-21 20:54 (UTC) (edited on 2023-02-21 21:00 (UTC) by gamezelda)

As of 2023-02-21 20:00:00Z the build is broken with the default Arch packages and default config due to an upstream issue, with the following error after most of the build is done:

btf_encoder__encode: btf__dedup failed!

Current workarounds are to either:

soloturn commented on 2023-02-07 21:57 (UTC)

we now have flags for the repo cloning which saves quite some bandwith, e.g.:

GITFLAGS="--depth=1" makepkg
GITFLAGS="--depth=1" paru -S linux-mainline

in case the repo supports partial clones, --filter=tree:0 would be an option as well. this then even updates the repo correctly as soon as this is merged: https://gitlab.archlinux.org/pacman/pacman/-/merge_requests/53

i'd be glad if you could try out your use case and maybe put a comment into the merge request?

osimarr commented on 2022-05-14 06:28 (UTC) (edited on 2022-05-14 06:30 (UTC) by osimarr)

Hey @RealOrRandom. The localversion.* files are needed by the building stage because kernel building scripts will look for those files to set the kernel version in the binary (the version you see with e.g. 'uname -a'). There are 3 files created by the prepare() stage: localversion.10-pkgrel, localversion.20-pkgname, and version. But those 3 files aren't touched by the kernel git tree, which means after you ran prepare() once (e.g. using makepkg -o), you can git bisect, git checkout, git rebase, etc, and the 3 files will remain untouched. Although I'd suggest to run 'make kernelversion > version' before running 'makepkg -e'.

RealOrRandom commented on 2022-05-09 08:32 (UTC)

Hi, thanks for making a new -git package. Could you move

  echo "-$pkgrel" > localversion.10-pkgrel
  echo "${pkgbase#linux}" > localversion.20-pkgname

to the _package functions? This is needed when playing around in the source tree (e.g., checking out other versions) and then running makepkg -e. I did this change for bisecting a regression in the kernel.

osimarr commented on 2022-03-01 04:17 (UTC)

While we do have another AUR package (linux-git) that follows Linux mainline too, unfortunately it does not update the build script and config file.

osimarr commented on 2022-03-01 04:17 (UTC) (edited on 2023-05-12 03:59 (UTC) by osimarr)

This package has moved to https://aur.archlinux.org/pkgbase/linux-git

I've created this package to follow official Linux mainline from Linus Torvalds' repository. The build script and config file are going to be up-to-date with Arch's official Linux package, unless it's required an update to be functional. But I removed the documentation package on purpose because it consumes too much build time.