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.vran...@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
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to