Bug 30269 - mock is now part of standard python library
Summary: mock is now part of standard python library
Status: NEW
Alias: None
Product: libabigail
Classification: Unclassified
Component: default (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Dodji Seketeli
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-23 21:07 UTC by Ben Woodard
Modified: 2023-03-23 21:07 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Woodard 2023-03-23 21:07:20 UTC
Trying to build fedabipkgdiff on RHEL9.1 fails during configure:
../../libabigail/configure --enable-rpm=yes --enable-ctf --enable-fedabipkgdiff

The problem is that it is looking for the python3-mock module but that doesn't exist for RHEL9.1 even in EPEL because the package has been deprecated. 

$ sudo dnf info python3-mock-4.0.3-5.fc37.noarch
[sudo] password for ben: 
Updating Subscription Management repositories.
Last metadata expiration check: 0:18:25 ago on Thu 23 Mar 2023 01:46:50 PM PDT.
Installed Packages
Name         : python3-mock
Version      : 4.0.3
Release      : 5.fc37
Architecture : noarch
Size         : 362 k
Source       : python-mock-4.0.3-5.fc37.src.rpm
Repository   : @System
From repo    : fedora
Summary      : Deprecated, use unittest.mock from the standard library instead
URL          : https://github.com/testing-cabal/mock
License      : BSD
Description  : This is a deprecated package.
             : 
             : The mock module is now part of the Python standard library,
             : available as unittest.mock in Python 3.3 onwards.
             : 
             : https://fedoraproject.org/wiki/Changes/DeprecatePythonMock