[Bug 256783] Mk/Uses/cmake.mk: Some cmake ports builds twice

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 30 Jun 2021 11:48:44 +0000

--- Comment #4 from Adriaan de Groot <adridg_at_freebsd.org> ---
It's not that I don't believe you, it's that I have no idea how to reproduce
this -- or even why it's an issue, really. Your latest log shows hts being
built, and then at stage-time five (if I counted right) C files are
re-compiled. Not even all of them (here in hts, just the `kissnet/`

Locally, nothing is rebuilt; I've tried with MAKE_JOBS_UNSAFE, and without. In
poudriere, and in the host, as root and as user.

I'd suggest building this up to pre-stage and then executing the steps in stage
by hand, to figure out what's going on and why make is rebuilding things. The
relevant steps are (here from my build, which has slightly different paths):

/usr/bin/make  -f lib/kissnet/CMakeFiles/hts.dir/build.make
cd /tmp/port/work/.build && /usr/local/bin/cmake -E cmake_depends "Unix
Makefiles" /tmp/port/work/pvr.hts-8.3.0-Matrix
/tmp/port/work/pvr.hts-8.3.0-Matrix/lib/libhts /tmp/port/work/.build
/tmp/port/work/.build/lib/kissnet/CMakeFiles/hts.dir/DependInfo.cmake --color=
Consolidate compiler generated dependencies of target hts
/usr/bin/make  -f lib/kissnet/CMakeFiles/hts.dir/build.make

If you can trace those two `make` invocations to see exactly what is being
rebuilt and why, **then** there's a chance to track this down.

You are receiving this mail because:
You are on the CC list for the bug.
Received on Wed Jun 30 2021 - 11:48:44 UTC

Original text of this message