Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 883141 - app-emulation/crossover-bin license problems
Summary: app-emulation/crossover-bin license problems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Pacho Ramos
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-26 11:22 UTC by Petr Šourek
Modified: 2022-12-05 12:16 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge.info.txt,10.12 KB, text/plain)
2022-11-26 11:22 UTC, Petr Šourek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Šourek 2022-11-26 11:22:32 UTC
Created attachment 837067 [details]
emerge --info

Hello,

there is a problem with the ebuild of app-emulation/crossover-bin regarding creation of menuitem. After installation it creates link under /usr/share/applications, but inside it creates wrong Exec command. It adds // at the begining, e.g.

Exec=//opt/cxoffice/bin/crossover %u

But this is problematic. If you have licensed crossover, this double slash prevents crossover to find correct directory with the license and the crossover always nags about trial has ended.

After editing to this:
Exec=/opt/cxoffice/bin/crossover %u

It works.

I see some seds inside ebuild, but well I am not skilled enough to look into it and say this is the problem. Only on first sight it might be this one on line 195, but I am not sure how to repair it since I am not familiar with ${ED} variable.
    sed -i -e "s:${ED}:/:" \
        "${ED}/usr/share/applications/"*"CrossOver.desktop" \
        || die "Could not fix paths of *.desktop files"


Can you please repair it?
Thanks,
Regards,
Petr Sourek
Comment 1 Larry the Git Cow gentoo-dev 2022-12-04 14:50:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e122c4d24b8ec3c15365fd65ef436b4f4eecf08

commit 9e122c4d24b8ec3c15365fd65ef436b4f4eecf08
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2022-12-04 10:04:49 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2022-12-04 14:49:08 +0000

    app-emulation/crossover-bin: add 22.0.1
    
    And fix sedding with ED handling in latest EAPIs
    
    Closes: https://bugs.gentoo.org/883141
    Thanks-to: Petr Šourek
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 app-emulation/crossover-bin/Manifest               |   1 +
 .../crossover-bin/crossover-bin-22.0.1.ebuild      | 219 +++++++++++++++++++++
 2 files changed, 220 insertions(+)
Comment 2 Petr Šourek 2022-12-05 12:16:35 UTC
I had uninstalled 22.0.0, checked if it removed the shortcut. Emerged app-emulation/crossover-bin in version 22.0.1 and the shortcut is correct.

Thanks for quick solution.
Regards,
Petr Sourek