On 7/27/21 10:20 AM, Milan Crha wrote:
Hi,
looking on the libical build break [1], it looks like the ppc64le build
doesn't use _target_platform properly in the CMake macros, because, if
I read the build.log correctly, the build is done into
`redhat-linux-build`, while the `_target_platform` evaluates to
`ppc64le-redhat-linux-gnu` (it's used in the `make test` call in the
libical.spec file). The i686 also builds into `redhat-linux-build`, not
the i686 target platform directory. I did not look on other arches.
Is this change intentional or it's a bug in the build process/CMake
macros?
I searched for the "_target_platform" here and the latest discussion
mentioning it was almost a year ago.
Hi Milan,
This is affectting many different packages that use the %cmake3 macro and try to
enter its build directory. I traced the root of it.
The %cmake3 macro calls the %_vpath_builddir macro to set its build directory name.
F35 - %_vpath_builddir: "%{_vendor}-%{_target_os}-build" (generates:
"redhat-linux")
F34 and earlier - %_vpath_builddir: "%_target_platform" (generates:
"$ARCH-redhat-linux-gnu")
Why did this macro change in F35? (and only recently...)
Thanks,
Michael