Bug 123934 - devel/pear-PhpDocumentor creates invalid PHP code during post-patch
Summary: devel/pear-PhpDocumentor creates invalid PHP code during post-patch
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
Depends on:
Reported: 2008-05-23 17:00 UTC by gpalmer
Modified: 2008-05-30 11:40 UTC (History)
0 users

See Also:

phpdoc-patch.txt (581 bytes, text/plain; charset=us-ascii)
2008-05-23 17:04 UTC, gpalmer
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description gpalmer freebsd_committer 2008-05-23 17:00:02 UTC
Part of the post-patch makefile target is a sed with the following pattern


Unfortunately, at least one of the PHP files ( phpDocumentor/Setup.inc.php ) objects to this replacement of the string "VER".  Two lines in particular:

line 193:

        $phpdocver = PHPDOCUMENTOR_VER;

line 914:

        if (empty($this->render->converters)) addErrorDie(PDERROR_NO_CONVERTERS)

The code ends up as:

line 193:

        $phpdocver = PHPDOCUMENTOR_1.4.2;

line 914:

        if (empty($this->render->converters)) addErrorDie(PDERROR_NO_CON1.4.2TER

neither of which parse properly

PHP Parse error:  syntax error, unexpected T_DNUMBER in /usr/local/share/pear/PhpDocumentor/phpDocumentor/Setup.inc.php on line 193


PHP Parse error:  syntax error, unexpected T_DNUMBER in /usr/local/share/pear/PhpDocumentor/phpDocumentor/Setup.inc.php on line 914

There may be other instances of this problem, but they can all be traced back to the post-patch target.


Use PEAR directly instead of the port
How-To-Repeat: cd /usr/ports/devel/devel/pear-PhpDocumentor
make all install
Comment 1 Edwin Groothuis freebsd_committer 2008-05-23 17:00:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

miwi@ wants this port PRs (via the GNATS Auto Assign Tool)
Comment 2 Edwin Groothuis freebsd_committer 2008-05-23 17:00:09 UTC
Maintainer of devel/pear-PhpDocumentor,

Please note that PR ports/123934 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:

Edwin Groothuis via the GNATS Auto Assign Tool
Comment 3 Edwin Groothuis freebsd_committer 2008-05-23 17:00:11 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 4 gpalmer freebsd_committer 2008-05-23 17:04:47 UTC
The (hopefully) attached patch seems to fix the problem

Comment 5 Martin Wilke freebsd_committer 2008-05-30 11:32:26 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!
Comment 6 dfilter service freebsd_committer 2008-05-30 11:32:32 UTC
miwi        2008-05-30 10:32:25 UTC

  FreeBSD ports repository

  Modified files:
    devel/pear-PhpDocumentor Makefile 
  - Fix pear port version
  PR:             123934
  Submitted by:   Gary Palmer
  Approved by:    maintainer implicit
  Revision  Changes    Path
  1.6       +1 -1      ports/devel/pear-PhpDocumentor/Makefile
cvs-all@freebsd.org mailing list
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"