Okay, I'm trying to rev a package with some icons (djvulibre) and two
different bodies have hacked in two different mechanisms.

 Ubuntu added a dh_iconcache call to debian/rules.
 But according to a blog entry about this, I shouldn't expect
 dh_iconcache in debian debhelper anytime soon, so that's not a
 solution for me.

 The upstream author added snippets to .postinst:

        # Register menu entries (non debian menus)
        if [ "$1" = "configure" ] && 
           [ -x /usr/share/djvu/djview4/desktop/register-djview-menu ] ; then
          /usr/share/djvu/djview4/desktop/register-djview-menu install
        fi

 and .prerm:

        # XDG menu entries
        if [ "$1" = "remove" ] && 
           [ -x /usr/share/djvu/djview4/desktop/register-djview-menu ] ; then
          /usr/share/djvu/djview4/desktop/register-djview-menu uninstall
        fi

 and includes the register-djview-menu script, which calls
 xdg-icon-resource like this:

        case "$1" in
        install)
           "$xdg_icon_resource" install --context apps \
               --size 32 ./hi32-djview4.xpm djvulibre-djview4
           "$xdg_desktop_menu" install ./djvulibre-djview4.desktop
           ;;
        uninstall)
           "$xdg_icon_resource" uninstall --context apps \
               --size 32 djvulibre-djview4
           "$xdg_desktop_menu" uninstall djvulibre-djview4.desktop
           ;;

 which (a) generates a lintian complaint about the missing icon file,
 since the icon file isn't actually in its home location in the .deb,
 (b) slaps a file into a directory in /usr/... at install time,
 which I consider somewhat broken, thereby (c) breaking things like:
   dpkg --search /usr/share/icons/hicolor/32x32/apps/djvulibre-djview4.xpm

So let me beg for an answer from the debhelper packaging oracle: given
the current situation, what should I do?  What is "the right thing"?
Not in some idyllic future when we have everything worked out, and
have taught the Ubuntu people to talk to their betters before
embarking on changes that make sharing code more difficult, but today!

                                        --Barak.
--
Barak A. Pearlmutter
 Hamilton Institute & Dept Comp Sci, NUI Maynooth, Co. Kildare, Ireland
 http://www.bcl.hamilton.ie/~barak/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to