Skip to content

Commit

Permalink
devel/rubygem-i18n: fix frozen string
Browse files Browse the repository at this point in the history
With version v1.13.0 code was changed that returns a frozen string.
This breaks e.g. gitlab-ce on some pages.
Geoffrey Mainland (mainland@apeiron.net) pointed to the issue
logged upstream:
ruby-i18n/i18n#658

PR:		271420
PR:		271356
Approved by:	sunpoet (maintainer)
  • Loading branch information
mfechner committed Jun 6, 2023
1 parent d76593c commit d9c7bd9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/rubygem-i18n/Makefile
@@ -1,5 +1,6 @@
PORTNAME= i18n
PORTVERSION= 1.14.0
PORTREVISION= 1
PORTEPOCH= 2
CATEGORIES= devel rubygems
MASTER_SITES= RG
Expand Down
11 changes: 11 additions & 0 deletions devel/rubygem-i18n/files/patch-bug-271420
@@ -0,0 +1,11 @@
--- lib/i18n/interpolate/ruby.rb.orig 2023-06-02 05:26:32 UTC
+++ lib/i18n/interpolate/ruby.rb
@@ -47,7 +47,7 @@ module I18n
end
end

- interpolated ? interpolated_string : string
+ interpolated ? interpolated_string : string.dup
end
end
end

0 comments on commit d9c7bd9

Please sign in to comment.