Opened 5 years ago

Closed 5 years ago

#44586 closed defect (fixed)

p5-cgi: update to version 4.0.3, new maintainer, add support for perl 5.18 5.20, new ports p5-cgi-fast, p5-cgi-alternatives.

Reported by: dbevans (David B. Evans) Owned by: markd@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: p5-cgi p5-cgi-fasat

Description (last modified by dbevans (David B. Evans))

After threatening to do so for some time, in git master and perl 5.21.0, upstream perl developers have removed CGI and friends from core on the basis that it is no longer a best practice for perl based web site design. Perl developers that wish to use the CGI perl module will now need to install it separately from CPAN, and perl ports that use CGI (e.g. p5-apache-test) will need to depend on p5-cgi directly.

See https://github.com/leejo/CGI.pm/blob/master/README.md for details and discussion.

As a consequence, CGI now has a new maintainer, upstream development has been moved to GitHub, the module version has been updated to 4.0.3 and there are some important changes.

  • CGI::Fast has been moved out of CGI to a separate module so that the basic CGI module doesn't need a C compiler to build. This may require some adjustment of dependencies as well.
  • Another new documentation-only module, CGI::Alternatives, has been created that does nothing other than explaining some alternatives to CGI web development in perl.

Attached is a proposed patch for p5-cgi that upgrades the port to 4.0.3 as well as adding subports for perl branches 5.18 5.20. After doing so, a new port, p5-cgi-fast needs to be created to replace the missing CGI::Fast functionality. A new p5-cgi-alternatives port might be nice as well.

Attachments (2)

patch-p5-cgi-4.03.diff (975 bytes) - added by dbevans (David B. Evans) 5 years ago.
Proposed patch to update p5-cgi to version 4.03
Portfile (1.3 KB) - added by dbevans (David B. Evans) 5 years ago.
Portfile for new port p5-cgi-fast.

Download all attachments as: .zip

Change History (7)

Changed 5 years ago by dbevans (David B. Evans)

Attachment: patch-p5-cgi-4.03.diff added

Proposed patch to update p5-cgi to version 4.03

comment:1 Changed 5 years ago by dbevans (David B. Evans)

Description: modified (diff)
Summary: p5-cgi: update to version 4.0.3, new maintainer, add new ports p5-cgi-fast, p5-cgi-alternatives.p5-cgi: update to version 4.0.3, new maintainer, add support for perl 5.18 5.20, new ports p5-cgi-fast, p5-cgi-alternatives.

comment:2 Changed 5 years ago by dbevans (David B. Evans)

Description: modified (diff)

Changed 5 years ago by dbevans (David B. Evans)

Attachment: Portfile added

Portfile for new port p5-cgi-fast.

comment:3 Changed 5 years ago by dbevans (David B. Evans)

Portfile attached for new port p5-cgi-fast. It requires p5-cgi >= 4.0 and can be committed after that upgrade to restore CGI::Fast functionality. Please feel free to assume maintainership if you like.

comment:4 Changed 5 years ago by dbevans (David B. Evans)

p5-cgi-alternatives committed in r123606.

comment:5 Changed 5 years ago by dbevans (David B. Evans)

Port: p5-cgi-fasat added
Resolution: fixed
Status: newclosed

p5-cgi updated in r124359.
new port p5-cgi-fast committed in r124360.

Note: See TracTickets for help on using tickets.