Got it figured out. From the fedpkg man page: --module-name MODULE_NAME Override the module name. Otherwise it is discovered from: Git push URL or Git URL (last part of path with .git extension removed) or from name macro in spec file. In that order. Changing the git remote url from
origin http://copr-dist-git.fedorainfracloud.org/cgit/jsouthworth/racket/racket.git/ (fetch) origin http://copr-dist-git.fedorainfracloud.org/cgit/jsouthworth/racket/racket.git/ (push) to origin http://copr-dist-git.fedorainfracloud.org/cgit/jsouthworth/racket/racket.git (fetch) origin http://copr-dist-git.fedorainfracloud.org/cgit/jsouthworth/racket/racket.git (push) solved the issue. On Wed, Jan 11, 2017 at 10:55 PM, Laverne Schrock <schr1...@morris.umn.edu> wrote: > Hi, > > I am trying to build the RPMs from the following repo: > http://copr-dist-git.fedorainfracloud.org/cgit/ > jsouthworth/racket/racket.git > > I cloned it down, ran `spectool -g *.spec`, and then `fedpkg --release f24 > mockbuild`. This last command gives the following output: > > Wrote: /rpms/racket/racket-6.7-1.fc24.src.rpm > INFO: mock.py version 1.3.3 starting (python version = 3.5.2)... > Start: init plugins > INFO: selinux enabled > Finish: init plugins > Start: run > ERROR: Cannot find/open srpm: /rpms/racket/-6.7-1.fc24.src.rpm. Error: > [Errno 2] No such file or directory: '/rpms/racket/-6.7-1.fc24.src.rpm' > Could not execute mockbuild: Command '['mock', '-r', 'fedora-24-x86_64', > '--resultdir', u'/rpms/racket/results_/6.7/1.fc24', '--rebuild', > u'/rpms/racket/-6.7-1.fc24.src.rpm']' returned non-zero exit status 1 > > Huh? Why is mockbuild looking for /rpms/racket/-6.7-1.fc24.src.rpm ? > > /rpms/racket/racket-6.7-1.fc24.src.rpm does exist and renaming to the > above file and then rerunning the fedpkg command works fine. > > Turning on verbosity doesn't help much: > > Creating repo object from /rpms/racket > Could not determine the remote name: Cmd('git') failed due to: exit code(1) > cmdline: git config --get branch.f24.remote > Falling back to default remote name 'origin' > Running: rpmbuild --define '_sourcedir /rpms/racket' --define '_specdir > /rpms/racket' --define '_builddir /rpms/racket' --define '_srcrpmdir > /rpms/racket' --define '_rpmdir /rpms/racket' --define 'dist .fc24' > --define 'fedora 24' --eval '%undefine rhel' --define 'fc24 1' --nodeps -bs > /rpms/racket/racket.spec > > Wrote: /rpms/racket/racket-6.7-1.fc24.src.rpm > Running: mock -r fedora-24-x86_64 --resultdir /rpms/racket/results_/6.7/1.fc24 > --rebuild /rpms/racket/-6.7-1.fc24.src.rpm > INFO: mock.py version 1.3.3 starting (python version = 3.5.2)... > Start: init plugins > INFO: selinux enabled > Finish: init plugins > Start: run > ERROR: Cannot find/open srpm: /rpms/racket/-6.7-1.fc24.src.rpm. Error: > [Errno 2] No such file or directory: '/rpms/racket/-6.7-1.fc24.src.rpm' > Cleaning up mock temporary config directory: None > Could not execute mockbuild: Command '['mock', '-r', 'fedora-24-x86_64', > '--resultdir', u'/rpms/racket/results_/6.7/1.fc24', '--rebuild', > u'/rpms/racket/-6.7-1.fc24.src.rpm']' returned non-zero exit status 1 > Traceback (most recent call last): > File "/usr/bin/fedpkg", line 16, in <module> > main() > File "/usr/lib/python2.7/site-packages/fedpkg/__main__.py", line 77, in > main > sys.exit(client.args.command()) > File "/usr/lib/python2.7/site-packages/pyrpkg/cli.py", line 1265, in > mockbuild > raise rpkgError(e) > pyrpkg.errors.rpkgError: Command '['mock', '-r', 'fedora-24-x86_64', > '--resultdir', u'/rpms/racket/results_/6.7/1.fc24', '--rebuild', > u'/rpms/racket/-6.7-1.fc24.src.rpm']' returned non-zero exit status 1 > > The host is running Fedora 24. Any idea what could be causing this? > > - Laverne Schrock >
_______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org