Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 688426 - dev-util/electron-2.0.17-r1 - ERROR at //third_party/protobuf/proto_library.gni:346:15: Only source, header, and object files belong in the sources of a static_library. //out/Release/pyproto/google_apis/gcm/protocol/mcs_pb2.py is not one of the valid type
Summary: dev-util/electron-2.0.17-r1 - ERROR at //third_party/protobuf/proto_library.g...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Elvis Pranskevichus
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2019-06-21 10:11 UTC by Leonid Kopylov
Modified: 2019-08-02 06:24 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,18.53 KB, text/plain)
2019-06-21 10:12 UTC, Leonid Kopylov
Details
build.log.xz (build.log.xz,212.39 KB, text/plain)
2019-06-21 11:15 UTC, Leonid Kopylov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Kopylov 2019-06-21 10:11:32 UTC
# emerge -pqv '=dev-util/electron-2.0.17-r1::gentoo'
[ebuild  N    ] dev-util/electron-2.0.17-r1  USE="cups gconf gnome-keyring kerberos proprietary-codecs pulseaudio system-ffmpeg tcmalloc -custom-cflags -lto (-neon) -pic (-selinux) -system-ssl -test" L10N="he ru -am -ar -bg -bn -ca -cs -da -de -el -en-GB -es -es-419 -et -fa -fi -fil -fr -gu -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -sk -sl -sr -sv -sw -ta -te -th -tr -uk -vi -zh-CN -zh-TW"

# emerge --info '=dev-util/electron-2.0.17-r1::gentoo'
Portage 2.3.67 (python 3.6.8-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-9.1.0, glibc-2.29-r2, 5.1.12-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.1.12-gentoo-x86_64-Intel-R-_Core-TM-_i7-6700_CPU_@_3.40GHz-with-gentoo-2.6
KiB Mem:     8170916 total,   1891524 free
KiB Swap:    8388604 total,   8386300 free
Timestamp of repository gentoo: Fri, 21 Jun 2019 09:00:01 +0000
Head commit of repository gentoo: 27d896a3fa1a1fe9a5f02b357afb9a728fcdb443
sh bash 5.0_p7
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          5.0_p7::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.8::gentoo
dev-util/cmake:           3.14.5::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.17::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.1.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.0-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE myspell-ru_RU-AlexanderLebedev linux-fw-redistributable no-source-code bh-luxi google-chrome"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
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/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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 -fomit-frame-pointer"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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 sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="http://mirror.isoc.org.il/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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 a52 aac accessibility acl acpi alsa amd64 audit berkdb bluetooth branding bzip2 cairo cdda cdr cli colord crypt cryptsetup cups curl cxx dbus device-mapper doc dot dri dts dvd dvdr eds emboss encode evo examples exif experimental fam flac fontconfig fortran gconf gd gdbm geoip gif glamor gles gnome gnome-keyring gnome-online-accounts go googledrive gpg gpm gstreamer gtk html http iconv icu idn introspection ipv6 iscsi jadetex java jpeg kerberos latex lcms ldap libkms libnotify libsecret libtirpc logrotate mad math mbox mdadm minizip mng mount mp3 mp4 mpeg mpx multilib multimon mysql mysqli nautilus ncurses networkmanager nls nptl nscd offensive ogg opengl openmp openntpd pam pango pcre pcre32 pdf pdfimport perl png policykit postgres postproc ppds pulseaudio python qrcode qt5 readline samba sasl sdl seccomp secure-delete slp smi spell sqlite ssl startup-notification svg symlink sync-plugin-portage systemd tcpd tfshark threads tiff tk tools tracker truetype udev udisks unicode upower usb user-session vlc vorbis wayland winbind wininst wxwidgets x264 xa xattr xcb xinerama xkb xml xv xvid zlib" ABI_X86="64 32" 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 sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock 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="evdev" KERNEL="linux" L10N="en en-US he ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell wiki-publisher scripting-javascript" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="vmware" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq 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 Leonid Kopylov 2019-06-21 10:12:26 UTC
Created attachment 580280 [details]
build.log
Comment 2 Jouni Kosonen 2019-06-21 10:24:48 UTC
I'd say electron needs <dev-util/gn-0.1583 too, see bug 686896.
Comment 3 Leonid Kopylov 2019-06-21 10:29:25 UTC
(In reply to Jouni Kosonen from comment #2)
> I'd say electron needs <dev-util/gn-0.1583 too, see bug 686896.

# emerge dev-util/gn -qpv
[ebuild   R   ] dev-util/gn-0.1583  USE="-vim-syntax"


it already installed - re-emerging didn't help
Comment 4 Jouni Kosonen 2019-06-21 10:39:20 UTC
(In reply to Leonid Kopylov from comment #3)
> (In reply to Jouni Kosonen from comment #2)
> > I'd say electron needs <dev-util/gn-0.1583 too, see bug 686896.
> 
> # emerge dev-util/gn -qpv
> [ebuild   R   ] dev-util/gn-0.1583  USE="-vim-syntax"
> 
> 
> it already installed - re-emerging didn't help

Try with *less* than dev-util/gn-0.1583, i.e. dev-util/gn-0.1544. That's how it's set in chromium now.
Comment 5 Leonid Kopylov 2019-06-21 11:15:40 UTC
Created attachment 580282 [details]
build.log.xz

now it failed with another error
Comment 6 Jouni Kosonen 2019-06-21 11:31:22 UTC
(In reply to Leonid Kopylov from comment #5)
> Created attachment 580282 [details]
> build.log.xz
> 
> now it failed with another error

> error: ‘struct vpx_svc_ref_frame_config’ has no member named ‘frame_flags’

That would be bug 679492 which you've already found.

... are you sure your media-libs/libvpx is still 1.7.0?
Comment 7 Leonid Kopylov 2019-06-21 14:05:44 UTC
(In reply to Jouni Kosonen from comment #6)
> (In reply to Leonid Kopylov from comment #5)
> > Created attachment 580282 [details]
> > build.log.xz
> > 
> > now it failed with another error
> 
> > error: ‘struct vpx_svc_ref_frame_config’ has no member named ‘frame_flags’
> 
> That would be bug 679492 which you've already found.
> 
> ... are you sure your media-libs/libvpx is still 1.7.0?

hm..... nope, it was upgraded to 1.8.0-r1, and couldn't be downgraded, because of gst-plugins-vpx - so i uninstalled it, downgraded libvpx to 1.7.0, and than was able to emerge successfully electron. When i ran after emerge @world - it tried to upgrade libvpx back with reinstalling electron - so i should mask this version?






# emerge =media-libs/libvpx-1.7.0 -pv

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     UD ] media-libs/libvpx-1.7.0:0/5::gentoo [1.8.0-r1:0/6::gentoo] USE="doc highbitdepth postproc svc threads -static-libs -test" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="avx%* avx2%* mmx%* sse%* sse2%* sse3%* sse4_1%* ssse3%*" 0 KiB

Total: 1 package (1 downgrade), Size of downloads: 0 KiB

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

media-libs/libvpx:0

  (media-libs/libvpx-1.7.0:0/5::gentoo, ebuild scheduled for merge) pulled in by
    =media-libs/libvpx-1.7.0 (Argument)

  (media-libs/libvpx-1.8.0-r1:0/6::gentoo, installed) pulled in by
    >=media-libs/libvpx-1.3.0:0/6=[abi_x86_32(-),abi_x86_64(-)] required by (media-plugins/gst-plugins-vpx-1.14.4:1.0/1.0::gentoo, installed)
Comment 8 Jouni Kosonen 2019-06-21 14:34:26 UTC
I would mask >=media-libs/libvpx-1.8.0 and >=dev-util/gn-0.1583 for now in your situation, but of course the correct fix would be for someone to adjust the dependencies in the ebuild. 

--- a/electron-2.0.17-r1.ebuild
+++ b/electron-2.0.17-r1.ebuild
@@ -114,1 +114,1 @@ COMMON_DEPEND="
-       >=media-libs/libvpx-1.7.0:=[postproc,svc]
+       ~media-libs/libvpx-1.7.0:=[postproc,svc]
@@ -170,1 +170,1 @@ DEPEND="${COMMON_DEPEND}
-       dev-util/gn
+       <dev-util/gn-0.1583

And you can build media-plugins/gst-plugins-vpx against media-libs/libvpx-1.7.0 too.
Comment 9 Leonid Kopylov 2019-06-21 14:43:57 UTC
(In reply to Jouni Kosonen from comment #8)
> I would mask >=media-libs/libvpx-1.8.0 and >=dev-util/gn-0.1583 for now in
> your situation, but of course the correct fix would be for someone to adjust
> the dependencies in the ebuild. 
> 
> --- a/electron-2.0.17-r1.ebuild
> +++ b/electron-2.0.17-r1.ebuild
> @@ -114,1 +114,1 @@ COMMON_DEPEND="
> -       >=media-libs/libvpx-1.7.0:=[postproc,svc]
> +       ~media-libs/libvpx-1.7.0:=[postproc,svc]
> @@ -170,1 +170,1 @@ DEPEND="${COMMON_DEPEND}
> -       dev-util/gn
> +       <dev-util/gn-0.1583
> 
> And you can build media-plugins/gst-plugins-vpx against
> media-libs/libvpx-1.7.0 too.

For now i masked libvpx 1.8.0 and 1.8.0-r1, and upgraded gn, for now, emerge @world doesn't try to rebuild electron
Comment 10 Larry the Git Cow gentoo-dev 2019-08-02 06:24:47 UTC
The bug has been closed via the following commit(s):

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

commit 05660fa281b60ecffc61952c818d9f65768dc6b9
Author:     Elvis Pranskevichus <elvis@magic.io>
AuthorDate: 2019-08-01 15:15:20 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2019-08-02 06:24:33 +0000

    dev-util/electron: Fix build issues
    
    Fix libvpx build issues by pinning the dependency and adding
    system-libvpx USE-flag.
    
    Pin dev-util/gn version, as newer GN seems to be breaking the
    build.
    
    Fix build on non-x86, courtesy of Marcus Comstedt.
    
    Closes: https://bugs.gentoo.org/688426
    Closes: https://bugs.gentoo.org/679492
    Closes: https://bugs.gentoo.org/686984
    Signed-off-by: Elvis Pranskevichus <elvis@magic.io>
    Package-Manager: Portage-2.3.66, Repoman-2.3.11
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 dev-util/electron/Manifest                  |   1 +
 dev-util/electron/electron-2.0.17-r2.ebuild | 919 ++++++++++++++++++++++++++++
 dev-util/electron/metadata.xml              |   1 +
 3 files changed, 921 insertions(+)