Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685474 - net-im/telegram-desktop-bin installs /usr/lib/telegram-desktop-bin/Telegram outside LIBDIR
Summary: net-im/telegram-desktop-bin installs /usr/lib/telegram-desktop-bin/Telegram o...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Henning Schild
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-09 17:27 UTC by Michael Egger
Modified: 2019-05-10 21:16 UTC (History)
3 users (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 Michael Egger 2019-05-09 17:27:46 UTC
I upgraded to the 17.1 dev profile and noticed net-im/telegram-desktop-bin-1.6.7 installs to /usr/lib instead of the preferred /usr/lib64. Telegram still works fine though.

$ file /usr/lib/telegram-desktop-bin/Telegram 
/usr/lib/telegram-desktop-bin/Telegram: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=52f7d3235ff06b783db1432527790a15aad9fb9b, stripped

$ emerge --info net-im/telegram-desktop-bin
net-im/telegram-desktop-bin-1.6.7::gentoo was built with the following:
USE="" ABI_X86="(64)"
Comment 1 Henning Schild 2019-05-10 19:13:36 UTC
Well the file is actually a stand-alone binary, which only takes a few shared libraries. So from a functional point of view it does not matter much where you place it.
On my 17.0 profile /usr/lib is a symlink to /usr/lib64 so the file actually resides in /usr/lib64/. I assume that on i386 i would see a symlink to /usr/lib32 or there would not be another variant. So the ebuild works without making a difference.
I do not know whether 17.1 would work differently. If so the ebuild could probably switch the destination depending on the arch.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-05-10 19:32:26 UTC
/usr/lib64 is not 'preferred'.  /usr/lib is the correct place for stand-alone software packages.
Comment 3 Henning Schild 2019-05-10 21:14:09 UTC
Just to clarify the WONTFIX, things did not change with profile 17.1? So the ebuild is fine and /usr/lib will always take care of arch difference (i.e with symlinks) as i expected for 17.0?
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-05-10 21:16:57 UTC
There's no arch difference since you will be only installing one version of it.