Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpm-building: Permission denied while trying to remove previous build #4627

Closed
ssbarnea opened this issue Dec 3, 2019 · 0 comments · Fixed by #4601
Closed

rpm-building: Permission denied while trying to remove previous build #4627

ssbarnea opened this issue Dec 3, 2019 · 0 comments · Fixed by #4601
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@ssbarnea
Copy link
Collaborator

ssbarnea commented Dec 3, 2019

It seems that we cannot run build_rpm.sh twice because it produces temporary files which cannot be removed by the recursive rm.

+ git archive --prefix conmon/ --format tar.gz HEAD -o ../build/conmon.tar.gz
+ popd
~/rdo/libpod
rpmbuild -bs -D "dist %{nil}" -D "_sourcedir build/" -D "_srcrpmdir /home/ssbarnea/rdo/libpod" -D "_topdir /home/ssbarnea/rdo/libpod/rpmbuild" --nodeps  contrib/spec/podman.spec
Wrote: /home/ssbarnea/rdo/libpod/podman-1.6.4-1575372454.git116cf62f.src.rpm
+ rpmbuild --rebuild --without doc --without debug podman-1.6.4-1575372454.git116cf62f.src.rpm
Installing podman-1.6.4-1575372454.git116cf62f.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.q0wZ0s
+ umask 022
+ cd /home/ssbarnea/rpmbuild/BUILD
+ cd /home/ssbarnea/rpmbuild/BUILD
+ rm -rf libpod-116cf62f
rm: cannot remove 'libpod-116cf62f/_build/pkg/mod/github.com/varlink/[email protected]/.gitignore': Permission denied
rm: cannot remove 'libpod-116cf62f/_build/pkg/mod/github.com/varlink/[email protected]/.travis.yml': Permission denied
rm: cannot remove 'libpod-116cf62f/_build/pkg/mod/github.com/varlink/[email protected]/LICENSE': Permission denied

I looked at file permissions and this is the firt folder with wrong permissions:

 ls -la /home/ssbarnea/rpmbuild/BUILD/libpod-c867d463/_build/pkg/mod/github.com/varlink
total 0
dr-x------. 4 ssbarnea ssbarnea 154 Dec  3 10:49 [email protected]

As see the "w" is missing from current user.

Doing a chmod -R +w ~/rpmbuild/BUILD can be used as an workaround but we we need to fix the root cause.

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 23, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant