commit:     fe07b4b07e3e65f0348bd3bb8af5ef6151a97854
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 23 11:47:35 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Feb 23 11:49:25 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe07b4b0

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 <AT> gentoo.org>

 app-editors/qxmledit/qxmledit-0.9.18-r1.ebuild | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/app-editors/qxmledit/qxmledit-0.9.18-r1.ebuild 
b/app-editors/qxmledit/qxmledit-0.9.18-r1.ebuild
index 991f54019207..ee4baa01ebfb 100644
--- a/app-editors/qxmledit/qxmledit-0.9.18-r1.ebuild
+++ b/app-editors/qxmledit/qxmledit-0.9.18-r1.ebuild
@@ -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
 

Reply via email to