proj/portage:master commit in: lib/portage/dbapi/

"Sam James" <[email protected]>
Newsgroups gmane.linux.gentoo.cvs
Message-ID <1787002208.8f6f099e8cc47837f530ea4a0c4fbfbc49d0d6c1.sam@gentoo>
commit:     8f6f099e8cc47837f530ea4a0c4fbfbc49d0d6c1
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Aug  7 21:06:29 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Aug 17 21:30:08 2026 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=8f6f099e

Revert "Workaround import problem after Python upgrade"

Obsolete with the fix in 1b188f43eb40a3c59c306b0fbd0407435b6cd4a7.

This reverts commit e7cf51fd6a504b2ab9d887c562c2ca3ace12d033.

Bug: https://bugs.gentoo.org/970375
Bug: https://bugs.gentoo.org/976616
Signed-off-by: Sam James <sam <AT> gentoo.org>

 lib/portage/dbapi/vartree.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lib/portage/dbapi/vartree.py b/lib/portage/dbapi/vartree.py
index 6ed76f492..9424f54af 100644
--- a/lib/portage/dbapi/vartree.py
+++ b/lib/portage/dbapi/vartree.py
@@ -63,10 +63,6 @@ from portage.util.futures import asyncio
 from portage.util.futures.executor.fork import ForkExecutor
 from ._ContentsCaseSensitivityManager import ContentsCaseSensitivityManager
 
-# Made global to fix importing on Python version upgrade:
-# https://bugs.gentoo.org/970375
-from ._SyncfsProcess import SyncfsProcess
-
 _METADATA_FILE = "metadata"
 # The exact set of fields the consolidated metadata file carries, and the set
 # vardbapi caches. Membership is bounded by what _aux_get() may serve as "" on
@@ -6101,6 +6097,8 @@ class dblink:
         disk and avoid data-loss in the event of a power failure. This method
         does nothing if FEATURES=merge-sync is disabled.
         """
+        import subprocess
+        from portage.dbapi._SyncfsProcess import SyncfsProcess
 
         if not self._device_path_map or "merge-sync" not in self.settings.features:
             return
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.