GNU bug report logs -
#77289
[PATCH] gnu: Remove ruby-2.6.
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Mon, 2 Jun 2025 18:21:12 +0200
with message-id <aD3PeBQJzDRciQqF <at> jurong>
and subject line Re: [bug#77289] [PATCH] gnu: Remove ruby-2.6.
has caused the debbugs.gnu.org bug report #77289,
regarding [PATCH] gnu: Remove ruby-2.6.
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
77289: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77289
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
* gnu/packages/ruby.scm (ruby-2.6): Delete variable.
(ruby-2.7): Copy fields previously inherited from ruby-2.6.
Change-Id: I14065e045ede6224cb30b05dcb7fcbdf03df8dbd
---
This commit removes ruby <at> 2.6, which was EOL on 2022-04-12 and has no
dependent packages any more. Unfortunately it appears that since @2.7
inherited from @2.6, it is rebuilt with all its 14000 dependent packages
although I have only copy-pasted the previously inherited fields.
According to the removal policy, this commit could be pushed on April 26;
but we should make sure that everything is built on CI.
gnu/packages/ruby.scm | 82 +++++++++----------------------------------
1 file changed, 17 insertions(+), 65 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 24407fbd58..c7be9fb2ce 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -114,81 +114,20 @@ (define %prawn-project-licenses
license:gpl2+
license:gpl3+))
-(define-public ruby-2.6
- (package
- (name "ruby")
- (version "2.6.10")
- (source
- (origin
- (method url-fetch)
- (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
- (version-major+minor version)
- "/ruby-" version ".tar.xz"))
- (sha256
- (base32
- "1wn12klc44hn2nh5v1lkqbdyvljip6qhwjqvkkf8zf112gaxxn2z"))
- (modules '((guix build utils)))
- (snippet `(begin
- ;; Remove bundled libffi
- (delete-file-recursively "ext/fiddle/libffi-3.2.1")
- #t))))
- (build-system gnu-build-system)
- (arguments
- `(#:test-target "test"
- #:configure-flags
- ,(if (%current-target-system)
- '(list (string-append
- "LDFLAGS=-Wl,-rpath="
- (assoc-ref %outputs "out") "/lib")
- "--enable-shared")
- ''("--enable-shared")) ; dynamic linking
- #:phases
- (modify-phases %standard-phases
- (add-before 'configure 'replace-bin-sh-and-remove-libffi
- (lambda _
- (substitute* '("Makefile.in"
- "ext/pty/pty.c"
- "io.c"
- "lib/mkmf.rb"
- "process.c"
- "test/rubygems/test_gem_ext_configure_builder.rb"
- "test/rdoc/test_rdoc_parser.rb"
- "test/ruby/test_rubyoptions.rb"
- "test/ruby/test_process.rb"
- "test/ruby/test_system.rb"
- "tool/rbinstall.rb")
- (("/bin/sh") (which "sh")))
- #t)))))
- (native-inputs (if (%current-target-system)
- (list this-package)
- '()))
- (inputs
- (list readline openssl-1.1 libffi gdbm))
- (propagated-inputs
- (list zlib))
- (native-search-paths
- (list (search-path-specification
- (variable "GEM_PATH")
- (files (list (string-append "lib/ruby/vendor_ruby"))))))
- (synopsis "Programming language interpreter")
- (description "Ruby is a dynamic object-oriented programming language with
-a focus on simplicity and productivity.")
- (home-page "https://www.ruby-lang.org")
- (license license:ruby)))
-
(define-public ruby-2.7
(package
- (inherit ruby-2.6)
+ (name "ruby")
(version "2.7.8")
(source
(origin
- (inherit (package-source ruby-2.6))
+ (method url-fetch)
(uri (string-append "https://cache.ruby-lang.org/pub/ruby/"
(version-major+minor version)
"/ruby-" version ".tar.gz"))
(sha256
(base32
"182vni66djmiqagwzfsd0za7x9k3zag43b88c590aalgphybdnn2"))))
+ (build-system gnu-build-system)
(arguments
`(#:test-target "test"
#:configure-flags
@@ -227,7 +166,20 @@ (define-public ruby-2.7
(append (if (%current-target-system)
(list this-package)
'())
- (list autoconf)))))
+ (list autoconf)))
+ (inputs
+ (list readline openssl-1.1 libffi gdbm))
+ (propagated-inputs
+ (list zlib))
+ (native-search-paths
+ (list (search-path-specification
+ (variable "GEM_PATH")
+ (files (list (string-append "lib/ruby/vendor_ruby"))))))
+ (synopsis "Programming language interpreter")
+ (description "Ruby is a dynamic object-oriented programming language with
+a focus on simplicity and productivity.")
+ (home-page "https://www.ruby-lang.org")
+ (license license:ruby)))
(define-public ruby-3.0
(package
base-commit: 80651b889926a304a671092ad2fc223440845a70
--
2.49.0
[Message part 3 (message/rfc822, inline)]
Closing this issue since the ruby-team branch is getting ready.
Andreas
This bug report was last modified 10 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.