* [gentoo-commits] proj/portage:master commit in: man/, lib/_emerge/, /
@ 2023-10-12 5:01 Sam James
0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2023-10-12 5:01 UTC (permalink / raw
To: gentoo-commits
commit: fb8d44f02032a0c5ef64a84ac898c08104faf797
Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 10 06:52:29 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Oct 12 05:00:47 2023 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=fb8d44f0
emerge: Increase default number of maximum backtrack attempts from 10 to 20
Experience shows that 10 is too low and that in some cases a slighlty
higher number results in a successful dependency calculation.
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
Closes: https://github.com/gentoo/portage/pull/1127
Signed-off-by: Sam James <sam <AT> gentoo.org>
NEWS | 2 ++
lib/_emerge/depgraph.py | 2 +-
man/emerge.1 | 2 +-
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/NEWS b/NEWS
index e437f481f6..9f93bfbf08 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,8 @@ Features:
* GNUMAKEFLAGS: also specify "-l $(nproc)", that is, limit by load average,
per default.
+* Increase default number of maximum backtrack attempts from 10 to 20.
+
Bug fixes:
* bintree: Add another API member (invalid_errors) to allow eclean-pkg to suppress
errors when cleaning invalid binpkgs (bug #900224).
diff --git a/lib/_emerge/depgraph.py b/lib/_emerge/depgraph.py
index a0d69ff305..ad835ac06a 100644
--- a/lib/_emerge/depgraph.py
+++ b/lib/_emerge/depgraph.py
@@ -11459,7 +11459,7 @@ def _backtrack_depgraph(
) -> tuple[Any, depgraph, list[str], int, int]:
debug = "--debug" in myopts
mydepgraph = None
- max_retries = myopts.get("--backtrack", 10)
+ max_retries = myopts.get("--backtrack", 20)
max_depth = max(1, (max_retries + 1) // 2)
allow_backtracking = max_retries > 0
backtracker = Backtracker(max_depth)
diff --git a/man/emerge.1 b/man/emerge.1
index ed3cf929fe..667138ff3a 100644
--- a/man/emerge.1
+++ b/man/emerge.1
@@ -440,7 +440,7 @@ precedence over existing changes. This option is automatically enabled with
.BR \-\-backtrack=COUNT
Specifies an integer number of times to backtrack if
dependency calculation fails due to a conflict or an
-unsatisfied dependency (default: \'10\').
+unsatisfied dependency (default: \'20\').
.TP
.BR "\-\-binpkg\-changed\-deps [ y | n ]"
Tells emerge to ignore binary packages for which the corresponding
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] proj/portage:master commit in: man/, lib/_emerge/, /
@ 2025-09-12 21:18 Sam James
0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2025-09-12 21:18 UTC (permalink / raw
To: gentoo-commits
commit: 40553e8196363fe6f49a5a7a25a20243aec6341a
Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 12 12:29:32 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Sep 12 21:17:22 2025 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=40553e81
Introduce PORTAGE_SHOW_HTTP_TRACE functionality
The HTTP trace comes in handy to debug issues with e.g., a binhost, or
to analyse and optimize portage's HTTP request handling.
[sam: add Bug tag.]
Bug: https://bugs.gentoo.org/962557
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
Part-of: https://github.com/gentoo/portage/pull/1460
Closes: https://github.com/gentoo/portage/pull/1460
Signed-off-by: Sam James <sam <AT> gentoo.org>
NEWS | 3 +++
lib/_emerge/main.py | 6 ++++++
man/emerge.1 | 3 +++
3 files changed, 12 insertions(+)
diff --git a/NEWS b/NEWS
index b7e667c517..a7c131bf66 100644
--- a/NEWS
+++ b/NEWS
@@ -40,6 +40,9 @@ Features:
* Portage will now show statistics about its internal LRU caches if the
PORTAGE_SHOW_LRU_CACHE_INFO environment variable is set.
+* Portage will show a HTTP trace if the PORTAGE_SHOW_HTTP_TRACE environment
+ variable is set.
+
* Introduce PORTAGE_LOG_FILE_SEP, allowing to configure the separator between
the components of the log files produced by portage.
diff --git a/lib/_emerge/main.py b/lib/_emerge/main.py
index 44e05c3dfd..ababcf1736 100644
--- a/lib/_emerge/main.py
+++ b/lib/_emerge/main.py
@@ -1186,6 +1186,12 @@ def emerge_main(args: Optional[list[str]] = None):
# EMERGE_DEFAULT_OPTS has been parsed).
portage.output.havecolor = 0
+ if os.environ.get("PORTAGE_SHOW_HTTP_TRACE"):
+ import http.client
+
+ http.client.HTTPConnection.debuglevel = 1
+ http.client.HTTPSConnection.debuglevel = 1
+
# This first pass is just for options that need to be known as early as
# possible, such as --config-root. They will be parsed again later,
# together with EMERGE_DEFAULT_OPTS (which may vary depending on the
diff --git a/man/emerge.1 b/man/emerge.1
index 42fc53f95b..1dd826cde7 100644
--- a/man/emerge.1
+++ b/man/emerge.1
@@ -1451,6 +1451,9 @@ prior notice.
.BR PORTAGE_SHOW_LRU_CACHE_INFO
If this environment variable is set, then Portage will display
statistics about its internal LRU caches.
+.BR PORTAGE_SHOW_HTTP_TRACE
+If this environment variable is set, then Portage will show
+a trace of all HTTP request.
.SH "REPORTING BUGS"
Please report any bugs you encounter through our website:
.LP
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-09-12 21:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-12 21:18 [gentoo-commits] proj/portage:master commit in: man/, lib/_emerge/, / Sam James
-- strict thread matches above, loose matches on Subject: below --
2023-10-12 5:01 Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox