Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 907253 - net-wireless/unifi-7.4.156::gentoo fails to build due to platform-inappropriate operation
Summary: net-wireless/unifi-7.4.156::gentoo fails to build due to platform-inappropria...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Conrad Kostecki
URL:
Whiteboard:
Keywords:
: 907233 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-05-27 18:15 UTC by Phil Stracchino (Unix Ronin)
Modified: 2023-05-31 16:04 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Stracchino (Unix Ronin) 2023-05-27 18:15:09 UTC
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.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-27 18:23:49 UTC
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.
Comment 2 Larry the Git Cow gentoo-dev 2023-05-31 15:44:09 UTC
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(-)
Comment 3 Conrad Kostecki gentoo-dev 2023-05-31 15:45:50 UTC
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.
Comment 4 Magnus Granberg gentoo-dev 2023-05-31 16:04:42 UTC
*** Bug 907233 has been marked as a duplicate of this bug. ***