Skip to content

Commit

Permalink
zero-profile: more exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroChaos- committed Dec 10, 2024
1 parent c8148e1 commit bd7c493
Showing 1 changed file with 207 additions and 2 deletions.
209 changes: 207 additions & 2 deletions profiles/pentoo/zero-system/profile.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@
if [[ ${CATEGORY}/${PN} == media-video/ffmpeg ]]; then
export CFLAGS="${CFLAGS/-Werror=stringop-overread/}"
fi
if [[ ${CATEGORY}/${PN} == dev-vcs/cvs ]]; then
export CFLAGS="${CFLAGS/-Werror=stringop-overread/}"
fi
if [[ ${CATEGORY}/${PN} == app-crypt/p11-kit ]]; then
export CFLAGS="${CFLAGS/-Werror=stringop-overread/}"
fi
if [[ ${CATEGORY}/${PN} == dev-qt/qtbase ]]; then
export CXXFLAGS="${CXXFLAGS/-Werror=stringop-overread/}"
fi

# Packages that need shuffle disabled
if [[ ${CATEGORY}/${PN} == www-client/chromium ]]; then
Expand All @@ -20,6 +26,9 @@ fi
if [[ ${CATEGORY}/${PN} == net-libs/ldns ]]; then
export MAKEOPTS="${MAKEOPTS} --shuffle=none"
fi
if [[ ${CATEGORY}/${PN} == sys-devel/gcc ]]; then
export MAKEOPTS="${MAKEOPTS} --shuffle=none"
fi

# Special case to run tests for hashcat
if [[ ${CATEGORY}/${PN} == app-crypt/hashcat ]]; then
Expand Down Expand Up @@ -50,6 +59,9 @@ fi
if [[ ${CATEGORY}/${PN} == dev-python/protobuf-python ]]; then
export CFLAGS="${CFLAGS/-Werror=stringop-overread/}"
fi
if [[ ${CATEGORY}/${PN} == dev-python/protobuf ]]; then
export CFLAGS="${CFLAGS/-Werror=stringop-overread/}"
fi
if [[ ${CATEGORY}/${PN} == dev-util/radare2 ]]; then
export CFLAGS="${CFLAGS/-Werror=stringop-overread/}"
fi
Expand Down Expand Up @@ -238,6 +250,33 @@ fi
if [[ ${CATEGORY}/${PN} == app-text/ghostscript-gpl ]]; then
export CFLAGS="${CFLAGS} -fPIC"
fi
if [[ ${CATEGORY}/${PN} == dev-libs/opencl-icd-loader ]]; then
export CFLAGS="${CFLAGS} -fPIC"
fi
if [[ ${CATEGORY}/${PN} == media-libs/vulkan-loader ]]; then
export CFLAGS="${CFLAGS} -fPIC"
fi
if [[ ${CATEGORY}/${PN} == dev-util/pahole ]]; then
export CFLAGS="${CFLAGS} -fPIC"
fi
if [[ ${CATEGORY}/${PN} == dev-python/cryptography ]]; then
export CFLAGS="${CFLAGS} -fPIC"
fi
if [[ ${CATEGORY}/${PN} == dev-ruby/msgpack ]]; then
export CFLAGS="${CFLAGS} -fPIC"
fi
if [[ ${CATEGORY}/${PN} == dev-lang/luajit ]]; then
export CFLAGS="${CFLAGS} -fPIC"
fi
if [[ ${CATEGORY}/${PN} == dev-perl/Syntax-Keyword-Try ]]; then
export CFLAGS="${CFLAGS} -fPIC"
fi
if [[ ${CATEGORY}/${PN} == dev-libs/newt ]]; then
export CFLAGS="${CFLAGS} -fPIC"
fi
if [[ ${CATEGORY}/${PN} == media-gfx/fontforge ]]; then
export CFLAGS="${CFLAGS} -fPIC"
fi
if [[ ${CATEGORY}/${PN} == kde-frameworks/kguiaddons ]]; then
export CXXFLAGS="${CXXFLAGS} -fPIC"
fi
Expand Down Expand Up @@ -424,6 +463,48 @@ fi
if [[ ${CATEGORY}/${PN} == net-analyzer/gr-fosphor ]]; then
export CXXFLAGS="${CXXFLAGS} -fPIC"
fi
if [[ ${CATEGORY}/${PN} == kde-frameworks/threadweaver ]]; then
export CXXFLAGS="${CXXFLAGS} -fPIC"
fi
if [[ ${CATEGORY}/${PN} == kde-frameworks/kjobwidgets ]]; then
export CXXFLAGS="${CXXFLAGS} -fPIC"
fi
if [[ ${CATEGORY}/${PN} == kde-frameworks/kimageformats ]]; then
export CXXFLAGS="${CXXFLAGS} -fPIC"
fi
if [[ ${CATEGORY}/${PN} == dev-libs/sexpp ]]; then
export CXXFLAGS="${CXXFLAGS} -fPIC"
fi
if [[ ${CATEGORY}/${PN} == dev-libs/simdjson ]]; then
export CXXFLAGS="${CXXFLAGS} -fPIC"
fi
if [[ ${CATEGORY}/${PN} == dev-util/librnp ]]; then
export CXXFLAGS="${CXXFLAGS} -fPIC"
fi
if [[ ${CATEGORY}/${PN} == kde-frameworks/kirigami ]]; then
export CXXFLAGS="${CXXFLAGS} -fPIC"
fi
if [[ ${CATEGORY}/${PN} == sys-apps/flashrom ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == sys-apps/lm-sensors ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-python/pyscard ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == sys-libs/ncurses-compat ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-libs/wayland ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == net-libs/libnice ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == x11-base/xorg-server ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-libs/libjcat ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
Expand Down Expand Up @@ -463,6 +544,99 @@ fi
if [[ ${CATEGORY}/${PN} == sys-auth/polkit ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == media-libs/fontconfig ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-libs/elfutils ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == x11-libs/cairo ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-python/protobuf ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == x11-libs/libdrm ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-libs/libevdev ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == sys-libs/ldb ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == sys-libs/talloc ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-vcs/mercurial ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-python/fonttools ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-libs/tree-sitter-bash ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-python/cbor2 ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-python/zope-interface ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-python/psutil ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == sys-libs/tdb ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-python/markupsafe ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == media-libs/libdisplay-info ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == sys-libs/tevent ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-libs/hidapi ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == media-libs/libldac ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == app-arch/brotli ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-libs/json-c ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == net-libs/libssh ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-util/unicorn ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == media-libs/lilv ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == sys-fs/lvm2 ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-python/pillow ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-python/pycups ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == app-crypt/mit-krb5 ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == net-fs/samba ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == net-misc/proxychains ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-python/pandas ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
export CXXFLAGS="${CXXFLAGS/-fPIE -pie/}"
Expand All @@ -471,8 +645,39 @@ if [[ ${CATEGORY}/${PN} == dev-python/numpy ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
export CXXFLAGS="${CXXFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == media-libs/fontconfig ]]; then
export CFLAGS="${CXXFLAGS/-fPIE -pie/}"
if [[ ${CATEGORY}/${PN} == dev-lang/ruby ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
export CXXFLAGS="${CXXFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == x11-libs/fltk ]]; then
export CXXFLAGS="${CXXFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-util/colm ]]; then
export CXXFLAGS="${CXXFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == app-emulation/spice ]]; then
export CXXFLAGS="${CXXFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-util/glslang ]]; then
export CXXFLAGS="${CXXFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == media-libs/assimp ]]; then
export CXXFLAGS="${CXXFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-python/contourpy ]]; then
export CXXFLAGS="${CXXFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-libs/jsoncpp ]]; then
export CXXFLAGS="${CXXFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-util/spirv-tools ]]; then
export CXXFLAGS="${CXXFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == media-libs/mesa ]]; then
export CXXFLAGS="${CXXFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-debug/gdb ]]; then
export CXXFLAGS="${CXXFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-cpp/abseil-cpp ]]; then
export CXXFLAGS="${CXXFLAGS/-fPIE -pie/}"
Expand Down

0 comments on commit bd7c493

Please sign in to comment.