app-editors/qxmledit: fix -Werror

The way we need to pass anto Werror changed, and I missed it when
bumping. We can do it now using an environment variable, which is
nicer than `sed` command.

No revbump, since it affect compilation itself only (failing if
there were warnings).

Closes: https://bugs.gentoo.org/925324
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin 2024-02-23 13:47:35 +02:00
parent 9bbb5dc3b6
commit fe07b4b07e
No known key found for this signature in database
GPG Key ID: 02A0AF503D120504
1 changed files with 3 additions and 8 deletions

View File

@ -35,14 +35,6 @@ BDEPEND="dev-qt/linguist-tools:5"
DOCS=( AUTHORS NEWS README )
src_prepare() {
default
# bug 568746
sed -i -e '/QMAKE_CXXFLAGS/s:-Werror::' \
src/{QXmlEdit,QXmlEditWidget,sessions/QXmlEditSessions}.pro || die
}
src_configure() {
export \
QXMLEDIT_INST_DIR="${EPREFIX}/usr/bin" \
@ -51,6 +43,9 @@ src_configure() {
QXMLEDIT_INST_DATA_DIR="${EPREFIX}/usr/share/${PN}" \
QXMLEDIT_INST_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}"
# avoid -Werror (affecting src/coptions.pri) bug #925324
export QXMLEDIT_INST_DISABLE_COMPILE_WARNINGS=Y
# avoid internal compiler errors
use x86 && export QXMLEDIT_INST_AVOID_PRECOMP_HEADERS=Y