Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 556888 - notion-3_p2015061300 fails to start
Summary: notion-3_p2015061300 fails to start
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Proxy Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-06 20:37 UTC by Grant Goodyear
Modified: 2015-08-12 00:22 UTC (History)
2 users (show)

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


Attachments
Updated ebuild that seems to fix the issues (notion-3_p2015061300.ebuild,1.77 KB, text/plain)
2015-08-07 17:30 UTC, Grant Goodyear
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Grant Goodyear 2015-08-06 20:37:51 UTC
Here's my xsession error log where notion crashes:

>> No drawing engines loaded, trying "de".
>> Unable to find 'de.so' on search path.
>> Unable to find 'ioncore_ext.lc' or 'ioncore_ext.lua' on search path...
>> Tried: '/home/grant/.notion/default-session--0/ioncore_ext.lc'
>> Tried: '/home/grant/.notion/default-session--0/ioncore_ext.lua'
>> Tried: '/home/grant/.notion/lib/ioncore_ext.lc'
>> Tried: '/home/grant/.notion/lib/ioncore_ext.lua'
>> Tried: '/home/grant/.notion/ioncore_ext.lc'
>> Tried: '/home/grant/.notion/ioncore_ext.lua'
>> Tried: '/usr/local/lib64/notion/lc/ioncore_ext.lc'
>> Tried: '/usr/local/lib64/notion/lc/ioncore_ext.lua'
>> Tried: '/usr/local/share/notion/ioncore_ext.lc'
>> Tried: '/usr/local/share/notion/ioncore_ext.lua'
>> Tried: '/usr/local/etc/notion/ioncore_ext.lc'
>> Tried: '/usr/local/etc/notion/ioncore_ext.lua'
>> Tried: '/usr/local/lib64/notion/mod/ioncore_ext.lc'
>> Tried: '/usr/local/lib64/notion/mod/ioncore_ext.lua'
>> Tried: '/usr/local/lib64/notion/bin/ioncore_ext.lc'
>> Tried: '/usr/local/lib64/notion/bin/ioncore_ext.lua'
>> Tried: 'ioncore_ext.lc'
>> Tried: 'ioncore_ext.lua'
>> Refusing to start due to encountered errors.

Notion shouldn't be looking at /usr/local/anything on a Gentoo machine, so that seems like a problem.  Here's a diff of the file list for the newest version of notion and the previous version:

# diff -u old_notion_files.txt notion_files.txt 
--- old_notion_files.txt	2015-08-06 15:15:20.014469762 -0500
+++ notion_files.txt	2015-08-06 15:10:02.702012365 -0500
@@ -1,31 +1,7 @@
-/etc/notion/cfg_dock.lua
-/etc/notion/cfg_kludges.lua
-/etc/notion/cfg_notion.lua
-/etc/notion/cfg_menu.lua
-/etc/notion/look_greyviolet.lua
-/etc/notion/cfg_layouts.lua
-/etc/notion/look_brownsteel.lua
-/etc/notion/cfg_defaults.lua
-/etc/notion/look_cleanios.lua
-/etc/notion/look_dusky.lua
-/etc/notion/lookcommon_clean.lua
-/etc/notion/look_cleanviolet.lua
-/etc/notion/lookcommon_emboss.lua
-/etc/notion/cfg_xrandr.lua
-/etc/notion/cfg_notioncore.lua
-/etc/notion/look_greenlight.lua
-/etc/notion/look_ios.lua
-/etc/notion/cfg_query.lua
-/etc/notion/look_clean.lua
-/etc/notion/cfg_sp.lua
-/etc/notion/look_simpleblue.lua
-/etc/notion/look.lua
-/etc/notion/cfg_statusbar.lua
-/etc/notion/look_newviolet.lua
-/etc/notion/cfg_tiling.lua
 /etc/X11/Sessions/notion
 /usr/lib64/notion/bin/ion-completefile
 /usr/lib64/notion/bin/ion-statusd
+/usr/lib64/notion/bin/notionflux
 /usr/lib64/notion/lc/mod_query_chdir.lc
 /usr/lib64/notion/lc/mod_xinerama.lc
 /usr/lib64/notion/lc/statusd_load.lc
@@ -65,17 +41,16 @@
 /usr/lib64/notion/mod/mod_dock.so
 /usr/lib64/notion/mod/mod_tiling.so
 /usr/bin/notion
-/usr/bin/notionflux
 /usr/share/locale/cs/LC_MESSAGES/notion.mo
 /usr/share/locale/fr/LC_MESSAGES/notion.mo
 /usr/share/locale/fi/LC_MESSAGES/notion.mo
 /usr/share/locale/de/LC_MESSAGES/notion.mo
-/usr/share/doc/notion-3_p2013030200/README.bz2
-/usr/share/doc/notion-3_p2013030200/RELNOTES.bz2
-/usr/share/doc/notion-3_p2013030200/ChangeLog
-/usr/share/doc/notion-3_p2013030200/LICENSE.bz2
+/usr/share/doc/notion-3_p2015061300/README.bz2
+/usr/share/doc/notion-3_p2015061300/LICENSE.bz2
+/usr/share/doc/notion-3_p2015061300/CHANGELOG.bz2
 /usr/share/man/cs/man1/notion.1.bz2
 /usr/share/man/man1/notion.1.bz2
+/usr/share/man/man1/notionflux.1.bz2
 /usr/share/man/fi/man1/notion.1.bz2
 /usr/share/notion/welcome.fi.txt
 /usr/share/notion/notion-lock
@@ -84,3 +59,28 @@
 /usr/share/notion/ion-completeman
 /usr/share/notion/welcome.txt
 /usr/share/xsessions/notion.desktop
+/usr/etc/notion/cfg_dock.lua
+/usr/etc/notion/cfg_kludges.lua
+/usr/etc/notion/cfg_notion.lua
+/usr/etc/notion/cfg_menu.lua
+/usr/etc/notion/look_greyviolet.lua
+/usr/etc/notion/cfg_layouts.lua
+/usr/etc/notion/look_brownsteel.lua
+/usr/etc/notion/cfg_defaults.lua
+/usr/etc/notion/look_cleanios.lua
+/usr/etc/notion/look_dusky.lua
+/usr/etc/notion/lookcommon_clean.lua
+/usr/etc/notion/look_cleanviolet.lua
+/usr/etc/notion/lookcommon_emboss.lua
+/usr/etc/notion/cfg_xrandr.lua
+/usr/etc/notion/cfg_notioncore.lua
+/usr/etc/notion/look_greenlight.lua
+/usr/etc/notion/look_ios.lua
+/usr/etc/notion/cfg_query.lua
+/usr/etc/notion/look_clean.lua
+/usr/etc/notion/cfg_sp.lua
+/usr/etc/notion/look_simpleblue.lua
+/usr/etc/notion/look.lua
+/usr/etc/notion/cfg_statusbar.lua
+/usr/etc/notion/look_newviolet.lua
+/usr/etc/notion/cfg_tiling.lua

Clearly the location of de.so hasn't changed, even though notion can't find it.  However, the configuration files have moved to /usr/etc/notion instead of /etc/notion.  That's a bit weird, since the src_prepare function in the ebuild has the same set lines in both versions.  I'm not really sure what's going on here.

# emerge --info
Portage 2.2.20 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop, gcc-4.9.3, glibc-2.21-r1, 3.18.3-gentoo x86_64)
=================================================================
System uname: Linux-3.18.3-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.2
KiB Mem:     6103008 total,   1273196 free
KiB Swap:    1048572 total,   1025156 free
Timestamp of repository gentoo: Thu, 06 Aug 2015 15:30:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.0) 2.25.1
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.3.0::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

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

g2boojum
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb blas bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emacs emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk gtk3 iconv ipv6 jpeg lapack lcms ldap libnotify lua mad maildir mmx mmxext mng modules mono mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds python qt3support qt4 readline sdl session spell sqlite sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vim-syntax vorbis wxwidgets x264 xcb xft xml xv xvid zlib" ABI_X86="64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19 ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="radeon" 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"
USE_PYTHON="2.7 3.4"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Grant Goodyear 2015-08-07 17:30:49 UTC
Created attachment 408496 [details]
Updated ebuild that seems to fix the issues

It looks like a lot of what was in src_prepare isn't needed, or doesn't work.

I killed the -D_DEFAULT_SOURCE CFLAG, since DEFAULT_SOURCE doesn't show up in the source code anywhere.  (The leading _ seems a bit odd, too.)

PREFIX, ETCDIR, and X11_PREFIX can be overridden by putting them in a "system-local.mk" file, so I did that.  It's a little prettier than the sed hackery.

The CFLAGS and LDFLAGS stripping now works for both, VARDIR now points to the correct location in upstream's code and thus is no longer needed, and LUA_DIR is no longer used now that notion has lua detection during the build.

The default src_compile suffices, now.

I left everything else the same.
Comment 2 Michael Weber (RETIRED) gentoo-dev 2015-08-08 09:19:52 UTC
Looks like we did the same work indepently.
please update to notion-3_p2015061300-r1.


The -D_DEFAULT_SOURCE is to enable needed getloadavg from stdlib.h, it's a new name for -D_BSD_SOURCE in newer glibc (2.21-r1 here).

The mismatch of files installed in /usr/etc and searched inside /usr/local/etc is due the varying setting of PREFIX during src_install and src_compile.

I also pinged upstream about a more extensive usage of pkg-config 
https://github.com/raboof/notion/issues/9
Comment 3 Grant Goodyear 2015-08-12 00:22:24 UTC
Awesome!  

Much appreciated.

My "here document" was much prettier, though!  *Grin*