Perl5 ExtUtils/Command/MM.pm expects Makefile#4507
Perl5 ExtUtils/Command/MM.pm expects Makefile#4507nabbi wants to merge 2 commits intoZoneMinder:masterfrom
Conversation
"Makefile" is hardcoded into Perl's MakeMaker, it does not hornor renaming. i.e. MakefilePerl The patch suppresses 3077 uninitialized occurrences when building ZoneMinder Use of uninitialized value in numeric gt (>) at /usr/lib64/perl5/5.42/ExtUtils/Command/MM.pm line 147. A seperate feature enchancement ticket has also been logged with upstream: Perl-Toolchain-Gang/ExtUtils-MakeMaker#479 Signed-off-by: Nic Boet <nic@boet.cc>
|
This cannot be merged because there is a conflict on the Makefile. cmake creates a Makefile, so teling MakeMaker to use Makefile does not work. it is literally why we use Makefile.PL instead. |
|
I flipped this to draft to ponder it further. I can't say I am seeing the cmake Makefile conflict as it's not generated within the gentoo build sandbox; that might be an artifact of how "ebuild cmake" behaves, we don't need it. ExtUtils/Command/MM.pm has been hard coded with "Makefile" 24 years ago, nearly since its inception. |
|
That is a good point. I am in the habit of building/make installing directly from the src dir, which is bad habit, but very ... easy and convenient. I wonder if we could rename the cmake generated Makefile... I do think it is ridiculous that we can't tell MakeMaker to use a different file... but yeah 24years later. I've spent some time asking google if we can do without MakeMaker and it's not trivial.. Perhaps the best thing would be to fix our package builds and my own workflow to build in a separate dir. |
|
@connortechnology Suspect we both have higher priorities to focus on :) I explored some other options last night but haven't found functional workaround yet. In the mean time I can ship a local patch, ie this PR, in the ebuild package to suppress how this issue presented itself. Was hoping we could fix it at the source but you confirmed it's more complicated; needs other tooling / workflow changes to accommodate |
|
I actually Claude burn through my end of day credits on removing MakeMaker and going with a pure cmake option. It actually wasn't that bad. We don't actually use MakeMaker for the real purposes it is useful for (I think). I wasn't aroudn when it was implemented in ZM :). We really just need to copy all the .pm to the right place in fs. I'll create a PR, maybe you can take a look and test. |
|
#4617 supersede |
"Makefile" is hardcoded into Perl's MakeMaker, it does not hornor renaming. i.e. MakefilePerl
The patch suppresses 3077 uninitialized occurrences when building ZoneMinder
Use of uninitialized value in numeric gt (>) at
/usr/lib64/perl5/5.42/ExtUtils/Command/MM.pm line 147.
A seperate feature enchancement ticket has also been logged with upstream:
Perl-Toolchain-Gang/ExtUtils-MakeMaker#479