Use of 'cpp' extension for non-C++ (and non-C) files to be processed with cpp causes unnecessary requirement for cc1plus during build, build process exits 0 even if it's missing
Submitted by Adam Williamson
Assigned to Xorg Project Team
Fedora recently removed gcc and gcc-c++ from the default buildroot, meaning packages that need these compilers have to explicitly BuildRequire them. Our xorg-x11-xinit package BuildRequired gcc, but not gcc-c++. Somehow, a build run under these conditions completed, even though it was obviously heavily broken:
Note the clear errors in the build.log:
cpp: error trying to exec 'cc1plus': execvp: No such file or directory cpp: error trying to exec 'cc1plus': execvp: No such file or directory
yet somehow, the 'make -j6' command must have exited 0, or else the package build would have aborted at that point.
The result was a 'successful' package build with a zero-length startx (and probably other weirdness, that's just the only symptom I noticed). Obviously, 'make' should exit with a non-zero exit code in this case.