Bug 1536231 - %{python_sitelib}, %{python_sitearch}, %{python_version} all stopped working
Summary: %{python_sitelib}, %{python_sitearch}, %{python_version} all stopped working
Keywords:
Status: CLOSED DUPLICATE of bug 1535692
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1536202
TreeView+ depends on / blocked
 
Reported: 2018-01-18 23:48 UTC by Miro Hrončok
Modified: 2018-01-18 23:49 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-01-18 23:49:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2018-01-18 23:48:18 UTC
Description of problem:
After https://github.com/rpm-software-management/rpm/commit/7ac3f07ac41a2760ed6dae65e63fe0b49aec6f6c#diff-8dfb47f00335d0da239fd9b61acaca5d %{python_sitelib}, %{python_sitearch}, %{python_version} macros stopped working.

Version-Release number of selected component (if applicable):
rpm-4.14.1-1.fc28

How reproducible: Easy


Steps to Reproduce:
1. mock -r fedora-rawhide-x86_64 --install python2-devel
2. mock -r fedora-rawhide-x86_64 --shell
3. rpm --eval '%{python_version}'
4. rpm --eval '%{python_sitelib}'
5. rpm --eval '%{python_sitearch}'

Actual results:
/usr/bin/python: can't open file '/usr/lib/rpm/python-macro-helper': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/usr/lib/rpm/python-macro-helper': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/usr/lib/rpm/python-macro-helper': [Errno 2] No such file or directory


Expected results:
2.7
/usr/lib/python2.7/site-packages
/usr/lib64/python2.7/site-packages

Additional info:
This breaks packages. See Bug 1536202.

Comment 1 Miro Hrončok 2018-01-18 23:49:38 UTC

*** This bug has been marked as a duplicate of bug 1535692 ***


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