[Bug 1258182] Review Request: go-compilers - Go language compilers for various architectures

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1258182



--- Comment #13 from Jan Chaloupka <jchaloup@xxxxxxxxxx> ---
What would the use of go-compilers and go-srpm-macros macros?

1)
%if 0%{?go_arches:1}
ExclusiveArch:  %{go_arches}
%else
ExclusiveArch:  %{ix86} x86_64 %{arm}
%endif

If not being optimistic, this will work without go-srpm-macros package as well.
So no need for it.

2)
Unit-test subpackage and main package (if necessary) will use:
%if 0%{?fedora}
BuildRequires: compiler(golang)
%endif
...

%if ! 0%{?gobuild:1}
%global gobuild(o) go build %{?**};
%endif

And use would be:
%gobuild -o bin/go-md2man %{import_path}

So again if there is no go-srpm-macros package => no macros => gobuild get
defined locally. Of course this functionality is valid only for non-Fedora
distribution. As from f22 and higher, golang package will no longer provide its
macros (so no gopath macro as well). However, it has to be made sure the macro
is present on non-Fedora distros.

This is not the final use case. However, it does not depend on go-compilers
package so it can be discussed independently. Just mentioning it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review




[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]