Building cmake-3.2.2 fails on the musl profiles because of a missing include for the mode_t type. There is an upstream fix, which made it into cmake-3.2.3. Reproducible: Always
Created attachment 405462 [details] Build log
Created attachment 405464 [details, diff] Patch from upstream git
(In reply to Felix Janda from comment #0) > Building cmake-3.2.2 fails on the musl profiles because of a missing > include for the mode_t type. > > There is an upstream fix, which made it into cmake-3.2.3. > > > Reproducible: Always Nope. 3.2.3 has the same issue: /var/tmp/portage/dev-util/cmake-3.2.3/work/cmake-3.2.3/Source/cmGeneratorExpressionEvaluationFile.h:39:64: error: ‘mode_t’ has not been declared std::map<std::string, std::string> &outputFiles, mode_t perm); ^ Makefile:146: recipe for target 'cmGlobalNinjaGenerator.o' failed gmake: *** [cmGlobalNinjaGenerator.o] Error 1
(In reply to Anthony Basile from comment #3) > (In reply to Felix Janda from comment #0) > > Building cmake-3.2.2 fails on the musl profiles because of a missing > > include for the mode_t type. > > > > There is an upstream fix, which made it into cmake-3.2.3. > > > > > > Reproducible: Always > > Nope. 3.2.3 has the same issue: > I just check the 3.2.3 tarball directly and it doesn't have this patch. I can't make sense of upstream's workflow and I don't know if its in the pipe for some future release or what. Nonetheless, this is a very safe patch to backport. @maintainers. Okay to backport to 3.2.3? Currently 3.2.2 is being stabilized and it will be a while before this patch makes it to a release.
Right, the patch is not in 3.2.3 although it is older than that release. It will be in cmake-3.3.0, whose second release candidate is already out.
(In reply to Felix Janda from comment #5) > Right, the patch is not in 3.2.3 although it is older than that release. > It will be in cmake-3.3.0, whose second release candidate is already out. Okay. I did see the tags for 3.3.0_rcX. Still this is a very innocent patch an it applies cleanly to 3.2.3, so it is worth backporting it.
Thanks for reporting. This is fixed for 3.2.3 in cvs now. Please sync. + + 22 Jun 2015; Johannes Huber <johu@gentoo.org> + +files/cmake-3.2.3-musl-missing-include.patch, cmake-3.2.3.ebuild: + Add upstream patch to fix build on musl profiles, spotted by Felix Janda + <felix.janda@posteo.de>, bug #552708. +