Re: Existing tools for extracting POD from a source file?
[email protected] (Karl Williamson) Mon, 13 Jan 2014 16:13:52 -0700
| Newsgroups | perl.pod-people |
|---|---|
| Message-ID | <[email protected]> |
On 11/28/2013 12:20 AM, Kent Fredric wrote: > We've had a lot of problems lately with the fact Parrot uses Perldoc > to simply extract pod statements from a generated file and emit them > into another file. > > This stems mostly from the fact perldoc over-zealously drops privs. > > But the gist of it is: parrot calls `perldoc -ud target source`, and > we're having a nightmare because neither source nor target can be read > when UID=nobody, and even chmodding the relevant files for some reason > doesn't help ( mostly, because the directories themselves are not > readable or writeable by UID=nobody, meaning we'd have to chmod the > entire parentage of the directory to just avoid perldocs attempt at > making things secure ). > > So, is there a simple tool already on CPAN that will extract POD > segments from arbitrary files and spew them into other files without > requiring priv dropping? > > It seems trivial to write one, but if something already exists that'd > be helpful. > > Presently, I'm just looking to patch parrot during build to use the > new tool instead of perldoc. > You may have missed this https://github.com/genehack/pod-simple/tree/add-pod-simple-pod which is incomplete. What has parrot done in the meantime?