Hello Jonathan,
if you check the end of build-live.log here: https://copr-be.cloud.fedoraproject.org/results/jleroy/PlexMediaPlayer/srpm-...
There is no output from the script
Output: []
The generated srpm is written to
Wrote: /mnt/tmp/tmpktelyu3h/plexmediaplayer-fedora/SRPMS/plexmediaplayer-2.18.0-1.fc28.src.rpm
But it should be written to
$(outdir)
/mnt/var/lib/copr-rpmbuild/results/tmpeuhha9ly in the referenced build.
From our docs
$ cd myrepo $ cat .copr/Makefile srpm: dnf -y install tito tito build --builder=SomeBuilder --test --srpm --output=$(outdir)
Copr looks for the generated srpm in the $(outdir) Makefile variable (that you can pass to a custom shell script optionally).
Let us know if it works for you Copr team On Tue, Sep 18, 2018 at 11:02 AM Jonathan Leroy jonathan@harrycow.fr wrote:
Le dim. 16 sept. 2018 à 10:17, Michal Novotny clime@redhat.com a écrit :
Hello, the problem with make_srpm method is that useful information in the builder-live.log is usually somewhere in the middle. Here:
Thank you for your answer. Indeed the errors are in the log file, I should have checked better!
I'm now calling spectool in my Makefile in order to download the missing source file from GitHub.
The SRPM file is successfully built according to the logs, but the build still fail and I don't see any error message in the logs located at https://copr-be.cloud.fedoraproject.org/results/jleroy/PlexMediaPlayer/srpm-....
However, the task log (https://copr-dist-git.fedorainfracloud.org/per-task-logs/799659.log) show this strange error:
Traceback (most recent call last): File "/usr/share/copr/dist_git/importer.py", line 75, in do_import workdir File "/usr/share/copr/dist_git/helpers.py", line 173, in download_file raise FileDownloadException(str(e)) dist_git.exceptions.FileDownloadException: Invalid URL 'None': No schema supplied. Perhaps you meant http://None?
After looking at Copr's source code, this seems to be an issue with dist-git's handling of srpm import? https://pagure.io/copr/copr/blob/master/f/dist-git/dist_git/importer.py#_75
Thank you,
-- Jonathan Leroy _______________________________________________ copr-devel mailing list -- copr-devel@lists.fedorahosted.org To unsubscribe send an email to copr-devel-leave@lists.fedorahosted.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/copr-devel@lists.fedorahosted.o...