Package Details: linux-xanmod-lts 6.18.22-2

Git Clone URL: https://aur.archlinux.org/linux-xanmod-lts.git (read-only, click to copy)
Package Base: linux-xanmod-lts
Description: The Linux kernel and modules with Xanmod patches
Upstream URL: http://www.xanmod.org/
Licenses: GPL-2.0-only
Provides: KSMBD-MODULE, NTFS3-MODULE, NTSYNC-MODULE, VIRTUALBOX-GUEST-MODULES, WIREGUARD-MODULE
Replaces: virtualbox-guest-modules-arch, wireguard-arch
Submitter: figue
Maintainer: figue (figuepluto, jfigueras)
Last Packager: figue
Votes: 15
Popularity: 0.000452
First Submitted: 2017-11-22 02:00 (UTC)
Last Updated: 2026-04-11 19:20 (UTC)

Dependencies (18)

Required by (11)

Sources (4)

Pinned Comments

figue commented on 2018-12-15 22:40 (UTC) (edited on 2021-02-23 18:07 (UTC) by figue)

Please, check new release. You have now several variables to enable/disable features.

References:

##
## The following variables can be customized at build time. Use env or export to change at your wish
##
##   Example: env _microarchitecture=99 use_numa=n use_tracers=n use_pds=n makepkg -sc
##
## Look inside 'choose-gcc-optimization.sh' to choose your microarchitecture
## Valid numbers between: 0 to 99
## Default is: 0 => generic
## Good option if your package is for one machine: 99 => native
if [ -z ${_microarchitecture+x} ]; then
  _microarchitecture=0
fi

## Disable NUMA since most users do not have multiple processors. Breaks CUDA/NvEnc.
## Archlinux and Xanmod enable it by default.
## Set variable "use_numa" to: n to disable (possibly increase performance)
##                             y to enable  (stock default)
if [ -z ${use_numa+x} ]; then
  use_numa=y
fi

## For performance you can disable FUNCTION_TRACER/GRAPH_TRACER. Limits debugging and analyzing of the kernel.
## Stock Archlinux and Xanmod have this enabled. 
## Set variable "use_tracers" to: n to disable (possibly increase performance)
##                                y to enable  (stock default)
if [ -z ${use_tracers+x} ]; then
  use_tracers=y
fi

# Compile ONLY used modules to VASTLY reduce the number of modules built
# and the build time.
#
# To keep track of which modules are needed for your specific system/hardware,
# give module_db script a try: https://aur.archlinux.org/packages/modprobed-db
# This PKGBUILD read the database kept if it exists
#
# More at this wiki page ---> https://wiki.archlinux.org/index.php/Modprobed-db
if [ -z ${_localmodcfg} ]; then
  _localmodcfg=n
fi

# Tweak kernel options prior to a build via nconfig
_makenconfig=

Personally I'm running now xanmod kernel compiled with this:

env use_numa=n use_tracers=n makepkg -s

Also, you can now put a file in your local repo to build this package with a custom config. You have to call this file myconfig.

Reference:

  # Put the file "myconfig" at the package folder (this will take preference) or "${XDG_CONFIG_HOME}/linux-xanmod/myconfig"
  # If we detect partial file with scripts/config commands, we execute as a script
  # If not, it's a full config, will be replaced

Latest Comments

1 2 3 4 5 6 7 Next › Last »

figue commented on 2026-03-01 10:46 (UTC)

@enihcam Thanks for pointing out the bug!
Should be fixed in the latest release — please give it a try.

P.S. I don't have much time for deep AUR investigations right now, but I'll keep trying my best with the packages I maintain.
Thanks again for your patience.

enihcam commented on 2026-03-01 06:09 (UTC)

The kernel does not compile with "native CPU" selected. Need to fix according to https://gitlab.com/xanmod/linux/-/issues/446

enihcam commented on 2026-03-01 00:10 (UTC) (edited on 2026-03-01 00:19 (UTC) by enihcam)

  -> Setting version...
cp: cannot stat 'CONFIGS/xanmod/gcc/config_x86-64-v1': No such file or directory
==> ERROR: A failure occurred in prepare().
    Aborting...
error: failed to build 'linux-xanmod-lts-6.18.15-1'

fixed by:

commit 991e13d39c1c6242c8fea7ae3fab30f65db3f2eb
Author: null <null@null.null>
Date:   Sun Mar 1 08:17:08 2026 +0000

    fix config path

diff --git a/PKGBUILD b/PKGBUILD
index 363b9e0..c4ae788 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -146,7 +146,7 @@ prepare() {
   done

   # Applying configuration
-  cp -vf CONFIGS/xanmod/gcc/${_config} .config
+  cp -vf CONFIGS/x86_64/config .config
   # enable LTO_CLANG_THIN
   if [ "${_compiler}" = "clang" ]; then
     scripts/config --disable LTO_CLANG_FULL

enihcam commented on 2024-12-15 15:14 (UTC)

@figue right, i turned off all debug options because i don't need them.

figue commented on 2024-12-14 03:28 (UTC)

@enihcam builds fine for me (no custom configs, or so). Are you tuning your build?

enihcam commented on 2024-12-13 11:06 (UTC)

Reverting 1470aab31b9a resolves the issue.

enihcam commented on 2024-12-11 02:21 (UTC)

6.6.64-1 does not compile.

libbpf: failed to find '.BTF' ELF section in /tmp/makepkg/linux-xanmod-lts/src/linux-6.6/vmlinux
Error: failed to load BTF from /tmp/makepkg/linux-xanmod-lts/src/linux-6.6/vmlinux: No data available
make: *** [Makefile:208: vmlinux.h] Error 195
make: *** Deleting file 'vmlinux.h'
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'linux-xanmod-lts-6.6.64-1'

archdevlab commented on 2024-07-13 03:22 (UTC)

Hi you should consider fixing tomoyo in the config file like linux-lqx package https://aur.archlinux.org/cgit/aur.git/commit/?h=linux-lqx&id=86bc172b309b60f09b27a6aacc6c0361d57f24de

cyberpunkrocker commented on 2024-03-04 19:15 (UTC)

I get this deprecation warning with the mkinitcpio-38-3

==> WARNING: Deprecated option 'ALL_microcode' found. Update '/etc/mkinitcpio.d/linux-xanmod-lts.preset' to use the 'microcode' hook instead.

enihcam commented on 2024-02-18 23:55 (UTC)

thanks figue. one question: why pahole and python are needed as makedepend?