Skip to Content.
Sympa Menu

sm-commit - [[SM-Commit] ] GIT changes to master grimoire by Ismael Luceno (fdce9c3566651ca98207569153529a8166c991e4)

Please Wait...

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Ismael Luceno <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org, sm-commit AT lists.sourcemage.org
  • Subject: [[SM-Commit] ] GIT changes to master grimoire by Ismael Luceno (fdce9c3566651ca98207569153529a8166c991e4)
  • Date: Sat, 18 Jan 2025 19:50:35 +0000

GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:

devel/binutils/CONFIGURE | 2 +-
devel/binutils/HISTORY | 4 ++++
devel/binutils/PRE_SUB_DEPENDS | 5 +++--
devel/binutils/SUB_DEPENDS | 8 ++++++--
devel/python3/BUILD | 1 -
devel/python3/CONFIGURE | 5 +++++
devel/python3/DEPENDS | 22 +++++++++++++---------
7 files changed, 32 insertions(+), 15 deletions(-)

New commits:
commit fdce9c3566651ca98207569153529a8166c991e4
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

python3: Add LTO knob

commit 85b0d317292765567957d6aef4bc2ab0fd0e336e
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

binutils: Add LTO sub-dep

diff --git a/devel/binutils/CONFIGURE b/devel/binutils/CONFIGURE
index 05cfc30..e584ff3 100755
--- a/devel/binutils/CONFIGURE
+++ b/devel/binutils/CONFIGURE
@@ -1,4 +1,4 @@
config_query BINUTILS_LIBIBERTY \
"Install libiberty (required by some other packages)?" n
config_query_list BINUTILS_LINKER 'which default linker' gold bfd
-config_query BINUTILS_LTO "enable link-time optimisation" n
+config_query BINUTILS_LTO "enable link-time optimisation support" n
diff --git a/devel/binutils/HISTORY b/devel/binutils/HISTORY
index e60a524..8039591 100644
--- a/devel/binutils/HISTORY
+++ b/devel/binutils/HISTORY
@@ -1,3 +1,7 @@
+2025-01-18 Ismael Luceno <ismael AT sourcemage.org>
+ * SUB_DEPENDS, PRE_SUB_DEPENDS: added LTO
+ * CONFIGURE: clarified LTO option
+
2024-08-17 Pavel Vinogradov <public AT sourcemage.org>
* DETAILS: version 2.43.1

diff --git a/devel/binutils/PRE_SUB_DEPENDS b/devel/binutils/PRE_SUB_DEPENDS
index a892d5f..3111f52 100755
--- a/devel/binutils/PRE_SUB_DEPENDS
+++ b/devel/binutils/PRE_SUB_DEPENDS
@@ -1,6 +1,7 @@
case $THIS_SUB_DEPENDS in
-LIBERTY) [[ "${BINUTILS_LIBIBERTY}" == "y" ]] ;;
- *)
+(LIBERTY) [[ "${BINUTILS_LIBIBERTY}" == "y" ]] ;;
+( LTO) [[ "${BINUTILS_LTO}" == "y" ]] ;;
+( *)
message "${PROBLEM_COLOR}bogus sub_depends: $SPELL
$THIS_SUB_DEPENDS${DEFAULT_COLOR}"
return 1
;;
diff --git a/devel/binutils/SUB_DEPENDS b/devel/binutils/SUB_DEPENDS
index 0ab2cb4..8037907 100755
--- a/devel/binutils/SUB_DEPENDS
+++ b/devel/binutils/SUB_DEPENDS
@@ -1,9 +1,13 @@
case $THIS_SUB_DEPENDS in
-LIBERTY)
+(LIBERTY)
message "${MESSAGE_COLOR}Install of libiberty enforced by
sub-dependency.$DEFAULT_COLOR"
BINUTILS_LIBIBERTY=y
;;
- *)
+(LTO)
+ message "${MESSAGE_COLOR}LTO support enforced by
sub-dependency.$DEFAULT_COLOR"
+ BINUTILS_LTO=y
+;;
+( *)
message "${PROBLEM_COLOR}bogus sub_depends: $SPELL
$THIS_SUB_DEPENDS${DEFAULT_COLOR}"
return 1
;;
diff --git a/devel/python3/BUILD b/devel/python3/BUILD
index b560422..15368bb 100755
--- a/devel/python3/BUILD
+++ b/devel/python3/BUILD
@@ -6,7 +6,6 @@ if [[ "${PYTHON3_BRANCH}" != "devel" &&
"${PYTHON3_BRANCH}" != "3.13" ]]; then
OPTS+=" --enable-optimizations"
fi &&
-OPTS+=" --with-lto" &&
OPTS+=" --with-computed-gotos" &&

OPTS="$OPTS --build=${BUILD}"
diff --git a/devel/python3/CONFIGURE b/devel/python3/CONFIGURE
index c73a640..0edc39c 100755
--- a/devel/python3/CONFIGURE
+++ b/devel/python3/CONFIGURE
@@ -2,6 +2,11 @@ config_query PY3K "Use Python 3 as primary version on the
system?" n &&
config_query SYMLINK "create symlinks for python -> python3" n &&

config_query_option PYTHON3_OPTS \
+ "Apply LTO?" y \
+ --with-lto \
+ --without-lto &&
+
+config_query_option PYTHON3_OPTS \
"Enable IPv6?" y \
"--enable-ipv6" \
"--disable-ipv6"
diff --git a/devel/python3/DEPENDS b/devel/python3/DEPENDS
index 9153d9a..ec33c4b 100755
--- a/devel/python3/DEPENDS
+++ b/devel/python3/DEPENDS
@@ -1,7 +1,16 @@
. "$GRIMOIRE/FUNCTIONS" &&
-depends expat "--with-system-expat" &&
-depends gcc &&
-depends libffi "--with-system-ffi" &&
+. "$GRIMOIRE"/VDEPENDS &&
+vdepends <<-! &&
+ expat flags: --with-system-expat
+ gcc >= 4.7.0
+ libffi flags: --with-system-ffi
+!
+if list_find "$PYTHON3_OPTS" --with-lto; then
+ vdepends <<-!
+ binutils[LTO]
+ gcc >= 4.9.0
+ !
+fi &&

optional_depends SSL '' '' 'SSL crypto extension' &&
optional_depends gdbm '' '' 'database support' &&
@@ -13,9 +22,4 @@ optional_depends sqlite \
optional_depends tk "" "" "for Tk support" &&
optional_depends libxcrypt "" "" "for Crypt support" &&
optional_depends ncurses "" "" "for Ncurses support" &&
-optional_depends readline "" "" "for Readline support" &&
-# gcc >= 4.7 needed for -std=c11
-# gcc >= 4.9 needed for -ffat-lto-objects
-if is_version_less $(installed_version gcc) 4.9.0; then
- force_depends gcc
-fi
+optional_depends readline "" "" "for Readline support"


  • [[SM-Commit] ] GIT changes to master grimoire by Ismael Luceno (fdce9c3566651ca98207569153529a8166c991e4), Ismael Luceno, 01/18/2025

Archive powered by MHonArc 2.6.24.

Top of Page