[DRE-maint] Bug#850575: diaspora: cannot install because broken maintscript line in preinst and missing gem files

Pirate Praveen praveen at debian.org
Sun Jan 8 01:33:30 UTC 2017


Control: severity -1 important

On ഞായര്‍ 08 ജനുവരി 2017 06:49 രാവിലെ, Julian Gilbey wrote:
> Package: diaspora
> Version: 0.6.0.0+debian-7
> Severity: grave
> 
> In the debian/maintscript file, you have:
> dir_to_symlink /usr/share/diaspora/config 0.5.9.1+debian3 diaspora-common
> 
> This is not the correct syntax for the dir_to_symlink command: it
> should be
> dir_to_symlink pathname new-target [prior-version [package]]
> 
> So I guess this line should read:
> dir_to_symlink /usr/share/diaspora/config /etc/diaspora 0.5.9.1+debian3 diaspora-common
> 
> With this change, then diaspora installs more successfully.  (Well,
> successfully, except that it couldn't find the gem mysql2 (I've gone
> for the mysql option.):
> 

I don't think the dir_to_symlink bug warrants grave severity.

> Could not find gem 'mysql2 (~> 0.4.4)' in any of the gem sources listed in your
> Gemfile or available on this machine.

Because the diaspora package currently only supports postgresql. I have
added mysql support to diaspora-installer via diaspora-installer-mysql
but did not get time to create diaspora-mysql.

> Installing ruby-mysql2 then gave the error:
> 
> export DB_NAME=diaspora_production
> RAILS_ENV=production DB=mysql ENVIRONMENT_URL=https://diaspora.d-and-j.net
> Verifying we have all required libraries...
> Resolving dependencies...
> Bundler could not find compatible versions for gem "jquery-ui-rails":
>   In Gemfile:
>     jquery-ui-rails (~> 6.0)
> 
>     rails_admin (~> 0.8.1) was resolved to 0.8.1, which depends on
>       jquery-ui-rails (~> 5.0)
> 
> Oh dear :-(
> 
> Any suggestions?

This is fixed in ruby-rails-admin, so just update it. If you are
interested you can try creating diaspora-mysql in the same way I did
diaspora-installer-mysql.

1. Make postgres optional dependency for diaspora (change postgresql ->
postgresql | virtual-mysql-server and dbconfig-postgres ->
dbconfig-postgres | dbconfig-mysql and ruby-pg | ruby-mysql2)
2. Create new binary package diaspora-mysql whcih depends on
dbconfig-mysql, default-mysql-server | virtual-mysql-server, ruby-mysql2
and diaspora.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 862 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20170108/437b6e2b/attachment-0001.sig>


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