public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Marek Szuba" <marecki@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-action/minetest/files/, games-action/minetest/
Date: Wed,  7 Sep 2022 09:08:11 +0000 (UTC)	[thread overview]
Message-ID: <1662541682.44c4388090c24c1878564cbb29f735f5c126ce81.marecki@gentoo> (raw)

commit:     44c4388090c24c1878564cbb29f735f5c126ce81
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Wed Sep  7 09:04:53 2022 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Wed Sep  7 09:08:02 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44c43880

games-action/minetest: suppress upstream optimisation flags

Upstream build scripts add -O3 -funroll-loops -fomit-frame-pointers to
CXXFLAGS, and since they are appended rather than prepended they may
override optimisation flags set by the user.

Closes: https://bugs.gentoo.org/868540
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 .../files/minetest-5.6.0-no_upstream_optflags.patch       | 15 +++++++++++++++
 .../{minetest-5.6.0.ebuild => minetest-5.6.0-r1.ebuild}   |  2 ++
 2 files changed, 17 insertions(+)

diff --git a/games-action/minetest/files/minetest-5.6.0-no_upstream_optflags.patch b/games-action/minetest/files/minetest-5.6.0-no_upstream_optflags.patch
new file mode 100644
index 000000000000..68d71679924b
--- /dev/null
+++ b/games-action/minetest/files/minetest-5.6.0-no_upstream_optflags.patch
@@ -0,0 +1,15 @@
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -756,11 +756,10 @@
+ 		endif()
+ 	endif()
+ 
+-	set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG ${RELEASE_WARNING_FLAGS} ${OTHER_FLAGS} -pipe -funroll-loops")
++	set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG ${RELEASE_WARNING_FLAGS} ${OTHER_FLAGS}")
+ 	if(CMAKE_SYSTEM_NAME MATCHES "(Darwin|BSD|DragonFly)")
+ 		set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Os")
+ 	else()
+-		set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -fomit-frame-pointer")
+ 		if(CMAKE_SYSTEM_NAME STREQUAL "Linux"
+ 				AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang"
+ 				AND CMAKE_CXX_COMPILER_VERSION MATCHES "^9\\.")

diff --git a/games-action/minetest/minetest-5.6.0.ebuild b/games-action/minetest/minetest-5.6.0-r1.ebuild
similarity index 97%
rename from games-action/minetest/minetest-5.6.0.ebuild
rename to games-action/minetest/minetest-5.6.0-r1.ebuild
index 586774932b7f..6d626a4d0046 100644
--- a/games-action/minetest/minetest-5.6.0.ebuild
+++ b/games-action/minetest/minetest-5.6.0-r1.ebuild
@@ -3,6 +3,7 @@
 
 EAPI=8
 
+CMAKE_BUILD_TYPE="Release"
 LUA_COMPAT=( lua5-1 luajit )
 
 inherit cmake flag-o-matic lua-single systemd xdg
@@ -64,6 +65,7 @@ BDEPEND="
 
 PATCHES=(
 	"${FILESDIR}"/${PN}-5.4.1-system_puc_lua.patch
+	"${FILESDIR}"/${PN}-5.6.0-no_upstream_optflags.patch
 )
 
 src_prepare() {


             reply	other threads:[~2022-09-07  9:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-07  9:08 Marek Szuba [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-04-10 10:27 [gentoo-commits] repo/gentoo:master commit in: games-action/minetest/files/, games-action/minetest/ Marek Szuba
2021-05-13 15:33 Marek Szuba
2021-05-12 12:40 Marek Szuba
2020-06-24 14:29 Joonas Niilola
2020-02-22 22:10 James Le Cuirot

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=1662541682.44c4388090c24c1878564cbb29f735f5c126ce81.marecki@gentoo \
    --to=marecki@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