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

Bug 878649

Summary: dev-util/meson-0.63.3
Product: Gentoo Linux Reporter: Helmut Jarausch <jarausch>
Component: Current packagesAssignee: Mike Gilbert <floppym>
Status: RESOLVED OBSOLETE    
Severity: normal CC: eschwartz, williamh
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description Helmut Jarausch 2022-10-29 12:16:22 UTC
Created attachment 826045 [details]
emerge --info

When emerging  app-text/evince-43.1  I get

meson setup --libdir lib64 --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload --build.pkg-config-path /usr/share/pkgconfig --pkg-config-path /usr/share/pkgconfig --native-file /var/tmp/portage/app-text/evince-43.1/temp/meson.x86_64-pc-linux-gnu.amd64.ini -Db_pch=false -Dwerror=false --buildtype plain -Ddevelopment=false -Dplatform=gnome -Dviewer=true -Dpreviewer=true -Dthumbnailer=true -Dnautilus=false -Dcomics=enabled -Ddjvu=disabled -Ddvi=disabled -Dpdf=enabled -Dps=enabled -Dtiff=enabled -Dxps=disabled -Dgtk_doc=false -Duser_doc=true -Dintrospection=true -Ddbus=true -Dkeyring=disabled -Dgtk_unix_print=enabled -Dthumbnail_cache=disabled -Dmultimedia=disabled -Dgspell=enabled -Dinternal_synctex=true -Dsystemduserunitdir=/usr/lib/systemd/user /var/tmp/portage/app-text/evince-43.1/work/evince-43.1 /var/tmp/portage/app-text/evince-43.1/work/evince-43.1-build
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/mesonbuild/mesonmain.py", line 153, in run
    return options.run_func(options)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/mesonbuild/msetup.py", line 303, in run
    app.generate()
  File "/usr/lib/python3.11/site-packages/mesonbuild/msetup.py", line 181, in generate
    env = environment.Environment(self.source_dir, self.build_dir, self.options)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/mesonbuild/environment.py", line 522, in __init__
    config = coredata.parse_machine_files(self.coredata.config_files)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/mesonbuild/coredata.py", line 984, in parse_machine_files
    parser = MachineFileParser(filenames)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/mesonbuild/coredata.py", line 939, in __init__
    self.sections[s] = self._parse_section(s)
                       ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/mesonbuild/coredata.py", line 951, in _parse_section
    res = self._evaluate_statement(ast.lines[0])
                                   ~~~~~~~~~^^^
IndexError: list index out of range

ERROR: Unhandled python exception

    This is a Meson bug and should be reported!
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-29 14:31:33 UTC
Please attach the full build.log and meson-log.txt.
Comment 2 Eli Schwartz gentoo-dev 2022-10-29 23:56:15 UTC
This traceback seems to occurring somewhere inside Meson's attempt to parse the file defined by this command-line option:
```
--native-file /var/tmp/portage/app-text/evince-43.1/temp/meson.x86_64-pc-linux-gnu.amd64.ini
```

What are the contents of this file (seems to be autogenerated by emerge's meson_src_configure handling)?
Comment 3 Helmut Jarausch 2022-10-30 12:29:31 UTC
Re-emerging dev-util/meson-format-array fixed the problem