Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 496726 - app-editors/gvim-7.4.x improperly installs gvim.desktop (domenu should be newmenu)
Summary: app-editors/gvim-7.4.x improperly installs gvim.desktop (domenu should be new...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-02 05:46 UTC by dynamotwain
Modified: 2014-01-02 06:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.