Bug 1718288 - libnbd fails to build with Python 3.8
Summary: libnbd fails to build with Python 3.8
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: libnbd
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON38
TreeView+ depends on / blocked
 
Reported: 2019-06-07 12:28 UTC by Petr Viktorin (pviktori)
Modified: 2019-06-09 20:36 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-09 20:36:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Viktorin (pviktori) 2019-06-07 12:28:44 UTC
libnbd fails to build with Python 3.8.0b1.

There is no obvious (to me) error in the build logs, but several files end up not being built:
BUILDSTDERR: error: File not found: /builddir/build/BUILDROOT/libnbd-0.1.2-2.fc31.x86_64/usr/lib64/python3.8/site-packages/libnbdmod*.so
BUILDSTDERR: error: File not found: /builddir/build/BUILDROOT/libnbd-0.1.2-2.fc31.x86_64/usr/lib64/python3.8/site-packages/nbd.py
BUILDSTDERR: error: File not found: /builddir/build/BUILDROOT/libnbd-0.1.2-2.fc31.x86_64/usr/lib64/python3.8/site-packages/__pycache__/nbd*.py*
BUILDSTDERR: error: File not found: /builddir/build/BUILDROOT/libnbd-0.1.2-2.fc31.x86_64/usr/bin/nbdsh
BUILDSTDERR: error: File not found: /builddir/build/BUILDROOT/libnbd-0.1.2-2.fc31.x86_64/usr/share/man/man1/nbdsh.1*

Also, this line and several empty test suites suggests you should add `BuildRequires: libndb-devel`:
BUILDSTDERR: configure: WARNING: nbdkit development package is not installed, tests will be disabled


For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.8/fedora-rawhide-x86_64/00925605-libnbd/

For all our attempts to build libnbd with Python 3.8, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.8/package/libnbd/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.8:
https://copr.fedorainfracloud.org/coprs/g/python/python3.8/

Let us know here if you have any questions.

Comment 1 Richard W.M. Jones 2019-06-07 12:51:16 UTC
I guess the same problem we had in libguestfs because PYTHON_LIBS is no longer defined:

https://www.redhat.com/archives/libguestfs/2019-May/msg00255.html

Comment 2 Richard W.M. Jones 2019-06-09 20:36:38 UTC
I fixed this in libnbd commit 70fa61b407969dec12e85e039fdaca550a12009f
libnbd >= 0.1.3

This will be in Rawhide soon.


Note You need to log in before you can comment on or make changes to this bug.