Bug 295931 - [NEW PORT] devel/p5-CLI-Simple: Minimalist object oriented base class for CLI applications
Summary: [NEW PORT] devel/p5-CLI-Simple: Minimalist object oriented base class for CLI...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Hiroki Tagato
URL: https://metacpan.org/pod/CLI::Simple
Keywords:
Depends on:
Blocks: 295932
  Show dependency treegraph
 
Reported: 2026-06-08 11:25 UTC by Einar Bjarni Halldórsson
Modified: 2026-06-19 09:35 UTC (History)
1 user (show)

See Also:


Attachments
Add new port, devel/p5-CLI-Simple (4.08 KB, patch)
2026-06-08 11:26 UTC, Einar Bjarni Halldórsson
no flags Details | Diff
Add new port, devel/p5-CLI-Simple (4.07 KB, patch)
2026-06-12 10:32 UTC, Mark Linimon
no flags Details | Diff
Add devel/p5-CLI-SImple, with fixed pkg-plist (4.04 KB, patch)
2026-06-16 09:11 UTC, Einar Bjarni Halldórsson
einar: maintainer-approval+
Details | Diff
New port, p5-CLI-Simple (4.23 KB, patch)
2026-06-18 09:38 UTC, Einar Bjarni Halldórsson
einar: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Einar Bjarni Halldórsson 2026-06-08 11:25:57 UTC
Dependency for newer versions of textproc/p5-Markdown-Render
Comment 1 Einar Bjarni Halldórsson 2026-06-08 11:26:29 UTC
Created attachment 271613 [details]
Add new port, devel/p5-CLI-Simple
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2026-06-12 10:32:11 UTC
Created attachment 271732 [details]
Add new port, devel/p5-CLI-Simple

^Triage: remove trailing cruft.
Comment 3 Einar Bjarni Halldórsson 2026-06-12 12:12:47 UTC
(In reply to Mark Linimon from comment #2)

Thank you
Comment 4 Hiroki Tagato freebsd_committer freebsd_triage 2026-06-15 02:44:00 UTC
Hi, thanks for a new port submission.

make check-plist fails with the following error:
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
===> Checking for items in pkg-plist which are not in STAGEDIR
Error: Missing: %%SITE_ARCH%%/auto/CLI/Simple/.packlist
===> Error: Plist issues found.
*** Error code 1

Can you check pkg-plist and re-submit a patch?
Comment 5 Einar Bjarni Halldórsson 2026-06-15 16:11:05 UTC
(In reply to Hiroki Tagato from comment #4)

I don't understand...

$ make -V SITE_ARCH
/usr/local/lib/perl5/site_perl/mach/5.42

$ ls -al work/stage/usr/local/lib/perl5/site_perl/mach/5.42/auto/CLI/Simple/.packlist 
-rw-r--r--  1 root wheel 830 Jun 15 16:08 work/stage/usr/local/lib/perl5/site_perl/mach/5.42/auto/CLI/Simple/.packlist

===> Checking for items in pkg-plist which are not in STAGEDIR
Error: Missing: %%SITE_ARCH%%/auto/CLI/Simple/.packlist
===> Error: Plist issues found.
*** Error code 1

Is it because it's a dotfile?
Comment 6 Hiroki Tagato freebsd_committer freebsd_triage 2026-06-16 01:33:12 UTC
(In reply to Einar Bjarni Halldórsson from comment #5)

I did a bit of research on this.

After doing `make stage`, if you look into ${WRKDIR}/.PLIST.mktmp, you will find there are two lines containing ".packlist". So it was counted twice, which led to the check-plist error.

Adding .packlist to the pkg-plist appears to be handled by the ports framework automatically. 
https://cgit.freebsd.org/ports/tree/Mk/Uses/perl5.mk#n293

So the bottom line is .packlist should be removed from the pkg-plist file.

Can you try removing .packlist from the pkg-plist?
Comment 7 Einar Bjarni Halldórsson 2026-06-16 09:11:09 UTC
Created attachment 271847 [details]
Add devel/p5-CLI-SImple, with fixed pkg-plist

Removed %%SITE_ARCH%%/auto/CLI/Simple/.packlist from pkg-plist. Ports framework will add it for us
Comment 8 Hiroki Tagato freebsd_committer freebsd_triage 2026-06-16 11:13:27 UTC
(In reply to Einar Bjarni Halldórsson from comment #7)

Unfortunately, `poudriere testport` fails with another error:
=>> Checking for staging violations... done
=>> Error: Filesystem touched during stage (files must install to ${STAGEDIR}):
extra: usr/local/lib/perl5/5.42/perl/man/man3/cli-simple.3pm

The build process tries to directly install the manpage under ${PREFIX} instead of ${STAGEDIR}${PREFIX}.

The ${WRKSRC}/postamble appears to be the culprit. The paths in the file need to be corrected, or delete the file altogether if you think the manpage is not absolutely necessary.
Comment 9 Einar Bjarni Halldórsson 2026-06-18 09:38:39 UTC
Created attachment 271904 [details]
New port, p5-CLI-Simple

Now removes `$WRKSRC/postamble` after extracting.

All that file does is symlink the man page to a new name, but does it in a way that's incompatible with FreeBSD. Better to just skip it.
Comment 10 Hiroki Tagato freebsd_committer freebsd_triage 2026-06-19 01:10:45 UTC
(In reply to Einar Bjarni Halldórsson from comment #9)

> post-extract:
>        ${RM} ${STAGEDIR}/postamble

I'm sure you meant WRKSRC instead of STAGEDIR. I will amend the patch and commit it.
Comment 11 commit-hook freebsd_committer freebsd_triage 2026-06-19 01:24:07 UTC
A commit in branch main references this bug:

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

commit b981e5bd3edbe2d1bf925d3c5983cee421d77d1d
Author:     Einar Bjarni Halldórsson <einar@isnic.is>
AuthorDate: 2026-06-08 11:06:11 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2026-06-19 01:22:58 +0000

    devel/p5-CLI-Simple: Add port: Minimalist object oriented base class for CLI applications

    Tired of writing the same 'ol boilerplate code for command line scripts?
    Want a standard, simple way to create a Perl script that takes options
    and commands? CLI::Simple makes it easy to create scripts that take
    options, commands and arguments.

    CLI::Simple is designed around the modulino pattern - Perl modules that
    can be executed directly as scripts.

    WWW: https://metacpan.org/pod/CLI::Simple

    PR:             295931
    Reported by:    Einar Bjarni Halldórsson <einar@isnic.is> (new maintainer)

 devel/Makefile                      |  1 +
 devel/p5-CLI-Simple/Makefile (new)  | 39 +++++++++++++++++++++++++++++++++++++
 devel/p5-CLI-Simple/distinfo (new)  |  3 +++
 devel/p5-CLI-Simple/pkg-descr (new) |  7 +++++++
 devel/p5-CLI-Simple/pkg-plist (new) | 15 ++++++++++++++
 5 files changed, 65 insertions(+)
Comment 12 Hiroki Tagato freebsd_committer freebsd_triage 2026-06-19 01:25:03 UTC
Committed, thanks!
Comment 13 Einar Bjarni Halldórsson 2026-06-19 09:35:12 UTC
(In reply to Hiroki Tagato from comment #12)

Thank you very much! Just in time for 2.0.3, already opened a new PR :)