From bd7c4938983b924093645b114614aeebee38fc4d Mon Sep 17 00:00:00 2001 From: "Rick Farina (Zero_Chaos)" Date: Tue, 10 Dec 2024 10:03:48 -0500 Subject: [PATCH] zero-profile: more exceptions --- profiles/pentoo/zero-system/profile.bashrc | 209 ++++++++++++++++++++- 1 file changed, 207 insertions(+), 2 deletions(-) diff --git a/profiles/pentoo/zero-system/profile.bashrc b/profiles/pentoo/zero-system/profile.bashrc index 10e39cf2573..0cca0a8a916 100644 --- a/profiles/pentoo/zero-system/profile.bashrc +++ b/profiles/pentoo/zero-system/profile.bashrc @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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/}" @@ -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/}"