Perl-Toolchain-Gang / ExtUtils-MakeMaker

Perl module to make Makefiles and build modules (what backs Makefile.PL)
https://metacpan.org/release/ExtUtils-MakeMaker
65 stars 77 forks source link

Makefile overwrites /dev/null #415

Closed sw0x2A closed 2 years ago

sw0x2A commented 2 years ago

When building LaTeXML from CPAN, the Makefile overwrites /dev/null under some circumstances. It is in the clean section and after some debugging I found this comes from Makemaker.

$(MV) $(FIRST_MAKEFILE) $(MAKEFILE_OLD) $(DEV_NULL)

This line moves both FIRST_MAKEFILE and MAKEFILE_OLD to DEV_NULL and replaces it. The comment above the block let me assume that FIRST_MAKEFILE should be renamed to MAKEFILE_OLD. The DEV_NULL must be a mistake but I am a bit surprised because this line has not been changed in 18 years, so this bug is quite mature.

haarg commented 2 years ago

The normal content of DEV_NULL is > /dev/null 2>&1, so this diagnosis doesn't seem quite correct.

What type of system are you working with? Can you check how DEV_NULL is set in the generated Makefile?

sw0x2A commented 2 years ago

Hmm. I don't have access to that system for a while and can't follow up. Obviously, my PR doesn't make much sense, therefore closing it.