Ask Your Question

Fedora copr always failed with srpm build error

asked 2017-01-12 06:38:00 -0500

tendrl gravatar image

Hi All,

I am using fedora copr to build package using mock scm which will take the latest source from github master branch and build. Its failing with "srpm build error" always for epel-7-x86_64. http://copr-dist-git.fedorainfracloud...

Can some on help me understand this issue and help me fix this issue. I am facing this issue frequeltly for other projects too. However if i retry (resubmit) it passes some time.

Thanks and Regards, Timothy

edit retag flag offensive close merge delete


Tendrl looks like a really interesting project, I'm looking forward to trying out your RPMs :)

randomuser gravatar imagerandomuser ( 2017-01-12 19:56:43 -0500 )edit

This project works much beter to copr...

davidva gravatar imagedavidva ( 2017-01-13 00:50:04 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-01-12 19:44:56 -0500

updated 2017-01-12 19:46:23 -0500

I was able to build the srpm (and the RPM!) locally using the mock command from your import log, but I needed to modify it. Here was the problematic argument, shown in modified version for clarity:

--scm-option git_get='git clone --depth 1 --branch master tendrl-commons'

The first time I ran this, mock complained error: no such option: --depth. Depth is an option for git, not mock, so I added quotes around what looked like a complete git invocation and mock worked.

The function here generates this mock invocation. There's quotes to isolate the string for the python interpreter, but the bash shell that interprets the generated string also needs quotes.

edit flag offensive delete link more


Question Tools

1 follower


Asked: 2017-01-12 06:38:00 -0500

Seen: 103 times

Last updated: Jan 12 '17