> My idea (please note, this is only a first idea and there may be some > difficulties with which should be fixed) is, that the new (FHS aware) > debhelper could add something in postinst, which creates a symlink > /usr/doc/<package> pointing to /usr/share/doc/<package> if (and only > if) there is no special "flag" file (a conffile) which tells postinst, > that this system is fully FHS compliant. In addition to this postrm > should remove this symlink if it exists.
(Copying from previous message in this thread =/ ) Why dont't we simply modify debhelper and similar tools to add this to postinst of packages: (only if upgrading from a pre-FHS version) if [ $1 = configure -a { $2 is a previous version than 1.2 } ]; then ln -sf ../share/$package /usr/doc/$package fi And it would be just adding a dh_doc_hack 1.2 ( <- first version complying with FHS) to debian rules... This would mean that the symlinks would only be created the first time the user replaces a FSSTND package with a FHS package. Later the user could always remove that script. I propose too that new (initialy released complying with FHS) packages do a: if [ -d /usr/doc ]; then ln -sf ../share/doc/$package /usr/doc/$package ; fi So a user would be able to just rm -rf /usr/doc sometime in the future...