diff options
Diffstat (limited to 'lang/ruby/3.2/patches/patch-lib_fileutils_rb')
| -rw-r--r-- | lang/ruby/3.2/patches/patch-lib_fileutils_rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lang/ruby/3.2/patches/patch-lib_fileutils_rb b/lang/ruby/3.2/patches/patch-lib_fileutils_rb deleted file mode 100644 index aef98f9..0000000 --- a/lang/ruby/3.2/patches/patch-lib_fileutils_rb +++ /dev/null | |||
| @@ -1,16 +0,0 @@ | |||
| 1 | Make FileUtils.mkdir_p act more like mkdir(1) -p, by not attempting | ||
| 2 | to create directories that already exist. This fixes systrace | ||
| 3 | warnings when building ports. | ||
| 4 | |||
| 5 | Index: lib/fileutils.rb | ||
| 6 | --- lib/fileutils.rb.orig | ||
| 7 | +++ lib/fileutils.rb | ||
| 8 | @@ -381,7 +381,7 @@ module FileUtils | ||
| 9 | end | ||
| 10 | stack.reverse_each do |dir| | ||
| 11 | begin | ||
| 12 | - fu_mkdir dir, mode | ||
| 13 | + fu_mkdir dir, mode unless File.directory?(dir) | ||
| 14 | rescue SystemCallError | ||
| 15 | raise unless File.directory?(dir) | ||
| 16 | end | ||
