Re: [Rpm-maint] [rpm-software-management/rpm] Could the default %clean section remove non-readable+non-empty directories? (Issue #2519)

2024-03-20 Thread Panu Matilainen
Another case where we'll run into this is if/when we add support for vpath builds in read-only tree (#2985). The default `%clean` is a macro now, making this kind of thing easy. -- Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Could the default %clean section remove non-readable+non-empty directories? (Issue #2519)

2023-10-04 Thread Michal Domonkos
FTR, CMake does something similar on `make clean` as I discovered the other day. As for the test-suite artifacts, we already do exactly [that](https://github.com/rpm-software-management/rpm/blob/ea19571b86ff1f828efc264744715b69e30d6832/tests/mktree.fedora#L82). It just seems natural to have

Re: [Rpm-maint] [rpm-software-management/rpm] Could the default %clean section remove non-readable+non-empty directories? (Issue #2519)

2023-06-01 Thread Panu Matilainen
Yeah, rpm itself suffers from this too. Both from the POV that rpmbuild may leave cruft behind (which does look like a bug when you look at it that way), but also when building rpm itself the test-suite can be non-removable afterwards. -- Reply to this email directly or view it on GitHub:

[Rpm-maint] [rpm-software-management/rpm] Could the default %clean section remove non-readable+non-empty directories? (Issue #2519)

2023-05-22 Thread Pavel Raiskup
Could the default %clean script automatically change the mode of directories before doing `rm -rf`? To avoid build failures caused by unsuccessful `rm` calls: ``` $ mkdir nonremovable $ touch nonremovable/protect-parent $ chmod a-r nonremovable $ rm -rf nonremovable/ rm: cannot remove