commit:     0a08d2b95d551632ec36f6614f3cb29854e02c6d
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 16 17:49:10 2025 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue Dec 16 17:49:10 2025 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=0a08d2b9

portage.const_autotool: remove

const_autotool was already cleaned previously, the last remaining
member EPREFIX actually was no longer in use, as it is defined in
portage.const already, so remove this remnant of the past.

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 lib/portage/const.py                                              | 7 -------
 lib/portage/const_autotool.py                                     | 8 --------
 lib/portage/meson.build                                           | 1 -
 lib/portage/tests/lazyimport/test_lazy_import_portage_baseline.py | 2 --
 4 files changed, 18 deletions(-)

diff --git a/lib/portage/const.py b/lib/portage/const.py
index 183ccb4140..f970de7c51 100644
--- a/lib/portage/const.py
+++ b/lib/portage/const.py
@@ -2,13 +2,6 @@
 # Copyright 1998-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-# BEGIN PREFIX LOCAL
-# ===========================================================================
-# autotool supplied constants.
-# ===========================================================================
-from portage.const_autotool import *
-# END PREFIX LOCAL
-
 import os
 
 from portage import installation

diff --git a/lib/portage/const_autotool.py b/lib/portage/const_autotool.py
deleted file mode 100644
index 45a1d00b2f..0000000000
--- a/lib/portage/const_autotool.py
+++ /dev/null
@@ -1,8 +0,0 @@
-# Copyright: 2005-2025 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-# all vars that are to wind up in portage_const must have their name listed in 
__all__
-
-__all__ = ["EPREFIX"]
-
-EPREFIX      = "@PORTAGE_EPREFIX@"

diff --git a/lib/portage/meson.build b/lib/portage/meson.build
index 6a648fd9d0..06dde8ca71 100644
--- a/lib/portage/meson.build
+++ b/lib/portage/meson.build
@@ -21,7 +21,6 @@ py.install_sources(
         'binpkg.py',
         'checksum.py',
         const_py,
-        'const_autotool.py',  # PREFIX_LOCAL
         'cvstree.py',
         'data.py',
         'debug.py',

diff --git a/lib/portage/tests/lazyimport/test_lazy_import_portage_baseline.py 
b/lib/portage/tests/lazyimport/test_lazy_import_portage_baseline.py
index a52bb4cbb6..cbeba37b5f 100644
--- a/lib/portage/tests/lazyimport/test_lazy_import_portage_baseline.py
+++ b/lib/portage/tests/lazyimport/test_lazy_import_portage_baseline.py
@@ -24,8 +24,6 @@ class LazyImportPortageBaselineTestCase(TestCase):
             "portage.proxy.lazyimport",
             "portage.proxy.objectproxy",
             "portage._selinux",
-            # PREFIX LOCAL
-            "portage.const_autotool",
         ]
     )
 

Reply via email to