Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 632610 - app-eselect/eselect-electron-2.0: test for libdir is broken
Summary: app-eselect/eselect-electron-2.0: test for libdir is broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal (vote)
Assignee: Elvis Pranskevichus
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-01 07:53 UTC by Marcus Comstedt
Modified: 2017-10-30 23:17 UTC (History)
2 users (show)

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


Attachments
emerge --info (file_632610.txt,5.50 KB, text/plain)
2017-10-19 08:38 UTC, Marcus Comstedt
Details
emerge -pv app-eselect/eselect-electron (file_632610.txt,225 bytes, text/plain)
2017-10-19 08:39 UTC, Marcus Comstedt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Comstedt 2017-10-01 07:53:58 UTC
The function lib_dir() in electron.eselect tries to identify the lib directory by looking for where postgresql is installed.  That obviously won't work if postgresql is not installed at all.  (Copy & paste much?  :)


Reproducible: Always

Steps to Reproduce:
1.Use a system where electron is not intalled in /usr/lib but in /usr/lib64 or /usr/lib32
2.Install electron and eselect-electron, but not postgresql
3.Run "eselect electron list"
Actual Results:  
Available Electron Slots
!!! Warning: No slots available.


Expected Results:  
Available Electron Slots
  1.3                       1.3.13


Portage 2.3.6 (python 2.7.12-final-0, default/linux/arm64/13.0/desktop, gcc-5.4.0, glibc-2.24-r4, 4.4.38 aarch64)
=================================================================
System uname: Linux-4.4.38-aarch64-with-gentoo-2.3
KiB Mem:     8038248 total,   2981172 free
KiB Swap:    8388604 total,   8385576 free
Timestamp of repository gentoo: Sat, 30 Sep 2017 13:30:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.26.3::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.15::gentoo
sys-devel/binutils:       2.28.1::gentoo
sys-devel/gcc:            4.9.4::gentoo, 5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

zeldin
    location: /usr/local/portage
    masters: gentoo

crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo
    priority: 10

java
    location: /var/lib/layman/java
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/java.git
    masters: gentoo
    priority: 50

unity-gentoo
    location: /var/lib/layman/unity-gentoo
    sync-type: laymansync
    sync-uri: https://github.com/shiznix/unity-gentoo
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="arm64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="sv_SE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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 acl acpi alsa arm64 berkdb bluetooth branding bzip2 cairo cdda cdr cjk cli consolekit cracklib crypt css cups curl cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac gdbm gif glamor gmp gnutls gpm gtk iconv idn ipv6 jpeg lcms ldap libffi libnotify lua mad mng modules mp3 mp4 mpeg mule multilib multitarget ncurses nis nls nptl offensive ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline seamonkey seccomp session smp spell ssl startup-notification svg tcpd theora threads tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xft xml xmpp xv xvid zlib" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp neon thumb thumb2 v4 v5 v6 v7 v8 vfp vfp-d32 vfpv3 vfpv4" 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" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="fbdev dummy v4l" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jonas Stein gentoo-dev 2017-10-19 08:02:15 UTC
Thank you for the report. Please *attach* the logfiles,
https://wiki.gentoo.org/wiki/Bugzilla/Bug_report_guide#Report_a_build-time_bug_.28emerge_failed.29
and reopen this ticket (Status:unconfirmed).
Comment 2 Marcus Comstedt 2017-10-19 08:38:43 UTC
Created attachment 499268 [details]
emerge --info
Comment 3 Marcus Comstedt 2017-10-19 08:39:27 UTC
Created attachment 499270 [details]
emerge -pv app-eselect/eselect-electron
Comment 4 Marcus Comstedt 2017-10-19 08:39:52 UTC
Hi.  It's not the build that fails.  eselect-electron-2.0 can be emerged just fine.  The problem is that it doesn't work correctly because of the copy&paste bug I described (it looks for postgresql instead of electron).  So it is a run-time bug (eselect is running).
Comment 5 Elvis Pranskevichus 2017-10-28 18:11:57 UTC
Fix: https://github.com/gentoo/gentoo/pull/6066
Comment 6 Larry the Git Cow gentoo-dev 2017-10-30 23:17:15 UTC
The bug has been closed via the following commit(s):

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

commit 52b40decfae44e51376ff3756dbd0077e8380b90
Author:     Elvis Pranskevichus <elvis@magic.io>
AuthorDate: 2017-10-28 18:08:36 +0000
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: 2017-10-30 23:16:13 +0000

    app-eselect/eselect-electron: version bump.
    
    Closes: https://bugs.gentoo.org/632610
    Package-Manager: Portage-2.3.8, Repoman-2.3.3
    Closes: https://github.com/gentoo/gentoo/pull/6066

 app-eselect/eselect-electron/Manifest                                   | 2 +-
 .../{eselect-electron-2.0.ebuild => eselect-electron-2.1.ebuild}        | 0
 2 files changed, 1 insertion(+), 1 deletion(-)