[Debian GNUstep maintainers] Re: Moving Resources to /usr/share properly

Hubert Chan uhoreg at debian.org
Wed Nov 15 21:43:02 CET 2006


On Wed, 15 Nov 2006 15:43:43 +0200, Yavor Doganov said:

> This doesn't work as expected, in fact I've experienced reincarnations
> of #364143, but note that I didn't have any custom files installed
> there.  In the case of lusernet.app, this is an important bug (missing
> app icon and translations), for apps with .gorm files it is a grave
> one.

In general, for already existing packages, I (unofficially) recommend
only moving the Resources directory when the Resources directory is
large, or if someone complains about Resources being under /usr/lib.

Since the bug only affects upgrading, moving the Resources directory for
new packages shouldn't hurt anything.

In the case of the packages that already implement Resources moving, you
may as well keep doing that, and add the preinst snippet to ease
upgrades.

> Hubert's preinst script for gnumail.app deals with the problem
> perfectly, and also with the extremely rare case when there are user's
> files to move.  I'm attaching it here for your review.  In case there
> are no objections, I plan to upload lusernet.app, rssreader.app and
> projectmanager.app with such a preinst script, shamelessly "stolen"
> form Hubert.

The only problem with the preinst snippet that I'm aware of is that
AFAICT any old files that are in the Resources directory won't get
removed if they are no longer in the new package.  But this probably
doesn't affect most packages.

(And for those who are wondering, you still should use the debian/rules
snippet in addition to the preinst snippet.  The preinst snippet isn't a
replacement for the debian/rules snippet.)

> This issue affects only upgrades, so I'll remove the script some time
> after Etch is released.  Accordingly, packages that will do this in
> etch+1 will have to keep this script until etch+2.

Yup.  That's a good plan.

-- 
Hubert Chan <uhoreg at debian.org> -- Jabber: hubert at uhoreg.ca
PGP/GnuPG key: 1024D/124B61FA         http://www.uhoreg.ca/
Fingerprint: 96C5 012F 5F74 A5F7 1FF7  5291 AF29 C719 124B 61FA




More information about the pkg-GNUstep-maintainers mailing list