Historical bug tracker for the Pacman package manager.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
FS#48515 - [pacman] PKGBUILD option=('!emptydirs') does not remove empty directories
Attached to Project:
Pacman
Opened by Brian BIdulock (bidulock) - Wednesday, 09 March 2016, 05:08 GMT
Last edited by Allan McRae (Allan) - Tuesday, 29 March 2016, 04:22 GMT
Opened by Brian BIdulock (bidulock) - Wednesday, 09 March 2016, 05:08 GMT
Last edited by Allan McRae (Allan) - Tuesday, 29 March 2016, 04:22 GMT
|
DetailsDescription:
option=('!emptydirs') does not remove all empty directories in all cases since findutils was updated. Additional info: * pacman 5.0.1-2 with findutils 4.6.0-1 Steps to reproduce: - build a perl package that remove *.pod an *.packlist with option=('!emptydirs') - run namcap and find one empty directory remains The problem is in /usr/share/makepkg/tidy/emptydirs.sh The following line is at fault: find . -depth -type d -exec rmdir '{}' + 2>/dev/null find(1) manual page says under -exec command {} +: "... If find encounters an error, this can sometimes cause an immediate exit, so some pending commands may not be run at all." Changing '+' to ';' works. A better command is: find . -type d -empty -delete |
This task depends upon
Closed by Allan McRae (Allan)
Tuesday, 29 March 2016, 04:22 GMT
Reason for closing: Fixed
Additional comments about closing: git commit baf1ff64
Tuesday, 29 March 2016, 04:22 GMT
Reason for closing: Fixed
Additional comments about closing: git commit baf1ff64
I guess changing "+" to ";" is the solution, but I am quite interested in what error find is encountering ot cause the failure. Any output printed?