Skip to content

fix: create blib/arch in generated Makefile for -Mblib compatibility#477

Closed
fglock wants to merge 1 commit intomasterfrom
fix/blib-arch-missing
Closed

fix: create blib/arch in generated Makefile for -Mblib compatibility#477
fglock wants to merge 1 commit intomasterfrom
fix/blib-arch-missing

Conversation

@fglock
Copy link
Copy Markdown
Owner

@fglock fglock commented Apr 9, 2026

Summary

  • The generated Makefile's pure_all target only created blib/lib/ but not blib/arch/
  • The blib.pm pragma requires all three directories (blib/, blib/lib/, blib/arch/) to exist
  • Without blib/arch/, use blib / -Mblib dies with Cannot find blib even in ...
  • This caused CPAN module test suites (e.g. HTTP::Thin's t/00-compile.t) to fail when they use open3($^X, '-Mblib', ...) to verify modules load cleanly

Fix

Add mkdir -p blib/arch to the pure_all target in the generated Makefile so the directory always exists alongside blib/lib.

Test plan

  • make passes (all unit tests green)
  • ./jcpan -t HTTP::Thin now passes (t/00-compile.t .. ok)

Generated with Devin

The generated Makefile pure_all target only created blib/lib/
but not blib/arch/. The blib.pm pragma requires both directories
to exist (-d blib && -d blib/lib && -d blib/arch), so use blib
and -Mblib would die with Cannot find blib even in ...

This caused CPAN module test suites (e.g. HTTP::Thin) to fail when
they use open3 with -Mblib to verify modules load cleanly.

Add mkdir -p blib/arch to the pure_all target so the directory
always exists alongside blib/lib.

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

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@fglock
Copy link
Copy Markdown
Owner Author

fglock commented Apr 9, 2026

Superseded by a combined PR with additional Hash::MultiValue fixes.

@fglock fglock closed this Apr 9, 2026
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