[DRE-maint] Bug#1006547: diaspora-installer: incompatible with ruby3.0

Antonio Terceiro terceiro at debian.org
Sun Feb 27 13:00:20 GMT 2022


Source: diaspora-installer
Version: 0.7.15.0+debian1
Severity: serious
Tags: upstream
Justification: makes the package unsuitable

After ruby-defaults switched to ruby3.0 as default, diaspora-installer
started failing its autopkgtest. The failure looks like this:

----------------8<----------------8<----------------8<-----------------
Installing gems with rubygems ...
[DEPRECATED] The `--frozen` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local frozen 'true'`, and stop using this flag
[DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local path 'vendor/bundle'`, and stop using this flag
[DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local without 'development test'`, and stop using this flag
[DEPRECATED] The `--with` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local with 'postgresql'`, and stop using this flag
[DEPRECATED] Your lockfile contains a single rubygems source section with multiple remotes, which is insecure. Make sure you run `bundle install` in non frozen mode and commit the result to make your lockfile secure.
Fetching gem metadata from https://gems.diasporafoundation.org/..
Fetching gem metadata from https://rubygems.org/.......
Your bundle is locked to diaspora_federation-rails (0.2.6) from rubygems
repository https://gems.diasporafoundation.org/, https://rubygems.org/ or
installed locally, but that version can no longer be found in that source. That
means the author of diaspora_federation-rails (0.2.6) has removed it. You'll
need to update your bundle to a version other than diaspora_federation-rails
(0.2.6) that hasn't been removed in order to install.
dpkg: error processing package diaspora-installer (--configure):
 installed diaspora-installer package post-installation script subprocess returned error exit status 7
dpkg: dependency problems prevent configuration of autopkgtest-satdep:
 autopkgtest-satdep depends on diaspora-installer; however:
  Package diaspora-installer is not configured yet.
----------------8<----------------8<----------------8<-----------------

I went to investigate inside a testbed, by copy the diaspora source that
was downloaded into /tmp, and running `bundle` by hand from there. Then
I get this:

----------------8<----------------8<----------------8<-----------------
diaspora at autopkgtest-lxc-kiettk:/$ cp -r /var/cache/diaspora-installer/diaspora-0.7.15.0 /tmp/d
diaspora at autopkgtest-lxc-kiettk:/$ cd /tmp/d
diaspora at autopkgtest-lxc-kiettk:/tmp/d$ bundle
Bundler 2.3.5 is running, but your lockfile was generated with 1.17.3. Installing Bundler 1.17.3 and restarting using that version.
Fetching gem metadata from https://rubygems.org/.
Fetching bundler 1.17.3
Installing bundler 1.17.3
/tmp/d/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.3/lib/bundler/shared_helpers.rb:29: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
[  this warning repeated *a lot* of times  ]
Fetching gem metadata from https://gems.diasporafoundation.org/..
Fetching gem metadata from https://rubygems.org/./tmp/d/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.3/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
/tmp/d/vendor/bundle/ruby/3.0.0/gems/bundler-1.17.3/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
[  this warning repeated *a lot* of times  ]
Fetching gem metadata from https://gems.diasporafoundation.org/..
diaspora_federation-0.2.6 requires ruby version ~> 2.1, which is incompatible with the current version,
ruby 3.0.2p107
----------------8<----------------8<----------------8<-----------------

I went looking into github, and saw that there were a new release of diaspora,
0.7.16.0, that pulled diaspora_federation 0.2.7. I though that could resolve
the issue, and tried to update like this:

----------------8<----------------8<----------------8<-----------------
commit 051a42d95d25087e32f225e0ed4c264ccd4d4923
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Sun Feb 27 09:20:04 2022 -0300

    Update diaspora to 0.7.16.0 for compatibility with ruby3.0+

diff --git a/debian/changelog b/debian/changelog
index 06a7254..f652f44 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+diaspora-installer (0.7.16.0+debian1) experimental; urgency=medium
+
+  * Team upload.
+  * Update diaspora to 0.7.16.0 for compatibility with ruby3.0+
+
+ -- Antonio Terceiro <terceiro at debian.org>  Sun, 27 Feb 2022 09:19:49 -0300
+
 diaspora-installer (0.7.15.0+debian6) experimental; urgency=medium
 
   * Add set -e for better error handling and check for BUNDLE_WITH instead of
diff --git a/diaspora-common.conf b/diaspora-common.conf
index 2c2696e..667c958 100644
--- a/diaspora-common.conf
+++ b/diaspora-common.conf
@@ -1,5 +1,5 @@
 # If diaspora_version is changed, update sha256sums as well
-export diaspora_version=0.7.15.0
+export diaspora_version=0.7.16.0
 # possible values branch, tag
 export diaspora_release_type=tag
 export github_archive_url=https://github.com/diaspora/diaspora/archive
diff --git a/sha256sums b/sha256sums
index e6a9a1e..269f464 100644
--- a/sha256sums
+++ b/sha256sums
@@ -1 +1 @@
-2f3a1c2e8ebcceced0bfdbdb03a05557d7c37cdceb844327f968c5afc11c756a  /var/cache/diaspora-installer/diaspora-0.7.15.0.tar.gz
+1df6b271c6488c7cf5ac78197af6f7e87d5eda1c4f80be0199db0dba5f91b211  /var/cache/diaspora-installer/diaspora-0.7.16.0.tar.gz
----------------8<----------------8<----------------8<-----------------

But it then fails in the same way.

I reported an issue on diaspora_federation:
https://github.com/diaspora/diaspora_federation/issues/123

Given this is the very last blocker to finish the transition to ruby3.0,
I will ask the RT to remove diaspora-installer from testing so that the
transition can complete.


-- System Information:
Debian Release: bookworm/sid
  APT prefers testing-debug
  APT policy: (900, 'testing-debug'), (900, 'testing'), (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.15.0-3-amd64 (SMP w/4 CPU threads)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8), LANGUAGE=pt_BR:pt:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20220227/70352956/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list