Bug 200932 - deskutils/calibre: doesn't package as a user
Summary: deskutils/calibre: doesn't package as a user
Status: Closed Not Accepted
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Guido Falsi
URL: http://package19.nyi.freebsd.org/data...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-17 12:41 UTC by Mathieu Arnold
Modified: 2015-06-17 22:00 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (madpilot)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Arnold freebsd_committer freebsd_triage 2015-06-17 12:41:32 UTC
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.
Comment 1 Guido Falsi freebsd_committer freebsd_triage 2015-06-17 19:53:58 UTC
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?
Comment 2 Mathieu Arnold freebsd_committer freebsd_triage 2015-06-17 22:00:05 UTC
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 :-)