remote: -----> Using Ruby version: ruby-3.2.0
お
remote: -----> Using Ruby version: ruby-3.2.0
remote: Ruby version change detected. Clearing bundler cache.
remote: Old: ruby 3.2.0rc1 (2022-12-07) [x86_64-linux]
remote: New: ruby 3.2.0 (2022-12-25 revision a528908271) [x86_64-linux]
えええ
remote: !
remote: ! Could not detect rake tasks
remote: ! ensure you can run `$ bundle exec rake -P` against your app
remote: ! and using the production group of your Gemfile.
remote: ! rake aborted!
remote: ! LoadError: Could not open library '/tmp/build_4335beaf/vendor/bundle/ruby/3.2.0/gems/blurhash-0.1.6/lib/../ext/blurhash/encode.so': /tmp/build_4335beaf/vendor/bundle/ruby/3.2.0/gems/blurhash-0.1.6/lib/../ext/blurhash/encode.so: cannot open shared object file: No such file or directory
remote: ! /tmp/build_4335beaf/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/lib/ffi/library.rb:145:in `block in ffi_lib'
ビルドはしてくれてたはず
remote: Fetching blurhash 0.1.6
remote: Installing blurhash 0.1.6 with native extensions
うりゃ
$ cd ~/.rbenv/plugins/ruby-build; git pull; rbenv install 3.2.0
:
Installing ruby-3.2.0...
おー
$ rbenv local 3.2.0
$ bundle install
:
Resolving dependencies...
Could not find compatible versions
Because microformats >= 4.4.1 depends on Ruby >= 2.4, < 3.2
and microformats >= 4.4, < 4.4.1 could not be found in rubygems repository
https://rubygems.org/ or installed locally,
microformats >= 4.4 requires Ruby >= 2.4, < 3.2.
So, because Gemfile depends on microformats ~> 4.4
and current Ruby version is = 3.2.0,
version solving has failed.
ほげー。rc1では見逃してもらってたのにな
とりゃ
diff --git a/Gemfile b/Gemfile
index d29703849f..58c5ac9e29 100644
--- a/Gemfile
+++ b/Gemfile
@@ -124,7 +124,7 @@ group :test do
gem 'climate_control', '~> 0.2'
gem 'faker', '~> 3.0'
gem 'json-schema', '~> 3.0'
- gem 'microformats', '~> 4.4'
+ gem 'microformats', '~> 4.4', git: 'https://github.com/tenderlove/microformats-ruby.git', branch: 'remove-ruby-limit'
gem 'rack-test', '~> 2.0'
gem 'rails-controller-testing', '~> 1.0'
gem 'rspec_junit_formatter', '~> 0.6'
$ RAILS_ENV=test bundle exec rake -P
rake aborted!
LoadError: Could not open library '/home/zunda/c/src/github.com/zunda/mastodon/vendor/bundle/ruby/3.2.0/gems/blurhash-0.1.6/lib/../ext/blurhash/encode.so': /home/zunda/c/src/github.com/zunda/mastodon/vendor/bundle/ruby/3.2.0/gems/blurhash-0.1.6/lib/../ext/blurhash/encode.so: cannot open shared object file: No such file or directory
おや。ローカルに再現できたね。
rc1でつくったのgemにはある.soがリリース版でつくったgemには無い
$ cd vendor/bundle/ruby
$ file 3.2.0+3/gems/blurhash-0.1.6/lib/../ext/blurhash/encode.so
3.2.0+3/gems/blurhash-0.1.6/lib/../ext/blurhash/encode.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=5f4fc92a711dc53b3d453922975ca3c89688f1ea, with debug_info, not stripped
$ file 3.2.0/gems/blurhash-0.1.6/lib/../ext/blurhash/encode.so
3.2.0/gems/blurhash-0.1.6/lib/../ext/blurhash/encode.so: cannot open `3.2.0/gems/blurhash-0.1.6/lib/../ext/blurhash/encode.so' (No such file or directory)
soじたいはできているけれどrequireするパスからは見えないのかな
$ find 3.2.0 -name encode.so
3.2.0/extensions/x86_64-linux/3.2.0/blurhash-0.1.6/encode.so
3.2.0/gems/blurhash-0.1.6/lib/encode.so
@ponapalt こちらからの言い訳をお客様にお届けできてそれが公開情報にならないと詳しく書けないのですが、そういう感じではないです…
お仕事iPhoneの画面の回転を抑制したくて見つけたんだけどコントロールセンターって何(´・ω・`)
iPhoneの画面の向きを変更する/ロックする - Apple サポート (日本) https://support.apple.com/ja-jp/guide/iphone/iph3badf94ec/ios
$ find . -name encode.so
:
./3.2.0+3/extensions/x86_64-linux/3.2.0+3/blurhash-0.1.6/encode.so
./3.2.0+3/gems/blurhash-0.1.6/ext/blurhash/encode.so
./3.2.0+3/gems/blurhash-0.1.6/lib/encode.so
./3.2.0/extensions/x86_64-linux/3.2.0/blurhash-0.1.6/encode.so
./3.2.0/gems/blurhash-0.1.6/lib/encode.so
ext/blurhash/encode.soが無くなってlib/encode.soだけにインストールされるようになったのかな
ビルド済みのディレクトリには有意な違いは見られない
$ diff -ur 3.2.0{+3,}/gems/blurhash-0.1.6/
Only in 3.2.0+3/gems/blurhash-0.1.6/ext/blurhash: encode.o
Only in 3.2.0+3/gems/blurhash-0.1.6/ext/blurhash: encode.so
diff -ur 3.2.0+3/gems/blurhash-0.1.6/ext/blurhash/Makefile 3.2.0/gems/blurhash-0.1.6/ext/blurhash/Makefile
--- 3.2.0+3/gems/blurhash-0.1.6/ext/blurhash/Makefile 2022-12-09 20:39:32.863890039 -1000
+++ 3.2.0/gems/blurhash-0.1.6/ext/blurhash/Makefile 2022-12-25 10:14:22.229106750 -1000
:
Only in 3.2.0+3/gems/blurhash-0.1.6/ext/blurhash: .sitearchdir.time
:
ん。.sitearchdir.time?
このアカウントは、notestockで公開設定になっていません。
$ git clean -dxf; rbenv local 3.2.0; bundle install; bundle exec rake
は成功するのなあ
$ find . -name encode.so
./tmp/x86_64-linux/encode/3.2.0/encode.so
./tmp/x86_64-linux/stage/ext/blurhash/encode.so
./ext/blurhash/encode.so
このアカウントは、notestockで公開設定になっていません。
$ rbenv local 3.2.0-rc1
$ bundle version
Bundler version 2.4.0.dev (2022-12-25 commit unknown)
$ rbenv local 3.2.0
$ bundle version
Bundler version 2.4.1 (2022-12-25 commit unknown)
ほむー
このアカウントは、notestockで公開設定になっていません。
まだ未完成の部分もありますが、超初心者向けMastodonガイドを公開しました。
ほぼ一本道で最初のページから順に読んでいけば一通り使えるようになるよう、最低限の内容に絞っています。まだ使ってない人から、使い始めたもののぜんぜんわからん人まで、何かのお役に立てましたら幸いです。
https://prgm.x0.com/mstdn/
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
$ rbenv local 3.2.0-rc1
$ gem --version
3.4.0.dev
$ rbenv local 3.2.0
$ gem --version
3.4.1
こっちかなあ
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
$ git diff master
diff --git a/lib/blurhash.rb b/lib/blurhash.rb
index c1094c8..14db8a3 100644
--- a/lib/blurhash.rb
+++ b/lib/blurhash.rb
@@ -23,7 +23,7 @@ module Blurhash
module Unstable
extend FFI::Library
- ffi_lib File.join(File.expand_path(File.dirname(__FILE__)), '..', 'ext', 'blurhash', 'encode.' + RbConfig::CONFIG['DLEXT'])
+ ffi_lib File.join(File.expand_path(File.dirname(__FILE__)), 'encode.' + RbConfig::CONFIG['DLEXT'])
attach_function :blurHashForPixels, %i(int int int int pointer size_t), :string
end
するとruby-3.2.0でblurhashでのrequireには成功するんだけどox/oxをrequireできないなあ…
もうRubyなんもわからん
$ strace --trace=file -o bundle-install.strace -f bundle update blurhash
このアカウントは、notestockで公開設定になっていません。
SNSでつらくなったら、メシ画像だけアップするようにするといいよ
#iwatedon