Re: Packaging golang for secondary architectures, go-srpm-macros

2015-09-02 Thread Dennis Gilmore
On Monday, July 27, 2015 10:12:03 AM Vít Ondruch wrote: > Dne 26.7.2015 v 14:03 Jan Chaloupka napsal(a): > > On 07/24/2015 03:36 PM, Vít Ondruch wrote: > >> Dne 9.7.2015 v 11:18 Jan Chaloupka napsal(a): > >>> Recommended use in spec file: > >>> 1) To choose the correct compiler: > >>> %ifarch %{gol

Re: Packaging golang for secondary architectures, go-srpm-macros

2015-07-27 Thread Vít Ondruch
Dne 27.7.2015 v 13:51 Petr Pisar napsal(a): > On 2015-07-27, Vít Ondruch wrote: >> Dne 27.7.2015 v 12:00 Jan Chaloupka napsal(a): >>> You can say the same about perl-srpm-macros, ocaml-srpm-macros or >>> other *-srpm-macros package redhat-rpm-config has as a runtime >>> dependency. >> Yes, and I s

Re: Packaging golang for secondary architectures, go-srpm-macros

2015-07-27 Thread Petr Pisar
On 2015-07-27, Vít Ondruch wrote: > Dne 27.7.2015 v 12:00 Jan Chaloupka napsal(a): >> You can say the same about perl-srpm-macros, ocaml-srpm-macros or >> other *-srpm-macros package redhat-rpm-config has as a runtime >> dependency. > > Yes, and I say that about them. You can ask Perl maintainers

Re: Packaging golang for secondary architectures, go-srpm-macros

2015-07-27 Thread Vít Ondruch
Dne 27.7.2015 v 12:00 Jan Chaloupka napsal(a): > > > On 07/27/2015 10:12 AM, Vít Ondruch wrote: >> Dne 26.7.2015 v 14:03 Jan Chaloupka napsal(a): >>> On 07/24/2015 03:36 PM, Vít Ondruch wrote: Dne 9.7.2015 v 11:18 Jan Chaloupka napsal(a): > Recommended use in spec file: > 1) To choose

Re: Packaging golang for secondary architectures, go-srpm-macros

2015-07-27 Thread Jan Chaloupka
On 07/27/2015 10:12 AM, Vít Ondruch wrote: Dne 26.7.2015 v 14:03 Jan Chaloupka napsal(a): On 07/24/2015 03:36 PM, Vít Ondruch wrote: Dne 9.7.2015 v 11:18 Jan Chaloupka napsal(a): Recommended use in spec file: 1) To choose the correct compiler: %ifarch %{golang_arches} BuildRequires: golang %

Re: Packaging golang for secondary architectures, go-srpm-macros

2015-07-27 Thread Vít Ondruch
Dne 26.7.2015 v 14:03 Jan Chaloupka napsal(a): > On 07/24/2015 03:36 PM, Vít Ondruch wrote: >> Dne 9.7.2015 v 11:18 Jan Chaloupka napsal(a): >>> Recommended use in spec file: >>> 1) To choose the correct compiler: >>> %ifarch %{golang_arches} >>> BuildRequires: golang >>> %else >>> BuildRequires: g

Re: Packaging golang for secondary architectures, go-srpm-macros

2015-07-26 Thread Jan Chaloupka
On 07/24/2015 03:36 PM, Vít Ondruch wrote: Dne 9.7.2015 v 11:18 Jan Chaloupka napsal(a): Recommended use in spec file: 1) To choose the correct compiler: %ifarch %{golang_arches} BuildRequires: golang %else BuildRequires: gcc-go >= %{gccgo_min_vers} %endif 2) To choose the correct command for b

Re: Packaging golang for secondary architectures, go-srpm-macros

2015-07-24 Thread Vít Ondruch
Dne 9.7.2015 v 11:18 Jan Chaloupka napsal(a): > > Recommended use in spec file: > 1) To choose the correct compiler: > %ifarch %{golang_arches} > BuildRequires: golang > %else > BuildRequires: gcc-go >= %{gccgo_min_vers} > %endif > > 2) To choose the correct command for building and testing: > %ifa

Re: Packaging golang for secondary architectures, go-srpm-macros

2015-07-09 Thread Petr Pisar
On 2015-07-09, Jan Chaloupka wrote: > On 07/09/2015 03:07 PM, Dan Horák wrote: >> On Thu, 9 Jul 2015 10:49:01 + (UTC) >> Petr Pisar wrote: >> >>> On 2015-07-09, Jan Chaloupka wrote: # Define arches for PA and SA %golang_arches %{ix86} x86_64 %{arm} >>> [...] Recommended use

Re: Packaging golang for secondary architectures, go-srpm-macros

2015-07-09 Thread Jan Chaloupka
On 07/09/2015 03:07 PM, Dan Horák wrote: On Thu, 9 Jul 2015 10:49:01 + (UTC) Petr Pisar wrote: On 2015-07-09, Jan Chaloupka wrote: # Define arches for PA and SA %golang_arches %{ix86} x86_64 %{arm} [...] Recommended use in spec file: 1) To choose the correct compiler: %ifarch %{gol

Re: Packaging golang for secondary architectures, go-srpm-macros

2015-07-09 Thread Dan Horák
On Thu, 9 Jul 2015 10:49:01 + (UTC) Petr Pisar wrote: > On 2015-07-09, Jan Chaloupka wrote: > > # Define arches for PA and SA > > %golang_arches %{ix86} x86_64 %{arm} > [...] > > Recommended use in spec file: > > 1) To choose the correct compiler: > > %ifarch %{golang_arches} > > BuildRequ

Re: Packaging golang for secondary architectures, go-srpm-macros

2015-07-09 Thread Jan Chaloupka
On 07/09/2015 12:49 PM, Petr Pisar wrote: On 2015-07-09, Jan Chaloupka wrote: # Define arches for PA and SA %golang_arches %{ix86} x86_64 %{arm} [...] Recommended use in spec file: 1) To choose the correct compiler: %ifarch %{golang_arches} BuildRequires: golang %else BuildRequires: gcc-g

Re: Packaging golang for secondary architectures, go-srpm-macros

2015-07-09 Thread Petr Pisar
On 2015-07-09, Jan Chaloupka wrote: > # Define arches for PA and SA > %golang_arches %{ix86} x86_64 %{arm} [...] > Recommended use in spec file: > 1) To choose the correct compiler: > %ifarch %{golang_arches} > BuildRequires: golang > %else > BuildRequires: gcc-go >= %{gccgo_min_vers} > %endif >

Packaging golang for secondary architectures, go-srpm-macros

2015-07-09 Thread Jan Chaloupka
Hi, at the moment golang packages are built only on primary architectures (defined by %go_arches macro) due to golang compiler architecture support. For secondary architectures gcc-go is available. In order to provide an easy way for packagers to package golang projects for secondary architec