forked from ALHP/ALHP.GO
114 lines
2.7 KiB
Markdown
114 lines
2.7 KiB
Markdown
# alhp
|
|
|
|
Build script for archlinux instructionset enabled repos. All packages are build with `-march=<cpu-set> -O3`. Some
|
|
packages will fail to build, they will just be provided from the official repos as usual.
|
|
|
|
## Check your system for support
|
|
|
|
**Important**: Before you enable any of these repos, check if your system supports x86-64-v3. You can do that
|
|
with `/lib/ld-linux-x86-64.so.2 --help`. If you don't check beforehand you might be unable to boot your system anymore
|
|
and need to downgrade any package that you may have upgraded.
|
|
|
|
Example output snippet for a system supporting up to `x86-64-v3`:
|
|
|
|
```
|
|
Subdirectories of glibc-hwcaps directories, in priority order:
|
|
x86-64-v4
|
|
x86-64-v3 (supported, searched)
|
|
x86-64-v2 (supported, searched)
|
|
```
|
|
|
|
## Enable Repos
|
|
|
|
To enable these complement repos you need to add them above the regular repos in `/etc/pacman.conf`
|
|
|
|
### Example pacman.conf
|
|
|
|
```editorconfig
|
|
[core-x86-64-v3]
|
|
Server = https://alhp.harting.dev/$repo/os/$arch/
|
|
|
|
[extra-x86-64-v3]
|
|
Server = https://alhp.harting.dev/$repo/os/$arch/
|
|
|
|
[community-x86-64-v3]
|
|
Server = https://alhp.harting.dev/$repo/os/$arch/
|
|
|
|
[core]
|
|
Include = /etc/pacman.d/mirrorlist
|
|
|
|
[extra]
|
|
Include = /etc/pacman.d/mirrorlist
|
|
|
|
[community]
|
|
Include = /etc/pacman.d/mirrorlist
|
|
```
|
|
|
|
Replace `x86-64-v3` with your cpu-set. More information about all available options on [this gcc page](https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html).
|
|
Currently, alhp.harting.dev only builds for `x86-64-v3` (list is subject to change).
|
|
You can see all available repositories [here](https://alhp.harting.dev/).
|
|
|
|
After finished adding the repos to `pacman.conf` you need to import and sign the used pgp key:
|
|
|
|
Import:
|
|
```
|
|
pacman-key --keyserver keyserver.ubuntu.com --recv-keys 0D4D2FDAF45468F3DDF59BEDE3D0D2CD3952E298
|
|
```
|
|
|
|
Local sign:
|
|
|
|
```
|
|
pacman-key --lsign-key 0D4D2FDAF45468F3DDF59BEDE3D0D2CD3952E298
|
|
```
|
|
|
|
Update package database and upgrade:
|
|
|
|
```
|
|
pacman -Suy
|
|
```
|
|
|
|
## Remove Repos
|
|
|
|
To disable ALHP remove all *-x86-64-v3 entries in `/etc/pacman.conf`.
|
|
|
|
After that you can refresh pacmans databases and downgrade all packages like:
|
|
|
|
```
|
|
pacman -Suuy
|
|
```
|
|
|
|
## Package eligibility
|
|
|
|
Packages [excluded](https://www.reddit.com/r/archlinux/comments/oflged/alhp_archlinux_recompiled_for_x8664v3_experimental/h4fkinu?utm_source=share&utm_medium=web2x&context=3)
|
|
from building:
|
|
|
|
- all 'any' architecture
|
|
- pacman
|
|
- tensorflow
|
|
- tensorflow-cuda
|
|
- gcc
|
|
- linux
|
|
- linux-docs
|
|
- linux-headers
|
|
- linux-zen
|
|
- linux-zen-docs
|
|
- linux-zen-headers
|
|
- linux-lts
|
|
- linux-lts-docs
|
|
- linux-lts-headers
|
|
- linux-hardened
|
|
- linux-hardened-docs
|
|
- linux-hardened-headers
|
|
- texi2html
|
|
- gradle
|
|
- re2
|
|
- basket
|
|
- w3m
|
|
- ctags
|
|
- libedit
|
|
- jre-openjdk-headless
|
|
- jre-openjdk
|
|
- qca
|
|
- skia-sharp58
|
|
|