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

2017-01-14 Thread Pirate Praveen
On വെള്ളി 13 ജനുവരി 2017 04:44 വൈകു, Julian Gilbey wrote:
> Indeed, that is a good point.  It may be that it is worth keeping it
> in testing for the time being but not letting it go into the upcoming
> stable, at least unless all of the security bugs can be fixed (which
> includes upgrading to 0.6.0.1).

I will update to 0.6.0.1, its a one line change
https://github.com/diaspora/diaspora/commit/552193729381d4457011e4ced2a4a1eb84a40d60
https://github.com/diaspora/diaspora/blob/develop/Changelog.md#0601



signature.asc
Description: OpenPGP digital signature
___
Pkg-ruby-extras-maintainers mailing list
Pkg-ruby-extras-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers

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

2017-01-13 Thread Julian Gilbey
On Fri, Jan 13, 2017 at 02:44:24PM +0530, Pirate Praveen wrote:
> On വെള്ളി 13 ജനുവരി 2017 01:39 വൈകു, Julian Gilbey wrote:
> > 
> > I think that in its current state, the diaspora packages should be
> > kept out of testing/stretch, as they are quite a long way from being
> > usable.
> 
> Its a catch 22 situation, if it is not in testing, people are not going
> to test and report bugs as is evident from no bugs for a long period
> when it was just in unstable.
> 
> Keep reporting the bugs you find and we will fix them.

Dear Pirate,

Thanks for doing the update!

Indeed, that is a good point.  It may be that it is worth keeping it
in testing for the time being but not letting it go into the upcoming
stable, at least unless all of the security bugs can be fixed (which
includes upgrading to 0.6.0.1).

Best wishes,

   Julian

___
Pkg-ruby-extras-maintainers mailing list
Pkg-ruby-extras-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers

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

2017-01-13 Thread Julian Gilbey
On Fri, Jan 13, 2017 at 11:05:49AM +0530, Pirate Praveen wrote:
> > Thanks!  It doesn't solve the configuration issue - it still gets
> > stuck on the postgres stuff for some reason - but at least it doesn't
> > leave a package in a very broken state.
> 
> I will try to upload the fix today. I have seen postgres errors related
> to system locale. If system locale does not support UTF-8, I think
> postgres installation fails. Can you try to purge postgres* and set
> system locale to one with UTF-8 support (like en_IN.UTF-8), you'll need
> to reboot for locale change to reflect. Then reinstall diaspora.

Thank you!

It turns out that the postgres issue was for a different reason: I had
initially selected mysql, then tried changing to postgres.  But for
some reason, which I don't fully understand, lots of the mysql
settings were maintained.  I don't now remember whether I did a full
purge of diaspora-related stuff, but even if I did, there is another
bug I've reported relating to the non-purging of dbconfig-common
settings.

I think that in its current state, the diaspora packages should be
kept out of testing/stretch, as they are quite a long way from being
usable.

There are also a few settings in diaspora.yml which need configuring
to the site needs (for example, it should be run in 'production'
rather than 'development' mode, and the site URL needs putting in the
YAML file, from memory).

> > If you're doing a new upload anyway, and it's easy, perhaps you could
> > use the latest upstream version (6.2.0 I think it is)?
> 
> It will need updating many dependencies
> https://git.fosscommunity.in/debian-ruby/TaskTracker/issues/119
> https://git.fosscommunity.in/debian-ruby/TaskTracker/issues/120
> 
> If more hands are there to help, we will be able to complete it faster :)

Ah, I see.  So that will have to wait.  I think there was a security
update 0.6.0.1, which might be compatible?

Best wishes,

   Julian

P.S. PLEASE NOTE that I have changed my email address; it is now:
  jul...@d-and-j.net
If you have any problems with this email address, please let me know
on my old address: j...@polya.uklinux.net

___
Pkg-ruby-extras-maintainers mailing list
Pkg-ruby-extras-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers


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

2017-01-13 Thread Pirate Praveen
On ഞായര്‍ 08 ജനുവരി 2017 07:15 വൈകു, Julian Gilbey wrote:
> On Sun, Jan 08, 2017 at 06:27:07PM +0530, Pirate Praveen wrote:
>>> No, it didn't get anywhere near that far.  It broke on the preinst,
>>> and then broke on the prerm (or was it the postrm?) when trying to
>>> unwind because of the same error.  And it's left the package in a
>>> "half-installed" state, which dpkg is really unhappy with.
>>>
>>> The only thing I could do to fix it was to build my own package with
>>> the maintscript line fixed, and then I could install and uninstall it
>>> (though the postgresql broke, as I mention in a different email).
>>>
>>> That's why I think it is a grave bug, but it is a one-line patch!
>>
>> Ok if you tested it and it is working, I will include it and try to make
>> a new upload in a day or two.
> 
> Thanks!  It doesn't solve the configuration issue - it still gets
> stuck on the postgres stuff for some reason - but at least it doesn't
> leave a package in a very broken state.

I will try to upload the fix today. I have seen postgres errors related
to system locale. If system locale does not support UTF-8, I think
postgres installation fails. Can you try to purge postgres* and set
system locale to one with UTF-8 support (like en_IN.UTF-8), you'll need
to reboot for locale change to reflect. Then reinstall diaspora.

> If you're doing a new upload anyway, and it's easy, perhaps you could
> use the latest upstream version (6.2.0 I think it is)?

It will need updating many dependencies
https://git.fosscommunity.in/debian-ruby/TaskTracker/issues/119
https://git.fosscommunity.in/debian-ruby/TaskTracker/issues/120

If more hands are there to help, we will be able to complete it faster :)

Btw it is 0.6.2.0.

> Best wishes,
> 
>Julian
> 




signature.asc
Description: OpenPGP digital signature
___
Pkg-ruby-extras-maintainers mailing list
Pkg-ruby-extras-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers

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

2017-01-07 Thread Julian Gilbey
Hi Pirate,

Thanks for the quick response!

On Sun, Jan 08, 2017 at 07:03:30AM +0530, Pirate Praveen wrote:
> Control: severity -1 important
> 
> On ഞായര്‍ 08 ജനുവരി 2017 06:49 രാവിലെ, Julian Gilbey wrote:
> > 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.

I made it grave, because package simply will not install: the preinst
failed; and as far as I can tell, that counts as a grave bug:

Preparing to unpack .../137-diaspora_0.6.0.0+debian-7_all.deb ...
psql: FATAL:  role "diaspora" does not exist
dpkg-maintscript-helper: error: dpkg: warning: version 'diaspora-common' has 
bad syntax: version number does not start with digit
dpkg: error processing archive 
/tmp/apt-dpkg-install-SWG1Sz/137-diaspora_0.6.0.0+debian-7_all.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
dpkg-maintscript-helper: error: dpkg: warning: version 'diaspora-common' has 
bad syntax: version number does not start with digit
dpkg: error while cleaning up:
 subprocess new post-removal script returned error exit status 1

(and I don't know why the postrm failed too).

> > 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.

Ah, OK thanks.  I've purged it and will start again - it will probably
be more successful this time!

Ah, no, it gave up on diaspora-common, because it's trying to connect
with debian-sys-maint to port 3306, which is not where postgresql is
connected.  And I can't find an obvious way to change it.

:-(

   Julian

___
Pkg-ruby-extras-maintainers mailing list
Pkg-ruby-extras-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers

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

2017-01-07 Thread Julian Gilbey
On Sun, Jan 08, 2017 at 07:03:30AM +0530, Pirate Praveen wrote:
> Control: severity -1 important

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

Oh, now I've got this, when trying to remove diaspora:

Performing actions...
dpkg: error processing package diaspora (--remove):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting a removal
Errors were encountered while processing:
 diaspora

:-(

   Julian

___
Pkg-ruby-extras-maintainers mailing list
Pkg-ruby-extras-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers


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

2017-01-07 Thread Pirate Praveen
On ഞായര്‍ 08 ജനുവരി 2017 07:22 രാവിലെ, Julian Gilbey wrote:
> On Sun, Jan 08, 2017 at 07:03:30AM +0530, Pirate Praveen wrote:
>> Control: severity -1 important
> 
>> I don't think the dir_to_symlink bug warrants grave severity.
> 
> Oh, now I've got this, when trying to remove diaspora:
> 
> Performing actions...
> dpkg: error processing package diaspora (--remove):
>  package is in a very bad inconsistent state; you should
>  reinstall it before attempting a removal
> Errors were encountered while processing:
>  diaspora

Try reinstalling with postgres if that is an option for you. If not, we
have to first add mysql support.



signature.asc
Description: OpenPGP digital signature
___
Pkg-ruby-extras-maintainers mailing list
Pkg-ruby-extras-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers

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

2017-01-07 Thread Pirate Praveen
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.




signature.asc
Description: OpenPGP digital signature
___
Pkg-ruby-extras-maintainers mailing list
Pkg-ruby-extras-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers

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

2017-01-07 Thread Julian Gilbey
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.):

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

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?

   Julian

-- System Information:
Debian Release: stretch/sid
  APT prefers jessie
  APT policy: (500, 'jessie'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-- no debconf information

___
Pkg-ruby-extras-maintainers mailing list
Pkg-ruby-extras-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers