public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:master commit in: bin/, /
Date: Sun, 14 May 2023 05:04:05 +0000 (UTC)	[thread overview]
Message-ID: <1684040515.861141ff3335d8096a6bc869a59ebc346af65820.ulm@gentoo> (raw)

commit:     861141ff3335d8096a6bc869a59ebc346af65820
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat May 13 20:34:40 2023 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun May 14 05:01:55 2023 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=861141ff

deprecated-path: Drop unused script

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 NEWS                |  2 ++
 bin/deprecated-path | 28 ----------------------------
 setup.py            |  4 +---
 3 files changed, 3 insertions(+), 31 deletions(-)

diff --git a/NEWS b/NEWS
index 564e00cfb..505fde7c6 100644
--- a/NEWS
+++ b/NEWS
@@ -21,6 +21,8 @@ Cleanups:
 * Move the internal portageq wrapper script out of the ebuild-helpers
   directory.
 
+* Drop unused deprecated-path script.
+
 portage-3.0.47 (2023-04-30)
 --------------
 

diff --git a/bin/deprecated-path b/bin/deprecated-path
deleted file mode 100755
index dba39125f..000000000
--- a/bin/deprecated-path
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/env bash
-# Copyright 2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# Author:
-#
-
-source /lib/gentoo/functions.sh
-
-scriptpath=${BASH_SOURCE[0]}
-scriptname=${scriptpath##*/}
-
-IFS=':'
-
-for path in ${PATH}; do
-	[[ -x ${path}/${scriptname} ]] || continue
-	[[ ${path}/${scriptname} -ef ${scriptpath} ]] && continue
-
-	unset IFS
-	eerror "Deprecation warning: Calling ${scriptname} from wrong path: '${scriptpath}'"
-	eerror "Correct path should be '${path}/${scriptname}', Please correct your scripts or file a bug with the maintainer..."
-	exec "${path}/${scriptname}" "$@"
-done
-
-unset IFS
-
-eerror "ERROR: portage file: deprecated-path: Failed to locate ${scriptname} in PATH"
-eerror "PATH: ${PATH}"
-exit 1

diff --git a/setup.py b/setup.py
index d4c572f3a..066365af0 100755
--- a/setup.py
+++ b/setup.py
@@ -731,8 +731,7 @@ def find_packages():
 def find_scripts():
     for dirpath, _dirnames, filenames in os.walk("bin"):
         for f in filenames:
-            if f not in ["deprecated-path"]:
-                yield os.path.join(dirpath, f)
+            yield os.path.join(dirpath, f)
 
 
 def get_manpages():
@@ -844,7 +843,6 @@ setup(
             ],
             ["$portage_setsdir", ["cnf/sets/portage.conf"]],
             ["$docdir", ["NEWS", "RELEASE-NOTES"]],
-            ["$portage_base/bin", ["bin/deprecated-path"]],
             ["$portage_confdir/repo.postsync.d", ["cnf/repo.postsync.d/example"]],
         ],
         [


             reply	other threads:[~2023-05-14  5:04 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-14  5:04 Ulrich Müller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-15 21:49 [gentoo-commits] proj/portage:master commit in: bin/, / Zac Medico
2025-01-09 17:10 James Le Cuirot
2024-12-15  7:58 Ulrich Müller
2024-11-21 12:22 Ulrich Müller
2024-11-04 20:52 Zac Medico
2023-08-02  6:31 Sam James
2023-06-09 13:03 Sam James
2023-05-01  7:21 Sam James
2023-04-18 15:22 Ulrich Müller
2023-04-09  6:52 Sam James
2022-11-30 22:29 Sam James
2022-11-30  1:22 Sam James
2022-10-04  0:25 Sam James
2022-09-29 20:45 Sam James
2022-09-29 20:45 Sam James

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=1684040515.861141ff3335d8096a6bc869a59ebc346af65820.ulm@gentoo \
    --to=ulm@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