Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1758474

Summary: pybind11: FTBFS with Python 3.8.0rc1
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: pybind11Assignee: Susi Lehtola <susi.lehtola>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: susi.lehtola
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://koschei.fedoraproject.org/package/pybind11
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-08 17:03:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1750908, 1686977    

Description Miro Hrončok 2019-10-04 09:10:29 UTC
Description of problem:
Package pybind11 fails to build from source in Fedora rawhide with Python 3.8.0rc1:

_____________________________ test_class_refcount ______________________________
    @pytest.unsupported_on_pypy
    def test_class_refcount():
        """Instances must correctly increase/decrease the reference count of their types (#1029)"""
        from sys import getrefcount
    
        class PyDog(m.Dog):
            pass
    
        for cls in m.Dog, PyDog:
            refcount_1 = getrefcount(cls)
            molly = [cls("Molly") for _ in range(10)]
            refcount_2 = getrefcount(cls)
    
            del molly
            pytest.gc_collect()
            refcount_3 = getrefcount(cls)
    
>           assert refcount_1 == refcount_3
E           assert 6 == 16
test_class.py:255: AssertionError

Version-Release number of selected component (if applicable):
2.4.2-1.fc32

Steps to Reproduce:
koji build --scratch f32 pybind11-2.4.2-1.fc32.src.rpm

Additional info:
This package is tracked by Koschei. See:
http://koschei.fedoraproject.org/package/pybind11

Comment 1 Susi Lehtola 2019-10-04 16:47:05 UTC
Reported upstream at https://github.com/pybind/pybind11/issues/1946

Comment 2 Miro Hrončok 2019-10-08 17:24:43 UTC
Awesome!