FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Development

 
 
LinkBack Thread Tools
 
Old 01-04-2009, 01:24 PM
"Matthew East"
 
Default packaging bug in ubuntu-docs

Hi there,

I need some help with a bug which has appeared in ubuntu-docs on some
peoples' systems which I can't reproduce.

It is https://bugs.launchpad.net/ubuntu/+source/ubuntu-docs/+bug/303578

It is caused by the absence of the symbolic link at
/usr/share/gnome/help/libs. On my system the symbolic link is present:

matt@kalliope:~$ ls /usr/share/gnome/help/libs -al
lrwxrwxrwx 1 root root 22 2008-09-24 08:43 /usr/share/gnome/help/libs
-> ../../ubuntu-docs/libs

The link is supplied by ubuntu-docs in the file
debian/ubuntu-docs.links in the source package.

Can anyone shed any light on why this link may be going missing on
some systems? I don't have enough knowledge of the packaging system to
debug the issue.

Thanks in advance.

--
Matthew East
http://www.mdke.org
gnupg pub 1024D/0E6B06FF

--
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel
 
Old 01-04-2009, 02:37 PM
Luca Falavigna
 
Default packaging bug in ubuntu-docs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matthew East ha scritto:
> The link is supplied by ubuntu-docs in the file
> debian/ubuntu-docs.links in the source package.

On my system (Jaunty), /usr/share/gnome/help/libs is a directory.

This is probably because debian/rules tries to create that directory
while installing documents with commands included below the comment
"Install the documents; skip documents which are less than 75% translated"

In particular, these lines seem responsible to actually create the above directory:
if [ -e $$doc/$$lang/$$doc.xml ]; then
mkdir -p debian/ubuntu-docs/usr/share/gnome/help/$$doc/$$lang/;
cp $$doc/$$lang/*xml debian/ubuntu-docs/usr/share/gnome/help/$$doc/$$lang/;
fi

- --
. '`. Luca Falavigna
: :' : Ubuntu MOTU Developer
`. `'` Debian Maintainer
`- GPG Key: 0x86BC2A50
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAklg16UACgkQnXjXEYa8KlBOGwCgsO3y+VFPeS BO7h2vOixMIOPl
ojwAnRgAca8eK5FpdXf56yfv5EojUD5N
=Mo/i
-----END PGP SIGNATURE-----

--
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel
 
Old 01-18-2009, 08:37 PM
Chris Coulson
 
Default packaging bug in ubuntu-docs

On Sun, 2009-01-04 at 14:24 +0000, Matthew East wrote:
> Hi there,
>
> I need some help with a bug which has appeared in ubuntu-docs on some
> peoples' systems which I can't reproduce.
>
> It is https://bugs.launchpad.net/ubuntu/+source/ubuntu-docs/+bug/303578
>
> It is caused by the absence of the symbolic link at
> /usr/share/gnome/help/libs. On my system the symbolic link is present:
>
> matt@kalliope:~$ ls /usr/share/gnome/help/libs -al
> lrwxrwxrwx 1 root root 22 2008-09-24 08:43 /usr/share/gnome/help/libs
> -> ../../ubuntu-docs/libs
>
> The link is supplied by ubuntu-docs in the file
> debian/ubuntu-docs.links in the source package.
>
> Can anyone shed any light on why this link may be going missing on
> some systems? I don't have enough knowledge of the packaging system to
> debug the issue.
>
> Thanks in advance.
>
> --
> Matthew East
> http://www.mdke.org
> gnupg pub 1024D/0E6B06FF
>

Hi Matthew,

I've just done a little debugging of this on my Intrepid machine. I
purged ubuntu-docs from it, and then installed the Hardy version, which
ships /usr/share/gnome/help/libs as a directory. Then I upgraded to the
Intrepid version of ubuntu-docs, which ships /usr/share/gnome/help/libs
as a symlink. During the upgrade, the folder that was shipped with Hardy
package didn't get overwritten with the symlink that ships with the
Intrepid package, leading to the bug described (empty folder).

So, this is breaking only for people upgrading from Hardy to Intrepid,
but is okay on clean installs.

Loc Minier had already suggested this might be the case, but this just
confirms it.

Maybe this is actually a dpkg bug?

Regards
Chris Coulson
--
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel
 
Old 01-20-2009, 06:04 PM
Loc Minier
 
Default packaging bug in ubuntu-docs

On Sun, Jan 18, 2009, Chris Coulson wrote:
> I've just done a little debugging of this on my Intrepid machine. I
> purged ubuntu-docs from it, and then installed the Hardy version, which
> ships /usr/share/gnome/help/libs as a directory. Then I upgraded to the
> Intrepid version of ubuntu-docs, which ships /usr/share/gnome/help/libs
> as a symlink. During the upgrade, the folder that was shipped with Hardy
> package didn't get overwritten with the symlink that ships with the
> Intrepid package, leading to the bug described (empty folder).

So what needs to be done here is adding a preinst to the package
checking for what /usr/share/gnome/help/libs is, and removing it if
needs be; probably adding a debian/ubuntu-docs.preinst as follow is
enough:
#!/bin/sh

set -e

if [ -d /usr/share/gnome/help/libs ]; then
rm -rf /usr/share/gnome/help/libs
fi

#DEBHELPER#

> So, this is breaking only for people upgrading from Hardy to Intrepid,
> but is okay on clean installs.

(So it's bug introduced in the intrepid cycle and might warrant a SRU
to intrepid.)

> Maybe this is actually a dpkg bug?

It's a dpkg "feature" which I think theoritically allows you to e.g.
symlink /usr to /mountpoint-with-lots-of-space.

--
Loc Minier

--
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel
 

Thread Tools




All times are GMT. The time now is 04:21 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org