Source: py-libzfs
Version: 0.0+git20190717.39ccb15-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source

py-libzfs FTBFS on all architectures:
https://buildd.debian.org/status/package.php?p=py-libzfs&suite=experimental
I can also reproduce it on amd64.

   dh_auto_build -a -O--buildsystem=pybuild
I: pybuild base:217: /usr/bin/python3 setup.py build 
running build
running build_ext
cythoning libzfs.pyx to libzfs.c
building 'libzfs' extension
creating build
creating build/temp.linux-arm64-3.7
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g 
-fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security 
-g -fwrapv -O2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
-D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -c libzfs.c -o 
build/temp.linux-arm64-3.7/libzfs.o -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -I/usr/include/libzfs/ -I/usr/include/libspl/ 
-D_MACHINE_ENDIAN_H_ -DHAVE_ISSETUGID -Werror=implicit-function-declaration 
-Wdate-time -D_FORTIFY_SOURCE=2
libzfs.c:1:2: error: #error Do not use this file, it is the result of a failed 
Cython compilation.
    1 | #error Do not use this file, it is the result of a failed Cython 
compilation.
      |  ^~~~~
warning: ./pxd/nvpair.pxd:56:3: 'DATA_TYPE_UINT8_ARRAY' redeclared 
warning: libzfs.pyx:571:24: Non-trivial type declarators in shared declaration 
(e.g. mix of pointers and values). Each pointer declaration should be on its 
own line.
warning: libzfs.pyx:571:31: Non-trivial type declarators in shared declaration 
(e.g. mix of pointers and values). Each pointer declaration should be on its 
own line.
warning: libzfs.pyx:572:29: Non-trivial type declarators in shared declaration 
(e.g. mix of pointers and values). Each pointer declaration should be on its 
own line.
warning: libzfs.pyx:572:35: Non-trivial type declarators in shared declaration 
(e.g. mix of pointers and values). Each pointer declaration should be on its 
own line.

Error compiling Cython file:
------------------------------------------------------------
...

        with nogil:
            IF HAVE_ZPOOL_SEARCH_IMPORT_LIBZUTIL and 
HAVE_ZPOOL_SEARCH_IMPORT_PARAMS == 3:
                result = libzfs.zpool_search_import(self.handle, &iargs, 
&libzfs.libzfs_config_ops)
            ELSE:
                result = libzfs.zpool_search_import(self.handle, &iargs)
                              ^
------------------------------------------------------------

libzfs.pyx:814:31: cimported module has no attribute 'zpool_search_import'

Error compiling Cython file:
------------------------------------------------------------
...
        raise OSError(errno.EINVAL, 'Not a character device')

    IF HAVE_ZPOOL_READ_LABEL_PARAMS == 3:
        ret = libzfs.zpool_read_label(fd, &handle, NULL)
    ELSE:
        ret = libzfs.zpool_read_label(fd, &handle)
                   ^
------------------------------------------------------------

libzfs.pyx:3390:20: cimported module has no attribute 'zpool_read_label'

Error compiling Cython file:
------------------------------------------------------------
...

        with nogil:
            IF HAVE_ZPOOL_SEARCH_IMPORT_LIBZUTIL and 
HAVE_ZPOOL_SEARCH_IMPORT_PARAMS == 3:
                result = libzfs.zpool_search_import(self.handle, &iargs, 
&libzfs.libzfs_config_ops)
            ELSE:
                result = libzfs.zpool_search_import(self.handle, &iargs)
                                                  ^
------------------------------------------------------------

libzfs.pyx:814:51: Calling gil-requiring function not allowed without gil
error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
E: pybuild pybuild:341: build: plugin distutils failed with: exit code=1: 
/usr/bin/python3 setup.py build 
dh_auto_build: pybuild --build -i python{version} -p 3.7 returned exit code 13
make: *** [debian/rules:8: build-arch] Error 255

Andreas

Reply via email to