#39 `centpkg build --scratch --srpm` broken after `centpkg fork`
Closed 2 years ago by tdawson. Opened 3 years ago by churchyard.

I have used centpkg fork and I have this:

hroncok git+ssh://git@gitlab.com/hroncok/centos_rpms_python-rpm-macros.git (fetch)
hroncok git+ssh://git@gitlab.com/hroncok/centos_rpms_python-rpm-macros.git (push)
origin  git+ssh://git@gitlab.com/redhat/centos-stream/rpms/python-rpm-macros.git (fetch)
origin  git+ssh://git@gitlab.com/redhat/centos-stream/rpms/python-rpm-macros.git (push)

I cannot use centpkg build --scratch --srpm on a branch that has been pushed to my fork:

$ centpkg build --nowait --fail-fast --scratch --srpm
setting SOURCE_DATE_EPOCH=1619481600
Wrote: /home/churchyard/rpmbuild/centpkg/python-rpm-macros/python-rpm-macros-3.9-38.el9.src.rpm
Could not execute build: No such file: centos_rpms_python-rpm-macros-3.9-38.el9.src.rpm

I need to set --name:

$ centpkg --name python-rpm-macros build --nowait --fail-fast --scratch --srpm
setting SOURCE_DATE_EPOCH=1619481600
Wrote: /home/churchyard/rpmbuild/centpkg/python-rpm-macros/python-rpm-macros-3.9-38.el9.src.rpm
[====================================] 100% 00:00:00  27.83 KiB  85.81 KiB/sec
Building python-rpm-macros-3.9-38.el9.src.rpm for c9s-candidate
Created task: 258769
Task info: https://kojihub.stream.rdu2.redhat.com/koji/taskinfo?taskID=258769

centpkg copr-build is broken in the same way:

[python-setuptools (c9s-license-file-metadata %)]$ git remote -v
hroncok git+ssh://git@gitlab.com/hroncok/centos_rpms_python-setuptools.git (fetch)
hroncok git+ssh://git@gitlab.com/hroncok/centos_rpms_python-setuptools.git (push)
origin  git+ssh://git@gitlab.com/redhat/centos-stream/rpms/python-setuptools.git (fetch)
origin  git+ssh://git@gitlab.com/redhat/centos-stream/rpms/python-setuptools.git (push)

[python-setuptools (c9s-license-file-metadata %)]$ centpkg copr-build $COPR
Not downloading already downloaded setuptools-53.0.0.tar.gz
setting SOURCE_DATE_EPOCH=1641945600
Wrote: /home/churchyard/rpmbuild/centpkg/python-setuptools/python-setuptools-53.0.0-9.el9.src.rpm

Error: File centos_rpms_python-setuptools-53.0.0-9.el9.src.rpm not found
Could not execute copr_build: Failed to execute command.

Metadata Update from @tdawson:
- Issue tagged with: Bug

2 years ago

Hey @churchyard I started looking at this bug but I don't seem to be getting the same error as you, just want to double check is this still happening for you?

This has been verified that it is now fixed.

Metadata Update from @tdawson:
- Issue status updated to: Closed (was: Open)

2 years ago

Metadata Update from @tdawson:
- Issue untagged with: Bug

2 years ago

Login to comment on this ticket.

Metadata