[CalendarServer] #286: ./run script have Perl run-time dependency.
#286: ./run script have Perl run-time dependency. ------------------------------+--------------------------------------------- Reporter: bland@bbnest.net | Owner: wsanchez@apple.com Type: Enhancement | Status: new Priority: 4: Nice to have | Milestone: Component: Calendar Server | Version: trunk Severity: Other | Keywords: ------------------------------+--------------------------------------------- ./run script uses xpath utility to fetch values out of caldavd.plist. This utility is Perl based and adds excessive dependency to CalendarServer bundle. It will be nice to switchover to PyXML inline code instead. -- Ticket URL: <https://trac.calendarserver.org/ticket/286> CalendarServer </> HTTP/WebDAV/CalDAV Server
#286: ./run script have Perl run-time dependency. ------------------------------+--------------------------------------------- Reporter: bland@bbnest.net | Owner: wsanchez@apple.com Type: Enhancement | Status: assigned Priority: 4: Nice to have | Milestone: Later Component: Calendar Server | Version: trunk Severity: Other | Resolution: Keywords: | ------------------------------+--------------------------------------------- Changes (by wsanchez@apple.com): * status: new => assigned * milestone: => Later Comment: That's a fair point, though that functionality is only for obtaining a specific config key... Also, the `./run` script is only meant for developers, not users, so it's not a high priority. If someone can whip up a PyXML-based xpath tool, I'd be happy to call into that instead. Even better, use elementtree if that's possible, since we'd like to get rid of PyXML as well). -- Ticket URL: <https://trac.calendarserver.org/ticket/286#comment:1> CalendarServer </> HTTP/WebDAV/CalDAV Server
#286: ./run script have Perl run-time dependency. ------------------------------+--------------------------------------------- Reporter: bland@… | Owner: wsanchez@… Type: Enhancement | Status: assigned Priority: 4: Nice to have | Milestone: Later Component: Calendar Server | Severity: Other Keywords: | ------------------------------+--------------------------------------------- Comment(by matthias@…): Hi. I've installed CalendarServer on Ubuntu and it took me an hour to figure out that xpath is used by run.sh to get config keys. It would be nice, if this would at least be mentioned as requirement, see #79. An error message that xpath is not installed would also be nice. Besides this, I had to change config_key to this: conf_read_key () { local key="$1"; shift; # FIXME: This only works for simple values (no arrays, dicts) tr '\n' ' ' < "${config}" \ | xpath -e "/plist/dict/*[preceding-sibling::key[1]='${key}'" 2> /dev/null \ | head -n 1 \ | sed -n 's|^<[^<][^<]*>\([^<]*\)</[^<][^<]*>.*$|\1|p'; } as xapth requires the "-e" flag and it returns two nodes. Thanks, Matthias Ringwald -- Ticket URL: <http://trac.calendarserver.org/ticket/286#comment:2> CalendarServer </> HTTP/WebDAV/CalDAV Server
participants (1)
-
CalendarServer