public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/kvazaar/
Date: Sun,  7 Apr 2024 23:35:22 +0000 (UTC)	[thread overview]
Message-ID: <1712532825.e6308710dff6e3e7469e536d5e947494ca080fd4.sam@gentoo> (raw)

commit:     e6308710dff6e3e7469e536d5e947494ca080fd4
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Sun Apr  7 22:24:11 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Apr  7 23:33:45 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6308710

media-libs/kvazaar: don't manually enable -Werror

autotools is genius software. When you add a flag called
--disable-werror, it isn't actually a flag called --disable-werror. It's
a flag called AC_ARG_ENABLE(werror), which expands "code if argument
was passed on the command line" and "code if argument was not passed on
the command line" blocks. When you say "--disable-werror" all you
actually do is add a formatted help text, which is otherwise totally
ignored by autoconf.

kvazaar had an AC_ARG_ENABLE that defined an
action-if-argument-was-defined-on-the-command-line of nothing, and an
action-if-argument-was-excluded-on-the-command-line of adding -Werror to
CFLAGS.

Back in commit 019c44a86ad017ea54703b7594b076cb0b840707, this was then
used to work around the default addition of -Werror. Logical.

In the very next release, upstream changed the help text to advertise
the --enable-* form, and switched it to
action-if-argument-was-defined-on-the-command-line of adding -Werror,
action-if-argument-was-excluded-on-the-command-line of nothing.

See:
https://github.com/ultravideo/kvazaar/commit/033bc6bc45b0c6b200a4227208d2fa6263e09166

This naturally meant that passing --disable-werror would add -Werror, in
addition to setting the ignored shell variable enable_werror=no. So for
seven years, we've been building with -Werror. Yay!

During that very version bump, --disable-werror was never removed.
Instead, append-flags was used to add an additional gcc switch back off,
per the redundancy requirements of the Department of Redundancy Department's
required approach to redundantly specifying redundant flags.

This also appears to tickle edge cases in LTO due to libtool dropping
some, but not all flags... sometimes. Leading to LTO being performed
with global -Werror.

Bug: https://bugs.gentoo.org/618434
Closes: https://bugs.gentoo.org/907263
Closes: https://bugs.gentoo.org/924296
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/kvazaar/kvazaar-2.1.0.ebuild    | 5 +----
 media-libs/kvazaar/kvazaar-2.2.0.ebuild    | 5 +----
 media-libs/kvazaar/kvazaar-2.3.0-r1.ebuild | 3 ---
 media-libs/kvazaar/kvazaar-9999.ebuild     | 3 ---
 4 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/media-libs/kvazaar/kvazaar-2.1.0.ebuild b/media-libs/kvazaar/kvazaar-2.1.0.ebuild
index a7afed91e28b..283eebc2ce30 100644
--- a/media-libs/kvazaar/kvazaar-2.1.0.ebuild
+++ b/media-libs/kvazaar/kvazaar-2.1.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -48,8 +48,6 @@ src_prepare() {
 		rmdir "${S}/greatest" || die
 		mv "${WORKDIR}/greatest-${GREATEST_PV}" "${S}/greatest" || die
 	fi
-	# Some m4 macros append Werror, we do not want that.
-	append-flags "-Wno-error"
 
 	# valgrind isn't available on all archs
 	# also, the valgrind tests fail with new ffmpeg (upstream only tests again ffmpeg 2.6.3)
@@ -59,7 +57,6 @@ src_prepare() {
 
 multilib_src_configure() {
 	ECONF_SOURCE="${S}" econf \
-		--disable-werror \
 		$(use_enable static-libs static)
 }
 

diff --git a/media-libs/kvazaar/kvazaar-2.2.0.ebuild b/media-libs/kvazaar/kvazaar-2.2.0.ebuild
index 3c29fd0726eb..c3452c489cda 100644
--- a/media-libs/kvazaar/kvazaar-2.2.0.ebuild
+++ b/media-libs/kvazaar/kvazaar-2.2.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -47,13 +47,10 @@ src_prepare() {
 		rmdir "${S}/greatest" || die
 		mv "${WORKDIR}/greatest-${GREATEST_PV}" "${S}/greatest" || die
 	fi
-	# Some m4 macros append Werror, we do not want that.
-	append-flags "-Wno-error"
 }
 
 multilib_src_configure() {
 	ECONF_SOURCE="${S}" econf \
-		--disable-werror \
 		$(use_enable static-libs static)
 }
 

diff --git a/media-libs/kvazaar/kvazaar-2.3.0-r1.ebuild b/media-libs/kvazaar/kvazaar-2.3.0-r1.ebuild
index bfc868061071..8589ad2921ad 100644
--- a/media-libs/kvazaar/kvazaar-2.3.0-r1.ebuild
+++ b/media-libs/kvazaar/kvazaar-2.3.0-r1.ebuild
@@ -51,13 +51,10 @@ src_prepare() {
 		rmdir "${S}/greatest" || die
 		mv "${WORKDIR}/greatest-${GREATEST_PV}" "${S}/greatest" || die
 	fi
-	# Some m4 macros append Werror, we do not want that.
-	append-flags "-Wno-error"
 }
 
 multilib_src_configure() {
 	ECONF_SOURCE="${S}" econf \
-		--disable-werror \
 		$(use_enable static-libs static)
 }
 

diff --git a/media-libs/kvazaar/kvazaar-9999.ebuild b/media-libs/kvazaar/kvazaar-9999.ebuild
index 1945903e00c4..c009eaa4ec63 100644
--- a/media-libs/kvazaar/kvazaar-9999.ebuild
+++ b/media-libs/kvazaar/kvazaar-9999.ebuild
@@ -45,13 +45,10 @@ src_prepare() {
 		rmdir "${S}/greatest" || die
 		mv "${WORKDIR}/greatest-${GREATEST_PV}" "${S}/greatest" || die
 	fi
-	# Some m4 macros append Werror, we do not want that.
-	append-flags "-Wno-error"
 }
 
 multilib_src_configure() {
 	ECONF_SOURCE="${S}" econf \
-		--disable-werror \
 		$(use_enable static-libs static)
 }
 


             reply	other threads:[~2024-04-07 23:35 UTC|newest]

Thread overview: 85+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-07 23:35 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-25 20:42 [gentoo-commits] repo/gentoo:master commit in: media-libs/kvazaar/ Sam James
2024-11-23 17:21 Michał Górny
2024-11-23 15:05 Michał Górny
2024-11-23 14:25 Sam James
2024-04-07 23:37 Sam James
2024-03-12  4:29 Ionen Wolkens
2024-03-11 16:17 Viorel Munteanu
2024-03-08 20:02 Sam James
2023-12-22  5:14 Ionen Wolkens
2023-12-02 17:26 Arthur Zamarin
2023-12-01 19:13 Arthur Zamarin
2023-06-01 16:42 Arthur Zamarin
2023-06-01 16:41 Arthur Zamarin
2023-04-08  6:47 Viorel Munteanu
2023-04-05 13:32 WANG Xuerui
2023-04-05 13:32 WANG Xuerui
2023-03-26 16:22 Arthur Zamarin
2023-03-20 13:57 Yixun Lan
2023-03-20  5:36 Sam James
2022-12-02 18:44 WANG Xuerui
2022-11-12 17:48 Matt Turner
2022-11-12 16:09 Arthur Zamarin
2022-11-12 16:07 Arthur Zamarin
2022-11-12 16:06 Arthur Zamarin
2022-11-12 16:06 Arthur Zamarin
2022-09-05  3:56 Sam James
2022-09-03  5:27 Sam James
2022-03-15 13:27 Alexis Ballier
2021-08-24 14:33 Marek Szuba
2021-05-17 21:02 Sergei Trofimovich
2021-05-13 17:02 Sam James
2021-05-13 17:01 Sam James
2021-05-13 17:01 Sam James
2021-05-13 16:58 Sam James
2021-05-13 16:58 Sam James
2021-05-13 16:39 Sam James
2020-08-31  9:10 Alexis Ballier
2020-04-14  7:28 Sergei Trofimovich
2019-02-12 21:03 Sergei Trofimovich
2019-02-04 20:16 Markus Meier
2019-01-30 13:20 Tobias Klausmann
2019-01-17 21:32 Mikle Kolyada
2019-01-13 10:01 Sergei Trofimovich
2019-01-04  0:02 Thomas Deutschmann
2019-01-03 15:03 Sergei Trofimovich
2019-01-03 14:58 Sergei Trofimovich
2018-12-04 14:08 Craig Andrews
2018-11-30 22:45 Andreas Sturmlechner
2018-11-30 22:45 Andreas Sturmlechner
2018-11-30 22:45 Andreas Sturmlechner
2018-04-16 19:03 Sergei Trofimovich
2018-03-25 23:29 Sergei Trofimovich
2018-03-06 22:35 Sergei Trofimovich
2018-03-06 22:35 Sergei Trofimovich
2017-11-30 13:57 Alexis Ballier
2017-07-15  5:03 Markus Meier
2017-07-04 15:49 Agostino Sarubbo
2017-07-04 10:17 Agostino Sarubbo
2017-07-01 20:58 Sergei Trofimovich
2017-06-16  9:44 Alexis Ballier
2017-06-10 20:14 Sergei Trofimovich
2017-06-10 20:14 Sergei Trofimovich
2017-04-05 14:07 Tobias Klausmann
2017-03-10 12:08 Alexis Ballier
2017-03-02 15:52 Tobias Klausmann
2017-02-23 12:35 Michael Weber
2017-02-22 13:24 Michael Weber
2017-02-22 13:19 Jeroen Roovers
2017-02-18  8:51 Jeroen Roovers
2017-02-17 17:28 Markus Meier
2017-02-15 15:56 Agostino Sarubbo
2017-02-15 15:05 Agostino Sarubbo
2016-10-15 11:47 Pacho Ramos
2016-10-15 11:47 Pacho Ramos
2016-10-15 11:47 Pacho Ramos
2016-10-15  9:42 Alexis Ballier
2016-10-15  5:17 Jeroen Roovers
2016-10-03  9:04 Alexis Ballier
2016-07-26 10:51 Chí-Thanh Christopher Nguyễn
2016-07-26  9:27 Alexis Ballier
2016-01-29 19:41 Alexis Ballier
2016-01-18 15:13 Alexis Ballier
2015-11-13  9:11 Alexis Ballier
2015-10-30 12:40 Alexis Ballier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1712532825.e6308710dff6e3e7469e536d5e947494ca080fd4.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox