Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 837173 - media-gfx/freecad-0.19.4: misses its .desktop menu entry
Summary: media-gfx/freecad-0.19.4: misses its .desktop menu entry
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal minor (vote)
Assignee: Bernd
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-04-07 20:19 UTC by fabalthazar
Modified: 2022-04-18 11:35 UTC (History)
1 user (show)

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 fabalthazar 2022-04-07 20:19:53 UTC
Installation of media-gfx/freecad-0.19.4 makes no visible menu entry in Xfce4 applications menu.

After a quick look at the filesystem, no FreeCAD related .desktop file exists in /usr/share/applications/.

Such a file exists in other distributions (https://fr.rpmfind.net/linux/RPM/openmandriva/4.3/x86_64/unsupported/testing/freecad-0.19.4-0.20220205.6.x86_64.html: /usr/share/applications/freecad.desktop) which suggests a miss.

Reproducible: Always

Steps to Reproduce:
1. emerge media-gfx/freecad-0.19.4
2. (Optionally restarts the computer)
3. Search for FreeCAD in the applications menu.
Actual Results:  
No FreeCAD menu entry.

Expected Results:  
FreeCAD menu entry visible.

Please note that I have tested it in an Xfce4 desktop environment only.
Workaround: launch FreeCAD from the terminal.
Comment 1 fabalthazar 2022-04-07 20:25:13 UTC
$ emerge --info media-gfx/freecad
Portage 3.0.30 (python 3.9.9-final-0, default/linux/amd64/17.1/desktop/systemd, gcc-11.2.1, glibc-2.34-r10, 5.15.26-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.26-gentoo-x86_64-Intel-R-_Core-TM-_i5-2410M_CPU_@_2.30GHz-with-glibc2.34
KiB Mem:     8057772 total,   2503164 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Wed, 06 Apr 2022 16:30:01 +0000
Head commit of repository gentoo: b53d7df0ea51522bb025a519ae2452a18693d1bb
Timestamp of repository guru: Wed, 06 Apr 2022 11:04:20 +0000
Head commit of repository guru: 0d58dc6861e3430b837c3990dd4b3f4541014b93

sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           2.7.18_p14::gentoo, 3.9.9-r1::gentoo, 3.10.2_p1::gentoo
dev-lang/rust:             1.58.1::gentoo
dev-util/cmake:            3.22.2::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.7-r3::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          249.11::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.4::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           13.0.1::gentoo
sys-devel/gcc:             11.2.1_p20220115::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/lld:             13.0.1::gentoo
sys-devel/llvm:            13.0.1::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r10::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo

crossdev
    location: /var/db/repos/crossdev
    masters: gentoo
    priority: 10

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://ftp.free.fr/mirrors/ftp.gentoo.org/ https://mirrors.ircam.fr/pub/gentoo-distfiles/ rsync://mirrors.ircam.fr/pub/gentoo-distfiles/ http://gentoo.modulix.net/gentoo/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr fr_FR en en_US"
MAKEOPTS="-j4"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 avx branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg lcms libglvnd libnotify libtirpc mad mmx mmxext mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit popcnt ppds pulseaudio qt5 readline sdl seccomp spell split-usr sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput synaptics" KERNEL="linux" L10N="fr fr-FR en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="intel i965 nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

media-gfx/freecad-0.19.4::gentoo was built with the following:
USE="addonmgr drawing fem idf image inspection material openscad part-design path points raytracing robot show surface techdraw tux -cloud -debug -headless -pcl -plot -ship -test" ABI_X86="(64)" PYTHON_SINGLE_TARGET="python3_9 -python3_8"
FEATURES="xattr unmerge-orphans distlocks usersync binpkg-dostrip network-sandbox preserve-libs merge-sync ebuild-locks news sandbox sfperms userfetch ipc-sandbox strict protect-owned binpkg-logs multilib-strict qa-unresolved-soname-deps buildpkg-live binpkg-docompress assume-digests parallel-fetch unmerge-logs config-protect-if-modified userpriv unknown-features-warn fixlafiles usersandbox pid-sandbox"
Comment 2 Bernd 2022-04-07 22:31:34 UTC
The desktop file is probably named org.freecadweb.FreeCAD.desktop. Could you please check whether you have that file?
Comment 3 fabalthazar 2022-04-08 09:05:25 UTC
I confirm that /usr/lib64/freecad/share/applications/org.freecadweb.FreeCAD.desktop is delivered by the installation.

But a few hints make me think another desktop entry is missing: 
1. freedesktop specification mentions a standard path for system-wide storage in /usr/local/share/applications/ or /usr/share/applications/ (c.f. XDG_DATA_DIRS env variable) https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#desktop-file-id;
2. All my applications visible in the apps menu have an entry in /usr/share/applications/;
3. Other Linux distributions both have /usr/lib64/freecad/share/applications/org.freecadweb.FreeCAD.desktop and /usr/share/applications/freecad.desktop delivered.

/usr/share/applications/freecad.desktop is probably a copy or symlink to /usr/lib64/freecad/share/applications/org.freecadweb.FreeCAD.desktop? Created at end of installing?
Comment 4 Bernd 2022-04-08 10:15:52 UTC
I wonder, because I have the file in /usr/share/applications, but I have the live ebuild installed. The complete share folder within /usr/lib64/freecad should get moved to /usr in src_install. Need to check the ebuild for 0.19.4 if this is not going to happen.
Comment 5 fabalthazar 2022-04-08 20:07:12 UTC
9999 ebuild has the following line in src_install() while 0.19.4 does not:

mv "${ED}"/usr/$(get_libdir)/${PN}/share/* "${ED}"/usr/share || die "failed to move shared resources"

Which may explain the issue.
Comment 6 Bernd 2022-04-09 10:36:48 UTC
I now remember why the line isn't in 0.19.4. For whatever reason, moving the files caused an error, when I bumped the package, so I removed the line and later probably forgot to further investigate and place it in again.
It now seems to work however, at least on the test I ran.
Comment 7 Larry the Git Cow gentoo-dev 2022-04-18 11:35:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0dae94fc4b20de9644ee5e2ff1418aa58bb29384

commit 0dae94fc4b20de9644ee5e2ff1418aa58bb29384
Author:     Bernd Waibel <waebbl-gentoo@posteo.net>
AuthorDate: 2022-04-09 10:32:02 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2022-04-18 11:35:10 +0000

    media-gfx/freecad: fix install location of shared files
    
    Shared files have been installed into /usr/$(get_libdir)/freecad/share
    instead of /usr/share. This patch fixes this.
    
    Closes: https://bugs.gentoo.org/837173
    Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
    Closes: https://github.com/gentoo/gentoo/pull/24962
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 media-gfx/freecad/{freecad-0.19.4.ebuild => freecad-0.19.4-r1.ebuild} | 1 +
 1 file changed, 1 insertion(+)