#46949: pairs: build failure Generating pairs_SRCS.icns ----------------------------+--------------------- Reporter: greisberger@… | Owner: nicos@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: pairs | ----------------------------+--------------------- Comment (by rjvbertin@…): Replying to [comment:5 greisberger@…]:
3. else get last icontool command line in the build log 4. execute this command with sudo in a terminal 5. go back to step 1 ... I don't know very well MacPorts internals, but since I do a "sudo port install", I imagine that icontool should be called with root rights, exactly like when I execute the icontool command with sudo.
No, there's a non-privileged macports user (`macports`), and the port command executes as much as possible as that user, to reduce the risk of overwriting things it shouldn't. The only logical explanation I see (not that I *understand* said logic) is that there is a permissions issue while executing iconutil as the macports user. You could try to test that by doing `sudo -u macports` instead of simply sudo in step 4) above. If that too fails, you'll have to check the permissions on iconutil's input files and directories as well as on the target directory. If that doesn't fail, I'm stymied (a umask issue??). What are the permissions on your iconutil executable (`ls -l /usr/bin/iconutil`)?
I don't know if there are other, non-KDE ports that use icontool to generate icns files. Do you know any?
Sadly, no. -- Ticket URL: <https://trac.macports.org/ticket/46949#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X