Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 673224

Summary: app-text/docbook-xml-simple-dtd-4.1.2.4-r2 - portage.exception.ParseError: "/usr/src/linux/.config", line 1838: Invalid token 'y' (not '=')
Product: Portage Development Reporter: jplx <jlambrec>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 671498    
Attachments: emerge --info
Macbook Air emerge --info
Console history
Console output after typing CTRL-D, following the error
config file
emerge.log last ~300 lines

Description jplx 2018-12-16 04:39:42 UTC
New install of "sakaki" gnome-wayland on an Apple MacBook Air. Failure during emerging gnome. It appears to be while emerging app-text/docbook-xml-simple-dtd-4.1.2.4-r2::gentoo.
I tried with and without parallelism.

Reproducible: Always

Steps to Reproduce:
1.MAKEOPTS="-j1" EMERGE_DEFAULT_OPTS="--jobs=1" emerge --ask --verbose gnome-base/gnome && echo "GNOME emerged OK" || echo "GNOME emerge not yet completed"
2.or
3.emerge --ask --verbose --keep-going gnome-base/gnome && echo "GNOME emerged OK" || echo "GNOME emerge not yet completed"
Actual Results:  
Console messages attached.

Expected Results:  
Normal emerge.

WHen the error message appeared, its last line was "pdb". After a while, I typed CTRL-D and got an additional output.
Comment 1 jplx 2018-12-16 04:40:58 UTC
Created attachment 557884 [details]
emerge --info
Comment 2 jplx 2018-12-16 04:42:30 UTC
Comment on attachment 557884 [details]
emerge --info

This a wrong emerge--info. Please discard
Comment 3 jplx 2018-12-16 04:44:04 UTC
Created attachment 557886 [details]
Macbook Air emerge --info

This is the correct emerge --info output on the Macbook Air failing the gnome emerge.
Comment 4 jplx 2018-12-16 04:44:59 UTC
Comment on attachment 557884 [details]
emerge --info

>Portage 2.3.0 (python 3.4.4-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.23-r2, 4.5.2-aufs-r1 x86_64)
>========================================================
Comment 5 jplx 2018-12-16 04:46:29 UTC
Comment on attachment 557884 [details]
emerge --info

Wrong file. PLease discard.
Comment 6 jplx 2018-12-16 04:47:43 UTC
Created attachment 557888 [details]
Console history
Comment 7 jplx 2018-12-16 04:48:25 UTC
Created attachment 557890 [details]
Console output after typing CTRL-D, following the error
Comment 8 jplx 2018-12-16 04:48:48 UTC
Created attachment 557892 [details]
config file
Comment 9 jplx 2018-12-16 05:02:27 UTC
Created attachment 557894 [details]
emerge.log last ~300 lines
Comment 10 Larry the Git Cow gentoo-dev 2018-12-17 07:09:11 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=d2e1c414c4cec97b1a2d3343d60016c100fe9062

commit d2e1c414c4cec97b1a2d3343d60016c100fe9062
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2018-12-17 06:35:28 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2018-12-17 06:44:24 +0000

    ExtractKernelVersion: use KeyValuePairFileLoader (bug 673224)
    
    Use KeyValuePairFileLoader to parse the kernel config and report errors
    without raising an exception. Silently handle empty settings like the
    CONFIG_UEVENT_HELPER_PATH= setting that triggered the ParseError reported
    in bug 673224.
    
    Bug: https://bugs.gentoo.org/673224
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 lib/portage/util/ExtractKernelVersion.py | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)
Comment 11 Zac Medico gentoo-dev 2018-12-17 07:11:28 UTC
Thanks!
Comment 12 jplx 2018-12-17 18:16:35 UTC
I am getting exactly the same error with eselect-cblas (dependency of gnome-wayland) as illustrated by the test here below:
(1) jplx-airgn2 ~ # emerge --ask --verbose =app-eselect/eselect-cblas-0.1::gentoo

 * IMPORTANT: 5 news items need reading for repository 'sakaki-tools'.
 * IMPORTANT: 13 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


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

Calculating dependencies... done!
[ebuild  N     ] app-eselect/eselect-cblas-0.1::gentoo  0 KiB

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

Would you like to merge these packages? [Yes/No] y
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) app-eselect/eselect-cblas-0.1::gentoo
>>> Jobs: 0 of 1 complete, 1 running                Load avg: 0.18, 0.07, 0.02Exception in callback AsynchronousTask.wait()
handle: <Handle AsynchronousTask.wait()>
Traceback (most recent call last):
  File "/usr/lib64/python3.6/asyncio/events.py", line 145, in _run
    self._callback(*self._args)
  File "/usr/lib64/python3.6/site-packages/_emerge/AsynchronousTask.py", line 84, in wait
    self._wait_hook()
  File "/usr/lib64/python3.6/site-packages/_emerge/AsynchronousTask.py", line 195, in _wait_hook
    self._exit_listener_stack.pop()(self)
  File "/usr/lib64/python3.6/site-packages/_emerge/EbuildBuild.py", line 79, in _start_with_metadata
    settings=self.settings, db=portdb)
  File "/usr/lib64/python3.6/site-packages/portage/package/ebuild/doebuild.py", line 529, in doebuild_environment
    os.path.join(mysettings['EROOT'], "usr/src/linux"))
  File "/usr/lib64/python3.6/site-packages/portage/proxy/objectproxy.py", line 31, in __call__
    return result(*args, **kwargs)
  File "/usr/lib64/python3.6/site-packages/portage/util/ExtractKernelVersion.py", line 74, in ExtractKernelVersion
    kernelconfig = getconfig(base_dir+"/.config")
  File "/usr/lib64/python3.6/site-packages/portage/util/__init__.py", line 749, in getconfig
    raise ParseError(msg)
portage.exception.ParseError: "/usr/src/linux/.config", line 1838: Invalid token 'y' (not '=')
--Return--
> /usr/lib64/python3.6/site-packages/portage/util/_eventloop/asyncio_event_loop.py(76)_internal_caller_exception_handler()->None
-> pdb.set_trace()
(Pdb) 

--> Line 1838 of .config is:
1838 CONFIG_DEVTMPFS_MOUNT=y
Looks fine.
Comment 13 Zac Medico gentoo-dev 2018-12-17 19:26:31 UTC
I think this line is the trigger:

CONFIG_UEVENT_HELPER_PATH=

It will be fixed by https://gitweb.gentoo.org/proj/portage.git/commit/?id=d2e1c414c4cec97b1a2d3343d60016c100fe9062, but you can change the line to this as a workaround:

CONFIG_UEVENT_HELPER_PATH=""
Comment 14 jplx 2018-12-17 22:31:01 UTC
I made the change and ran:
emerge --ask --verbose --keep-going gnome-base/gnome && echo "GNOME emerged OK" || echo "GNOME emerge not yet completed"
again.
Both docbook-xml-simple-dtd and eselect-cblas emerged and installed fine.
Still running with more than 300 packages to emerge and install for gnome-wayland. Looks fine so far. THANK YOU!
Comment 15 jplx 2018-12-19 19:04:23 UTC
I can confirm that the work-around did solve the problem. The emerge completed successfully. THANK YOU AGAIN!
Comment 16 Zac Medico gentoo-dev 2019-04-10 04:31:54 UTC
Fixed in portage-2.3.62.