Bug 196060 - Adding a "See Also" reference causes error
Summary: Adding a "See Also" reference causes error
Status: Closed FIXED
Alias: None
Product: Services
Classification: Unclassified
Component: Bug Tracker (show other bugs)
Version: unspecified
Hardware: Any Any
: --- Affects Some People
Assignee: Bugmeister
URL: https://bugzilla.mozilla.org/show_bug...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-17 12:22 UTC by Kubilay Kocak
Modified: 2014-12-18 22:48 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kubilay Kocak freebsd_committer freebsd_triage 2014-12-17 12:22:46 UTC
When adding a See Also reference/link to an issue, the following error is observed:

An unexpected error occurred. This could be a temporary problem, or some code is behaving incorrectly. If this problem persists, please email this page to bugmeister@FreeBSD.org with details of what you were doing at the time this message appeared.

URL: https://bugs.freebsd.org/bugzilla/process_bug.cgi
undef error - This shouldn't happen at /usr/local/lib/perl5/5.18/Text/Wrap.pm line 84.

Additionally

* The See Also reference is successfully created (as is observed by refreshing the issue after seeing the error)
* Adding a standard issue comment after observing this error results in the same error
Comment 1 Marcus von Appen freebsd_committer freebsd_triage 2014-12-18 06:23:46 UTC
This is a bug in the Perl 5.18 Text::Wrap core module, see https://bugzilla.mozilla.org/show_bug.cgi?id=1067285 for details.

perl@: Can you provide a fix as soon as possible? Thanks.
Comment 2 Mathieu Arnold freebsd_committer freebsd_triage 2014-12-18 10:24:18 UTC
(In reply to Marcus von Appen from comment #1)
> This is a bug in the Perl 5.18 Text::Wrap core module, see
> https://bugzilla.mozilla.org/show_bug.cgi?id=1067285 for details.
> 
> perl@: Can you provide a fix as soon as possible? Thanks.

Is there a fix available ?
Comment 3 Mathieu Arnold freebsd_committer freebsd_triage 2014-12-18 10:28:07 UTC
From what I can see, the fix is to add a dependency on textproc/p5-Text-Tabs+Wrap, I don't really see what perl@ has to do about it.
Comment 4 Marcus von Appen freebsd_committer freebsd_triage 2014-12-18 13:20:49 UTC
(In reply to Mathieu Arnold from comment #3)
> From what I can see, the fix is to add a dependency on
> textproc/p5-Text-Tabs+Wrap, I don't really see what perl@ has to do about it.

Upstream's Text::Wrap copy is broken and unlikely to be fixed anytime soon. So any port that is affected by that upstream bug (which worked fine with 5.16, btw.) has to pull in an external dependency instead? Is this really the way, we want to handle it?

A fix is supplied in https://bugzilla.mozilla.org/show_bug.cgi?id=1067285#c2. I was unable to find a meaningful diff in the cpan browser, though, since most of cpan's promised functionality does not seem to work.
Comment 5 Marcus von Appen freebsd_committer freebsd_triage 2014-12-18 16:31:12 UTC
Explicit usage of textproc/p5-Text-Tabs+Wrap fixes the issue. 

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196100 contains the patch for devel/bugzilla44
Comment 6 commit-hook freebsd_committer freebsd_triage 2014-12-18 18:36:00 UTC
A commit references this bug:

Author: ohauer
Date: Thu Dec 18 18:35:36 UTC 2014
New revision: 374914
URL: https://svnweb.freebsd.org/changeset/ports/374914

Log:
  - explicitly depend on textproc/p5-Text-Tabv (if ${PERL_LEVEL} >= 501800)
  - bump PORTREVISION

  This patch was also suggested by upstream:
   https://bugzilla.mozilla.org/show_bug.cgi?id=1067285

  PR:		196060
  PR:		196100
  Submitted by:	mva@

Changes:
  head/devel/bugzilla44/Makefile
Comment 7 Kubilay Kocak freebsd_committer freebsd_triage 2014-12-18 22:48:30 UTC
Nicely handled, thank you!