Hi Jordi. On 05.02.18 14:51 Jordi Massaguer Pla wrote:
Does this mean I have to also build gcc package in my project to get a gcc-go package? Or is this something that could be solved by some pkgconfig magic in the spec file of git-lfs?
Just for the fun of it, I just linkpac'ed SLES12 gcc package to my git-lfs project and will see, what will happen. As there is a gcc5, there may be a gcc-go package in the right version dropping out. Or not. ;-)
One way could be to check for the suse version. If it is SLE12, then require gcc5-go, in the spec file, something like:
%if 0%{?suse_version} == 1315 && !0%{?is_opensuse} BuildRequires: gcc5-go %else BuildRequires: gcc-go %endif
I had thought about that, but thought there might be a more elegant solution involving pkgconfig or similar. I'll chat to the git-lfs package maintainer about this approach. Thanks for your help! Johannes