Giter VIP home page Giter VIP logo

arch-packages's Introduction

Arch Linux performance important packages

The binary package repository has been closed due to lack of time to maintain it.

In the future, there will only be an update of this git repository.

You can return the original packages by running the command:

yes | sudo pacman -S zlib llvm llvm-libs lld clang compiler-rt libclc $(pacman -Qqs "\+clang" | sed -e 's/\+clang//' | sed -v 'zlib-ng')

All packages optimized for build with LLVM and Clang.

SELinux

For SELinux install packages:

pacman -Syu \
    psmisc+clang findutils+clang iproute2+clang libsepol+clang libselinux+clang \
    libsemanage+clang checkpolicy+clang secilc+clang policycoreutils+clang \
    pambase+clang sudo+clang coreutils+clang shadow+clang openssh+clang \
    mcstrans+clang dbus-glib+clang restorecond+clang setools+clang \
    selinux-python+clang selinux-dbus+clang python-gobject+clang \
    selinux-gui+clang selinux-sandbox+clang setroubleshoot+clang

Take care, SELinux packages not include logrotate, cronie, setroubleshoot packages. setroubleshoot having bugs and not working on Arch Linux. logrotate, cronie you have to build with --with-selinux flag.

SELinux reference policy installation

Edit /etc/selinux/config and replace SELINUX=disabled to SELINUX=permissive.

git clone https://github.com/SELinuxProject/refpolicy.git
cd refpolicy
su
make bare

Edit build.conf and replace #DISTRO = redhat to DISTRO = arch, SYSTEMD = n to SYSTEMD = y.

make conf
make install
make load

reboot

su
restorecon -r /

Compare package version from this repo and Arch Linux official

For compare use script: ./check

It's helps to fast find changes of packages and faster update them in this repo. On right side this repo package version and on left side arch linux package version.

[+] zstd 1.5.0-1
[+] libpng 1.6.37-3
[+] libjpeg-turbo 2.1.0-1
[+] mesa 21.1.2-1
[+] pixman 0.40.0-1
[-] glib2 2.68.3-1 -> 2.68.2-1
[+] gtk2 2.24.33-2
[+] gtk3 1:3.24.29-2
[+] gtk4 1:4.2.1-2
[+] qt5-base 5.15.2+kde+r196-1
[+] icu 69.1-1
[+] freetype2 2.10.4-1
[+] pango 1:1.48.5-1
[+] fontconfig 2:2.13.93-4
[+] harfbuzz 2.8.1-1
[+] cairo 1.17.4-5
[+] wayland-protocols 1.21-1
[+] egl-wayland 1.1.7-1
[+] xorg-server 1.20.11-1
[+] xorgproto 2021.4-1
[+] xorg-xauth 1.1-2
[+] xorg-util-macros 1.19.3-1
[+] xorg-xkbcomp 1.4.5-1
[+] xorg-setxkbmap 1.3.2-2
[+] kwin 5.22.0-1
[+] plasma-workspace 5.22.0-2
[+] glibc 2.33-5

Before build packages install pacman -Syu llvm llvm-libs clang lld libclc and edit yours /etc/makepkg.conf and remove debug flags -fvar-tracking-assignments, add strings:

export CC=clang
export CXX=clang++
export CC_LD=lld
export CXX_LD=lld
export AR=llvm-ar
export NM=llvm-nm
export STRIP=llvm-strip
export OBJCOPY=llvm-objcopy
export OBJDUMP=llvm-objdump
export READELF=llvm-readelf
export RANLIB=llvm-ranlib
export HOSTCC=clang
export HOSTCXX=clang++
export HOSTAR=llvm-ar

Yours /etc/makepkg.conf can be like this:

CARCH="x86_64"
CHOST="x86_64-pc-linux-gnu"

export CC=clang
export CXX=clang++
export CC_LD=lld
export CXX_LD=lld
export AR=llvm-ar
export NM=llvm-nm
export STRIP=llvm-strip
export OBJCOPY=llvm-objcopy
export OBJDUMP=llvm-objdump
export READELF=llvm-readelf
export RANLIB=llvm-ranlib
export HOSTCC=clang
export HOSTCXX=clang++
export HOSTAR=llvm-ar

CPPFLAGS="-D_FORTIFY_SOURCE=2"
CFLAGS="-fdiagnostics-color=always -pipe -O2 -march=native -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection"
CXXFLAGS="-fdiagnostics-color=always -pipe -O2 -march=native -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection"
LDFLAGS="-Wl,-O1 -Wl,-z,now -Wl,-z,relro -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -Wl,--sort-common -Wl,--hash-style=gnu"
RUSTFLAGS="-C opt-level=2"

MAKEFLAGS="-j$(nproc)"
NINJAFLAGS="-j$(nproc)"

DEBUG_CFLAGS="-g"
DEBUG_CXXFLAGS="-g"
DEBUG_RUSTFLAGS="-C debuginfo=2"

arch-packages's People

Contributors

h0tc0d3 avatar ventureoo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.