Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 778290 - net-im/telegram-desktop-2.7.1: fails to build due to missing glibmm
Summary: net-im/telegram-desktop-2.7.1: fails to build due to missing glibmm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Esteve Varela Colominas
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-03-26 00:50 UTC by Petr Šabata
Modified: 2021-03-26 21:30 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,5.62 KB, text/plain)
2021-03-26 00:52 UTC, Petr Šabata
Details
CMakeOutput.log (CMakeOutput.log,87.37 KB, text/plain)
2021-03-26 00:53 UTC, Petr Šabata
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Šabata 2021-03-26 00:50:33 UTC
The fresh net-im/telegram-desktop-2.7.1 fails to build for me, exiting during the configure phase on missing glibmm.  Manually installing the available versions of dev-cpp/glibmm does not resolve the situation, unfortunately.

Reproducible: Always

Steps to Reproduce:
1. emerge '=net-im/telegram-desktop-2.7.1'
Actual Results:  
The build fails during the configure phase.

Expected Results:  
The package builds.

[ebuild     U  ] net-im/telegram-desktop-2.7.1::gentoo [2.4.11::gentoo] USE="X dbus gtk hunspell pulseaudio spell -enchant (-libressl) -wayland (-lto%*) (-webrtc%)"

Portage 3.0.17 (python 3.8.8-final-0, default/linux/amd64/17.1, gcc-10.2.0, glibc-2.32-r8, 5.11.10-gentoo x86_64)
=================================================================
System uname: Linux-5.11.10-gentoo-x86_64-Intel-R-_Core-TM-_i7-8565U_CPU_@_1.80GHz-with-glibc2.2.5
KiB Mem:    16013648 total,  11793892 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Fri, 26 Mar 2021 00:35:40 +0000
Head commit of repository gentoo: 7b89831887496f3f835620eaf6919802a63a0f49

Timestamp of repository guru: Thu, 25 Mar 2021 14:20:33 +0000
Head commit of repository guru: 37bbd9213dc25e0f09d300878fa922f822fba207

sh dash 0.5.11.3-r1
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.1_p4::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          3.8.8::gentoo, 3.9.2::gentoo
dev-util/cmake:           3.20.0::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.21::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.2.0-r5::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.11::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000

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

local
    location: /var/db/repos/local
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -Ofast -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -falign-functions=32 -pipe -flto=auto -fuse-linker-plugin"
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 -Ofast -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -falign-functions=32 -pipe -flto=auto -fuse-linker-plugin"
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 -Ofast -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -falign-functions=32 -pipe -flto=auto -fuse-linker-plugin"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nodoc noinfo parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms skiprocheck strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -Ofast -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -falign-functions=32 -pipe -flto=auto -fuse-linker-plugin"
GENTOO_MIRRORS="https://mirror.dkm.cz/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -march=native -Ofast -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -falign-functions=32 -pipe -flto=auto -fuse-linker-plugin -Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,--hash-style=gnu -zcombreloc"
MAKEOPTS="-j16 -l8"
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"
USE="X acl alsa amd64 apng berkdb branding bzip2 cairo caps cjk cli crypt cups dbus dri dri3 elogind exif filecaps flac gdbm gif graphite gssapi gzip harfbuzz heif ibus iconv icu inotify ipv6 ithreads jbig jemalloc jpeg jpeg2k kerberos libglvnd libtirpc lto lua luajit lz4 lzma lzo minizip mp3 multilib ncurses nls nptl offensive ogg oniguruma opencl opengl openmp opus pam pcre pcre16 pcre32 pgo pkcs11 png postproc pulseaudio readline seccomp split-usr sqlite ssl tcpd text tfo theora threads tiff truetype unicode vaapi vim-syntax vorbis vulkan webp xattr zlib zsh-completion zstd" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="iris" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Petr Šabata 2021-03-26 00:52:01 UTC
Created attachment 693795 [details]
build.log
Comment 2 Petr Šabata 2021-03-26 00:53:28 UTC
Created attachment 693798 [details]
CMakeOutput.log
Comment 3 Esteve Varela Colominas 2021-03-26 09:53:49 UTC
Ah, apparently I missed this dependency in the source because it's called external_glibmm, and not external_glib.

That said, it should work after installing glibmm. Can you check if the file /usr/lib64/pkgconfig/glibmm-2.4.pc exists on your system? If not, is there any similar file? This file should exist after installing dev-cpp/glibmm, and as a result make the error you're encountering go away.
Comment 4 Petr Šabata 2021-03-26 10:12:15 UTC
(In reply to Esteve Varela Colominas from comment #3)
> Ah, apparently I missed this dependency in the source because it's called
> external_glibmm, and not external_glib.
> 
> That said, it should work after installing glibmm. Can you check if the file
> /usr/lib64/pkgconfig/glibmm-2.4.pc exists on your system? If not, is there
> any similar file? This file should exist after installing dev-cpp/glibmm,
> and as a result make the error you're encountering go away.

Okay, as it turns out, dev-cpp/glibmm is slotted and for a good reason.  When I installed 2.68.0 (the default version Portage picked), I only had glibmm-2.68.pc installed.

Installing glibmm-2.64.2 (which goes into a different slot) solves this issue as it provides glibmm-2.4.pc.

The slots are named "2" for 2.4, and "2.68" for 2.68.  You may want to add a dependency on the first one then.
Comment 5 Esteve Varela Colominas 2021-03-26 11:06:12 UTC
Thanks for looking into this! I'll fix it in a bit.
Comment 6 Larry the Git Cow gentoo-dev 2021-03-26 21:30:31 UTC
The bug has been closed via the following commit(s):

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

commit c8e293330aba5caa1f562edebe9ec8b38ec353c7
Author:     Esteve Varela Colominas <esteve.varela@gmail.com>
AuthorDate: 2021-03-26 11:06:52 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2021-03-26 21:30:02 +0000

    net-im/telegram-desktop: Add missing glibmm dependency
    
    Thanks-to: Petr Šabata <contyk@contyk.dev>
    Closes: https://bugs.gentoo.org/778290
    Signed-off-by: Esteve Varela Colominas <esteve.varela@gmail.com>
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 .../{telegram-desktop-2.7.1.ebuild => telegram-desktop-2.7.1-r1.ebuild}  | 1 +
 1 file changed, 1 insertion(+)