Skip to content

Fix jcpan to install .pl files alongside .pm files#376

Merged
fglock merged 2 commits into
masterfrom
fix/jcpan-exiftool-writer-pl
Mar 25, 2026
Merged

Fix jcpan to install .pl files alongside .pm files#376
fglock merged 2 commits into
masterfrom
fix/jcpan-exiftool-writer-pl

Conversation

@fglock
Copy link
Copy Markdown
Owner

@fglock fglock commented Mar 25, 2026

Summary

Some modules like Image::ExifTool use .pl files that are loaded via require at runtime (e.g., Writer.pl, WriteExif.pl). These files were not being installed because MakeMaker only scanned for .pm files.

Before: ./jcpan Image::ExifTool installed only .pm files, causing:

Can't locate Image/ExifTool/Writer.pl in @INC

After: Both .pm and .pl files are installed (15 .pl files for ExifTool).

Changes

  • Changed the file pattern in ExtUtils/MakeMaker.pm from /\.pm$/ to /\.p[lm]$/ to include both .pm and .pl files when scanning the lib/ directory

Test Plan

  • Unit tests pass (make)
  • ./jcpan Image::ExifTool installs all 15 .pl files
  • ./jperl -e 'use Image::ExifTool; my $et = Image::ExifTool->new; $et->SetNewValue("Artist", "Test"); print "ok\n"' works

Generated with Devin

fglock and others added 2 commits March 25, 2026 14:00
Some modules like Image::ExifTool use .pl files that are loaded via
'require' at runtime (e.g., Writer.pl, WriteExif.pl). These files were
not being installed because MakeMaker only scanned for .pm files.

Changed the pattern from /\.pm$/ to /\.p[lm]$/ to include both
.pm and .pl files when scanning the lib/ directory.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@fglock fglock merged commit 82aff65 into master Mar 25, 2026
2 checks passed
@fglock fglock deleted the fix/jcpan-exiftool-writer-pl branch March 25, 2026 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant