Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 610090 - x11-misc/i3blocks-1.4 installs default configuration file in unused location
Summary: x11-misc/i3blocks-1.4 installs default configuration file in unused location
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Ettore Di Giacinto (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-20 14:25 UTC by Thomas De Schampheleire
Modified: 2017-02-20 19:30 UTC (History)
0 users

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 Thomas De Schampheleire 2017-02-20 14:25:36 UTC
i3blocks installs a configuration file in /etc/i3blocks.conf, but this location is not used by i3blocks itself. Using strace one can see the following location being tried:

open("/home/tdescham/.config/i3blocks/config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/tdescham/.i3blocks.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/xdg/i3blocks/config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/etc/i3blocks.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "ERROR try_parse:192: fopen: No s"..., 54ERROR try_parse:192: fopen: No such file or directory
) = 54
write(2, "ERROR main:70: Try 'i3blocks -h'"..., 55ERROR main:70: Try 'i3blocks -h' for more information.
) = 55
exit_group(1)                           = ?
+++ exited with 1 +++


It looks as if the last location "/usr/local/etc/i3blocks.conf" should have been "/etc/i3blocks.conf" (prefix problem?)
Comment 1 Ettore Di Giacinto (RETIRED) gentoo-dev 2017-02-20 19:29:58 UTC
Thanks, fix is in the revbump.

It seems that PREFIX="/usr" is not sufficent, also if file gets installed in the correct location (/etc/i3blocks.conf). Applying a patch to fix the issue, meanwhile contacting upstream.

commit 02653bc04ab68205e229fb04e96db27613e223ca
Author: Ettore Di Giacinto <mudler@gentoo.org>
Date:   Mon Feb 20 19:26:17 2017 +0100

    x11-misc/i3blocks: revbump, fixes bug #610090

    Package-Manager: Portage-2.3.3, Repoman-2.3.1