[cmake-developers] [PATCH] CPackRPM: Fix cross-building rpms
Joshua Clayton
stillcompiling at gmail.com
Wed Feb 11 01:31:58 EST 2015
I've finally had some time to read over the Tests section, and it is a
bit overwhelming.
I'm going to describe the use cases for my patch and perhaps you can
give me some guidance on adding an actual test.
There are three, maybe four use cases:
1) native rpm (e.g. x86_64)
2) noarch rpm (a noarch package should contain scripts, artwork, etc,
but no compiled code)
3) a non-native, but compatible rpm (e.g. building x86 on a multilib
x86_64 system)
4) incompatible cross-compiled package (e.g. building for arm or ppc)
in each case the way you know it worked is
a) "make package" successfully produces an rpm file
b) running "rpm -qip my_rpm_file.my_arch.rpm returns a description of the rpm,
including the line "Architecture: my_arch"
On Tue, Feb 3, 2015 at 11:50 PM, Domen Vrankar <domen.vrankar at gmail.com> wrote:
>> Add the --target argument to rpmbuild
>> Do not add a BuildArch variable to the spec file for arch specific packages
>> BuildArch causes rpm building to fail except for "noarch" packages
>
> I'm not too familiar with cross compilation problems so could you
> please also provide a simple test case to help with patch review?
>
> Thanks,
> Domen
More information about the cmake-developers
mailing list