Bug 258350 - [new port] devel/p5-B-Debug: Walk Perl syntax tree, printing debug info about ops
Summary: [new port] devel/p5-B-Debug: Walk Perl syntax tree, printing debug info about...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Fernando Apesteguía
URL: https://metacpan.org/release/RURBAN/B...
Keywords: easy, patch
Depends on:
Blocks:
 
Reported: 2021-09-07 21:23 UTC by James E Keenan
Modified: 2021-11-21 19:00 UTC (History)
1 user (show)

See Also:


Attachments
devel/p5-B-Debug: new port submission (2.12 KB, patch)
2021-09-07 21:23 UTC, James E Keenan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James E Keenan 2021-09-07 21:23:45 UTC
Created attachment 227744 [details]
devel/p5-B-Debug: new port submission

Attached is a diff for a new submission to the FreeBSD ports tree.  The port is for CPAN library B-Debug (https://metacpan.org/release/RURBAN/B-Debug-1.26).

The rationale for this port is as follows:

* B-Debug used to ship with the Perl 5 core distribution.  As such, if a port of a Perl library had a dependency on B::Debug, that port simply had to depend on perl itself.

* However, as of perl-5.30, released in the spring of 2019, B-Debug is no longer shipped with the Perl 5 core distribution.  So at the present time it's not available through FreeBSD ports.

* I recently tried to install CPAN library Devel-Cover via the p5-Devel-Cover port.  While the installation appeared to succeed, actual usage of the 'cover' utility failed with an exception message starting "Can't locate B/Debug.pm in @INC (you may need to install the B::Debug module) ...".  I subsequently installed B:::Debug using the standard 'cpan' utility, then installed Devel::Cover the same way.  Thereafter, I was able to use Devel::Cover and 'cover' in the same way I have for 17 years.

* Though I have no particular fondness for B-Debug, the fact that it is a prerequisite for an extremely useful Perl development library means that it ought to exist in ports.  Once it is in, we should update the p5-Devel-Cover port both to reflect this prerequisite and to bring it up to date with the version on CPAN.

Please review the submission.
Comment 1 Fernando Apesteguía freebsd_committer freebsd_triage 2021-11-21 18:30:22 UTC
LGTM.

Builds fine 12.2{amd64,i386}, {13.0,CURRENT}amd64
Comment 2 commit-hook freebsd_committer freebsd_triage 2021-11-21 18:58:13 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6990380dff840ba4ba9cefc5d5991c18b454d356

commit 6990380dff840ba4ba9cefc5d5991c18b454d356
Author:     James E Keenan <jkeenan@pobox.com>
AuthorDate: 2021-11-21 18:14:43 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2021-11-21 18:56:09 +0000

    devel/p5-B-Debug: new port to walk Perl syntax tree, printing debug info about ops

    As of perl-5.30, released in the spring of 2019, B-Debug is no longer shipped
    with the Perl 5 core distribution.  So at the present time it's not available
    through FreeBSD ports.

    PR:     258350
    Reported by:    jkeenan@pobox.com

 devel/Makefile                   |  1 +
 devel/p5-B-Debug/Makefile (new)  | 28 ++++++++++++++++++++++++++++
 devel/p5-B-Debug/distinfo (new)  |  3 +++
 devel/p5-B-Debug/pkg-descr (new) | 23 +++++++++++++++++++++++
 devel/p5-B-Debug/pkg-plist (new) |  2 ++
 5 files changed, 57 insertions(+)
Comment 3 Fernando Apesteguía freebsd_committer freebsd_triage 2021-11-21 19:00:05 UTC
Committed,

Thanks!