Summary: | www/calendarserver various issues on FreeBSD10 | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | holger | ||||||||||||||
Component: | Individual Port(s) | Assignee: | John Marino <marino> | ||||||||||||||
Status: | Closed FIXED | ||||||||||||||||
Severity: | Affects Only Me | CC: | Axel.Rau, marino | ||||||||||||||
Priority: | --- | ||||||||||||||||
Version: | Latest | ||||||||||||||||
Hardware: | Any | ||||||||||||||||
OS: | Any | ||||||||||||||||
Attachments: |
|
Description
holger
2014-10-18 21:15:25 UTC
Fix synopsis and notify maintainer. >* txdav/base/propertystore/xattr.py handles FreeBSD8, FreeBSD9 and it needs an ntry for FreeBSD10 too.. This should be reported against devel/py-xattr. > * The port should probably install the caldavd.plist to /usr/local/etc/caldavd Port option EXAMPLES installs caldavd.plist in ${EXAMPLESDIR} I will look for the other issues. (In reply to Axel.Rau from comment #2) > >* txdav/base/propertystore/xattr.py handles FreeBSD8, FreeBSD9 and it needs an ntry for FreeBSD10 too.. > This should be reported against devel/py-xattr. /usr/local/lib/python2.7/site-packages/txdav/base/propertystore/xattr.py is part of calendarserver. It needs the freebsd10. Upstream is rather slow in picking up patches. Do you have a better contact with them? > > > * The port should probably install the caldavd.plist to /usr/local/etc/caldavd > Port option EXAMPLES installs caldavd.plist in ${EXAMPLESDIR} > > I will look for the other issues. thanks! Created attachment 148706 [details] Patch to fix the reported issues in 10.x > * txdav/base/propertystore/xattr.py handles FreeBSD8, FreeBSD9 and it needs an ntry for FreeBSD10 too.. Changed txdav/base/propertystore/xattr.py to be version independant. Informed upstream. > * The start script doesn't work on FreeBSD10 for various reasons (using rc_var, caldavd not finding bash due the path, issues with python due the path) Startscript fixed. > * All calendarserver_* scripts need a bangpath that work with the "python2/python2.7" installation. Added new rundependency 'python' to let the bangpathes work. maintainer provided fix for reported problem, moving to patch-ready status. I doubt this is correct: RUN_DEPENDS+= python:${PORTSDIR}/lang/python This probably should be "USES+= python:run" (or equivalent) Can somebody test that and update the patch? (In reply to John Marino from comment #6) > I doubt this is correct: > > RUN_DEPENDS+= python:${PORTSDIR}/lang/python This was the only way to get /usr/local/bin/python linked to python2. The application scripts have a shebang of #!/usr/bin/env python > > This probably should be "USES+= python:run" (or equivalent) Just links python2 to interpreter. > > Can somebody test that and update the patch? Please advice. this is the first time I'm hearing python version 2 is specifically required. USES+= python:2,run Please look in Mk/Uses/python.mk for more information. Created attachment 149529 [details]
svn patch against head 372677
Revised patch removes requirement for meta port python by fixing all bang paths.
Reported issues with 10.0 fixed. Tested with 9.2 and 10.1
I see two potential issues so far. 1) SHEBANG_FILES is based on ${WRKSRC}, so "${WRKSRC}/bin/calendarserver_backup" should be "bin/calendarserver_backup" so all of those need to be fixed. 2) SHEBANG_FILES accepts wildcards, something like + ${WRKSRC}/bin/calendarserver_backup \ + ${WRKSRC}/bin/calendarserver_bootstrap_database \ + ${WRKSRC}/bin/calendarserver_command_gateway \ + (etc) can be replaced by "bin/calendarserver_*" probably (review Mk/Uses/shebangfix.mk) Can you take a look and resubmit? Also, I'd like to see the output of portlint, "make check-plist", and "make stage-qa". poudriere logs would be even better, but I'll settle for the former. Created attachment 149592 [details]
svn patch against 372801
Revised patch with SHEBANG_FILES fixed as suggested.
I hate being picky, but this is important for make: + bin/calendarserver_* \ + bin/icalendar_split \ + bin/proxyclean \ Those are separated by 4 spaces, not by tabs. Make expects tabs, and only tabs. Can you fix and resubmit? I think it will be okay after that. Created attachment 149593 [details] poudriere testport log poudriere testport run with patch (attachment 149592 [details]) applied. in the case of line continuation the spaces aren't breaking anything, but for consistency with the rest of this port and all ports, we still need the tabs. Created attachment 149595 [details]
patch against svn head 372802
Replaced spaces by tabs in SHEBANG_FILES
thanks, looks good! I never moved it out of patch-ready pool (I should have), but I think this is again ready for commit (based on your poudriere log). Created attachment 149597 [details]
svn patch rev 372802
Converted spaces to tabs in SHEBANG_FILES
i'll take the PR, but I need to work on it more, unfortunately. See portlint? ====>> Portlint check WARN: /disk1/poudriere/data/build/92amd64-default/ref/usr/ports/www/calendarserver/pkg-plist: [122]: @dirrm[try] is deprecated. If you require special directory handling, use @dir instead and consult the porter's handbook. WARN: /disk1/poudriere/data/build/92amd64-default/ref/usr/ports/www/calendarserver/pkg-plist: [123]: @dirrm[try] is deprecated. If you require special directory handling, use @dir instead and consult the porter's handbook. WARN: /disk1/poudriere/data/build/92amd64-default/ref/usr/ports/www/calendarserver/pkg-plist: [124]: @dirrm[try] is deprecated. If you require special directory handling, use @dir instead and consult the porter's handbook. We need to fix that. A commit references this bug: Author: marino Date: Wed Nov 19 19:45:10 UTC 2014 New revision: 372810 URL: https://svnweb.freebsd.org/changeset/ports/372810 Log: www/calendarserver: Fix issues on FreeBSD 10 * fix RC script * Limit to python 2 * update txdav/base/propertystore for FreeBSD 10 * clean up and remove @dir* (by marino) PR: 194457 Submitted by: holger (freyther.de) Final fix: Axel Rau (maintainer) Changes: head/www/calendarserver/Makefile head/www/calendarserver/files/caldavd.in head/www/calendarserver/files/patch-twext__python__log.py head/www/calendarserver/files/patch-twext_python_log.py head/www/calendarserver/files/patch-txdav__base__propertystore__xattr.py head/www/calendarserver/pkg-plist Okay, I fixed the pkg-plist, removed an extraneous mkdir, used (), tabbed things.... all passes in poudriere. Thanks guys! |