Bug 29941

Summary: script is "missing" in ~/rpmbuild/BUILD/setuptools-58.5.3/build/lib/setuptools when rebuilding the python-setuptools src rpm from Cauldron
Product: Mageia Reporter: Kristoffer Grundström <lovaren>
Component: RPM PackagesAssignee: Python Stack Maintainers <python>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: jani.valimaa
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: rpm-mageia-setup-2.62-1.mga9 CVE:
Status comment:

Description Kristoffer Grundström 2022-01-25 07:34:37 CET
Description of problem: I just rebuilt the src.rpm of python-setuptools from Cauldron to Mageia 8 and in the build output I saw these lines with the exact same content:

grep: /home/kristoffer/rpmbuild/BUILDROOT/python-setuptools-58.5.3-1.mga8.x86_64/usr/lib/python3.8/site-packages/setuptools/script: File or directory does not exist
grep: (dev).tmpl: File or directory does not exist
grep: /home/kristoffer/rpmbuild/BUILDROOT/python-setuptools-58.5.3-1.mga8.x86_64/usr/lib/python3.8/site-packages/setuptools/script: File or directory does not exist
grep: (dev).tmpl: File or directory does not exist
grep: /home/kristoffer/rpmbuild/BUILDROOT/python-setuptools-58.5.3-1.mga8.x86_64/usr/lib/python3.8/site-packages/setuptools/script: File or directory does not exist
grep: (dev).tmpl: File or directory does not exist

I did ls -l /home/kristoffer/rpmbuild/BUILD/setuptools-58.5.3/build/lib/setuptools/ and there seems to be a typo somewhere as script(dev) actually does exist:

-rw-r--r-- 1 kristoffer kristoffer   218 nov  5 00:33 'script (dev).tmpl'
-rw-r--r-- 1 kristoffer kristoffer   138 nov  5 00:33  script.tmpl

Version-Release number of selected component (if applicable): 58.5.3-1

How reproducible: Everytime.

Steps to Reproduce:
1. Download the 58.5.3 python-setuptools src rpm.
2. Open a terminal window and run rpmbuild --rebuild python-setuptools-58.5.3-1.mga8.src.rpm and watch the output.
3. The rebuild works, but the script file is "missing" nevertheless.
Kristoffer Grundström 2022-01-25 07:34:53 CET

Summary: script is missing in /usr/lib/python3.8/site-packages/setuptools/ when rebuilding the python-setuptools src rpm from Cauldron => script is "missing" in /usr/lib/python3.8/site-packages/setuptools/ when rebuilding the python-setuptools src rpm from Cauldron

Kristoffer Grundström 2022-01-25 07:36:01 CET

Summary: script is "missing" in /usr/lib/python3.8/site-packages/setuptools/ when rebuilding the python-setuptools src rpm from Cauldron => script is "missing" in ~/rpmbuild/BUILD/setuptools-58.5.3/build/lib/setuptools when rebuilding the python-setuptools src rpm from Cauldron

Comment 1 Lewis Smith 2022-01-25 21:51:04 CET
Thank you for the report.

My M8 system has:
'/usr/lib/python3.8/site-packages/setuptools/script (dev).tmpl'
 /usr/lib/python3.8/site-packages/setuptools/script.tmpl
which is not eactly what it wanted:
 /usr/lib/python3.8/site-packages/setuptools/script

Assigning to Python people.

Assignee: bugsquad => python

Comment 2 Jani Välimaa 2022-01-27 19:21:55 CET
It's not a bug in python, but in some scriptlet run by rpmbuild. I suspect /usr/lib/rpm/gi-find-deps.sh. Looks like the scriptlet doesn't properly handle files with a space in their name. I'll dig this a bit more.
Comment 3 Jani Välimaa 2022-01-27 19:45:45 CET
Fixed with rpm-mageia-setup-2.62-2.mga9.

Status: NEW => RESOLVED
CC: (none) => jani.valimaa
Resolution: (none) => FIXED
Source RPM: python-setuptools => rpm-mageia-setup-2.62-1.mga9

Comment 4 Kristoffer Grundström 2022-01-27 20:04:01 CET
(In reply to Jani Välimaa from comment #3)
> Fixed with rpm-mageia-setup-2.62-2.mga9.

Kiitos, Jani. ;)