Bug#836991: golang-doc: fails to upgrade from 'jessie': error: directory '/usr/lib/go' contains files not owned by package golang-go:i386, cannot switch to symlink

2016-12-07 Thread Tianon Gravi
On 5 December 2016 at 21:06, Tianon Gravi  wrote:
> I _think_ adding "golang-doc (<< 2:1.6.1+1~)" to the existing "Breaks"
> on "golang-go" might actually be the solution to this issue (since the
> "golang-doc" package in jessie provides "/usr/lib/go/doc" as a
> symlink, but "golang-go" in sid/stretch changed all of "/usr/lib/go"
> to a symlink instead).

Figured out a piuparts invocation to properly test this (would love
offline hrefs for doing so without involving creating my own full repo
for testing local changes before upload...), and this does appear to
fix the issue, so I've uploaded this fix (should be hitting the
archive shortly). :)


♥,
- Tianon
  4096R / B42F 6819 007F 00F8 8E36  4FD4 036A 9C25 BF35 7DD4



Bug#836991: golang-doc: fails to upgrade from 'jessie': error: directory '/usr/lib/go' contains files not owned by package golang-go:i386, cannot switch to symlink

2016-12-05 Thread Tianon Gravi
On 5 December 2016 at 21:01, Tianon Gravi  wrote:
> Now to try and figure out exactly which new conflicts/breaks are
> necessary...  :x

I _think_ adding "golang-doc (<< 2:1.6.1+1~)" to the existing "Breaks"
on "golang-go" might actually be the solution to this issue (since the
"golang-doc" package in jessie provides "/usr/lib/go/doc" as a
symlink, but "golang-go" in sid/stretch changed all of "/usr/lib/go"
to a symlink instead).


♥,
- Tianon
  4096R / B42F 6819 007F 00F8 8E36  4FD4 036A 9C25 BF35 7DD4



Bug#836991: golang-doc: fails to upgrade from 'jessie': error: directory '/usr/lib/go' contains files not owned by package golang-go:i386, cannot switch to symlink

2016-12-05 Thread Tianon Gravi
On 20 November 2016 at 18:45, Tianon Gravi  wrote:
> Any thoughts or hrefs on the "correct" way to fix this in the
> packaging?  (Or a simple way to figure out _which_ files don't belong
> so we can evaluate more clearly?)
>
> I don't want to just add "rm -rf" to the preinst, but if piuparts is
> noticing the problem, it's bound to be something we've done wrong in
> the jessie packaging of "golang-go". :(

I've reproduced, and I think this might actually be a case of
insufficient Conflicts/Breaks -- if I first purge golang-*, then the
new packages install fine.

Now to try and figure out exactly which new conflicts/breaks are
necessary...  :x


♥,
- Tianon
  4096R / B42F 6819 007F 00F8 8E36  4FD4 036A 9C25 BF35 7DD4



Bug#836991: golang-doc: fails to upgrade from 'jessie': error: directory '/usr/lib/go' contains files not owned by package golang-go:i386, cannot switch to symlink

2016-11-20 Thread Tianon Gravi
On 7 September 2016 at 14:18, Andreas Beckmann  wrote:
>   Preparing to unpack .../golang-go_2%3a1.7~1_i386.deb ...
>   dpkg-maintscript-helper: error: directory '/usr/lib/go' contains files not 
> owned by package golang-go:i386, cannot switch to symlink
>   dpkg: error processing archive 
> /var/cache/apt/archives/golang-go_2%3a1.7~1_i386.deb (--unpack):
>subprocess new pre-installation script returned error exit status 1

Any thoughts or hrefs on the "correct" way to fix this in the
packaging?  (Or a simple way to figure out _which_ files don't belong
so we can evaluate more clearly?)

I don't want to just add "rm -rf" to the preinst, but if piuparts is
noticing the problem, it's bound to be something we've done wrong in
the jessie packaging of "golang-go". :(

♥,
- Tianon
  4096R / B42F 6819 007F 00F8 8E36  4FD4 036A 9C25 BF35 7DD4



Bug#836991: golang-doc: fails to upgrade from 'jessie': error: directory '/usr/lib/go' contains files not owned by package golang-go:i386, cannot switch to symlink

2016-10-23 Thread k0d
This is what I ended up doing.  Not sure if this is correct method but
seems to have worked.  I can now perform an apt-get update && apt-get
upgrade.

sudo rm /usr/lib/go -Rf
sudo rm /usr/share/doc/golang-doc/ -Rf
sudo mkdir /usr/lib/go
sudo apt-get -f install
sudo apt-get update && apt-get upgrade

Cheers!




On Wed, 07 Sep 2016 23:18:47 +0200 Andreas Beckmann 
wrote:
> Package: golang-doc
> Version: 2:1.7~1
> Severity: serious
> User: debian...@lists.debian.org
> Usertags: piuparts
> 
> Hi,
> 
> during a test with piuparts I noticed your package fails to upgrade
from
> 'jessie'.
> It installed fine in 'jessie', then the upgrade to 'stretch' fails.
> 
> >From the attached log (scroll to the bottom...):
> 
>   Preparing to unpack .../golang-go_2%3a1.7~1_i386.deb ...
>   dpkg-maintscript-helper: error: directory '/usr/lib/go' contains
files not owned by package golang-go:i386, cannot switch to symlink
>   dpkg: error processing archive /var/cache/apt/archives/golang-
go_2%3a1.7~1_i386.deb (--unpack):
>subprocess new pre-installation script returned error exit status
1
> 
> 
> cheers,
> 
> Andreas



Bug#836991: golang-doc: fails to upgrade from 'jessie': error: directory '/usr/lib/go' contains files not owned by package golang-go:i386, cannot switch to symlink

2016-10-23 Thread k0d
What is the fix for this?  I have the same problem.  Cant update
anything due to this problem.  Should any new sources be added to
/etc/apt/sources.list?


On Wed, 07 Sep 2016 23:18:47 +0200 Andreas Beckmann 
wrote:
> Package: golang-doc
> Version: 2:1.7~1
> Severity: serious
> User: debian...@lists.debian.org
> Usertags: piuparts
> 
> Hi,
> 
> during a test with piuparts I noticed your package fails to upgrade
from
> 'jessie'.
> It installed fine in 'jessie', then the upgrade to 'stretch' fails.
> 
> >From the attached log (scroll to the bottom...):
> 
>   Preparing to unpack .../golang-go_2%3a1.7~1_i386.deb ...
>   dpkg-maintscript-helper: error: directory '/usr/lib/go' contains
files not owned by package golang-go:i386, cannot switch to symlink
>   dpkg: error processing archive /var/cache/apt/archives/golang-
go_2%3a1.7~1_i386.deb (--unpack):
>subprocess new pre-installation script returned error exit status
1
> 
> 
> cheers,
> 
> Andreas



Bug#836991: golang-doc: fails to upgrade from 'jessie': error: directory '/usr/lib/go' contains files not owned by package golang-go:i386, cannot switch to symlink

2016-09-07 Thread Andreas Beckmann
Package: golang-doc
Version: 2:1.7~1
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package fails to upgrade from
'jessie'.
It installed fine in 'jessie', then the upgrade to 'stretch' fails.

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

  Preparing to unpack .../golang-go_2%3a1.7~1_i386.deb ...
  dpkg-maintscript-helper: error: directory '/usr/lib/go' contains files not 
owned by package golang-go:i386, cannot switch to symlink
  dpkg: error processing archive 
/var/cache/apt/archives/golang-go_2%3a1.7~1_i386.deb (--unpack):
   subprocess new pre-installation script returned error exit status 1


cheers,

Andreas


golang-doc_2:1.7~1.log.gz
Description: application/gzip