Fix variable names with modname in module Makefile#38
Fix variable names with modname in module Makefile#38simayosi wants to merge 2 commits intonginx:masterfrom
Conversation
|
Hello @simayosi ! Can you please describe the issue with Since I've just tried Which is probably less than optimal, but is already used in leaf projects like Thank you! |
|
Hi @thresheek, Thanks for your comment and for testing on Ubuntu. Your test prompted me to re-examine the First, both GNU Consequently, to ensure this module name cleaning step works consistently across different systems, the line should be the following: However, in all of the module Makefiles included in this repository for modules with Thank you! |
Proposed changes
In Makefile.module-*, variable names should use underscores (_) instead of dashes (-) in module names.
This convention is followed in code such as alpine/Makefile:114 and debian/Makefile:116.
For example, the version variable for the headers-more module in Makefile.headers-more is defined as
MODULE_VERSION_headers_more.However,
build_module.shcurrently generatesMakefile.module-$MODULE_NAMEusing the module name as-is in variable names, without converting dashes to underscores.As a result, modules with dashes in their names cannot be built correctly.
This patch addresses the issue by ensuring that module names used in variable names have dashes replaced with underscores.
Checklist
Before creating a PR, run through this checklist and mark each as complete:
README.mdand/orCHANGELOG.md).