When building as a user, calibre somehow messes things up with mime and icons, installing them (it seems, installing them in WRKDIR) and ends up failing with: ===> Building package for calibre-1.48.0_7 pkg-static: Unable to access file /wrkdirs/usr/ports/deskutils/calibre/work/stage/usr/local/share/icons/hicolor/128x128/mimetypes/application-lrf.png: No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/deskutils/calibre/work/stage/usr/local/share/icons/hicolor/128x128/mimetypes/application-x-kindle-application.png: No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/deskutils/calibre/work/stage/usr/local/share/icons/hicolor/128x128/mimetypes/application-x-mobi8-ebook.png: No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/deskutils/calibre/work/stage/usr/local/share/icons/hicolor/128x128/mimetypes/application-x-mobipocket-ebook.png: No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/deskutils/calibre/work/stage/usr/local/share/icons/hicolor/128x128/mimetypes/application-x-topaz-ebook.png: No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/deskutils/calibre/work/stage/usr/local/share/icons/hicolor/128x128/mimetypes/gnome-mime-application-lrf.png: No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/deskutils/calibre/work/stage/usr/local/share/icons/hicolor/128x128/mimetypes/gnome-mime-application-x-kindle-application.png: No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/deskutils/calibre/work/stage/usr/local/share/icons/hicolor/128x128/mimetypes/gnome-mime-application-x-mobi8-ebook.png: No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/deskutils/calibre/work/stage/usr/local/share/icons/hicolor/128x128/mimetypes/gnome-mime-application-x-mobipocket-ebook.png: No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/deskutils/calibre/work/stage/usr/local/share/icons/hicolor/128x128/mimetypes/gnome-mime-application-x-topaz-ebook.png: No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/deskutils/calibre/work/stage/usr/local/share/icons/hicolor/128x128/mimetypes/gnome-mime-text-lrs.png: No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/deskutils/calibre/work/stage/usr/local/share/icons/hicolor/128x128/mimetypes/text-lrs.png: No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/deskutils/calibre/work/stage/usr/local/share/icons/hicolor/256x256/apps/calibre-ebook-edit.png: No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/deskutils/calibre/work/stage/usr/local/share/icons/hicolor/256x256/apps/calibre-gui.png: No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/deskutils/calibre/work/stage/usr/local/share/icons/hicolor/256x256/apps/calibre-viewer.png: No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/deskutils/calibre/work/stage/usr/local/share/mime/application/epub+zip.xml: No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/deskutils/calibre/work/stage/usr/local/share/mime/application/x-kindle-application.xml: No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/deskutils/calibre/work/stage/usr/local/share/mime/application/x-mobi8-ebook.xml: No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/deskutils/calibre/work/stage/usr/local/share/mime/application/x-mobipocket-ebook.xml: No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/deskutils/calibre/work/stage/usr/local/share/mime/application/x-mobipocket-subscription.xml: No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/deskutils/calibre/work/stage/usr/local/share/mime/application/x-sony-bbeb.xml: No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/deskutils/calibre/work/stage/usr/local/share/mime/application/x-topaz-ebook.xml: No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/deskutils/calibre/work/stage/usr/local/share/mime/packages/calibre-mimetypes.xml: No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/deskutils/calibre/work/stage/usr/local/share/mime/text/lrs.xml: No such file or directory *** [do-package] Error code 1 I tried fiddling about with it, but I can't figure out where it gets the icons from, or the mime-types.
Hi, I'm not sure right away what is causing this. I'd rather not modify the port too much right now. Maybe adding "fakeroot" to USES could be an acceptable workaround? I think the port own scripts perform some check to see if it has root access and depending on that decides to not install some parts. fakeroot could trick it. I'm trying to update it to the new 2.x version, which requires porting the whole py-Qt5 stack, which is the hard part, I have some patches almost working but nothing commit ready, but hit a little roadblock on the way. Can you perform the fakeroot test and see if it's enough?
I tried USES=fakeroot, doesn't change a thing, I tried a couple of tricks before opening a PR. :-) I had not noticed that it was still 1.x though. Would be nice to make sure the 2.x version you commit in the end does build as a user, we, portmgr, would really like to switch the builders to building as a user :-)