This is a definite OOPS: >>> Emerging (6 of 6) net-wireless/unifi-7.4.156::gentoo * unifi-7.4.156.zip BLAKE2B SHA512 size ;-) ... [ ok ] >>> cfg-update-1.8.2-r1: Creating checksum index... >>> Unpacking source... >>> Unpacking unifi-7.4.156.zip to /var/tmp/portage/net-wireless/unifi-7.4.156/work >>> Source unpacked in /var/tmp/portage/net-wireless/unifi-7.4.156/work >>> Preparing source in /var/tmp/portage/net-wireless/unifi-7.4.156/work/UniFi ... rm: cannot remove 'lib/native/Mac': No such file or directory rm: cannot remove 'lib/native/Windows': No such file or directory * ERROR: net-wireless/unifi-7.4.156::gentoo failed (prepare phase): * (no error message) * * Call stack: * ebuild.sh, line 136: Called src_prepare * environment, line 3006: Called die * The specific snippet of code: * rm -r lib/native/{Mac,Windows} || die; This ebuild should not die simply because it fails to remove platform-inappropriate native directories that probably shouldn't exist in the first place.
Not as simple as that. If they don't exist anymore, the ebuild needs to be adjusted to the new location (to avoid installing junk) or the rm removed entirely if the files are gone. But the || die itself isn't wrong. Of course, it triggering here is a problem though.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65c05b513ef7f895acc843ed89c9d11aa310159f commit 65c05b513ef7f895acc843ed89c9d11aa310159f Author: Conrad Kostecki <conikost@gentoo.org> AuthorDate: 2023-05-31 15:41:56 +0000 Commit: Conrad Kostecki <conikost@gentoo.org> CommitDate: 2023-05-31 15:43:58 +0000 net-wireless/unifi: fix install Closes: https://bugs.gentoo.org/907253 Signed-off-by: Conrad Kostecki <conikost@gentoo.org> net-wireless/unifi/unifi-7.4.156.ebuild | 3 --- 1 file changed, 3 deletions(-)
Sorry! My bad, I had commited the wrong ebuild, as I copied the wrong one from my test system :-( (In reply to Phil Stracchino (Unix Ronin) from comment #0) > This ebuild should not die simply because it fails to remove > platform-inappropriate native directories that probably shouldn't exist in > the first place. Until 7.3, Windows and Mac stuff was shipped, which was needed to be removed. With 7.4, it seems completly dropped.
*** Bug 907233 has been marked as a duplicate of this bug. ***