bitwiseworks / rpm-os2

Port of RPM to OS/2
Other
0 stars 0 forks source link

Broken %{_target_os} definition #1

Open dmik opened 4 years ago

dmik commented 4 years ago

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).

SilvanScherrer commented 4 years ago

see http://trac.netlabs.org/rpm/ticket/135 for some more info why it's like that. I wonder if we could just change target_os and leave target as is.