Bug#616577: Upgrading libpango1.0-0 fails: rm: cannot remove `/usr/share/doc/libpango1.0-0': Is a directory

2011-04-04 Thread Emilio Pozuelo Monfort
tags 616577 + pending
thanks

On 03/04/11 16:16, Alexander Kurtz wrote:
 Meanwhile quite a few people[3][4] experienced this bug, so please apply
 my patch[5] now. Ubuntu has already applied it[6].

I already fixed this in svn. I'll upload it when pango migrates unless Julien
thinks we should really fix this before that happens.

Cheers,
Emilio



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#616577: Upgrading libpango1.0-0 fails: rm: cannot remove `/usr/share/doc/libpango1.0-0': Is a directory

2011-04-04 Thread Alexander Kurtz
Am Montag, den 04.04.2011, 10:54 +0200 schrieb Emilio Pozuelo Monfort:
 I already fixed this in svn. I'll upload it when pango migrates unless Julien
 thinks we should really fix this before that happens.

Perfect, thank you! But won't this bug block pango from migrating? If
so, don't hesitate to lower the severity!

BTW: While searching for the relevant commit[1] I saw that you moved
pango1.0 experimental branch to unstable[2], but I think you forgot to
update the Vcs-* fields, see [3].

Best regards

Alexander Kurtz

[1] http://svn.debian.org/viewsvn/pkg-gnome?view=revrevision=27121
[2] http://svn.debian.org/viewsvn/pkg-gnome?view=revrevision=27092
[3] 
http://svn.debian.org/viewsvn/pkg-gnome/desktop/unstable/pango1.0/debian/control?revision=27092view=markuppathrev=27092


signature.asc
Description: This is a digitally signed message part


Bug#616577: Upgrading libpango1.0-0 fails: rm: cannot remove `/usr/share/doc/libpango1.0-0': Is a directory

2011-04-04 Thread Emilio Pozuelo Monfort
On 04/04/11 11:26, Alexander Kurtz wrote:
 BTW: While searching for the relevant commit[1] I saw that you moved
 pango1.0 experimental branch to unstable[2], but I think you forgot to
 update the Vcs-* fields, see [3].

Pretty sure I did in a later commit.

Cheers,
Emilio



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#616577: Upgrading libpango1.0-0 fails: rm: cannot remove `/usr/share/doc/libpango1.0-0': Is a directory

2011-04-04 Thread Julien Cristau
On Mon, Apr  4, 2011 at 11:26:57 +0200, Alexander Kurtz wrote:

 Am Montag, den 04.04.2011, 10:54 +0200 schrieb Emilio Pozuelo Monfort:
  I already fixed this in svn. I'll upload it when pango migrates unless 
  Julien
  thinks we should really fix this before that happens.
 
 Perfect, thank you! But won't this bug block pango from migrating? If
 so, don't hesitate to lower the severity!
 
Yes, it does.  I don't think lowering the severity is appropriate, but
we can tell the testing migration scripts to ignore this bug if needed.
Maybe just uploading the fix would be easier, since we still need other
uploads for gir1.2 anyway.  Either way is fine with me.

Cheers,
Julien



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#616577: Upgrading libpango1.0-0 fails: rm: cannot remove `/usr/share/doc/libpango1.0-0': Is a directory

2011-04-04 Thread Alexander Kurtz
Am Montag, den 04.04.2011, 11:37 +0200 schrieb Emilio Pozuelo Monfort:
 Pretty sure I did in a later commit.

Yes you did[1]. Sorry for the noise.

Best regards

Alexander Kurtz

[1] http://svn.debian.org/viewsvn/pkg-gnome?view=revrevision=27112


signature.asc
Description: This is a digitally signed message part


Bug#616577: Upgrading libpango1.0-0 fails: rm: cannot remove `/usr/share/doc/libpango1.0-0': Is a directory

2011-04-03 Thread Alexander Kurtz
reopen 616577
forcemerge 616577 619771
thanks

Am Montag, den 14.03.2011, 16:23 +0100 schrieb Alexander Kurtz:
 Am Sonntag, den 13.03.2011, 21:35 + schrieb Emilio Pozuelo Monfort:
  Yes, I know. See e.g. #609565 for a similar case. Downgrades are not 
  supported,
  so in that case you get to fix it.
 
 Alright then.

It seems like there *are* actually other causes for this bug: I agree
with Michael Bienia[1] that the actual bug was probably in some old
version which failed to do the transition properly. Together with Julien
Cristau's comment[2] on the issue this sounds like a pretty good
explanation.

Meanwhile quite a few people[3][4] experienced this bug, so please apply
my patch[5] now. Ubuntu has already applied it[6].

Best regards

Alexander Kurtz

[1] https://bugs.launchpad.net/ubuntu/+source/pango1.0/+bug/703230/comments/9
[2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=616577#27
[3] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=619771
[4] https://bugs.launchpad.net/ubuntu/+source/pango1.0/+bug/703230
[5] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=616577#20
[6] https://bugs.launchpad.net/ubuntu/+source/pango1.0/+bug/703230/comments/8


signature.asc
Description: This is a digitally signed message part


Bug#616577: Upgrading libpango1.0-0 fails: rm: cannot remove `/usr/share/doc/libpango1.0-0': Is a directory

2011-03-15 Thread Sebastien Bacher
There is a similar bug on 
https://bugs.launchpad.net/ubuntu/+source/pango1.0/+bug/703230

Three users at least ran into that one during Ubuntu upgrade, the
directory should maybe not be there but is there any rational to no want
to make the postinst handle it without crashing the install?

--
Sebastien Bacher




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#616577: Upgrading libpango1.0-0 fails: rm: cannot remove `/usr/share/doc/libpango1.0-0': Is a directory

2011-03-13 Thread Alexander Kurtz
Am Dienstag, den 08.03.2011, 11:27 +0100 schrieb Julien Cristau:
  It seems like dpkg won't overwrite a directory with a symlink (bug?) so
 
 No, not bug.

So my patch[1] should be the correct solution in this situation, right?

Best regards

Alexander Kurtz

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=616577#20


signature.asc
Description: This is a digitally signed message part


Bug#616577: Upgrading libpango1.0-0 fails: rm: cannot remove `/usr/share/doc/libpango1.0-0': Is a directory

2011-03-13 Thread Emilio Pozuelo Monfort
On 13/03/11 16:53, Alexander Kurtz wrote:
 Am Dienstag, den 08.03.2011, 11:27 +0100 schrieb Julien Cristau:
 It seems like dpkg won't overwrite a directory with a symlink (bug?) so

 No, not bug.
 
 So my patch[1] should be the correct solution in this situation, right?

No. Your system was messed up since you didn't have a symlink there (as you
should). I'm tempted to close this bug.

Emilio



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#616577: Upgrading libpango1.0-0 fails: rm: cannot remove `/usr/share/doc/libpango1.0-0': Is a directory

2011-03-13 Thread Alexander Kurtz
Am Sonntag, den 13.03.2011, 19:16 + schrieb Emilio Pozuelo Monfort:
 No. Your system was messed up since you didn't have a symlink there (as you
 should). I'm tempted to close this bug.

I don't know why *I* had a directory instead of a symbolic link, but I
can think of at least one not very unlikely way: Imagine you install
pango 1.28.3-4, then go back to an earlier version and re-upgrade some
time later: You would be screwed.

Since there is absolutely no downside in checking ones assumptions
(i.e. /usr/share/doc/libpango1.0-0 being a symlink), I think you should
re-consider applying the patch.

However, it's your decision; feel free to close the bug if you want to.

Best regards

Alexander Kurtz


signature.asc
Description: This is a digitally signed message part


Bug#616577: Upgrading libpango1.0-0 fails: rm: cannot remove `/usr/share/doc/libpango1.0-0': Is a directory

2011-03-13 Thread Emilio Pozuelo Monfort
On 13/03/11 20:58, Alexander Kurtz wrote:
 Am Sonntag, den 13.03.2011, 19:16 + schrieb Emilio Pozuelo Monfort:
 No. Your system was messed up since you didn't have a symlink there (as you
 should). I'm tempted to close this bug.
 
 I don't know why *I* had a directory instead of a symbolic link, but I
 can think of at least one not very unlikely way: Imagine you install
 pango 1.28.3-4, then go back to an earlier version and re-upgrade some
 time later: You would be screwed.

Yes, I know. See e.g. #609565 for a similar case. Downgrades are not supported,
so in that case you get to fix it.

Emilio



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#616577: Upgrading libpango1.0-0 fails: rm: cannot remove `/usr/share/doc/libpango1.0-0': Is a directory

2011-03-08 Thread Julien Cristau
On Sat, Mar  5, 2011 at 19:40:20 +0100, Alexander Kurtz wrote:

 It seems like dpkg won't overwrite a directory with a symlink (bug?) so

No, not bug.

Cheers,
Julien



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#616577: Upgrading libpango1.0-0 fails: rm: cannot remove `/usr/share/doc/libpango1.0-0': Is a directory

2011-03-06 Thread Alexander Kurtz
tags 616577 + patch
thanks

Hi,

I have written and successfully tested the attached patch. If there are
no objections, I suggest applying it to the next upload.

Best regards

Alexander Kurtz
diff -Naur pango1.0-1.28.3.orig/debian/changelog pango1.0-1.28.3/debian/changelog
--- pango1.0-1.28.3.orig/debian/changelog	2011-01-13 00:04:25.0 +0100
+++ pango1.0-1.28.3/debian/changelog	2011-03-06 14:52:04.818002938 +0100
@@ -1,3 +1,10 @@
+pango1.0 (1.28.3-4.1) experimental; urgency=low
+  * Non-maintainer upload
+  * preinst: Check if /usr/share/doc/libpango1.0-0 actually is a symlink before
+attempting to remove it. Closes: #616577.
+
+ -- Alexander Kurtz kurtz.a...@googlemail.com  Sun, 06 Mar 2011 13:48:33 +0100
+
 pango1.0 (1.28.3-4) experimental; urgency=low
 
   * Switch to source format 3.0 (quilt).
diff -Naur pango1.0-1.28.3.orig/debian/libpango1.0-0.preinst pango1.0-1.28.3/debian/libpango1.0-0.preinst
--- pango1.0-1.28.3.orig/debian/libpango1.0-0.preinst	2011-01-11 02:26:22.0 +0100
+++ pango1.0-1.28.3/debian/libpango1.0-0.preinst	2011-03-06 14:54:29.290308829 +0100
@@ -2,7 +2,11 @@
 set -e
 
 if [ $1 = upgrade ]  dpkg --compare-versions $2 lt-nl 1.28.3-4; then
-rm -f /usr/share/doc/libpango1.0-0
+# Check if /usr/share/doc/libpango1.0-0 actually is a symlink before
+# attempting to remove it. Closes: #616577.
+if [ -L /usr/share/doc/libpango1.0-0 ]; then
+rm -f /usr/share/doc/libpango1.0-0
+fi
 fi
 
 #DEBHELPER#


signature.asc
Description: This is a digitally signed message part


Bug#616577: Upgrading libpango1.0-0 fails: rm: cannot remove `/usr/share/doc/libpango1.0-0': Is a directory

2011-03-05 Thread Alexander Kurtz
Package: libpango1.0-0
Version: 1.28.3-4
Severity: serious
Justification: Fails to install

Hi,

upgrading libpango1.0-0 from 1.28.3-1+squeeze2 (Squeeze) to 1.28.3-4
(experimental) fails:

$ sudo apt-get install libpango1.0-0=1.28.3-4
Reading package lists... Done
Building dependency tree   
Reading state information... Done
The following packages were automatically installed and are no longer 
required:
  libxcb-render-util0 libpango1.0-common
Use 'apt-get autoremove' to remove them.
Suggested packages:
  ttf-japanese-gothic ttf-japanese-mincho ttf-thryomanes ttf-baekmuk 
ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp ttf-arphic-gkai00mp ttf-arphic-bkai00mp
The following packages will be upgraded:
  libpango1.0-0
1 upgraded, 0 newly installed, 0 to remove and 847 not upgraded.
34 not fully installed or removed.
Need to get 0 B/409 kB of archives.
After this operation, 131 kB of additional disk space will be used.
(Reading database ... 207505 files and directories currently installed.)
Preparing to replace libpango1.0-0 1.28.3-1+squeeze2 (using 
.../libpango1.0-0_1.28.3-4_i386.deb) ...
rm: cannot remove `/usr/share/doc/libpango1.0-0': Is a directory
dpkg: error processing 
/var/cache/apt/archives/libpango1.0-0_1.28.3-4_i386.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
configured to not write apport reports
  Errors were encountered while 
processing:
 /var/cache/apt/archives/libpango1.0-0_1.28.3-4_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
$

Looking at the pre-installation script reveals this:

$ cat libpango1.0-0_1.28.3-4_amd64/DEBIAN/preinst 
#!/bin/sh
set -e

if [ $1 = upgrade ]  dpkg --compare-versions $2 lt-nl 1.28.3-4; 
then
rm -f /usr/share/doc/libpango1.0-0
fi


$

It seems that rm is missing the -r option. After manually removing the
directory everything works fine:

$ sudo rmdir /usr/share/doc/libpango1.0-0
$

Best regards

Alexander Kurtz


signature.asc
Description: This is a digitally signed message part


Bug#616577: Upgrading libpango1.0-0 fails: rm: cannot remove `/usr/share/doc/libpango1.0-0': Is a directory

2011-03-05 Thread Alexander Kurtz
I investigated this further after realizing that on my other machine
`/usr/share/doc/libpango1.0-0' is a symlink to `libpango1.0-common'.

I first tried to re-install the old versions:

$ sudo dpkg -i libpango1.0-0_1.28.3-1+squeeze2_i386.deb 
libpango1.0-common_1.28.3-1+squeeze2_all.deb 
[...]
$ file /usr/share/doc/libpango*
/usr/share/doc/libpango-perl:  directory
/usr/share/doc/libpango1.0-0:  directory
/usr/share/doc/libpango1.0-common: directory
/usr/share/doc/libpangomm-1.4-1:   directory
$

I then removed the directory and re-installed:



signature.asc
Description: This is a digitally signed message part


Bug#616577: Upgrading libpango1.0-0 fails: rm: cannot remove `/usr/share/doc/libpango1.0-0': Is a directory

2011-03-05 Thread Alexander Kurtz
[ My last mail got cropped for some reason, here it is again ]

I investigated this further after realizing that on my other machine
`/usr/share/doc/libpango1.0-0' is a symlink to `libpango1.0-common'.

I first tried to re-install the old versions:

$ sudo dpkg -i libpango1.0-0_1.28.3-1+squeeze2_i386.deb 
libpango1.0-common_1.28.3-1+squeeze2_all.deb 
[...]
$ file /usr/share/doc/libpango*
/usr/share/doc/libpango-perl:  directory
/usr/share/doc/libpango1.0-0:  directory
/usr/share/doc/libpango1.0-common: directory
/usr/share/doc/libpangomm-1.4-1:   directory
$

I then removed the directory and re-installed:

$ sudo rmdir -v /usr/share/doc/libpango1.0-0
rmdir: removing directory, `/usr/share/doc/libpango1.0-0'
$ sudo dpkg -i libpango1.0-0_1.28.3-1+squeeze2_i386.deb 
libpango1.0-common_1.28.3-1+squeeze2_all.deb 
[...]
$ file /usr/share/doc/libpango*
/usr/share/doc/libpango-perl:  directory
/usr/share/doc/libpango1.0-0:  symbolic link to `libpango1.0-common'
/usr/share/doc/libpango1.0-common: directory
/usr/share/doc/libpangomm-1.4-1:   directory
$

I then removed the symlink, created a directory and re-installed:

$ sudo rm -v /usr/share/doc/libpango1.0-0 
removed `/usr/share/doc/libpango1.0-0'
$ sudo mkdir -v /usr/share/doc/libpango1.0-0
mkdir: created directory `/usr/share/doc/libpango1.0-0'
$ sudo dpkg -i libpango1.0-0_1.28.3-1+squeeze2_i386.deb 
libpango1.0-common_1.28.3-1+squeeze2_all.deb 
[...]
$ sudo file /usr/share/doc/libpango* 
/usr/share/doc/libpango-perl:  directory
/usr/share/doc/libpango1.0-0:  directory
/usr/share/doc/libpango1.0-common: directory
/usr/share/doc/libpangomm-1.4-1:   directory
$ 

It seems like dpkg won't overwrite a directory with a symlink (bug?) so
if /usr/share/doc/libpango1.0-0 has ever been a directory on your
machine, installing the latest libpango will fail.

Best regards

Alexander Kurtz


signature.asc
Description: This is a digitally signed message part