Bug#986286: diaspora-installer: fails to install: Your bundle is locked to mimemagic (0.3.5), but that version could not be found

2021-04-25 Thread Jan Wagner

Hi there,

based on https://github.com/diaspora/diaspora/pull/8231 I adjusted 
diaspora-download.sh to change Gemfile.lock accordingly and uploaded the 
package 0.7.14.0+debian2+nmu2 to DELAYED/5. The diff is attached.


Cheers, Jan.
--
Never write mail to , you have been warned!
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GIT d-- s+: a C+++ UL P+ L+++ E--- W+++ N+++ o++ K++ w--- O M+ V- PS 
PE Y++

PGP++ t-- 5 X R tv- b+ DI D+ G++ e++ h r+++ y
--END GEEK CODE BLOCK--
commit 0e50f2ba851d216c801029a27c7fda9e6ff15160
Author: Jan Wagner 
Date:   Sun Apr 25 23:53:28 2021 +0200

Fix #986286

diff --git a/debian/changelog b/debian/changelog
index 719be1d..11ec0b5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+diaspora-installer (0.7.14.0+debian2+nmu2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Adjust diaspora-download.sh to modify Gemfile.lock so mimemagic (0.3.10)
+is used (beside nokogiri (~> 1) and rake), upstream change 79133df
+(Closes: #986286)
+
+ -- Jan Wagner   Sun, 25 Apr 2021 23:33:26 +0200
+
 diaspora-installer (0.7.14.0+debian2+nmu1) unstable; urgency=medium
 
   * Non-maintainer upload
diff --git a/diaspora-download.sh b/diaspora-download.sh
index 2318c4a..ffa1ff2 100755
--- a/diaspora-download.sh
+++ b/diaspora-download.sh
@@ -43,7 +43,7 @@ cp -r  ${diaspora_cache}/${diaspora_archive}/public/* ${diaspora_user_home}/publ
 chown -R ${diaspora_user}: ${diaspora_user_home}/public
 chown -R ${diaspora_user}: ${diaspora_user_home}/app-assets
 # Remove BUNDLED WITH from Gemfile.lock to allow using packaged bundler
-head -n -3 ${diaspora_cache}/${diaspora_archive}/Gemfile.lock > ${diaspora_home}/Gemfile.lock
+head -n -3 ${diaspora_cache}/${diaspora_archive}/Gemfile.lock | sed "s/mimemagic (0.3.5)/mimemagic (0.3.10)\n  nokogiri (~> 1)\n  rake/" > ${diaspora_home}/Gemfile.lock
 
 echo "Copying source tarball to ${diaspora_user_home}/public..."
 cp -f ${diaspora_cache}/diaspora-${diaspora_version}.tar.gz ${diaspora_user_home}/public/source.tar.gz


Bug#986286: diaspora-installer: fails to install: Your bundle is locked to mimemagic (0.3.5), but that version could not be found

2021-04-09 Thread Pirate Praveen

Control: forwarded -1 https://github.com/diaspora/diaspora/issues/8229

On Fri, 02 Apr 2021 14:21:14 +0200 Andreas Beckmann 
>   Fetching gem metadata from https://gems.diasporafoundation.org/..
>   Fetching gem metadata from https://rubygems.org/..
>   [ESC][31mYour bundle is locked to mimemagic (0.3.5), but that 
version could not be found
>   in any of the sources listed in your Gemfile. If you haven't 
changed sources,
>   that means the author of mimemagic (0.3.5) has removed it. You'll 
need to update
>   your bundle to a version other than mimemagic (0.3.5) that hasn't 
been removed

>   in order to install.[ESC][0m
>   dpkg: error processing package diaspora-installer (--configure):

A lot of projects are affected by this change,
https://www.theregister.com/2021/03/25/ruby_rails_code/



Bug#986286: diaspora-installer: fails to install: Your bundle is locked to mimemagic (0.3.5), but that version could not be found

2021-04-02 Thread Andreas Beckmann
Package: diaspora-installer
Version: 0.7.14.0+debian2
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package failed to install. As
per definition of the release team this makes the package too buggy for
a release, thus the severity.

>From the attached log (scroll to the bottom...):

  Setting up diaspora-installer (0.7.14.0+debian2) ...
  Download diaspora tarball version 0.7.14.0 from github.com...
  --2021-04-02 11:03:54--  
https://github.com/diaspora/diaspora/archive/v0.7.14.0.tar.gz
  Resolving github.com (github.com)... 140.82.121.4
  Connecting to github.com (github.com)|140.82.121.4|:443... connected.
  HTTP request sent, awaiting response... 302 Found
  Location: https://codeload.github.com/diaspora/diaspora/tar.gz/v0.7.14.0 
[following]
  --2021-04-02 11:03:54--  
https://codeload.github.com/diaspora/diaspora/tar.gz/v0.7.14.0
  Resolving codeload.github.com (codeload.github.com)... 140.82.121.9
  Connecting to codeload.github.com (codeload.github.com)|140.82.121.9|:443... 
connected.
  HTTP request sent, awaiting response... 200 OK
  Length: unspecified [application/x-gzip]
  Saving to: '/var/cache/diaspora-installer/diaspora-0.7.14.0.tar.gz'
  
  
  /var/cach [<=> ]   0  --.-KB/s   
 /var/cache [ <=>]   1.45M  7.11MB/s   
/var/cache/ [  <=>   ]   3.79M  9.36MB/s   
   /var/cache/d [   <=>  ]   8.59M  14.2MB/s   
/var/cache/diaspora [<=> ]   9.45M  14.0MB/sin 0.7s
  
  2021-04-02 11:03:55 (14.0 MB/s) - 
'/var/cache/diaspora-installer/diaspora-0.7.14.0.tar.gz' saved [9911008]
  
  Checking integrity of download...
  /var/cache/diaspora-installer/diaspora-0.7.14.0.tar.gz: OK
  Extracting files...
  Copying files to /usr/share/diaspora...
  diaspora archive to copy: diaspora-0.7.14.0
  Copying source tarball to /var/lib/diaspora/public...
  Setting up environment varibales...
  Using /etc/diaspora/diaspora.conf...
  DB_NAME=diaspora_production
  Using system bundler...
  Installing gems with rubygems ...
  [ESC][33m[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[ESC][0m
  [ESC][33m[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[ESC][0m
  [ESC][33m[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[ESC][0m
  [ESC][33m[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[ESC][0m
  Fetching gem metadata from https://gems.diasporafoundation.org/..
  Fetching gem metadata from https://rubygems.org/..
  [ESC][31mYour bundle is locked to mimemagic (0.3.5), but that version could 
not be found
  in any of the sources listed in your Gemfile. If you haven't changed sources,
  that means the author of mimemagic (0.3.5) has removed it. You'll need to 
update
  your bundle to a version other than mimemagic (0.3.5) that hasn't been removed
  in order to install.[ESC][0m
  dpkg: error processing package diaspora-installer (--configure):
   installed diaspora-installer package post-installation script subprocess 
returned error exit status 7
  Processing triggers for libc-bin (2.31-11) ...
  Processing triggers for ca-certificates (20210119) ...
  Updating certificates in /etc/ssl/certs...
  0 added, 0 removed; done.
  Running hooks in /etc/ca-certificates/update.d...
  done.
  Processing triggers for libgdk-pixbuf-2.0-0:amd64 (2.42.2+dfsg-1) ...
  Errors were encountered while processing:
   diaspora-installer


cheers,

Andreas


diaspora-installer_0.7.14.0+debian2.log.gz
Description: application/gzip