1.0.0: build fails
meson output
+ /usr/bin/meson setup --buildtype=plain --prefix=/usr --libdir=/usr/lib64 --libexecdir=/usr/libexec --bindir=/usr/bin --sbindir=/usr/sbin --includedir=/usr/include --datadir=/usr/share --mandir=/usr/share/man --infodir=/usr/share/info --localedir=/usr/share/locale --sysconfdir=/etc --localstatedir=/var --sharedstatedir=/var/lib --wrap-mode=nodownload --auto-features=enabled . x86_64-redhat-linux-gnu -D liboeffis=enabled -D tests=disabled
The Meson build system
Version: 1.2.0
Source dir: /home/tkloczko/rpmbuild/BUILD/libei-1.0.0
Build dir: /home/tkloczko/rpmbuild/BUILD/libei-1.0.0/x86_64-redhat-linux-gnu
Build type: native build
Project name: libei
Project version: 1.0.0
C compiler for the host machine: /usr/bin/gcc (gcc 13.2.1 "gcc (GCC) 13.2.1 20230728 (Red Hat 13.2.1-1)")
C linker for the host machine: /usr/bin/gcc ld.bfd 2.40-9
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -Wno-unused-parameter: YES
Compiler for C supports arguments -Wmissing-prototypes: YES
Compiler for C supports arguments -Wno-missing-field-initializers: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Compiler for C supports arguments -Wstrict-prototypes: YES (cached)
Compiler for C supports arguments -Wlogical-op: YES
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -Wuninitialized: YES
Compiler for C supports arguments -Winit-self: YES
Compiler for C supports arguments -Wstrict-prototypes: YES (cached)
Compiler for C supports arguments -Wimplicit-fallthrough: YES
Compiler for C supports arguments -Wredundant-decls: YES
Compiler for C supports arguments -Wincompatible-pointer-types: YES
Compiler for C supports arguments -Wformat=2: YES
Compiler for C supports arguments -Wformat-overflow=2: YES
Compiler for C supports arguments -Wformat-signedness: YES
Compiler for C supports arguments -Wformat-truncation=2: YES
Compiler for C supports arguments -Wmissing-declarations: YES
Compiler for C supports arguments -Wshift-overflow=2: YES
Compiler for C supports arguments -Wstrict-overflow=2: YES
Compiler for C supports arguments -Wswitch: YES
Checking for function "memfd_create" : YES
Library m found: YES
Found pkg-config: /usr/bin/pkg-config (1.9.5)
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency epoll-shim found: NO (tried pkgconfig and cmake)
Run-time dependency xkbcommon found: YES 1.5.0
Run-time dependency libevdev found: YES 1.13.1
Message: Trying to find an sd-bus provider...
Run-time dependency libsystemd found: YES 251
Message: Using sd-bus provider "libsystemd"
Dependency libsystemd found: YES 251 (cached)
Configuring config.h using configuration
Program ei-scanner found: YES (/home/tkloczko/rpmbuild/BUILD/libei-1.0.0/proto/ei-scanner)
Program xmllint found: YES (/usr/bin/xmllint)
Program python3 (attr, jinja2) found: YES (/usr/bin/python3) modules: attr, jinja2
Program black found: NO
Program ruff found: NO
Build targets in project: 13
libei 1.0.0
Conditional Features
sd-bus-provider : libsystemd
liboeffis : True
Test options
Test suite enabled: False
User defined options
auto_features : enabled
bindir : /usr/bin
buildtype : plain
datadir : /usr/share
includedir : /usr/include
infodir : /usr/share/info
libdir : /usr/lib64
libexecdir : /usr/libexec
localedir : /usr/share/locale
localstatedir : /var
mandir : /usr/share/man
prefix : /usr
sbindir : /usr/sbin
sharedstatedir : /var/lib
sysconfdir : /etc
wrap_mode : nodownload
liboeffis : enabled
tests : disabled
Found ninja-1.11.1 at /usr/bin/ninja
And build fails with
[tkloczko@pers-jacek x86_64-redhat-linux-gnu]$ ninja
[1/56] Generating src/brei-proto-headers with a custom command
FAILED: src/brei-proto.h
/home/tkloczko/rpmbuild/BUILD/libei-1.0.0/proto/ei-scanner --component=brei --output=src/brei-proto.h /home/tkloczko/rpmbuild/BUILD/libei-1.0.0/proto/protocol.xml ../src/brei-proto.h.tmpl
Traceback (most recent call last):
File "/home/tkloczko/rpmbuild/BUILD/libei-1.0.0/proto/ei-scanner", line 912, in <module>
def scanner(argv: list[str]) -> None:
TypeError: 'type' object is not subscriptable
[2/56] Generating src/ei-proto-headers with a custom command
FAILED: src/ei-proto.h
/home/tkloczko/rpmbuild/BUILD/libei-1.0.0/proto/ei-scanner --component=ei --output=src/ei-proto.h /home/tkloczko/rpmbuild/BUILD/libei-1.0.0/proto/protocol.xml ../src/ei-proto.h.tmpl
Traceback (most recent call last):
File "/home/tkloczko/rpmbuild/BUILD/libei-1.0.0/proto/ei-scanner", line 912, in <module>
def scanner(argv: list[str]) -> None:
TypeError: 'type' object is not subscriptable
[3/56] Generating src/eis-proto-sources with a custom command
FAILED: src/eis-proto.c
/home/tkloczko/rpmbuild/BUILD/libei-1.0.0/proto/ei-scanner --component=eis --output=src/eis-proto.c /home/tkloczko/rpmbuild/BUILD/libei-1.0.0/proto/protocol.xml '--jinja-extra-data={"headerfile": "eis-proto.h"}' ../src/ei-proto.c.tmpl
Traceback (most recent call last):
File "/home/tkloczko/rpmbuild/BUILD/libei-1.0.0/proto/ei-scanner", line 912, in <module>
def scanner(argv: list[str]) -> None:
TypeError: 'type' object is not subscriptable
[4/56] Generating src/ei-proto-sources with a custom command
FAILED: src/ei-proto.c
/home/tkloczko/rpmbuild/BUILD/libei-1.0.0/proto/ei-scanner --component=ei --output=src/ei-proto.c /home/tkloczko/rpmbuild/BUILD/libei-1.0.0/proto/protocol.xml '--jinja-extra-data={"headerfile": "ei-proto.h"}' ../src/ei-proto.c.tmpl
Traceback (most recent call last):
File "/home/tkloczko/rpmbuild/BUILD/libei-1.0.0/proto/ei-scanner", line 912, in <module>
def scanner(argv: list[str]) -> None:
TypeError: 'type' object is not subscriptable
[5/56] Generating src/eis-proto-headers with a custom command
FAILED: src/eis-proto.h
/home/tkloczko/rpmbuild/BUILD/libei-1.0.0/proto/ei-scanner --component=eis --output=src/eis-proto.h /home/tkloczko/rpmbuild/BUILD/libei-1.0.0/proto/protocol.xml ../src/ei-proto.h.tmpl
Traceback (most recent call last):
File "/home/tkloczko/rpmbuild/BUILD/libei-1.0.0/proto/ei-scanner", line 912, in <module>
def scanner(argv: list[str]) -> None:
TypeError: 'type' object is not subscriptable
[6/56] Linking target src/liboeffis.so.1.0.0
ninja: build stopped: subcommand failed.
I'm using python 3.8.17.