It appears that the definition of %{_target_os} set in /usr/lib/rpm/macros to os2-emx gets ignored by rpm.exe and rpmbuild.exe and is always overridden with os/2 (supposedly taken from uname -o). This is completely wrong as it doesn't match configure behavior and also breaks path creation etc.
Presumably this value is messed with in rpmRebuildTargetVars() in lib/rpmrc.c. This must be fixed as it also breaks %{_target_platform} which together with %{_target_os} itself is used in some .spec.
Also, %{_target} (which should be a usual cpu-vendor-os triplet) seems to be broken in a similar way as it returns i386-os/2 instead of i386-pc-os2-emx (as %{_host} and %{_build} does).
It appears that the definition of
%{_target_os}
set in/usr/lib/rpm/macros
toos2-emx
gets ignored byrpm.exe
andrpmbuild.exe
and is always overridden withos/2
(supposedly taken fromuname -o
). This is completely wrong as it doesn't match configure behavior and also breaks path creation etc.Presumably this value is messed with in
rpmRebuildTargetVars()
inlib/rpmrc.c
. This must be fixed as it also breaks%{_target_platform}
which together with%{_target_os}
itself is used in some .spec.Also,
%{_target}
(which should be a usual cpu-vendor-os triplet) seems to be broken in a similar way as it returnsi386-os/2
instead ofi386-pc-os2-emx
(as%{_host}
and%{_build}
does).