Subject: [bug#66263] [PATCH 11/23] gnu: avr-binutils: Deprecate package.

From: Jean-Pierre De Jesus DIAZ <[email-masked]>
Date: Fri, 29 Sep 2023 11:16:15 +0200

* gnu/packages/avr.scm (avr-binutils): Delete variable.

* gnu/packages/cross-toolchain.scm (avr-binutils): New deprecated variable.
---
 gnu/packages/avr.scm             | 5 -----
 gnu/packages/cross-toolchain.scm | 4 ++++
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/avr.scm b/gnu/packages/avr.scm
index df1523274b..97873a8691 100644
--- a/gnu/packages/avr.scm
+++ b/gnu/packages/avr.scm
@@ -37,11 +37,6 @@ (define-module (gnu packages avr)
   #:use-module (gnu packages gcc)
   #:export (make-avr-libc))
 
-(define-public avr-binutils
-  (package
-    (inherit (cross-binutils "avr"))
-    (name "avr-binutils")))
-
 (define avr-gcc
   (let ((xgcc (cross-gcc "avr" #:xbinutils avr-binutils)))
     (package
diff --git a/gnu/packages/cross-toolchain.scm b/gnu/packages/cross-toolchain.scm
index 5617959851..77af6b862b 100644
--- a/gnu/packages/cross-toolchain.scm
+++ b/gnu/packages/cross-toolchain.scm
@@ -20,6 +20,7 @@ (define-module (gnu packages cross-toolchain)
   #:use-module (gnu packages avr)
   #:use-module (gnu packages cross-base)
   #:use-module (guix build-system trivial)
+  #:use-module (guix deprecation)
   #:use-module (guix packages)
   #:use-module (srfi srfi-1)
   #:export (make-cross-gcc-toolchain))
@@ -61,3 +62,6 @@ (define* (make-cross-gcc-toolchain target
 
 (define-public binutils-cross-avr
   (cross-binutils "avr"))
+
+(define-deprecated/public avr-binutils binutils-cross-avr
+  (deprecated-package "avr-binutils" binutils-cross-avr))
-- 
2.34.1