diff options
| author | Remco van 't Veer <remco@remworks.net> | 2025-08-25 10:34:17 +0200 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2025-09-18 19:02:07 +0200 |
| commit | fa832b8a8e741663c5ac2a55177eee3664ee3b99 (patch) | |
| tree | a1c794888121381ef3bb040aa775a11eef147fe6 | |
| parent | 9fd1794a6ab35336d9d5508bd7bf60b9df03b7dd (diff) | |
gnu: ruby-3.3: Disinherit from ruby-3.4.
Remove inheritance relation between ruby-3.3 and ruby-3.4 to prevent
rebuilds of ruby-3.3 when ruby-3.4 changes.
* gnu/packages/ruby.scm (ruby-3.3): Disinherit from ruby-3.4 package.
Copy-paste the fields instead.
Change-Id: I93c1e1b8d57e6a3d4a6b6b5c0b00273a0f3430cc
Signed-off-by: Andreas Enge <andreas@enge.fr>
| -rw-r--r-- | gnu/packages/ruby.scm | 50 |
1 files changed, 48 insertions, 2 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index a21e5c210e0..adfcfec6b27 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm | |||
| @@ -148,7 +148,7 @@ a focus on simplicity and productivity.") | |||
| 148 | 148 | ||
| 149 | (define-public ruby-3.3 | 149 | (define-public ruby-3.3 |
| 150 | (package | 150 | (package |
| 151 | (inherit ruby-3.4) | 151 | (name "ruby") |
| 152 | (version "3.3.9") | 152 | (version "3.3.9") |
| 153 | (source | 153 | (source |
| 154 | (origin | 154 | (origin |
| @@ -158,7 +158,53 @@ a focus on simplicity and productivity.") | |||
| 158 | "/ruby-" version ".tar.xz")) | 158 | "/ruby-" version ".tar.xz")) |
| 159 | (sha256 | 159 | (sha256 |
| 160 | (base32 | 160 | (base32 |
| 161 | "1fvng8x44x90pn8nl4sxa5nzb34jwq0is6l5k7066zrg18ca491b")))))) | 161 | "1fvng8x44x90pn8nl4sxa5nzb34jwq0is6l5k7066zrg18ca491b")))) |
| 162 | (build-system gnu-build-system) | ||
| 163 | (arguments | ||
| 164 | `(#:test-target "test" | ||
| 165 | #:configure-flags | ||
| 166 | ,(if (%current-target-system) | ||
| 167 | '(list (string-append | ||
| 168 | "LDFLAGS=-Wl,-rpath=" | ||
| 169 | (assoc-ref %outputs "out") "/lib") | ||
| 170 | "--enable-shared") | ||
| 171 | ''("--enable-shared")) ; dynamic linking | ||
| 172 | #:phases | ||
| 173 | (modify-phases %standard-phases | ||
| 174 | (add-before 'configure 'replace-bin-sh-and-remove-libffi | ||
| 175 | (lambda _ | ||
| 176 | (substitute* '("configure.ac" | ||
| 177 | "template/Makefile.in" | ||
| 178 | "lib/rubygems/installer.rb" | ||
| 179 | "ext/pty/pty.c" | ||
| 180 | "io.c" | ||
| 181 | "lib/mkmf.rb" | ||
| 182 | "process.c" | ||
| 183 | "test/rubygems/test_gem_ext_configure_builder.rb" | ||
| 184 | "test/rdoc/test_rdoc_parser.rb" | ||
| 185 | "test/ruby/test_rubyoptions.rb" | ||
| 186 | "test/ruby/test_process.rb" | ||
| 187 | "test/ruby/test_system.rb" | ||
| 188 | "tool/rbinstall.rb") | ||
| 189 | (("/bin/sh") (which "sh")))))))) | ||
| 190 | (native-inputs | ||
| 191 | (append (if (%current-target-system) | ||
| 192 | (list this-package) | ||
| 193 | '()) | ||
| 194 | (list autoconf libyaml))) | ||
| 195 | (inputs | ||
| 196 | (list readline openssl-1.1 libffi gdbm)) | ||
| 197 | (propagated-inputs | ||
| 198 | (list zlib)) | ||
| 199 | (native-search-paths | ||
| 200 | (list (search-path-specification | ||
| 201 | (variable "GEM_PATH") | ||
| 202 | (files (list (string-append "lib/ruby/vendor_ruby")))))) | ||
| 203 | (synopsis "Programming language interpreter") | ||
| 204 | (description "Ruby is a dynamic object-oriented programming language with | ||
| 205 | a focus on simplicity and productivity.") | ||
| 206 | (home-page "https://www.ruby-lang.org") | ||
| 207 | (license license:ruby))) | ||
| 162 | 208 | ||
| 163 | (define-public ruby-2.7 | 209 | (define-public ruby-2.7 |
| 164 | (package | 210 | (package |
