Adding a Makefile to the repo breaks builds
Created by: gagbo
I tried to create a Makefile to test builds locally quickly before pushing them to github triggering the webhook to build the package on Copr.
When I add the Makefile to the tracked files in the repository, the builds in Copr fail with (approx.) this error :
python3 : 'Setup.py' file not found [Error 2]
When I changed the %setup
command to a more verbose command (also changed to %autosetup
for patches management) I saw that the tar command which extracts the data shows what's extracted and in the kitty-0.10.0
folder I only had the files from this repository.
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ASkvjg
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf kitty-0.10.0
+ /usr/bin/gzip -dc /builddir/build/SOURCES/v0.10.0.tar.gz
+ /usr/bin/tar -xvvof -
drwxrwxr-x mockbuilder/mockbuilder 0 2018-05-22 13:54 kitty-0.10.0/
-rw-rw-r-- mockbuilder/mockbuilder 3161 2018-05-22 13:54 kitty-0.10.0/kitty.spec
-rw-rw-r-- mockbuilder/mockbuilder 265 2018-05-22 13:54 kitty-0.10.0/README.org
-rw-rw-r-- mockbuilder/mockbuilder 107 2018-05-22 13:54 kitty-0.10.0/Makefile
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd kitty-0.10.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ArVvF8
+ umask 022
+ cd /builddir/build/BUILD
+ cd kitty-0.10.0
+ python3 setup.py --verbose linux-package --debug --libdir-name lib64
BUILDSTDERR: python3: can't open file 'setup.py': [Errno 2] No such file or directory
On the other hand, removing the Makefile
from the tracked files make the build happen as expected (the archive from kovidgoyal/kitty is actually pulled and extracted in /builddir/build/BUILD/kitty-version
).
I probably need help from #fedora-qa to understand how to change the spec file so adding any other file to the repo does not break builds.