zero-profile: updates

This commit is contained in:
Rick Farina (Zero_Chaos) 2025-04-30 21:36:33 -04:00
parent 0f5eaa470b
commit f35053feb2
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC

View file

@ -6,12 +6,21 @@
if [[ ${CATEGORY}/${PN} == net-analyzer/gspoof ]]; then
export CFLAGS="${CFLAGS/-Werror=format-security/}"
fi
if [[ ${CATEGORY}/${PN} == net-analyzer/hunt ]]; then
export CFLAGS="${CFLAGS/-Werror=format-security/}"
fi
if [[ ${CATEGORY}/${PN} == net-analyzer/p0f ]]; then
export CFLAGS="${CFLAGS/-Werror=format-security/}"
fi
if [[ ${CATEGORY}/${PN} == dev-libs/libcdio ]]; then
export CFLAGS="${CFLAGS/-Werror=format-security/}"
fi
if [[ ${CATEGORY}/${PN} == net-mail/mailutils ]]; then
export CFLAGS="${CFLAGS/-Werror=format-security/}"
fi
if [[ ${CATEGORY}/${PN} == dev-build/gn ]]; then
export CXXFLAGS="${CXXFLAGS/-Werror=format-security/}"
fi
# Packages that need stringop-overread disabled
if [[ ${CATEGORY}/${PN} == media-video/ffmpeg ]]; then
@ -59,6 +68,20 @@ if [[ ${CATEGORY}/${PN} == app-crypt/hashcat ]]; then
export ALLOW_TEST=all
fi
# No -fhardened (report these
if [[ ${CATEGORY}/${PN} == app-emulation/qemu ]]; then
export CFLAGS="${CFLAGS/-fhardened/}"
fi
if [[ ${CATEGORY}/${PN} == dev-libs/elfutils ]]; then
export CFLAGS="${CFLAGS/-fhardened/}"
fi
if [[ ${CATEGORY}/${PN} == dev-libs/glib ]]; then
export CFLAGS="${CFLAGS/-fhardened/}"
fi
if [[ ${CATEGORY}/${PN} == sys-boot/grub ]]; then
export CFLAGS="${CFLAGS/-fhardened/}"
fi
# These packages need lto or similar disabled
# CFLAGS
if [[ ${CATEGORY}/${PN} == app-text/texlive-core ]]; then