Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685382 - savedconfig.eclass: .../temp/environment: line 1190: EROOT: readonly variable
Summary: savedconfig.eclass: .../temp/environment: line 1190: EROOT: readonly variable
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-08 19:43 UTC by coding.paulo.feitosa
Modified: 2019-05-25 16:11 UTC (History)
1 user (show)

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


Attachments
build info (build.info,16.26 KB, text/plain)
2019-05-08 19:43 UTC, coding.paulo.feitosa
Details
build.log (dmenu-4.9_20190509-111649.log,6.98 KB, text/plain)
2019-05-09 11:23 UTC, coding.paulo.feitosa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description coding.paulo.feitosa 2019-05-08 19:43:23 UTC
Created attachment 575544 [details]
build info

Package `x11-misc/dmenu-4.9` prints the following message at the end on the installation:

>>> Messages generated by process 24201 on 2019-05-08 16:27:09 -03 for package x11-misc/dmenu-4.9:

LOG: prepare
Building using saved configfile //etc/portage/savedconfig//x11-misc/dmenu-4.9
LOG: install
Your configuration for x11-misc/dmenu-4.9 has been saved in
/etc/portage/savedconfig/x11-misc/dmenu-4.9 for your editing pleasure.
You can edit these files by hand and remerge this package with
USE=savedconfig to customise the configuration.
You can rename this file/directory to one of the following for
its configuration to apply to multiple versions:
${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/
[${CTARGET}|${CHOST}|""]/${CATEGORY}/[${PF}|${P}|${PN}]
ERROR: postinst
The ebuild phase 'postinst' has exited unexpectedly. This type of
behavior is known to be triggered by things such as failed variable
assignments (bug #190128) or bad substitution errors (bug #200313).
Normally, before exiting, bash should have displayed an error message
above. If bash did not produce an error message above, it's possible
that the ebuild has called `exit` when it should have called `die`
instead. This behavior may also be triggered by a corrupt bash binary or
a hardware problem such as memory or cpu malfunction. If the problem is
not reproducible or it appears to occur randomly, then it is likely to
be triggered by a hardware problem. If you suspect a hardware problem
then you should try some basic hardware diagnostics such as memtest.
Please do not report this as a bug unless it is consistently
reproducible and you are sure that your bash binary and hardware are
functioning properly.
FAILED postinst: 1

Mind that the installation DOESN'T fail.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2019-05-09 05:51:12 UTC
Please attach the entire build log to this bug report.
Comment 2 coding.paulo.feitosa 2019-05-09 11:23:51 UTC
Created attachment 575588 [details]
build.log

The weird characters are present in the original file too
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2019-05-09 13:49:56 UTC
Comment on attachment 575588 [details]
build.log

/temp/environment: line 1190: EROOT: readonly variable
Comment 4 Andreas Proteus 2019-05-23 08:23:31 UTC
Same problem with x11-wm/dwm[savedconfig]

Setting EAPI=6 in the ebuilds of dmenu and dwm, problem goes away.
Comment 5 Mike Gilbert gentoo-dev 2019-05-23 15:21:33 UTC
Patch posted for review.

https://archives.gentoo.org/gentoo-dev/message/ac74cf3a3659da0fffc5d146e7df132f
Comment 6 Larry the Git Cow gentoo-dev 2019-05-25 16:11:28 UTC
The bug has been closed via the following commit(s):

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

commit bf698cecb081079d6204637f692e33101abed805
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2019-05-25 16:11:05 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2019-05-25 16:11:05 +0000

    savedconfig.eclass: Remove old EAPI ED/EROOT workarounds
    
    * Also limit to EAPIs that are in use at the moment.
    
    Closes: https://bugs.gentoo.org/685382
    Signed-off-by: David Seifert <soap@gentoo.org>

 eclass/savedconfig.eclass | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)