Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 496726

Summary: app-editors/gvim-7.4.x improperly installs gvim.desktop (domenu should be newmenu)
Product: Gentoo Linux Reporter: dynamotwain
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description dynamotwain 2014-01-02 05:46:07 UTC
The 7.4.x gvim ebuilds attempt to install gvim.desktop with the command:
`domenu "${FILESDIR}"/gvim.desktop-r2 gvim.desktop`

Since 'domenu' accepts a list of files to install and not a destination filename, the above command is effectively translated into
    insinto /usr/share/applications
    doins "${FILESDIR}"/gvim.desktop-r2
    doins "gvim.desktop"
which installs the .deskop file with a 'desktop-r2' extension, causing it to be ignored by gnome-panel, alacarte, and probably other applications.

For the menu item to actuall show up in XDG-aware applications, the menu entry must be installed with 'newmenu' for the file to be renamed as expected.

-    domenu "${FILESDIR}"/gvim.desktop-r2 gvim.desktop
+    newmenu "${FILESDIR}"/gvim.desktop-r2 gvim.desktop
Comment 1 Tim Harder gentoo-dev 2014-01-02 06:01:04 UTC
Sync your portage tree. That appears to have been fixed on the 23rd of December.