Based on irc conversation with hasufell the use of doicon and make_desktop_entry are not quite correct in the ebuild, and the failure is the result of more error checking. <hasufell> rich0: it should be fixed like this: "newicon -s 32 "$S/development/Win32/packaging/icons/lyx_32x32.png" ${PN}.png" <hasufell> make_desktop_entry ${PN} "LyX" "${PN}.png" "Office" "MimeType=application/x-lyx;" <hasufell> and use gnome2-utils to update icon cache on top of that Details on error itself: * lyx is not a valid file/directory! * ERROR: app-office/lyx-2.0.3 failed (install phase): * (no error message) * * Call stack: * ebuild.sh, line 85: Called src_install * environment, line 5374: Called doicon 'lyx' '/var/tmp/portage/app-office/lyx-2.0.3/work/lyx-2.0.3/development/Win32/packaging/icons/lyx_32x32.png' * environment, line 1316: Called _iconins 'doicon' 'lyx' '/var/tmp/portage/app-office/lyx-2.0.3/work/lyx-2.0.3/development/Win32/packaging/icons/lyx_32x32.png' * environment, line 561: Called die * The specific snippet of code: * fi ) || die Logs/etc will be attached...
Created attachment 314581 [details] Build log
Created attachment 314583 [details] Environment
Created attachment 314585 [details] emerge --info
Created attachment 314587 [details] emerge -p
make_desktop_entry ${PN} "LyX" "${PN}" "Office" "MimeType=application/x-lyx;" (without the .png) :)
Also, consider to update the icon cache via gnome2-utils eclass when installing into /usr/share/icons (via the "-s" switch). However, the default behavior for doicon/newicon has not changed except the new error handling.
> newicon -s 32 "$S/development/Win32/packaging/icons/lyx_32x32.png" ${PN}.png > make_desktop_entry ${PN} "LyX" "${PN}" "Office" "MimeType=application/x-lyx;" you clearly know better than me, so feel free to commit this change to the ebuild (otherwise it will take some time to process this with usual ping pong with alexis...)
FYI - I tested exactly those changes and they appear to work fine (at least on KDE). Not sure I'd be personally comfortable with committing them without reading up on eutils a bit more - I don't deal with many packages that actually supply icons.
ok. it would help if you attach patch which works for you. thanks.
Created attachment 314595 [details, diff] patch Patch attached - works for me.
2.0.4 should be out in a few weeks and i will put it in there.
(In reply to comment #11) > 2.0.4 should be out in a few weeks and i will put it in there. Just keep in mind that the current stable version on most archs is broken, and will remain broken until 2.0.4 is stabilized if you go that route. That basically means that it won't build for around two months...
(In reply to comment #12) > (In reply to comment #11) > > 2.0.4 should be out in a few weeks and i will put it in there. > > Just keep in mind that the current stable version on most archs is broken, > and will remain broken until 2.0.4 is stabilized if you go that route. That > basically means that it won't build for around two months... Yeah! I just hit this due to a boost upgrade (1.48.0-r2 was stabilized, emerged, old versions removed, revdep-rebuild wants but fails to rebuild lyx) and Lyx is currently broken on my machine... So I'd expect more users to be =[ unless this is fixed very soon. Please fix this.
Ok.
applied, thanks