[opensuse-packaging] Packaging go
Hi, I've been working on RPM for new release of InfluxDB and found that we have to consider following Fedora Provides/Requires model for Go. The build time error looks like the following: [ 23s] ../go/src/github.com/prometheus/client_golang/prometheus/desc.go:12:2: cannot find package "github.com/golang/protobuf/proto" in any of: [ 23s] /usr/lib64/go/src/github.com/golang/protobuf/proto (from $GOROOT) [ 23s] /home/abuild/rpmbuild/BUILD/go/src/github.com/golang/protobuf/proto (from $GOPATH) [ 23s] /usr/lib64/go/contrib/src/github.com/golang/protobuf/proto And I would like just add BuildRequires: golang(github.com/golang/protobuf) to my spec file. Nowadays, I have to find go-protobuf package in OBS and then check where did it come from. There are two implementations of protobuf golang/protobuf (which is go-protobuf) and gogo/protobuf (which is go-gogo-protobuf package in my branch). [1] http://fedoraproject.org/wiki/PackagingDrafts/Go -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 It's some kind of work in progress. Some people including me are working on an better approach for packaging go like it is already done for Fedora. Just take a look at my current start [1]. Hopefully we will find some time pretty soon to kill the last issues with this approach. After fixing these issues we should be able to do proper packaging of go packages :). If you want to follow the progress come in and join #opensuse-golang on Freenode, hopefully we will get more people in there soon. Regards, Thomas Boerger [1] https://build.opensuse.org/project/monitor/home:tboerger:branches:devel: languages:go On 06/19/2015 03:55 PM, Matwey V. Kornilov wrote:
Hi,
I've been working on RPM for new release of InfluxDB and found that we have to consider following Fedora Provides/Requires model for Go.
The build time error looks like the following:
[ 23s] ../go/src/github.com/prometheus/client_golang/prometheus/desc.go:12:2:
cannot find package "github.com/golang/protobuf/proto" in any of:
[ 23s] /usr/lib64/go/src/github.com/golang/protobuf/proto (from $GOROOT) [ 23s] /home/abuild/rpmbuild/BUILD/go/src/github.com/golang/protobuf/proto
(from $GOPATH)
[ 23s] /usr/lib64/go/contrib/src/github.com/golang/protobuf/proto
And I would like just add
BuildRequires: golang(github.com/golang/protobuf)
to my spec file.
Nowadays, I have to find go-protobuf package in OBS and then check where did it come from. There are two implementations of protobuf golang/protobuf (which is go-protobuf) and gogo/protobuf (which is go-gogo-protobuf package in my branch).
-----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJVh8BfAAoJEFo4j1UoOWC2zAIP/iAqQ5+fojd+2l7JBl5kH9GG oJXQWnSjDd8ykiXrgGN7OGF5OoJVA7MF+W/5hkg6hmeah+DlO0pxM6Sa1osCk863 QSmQiNKAgQ6bFmXJGguNxU3w1vCn0VOdBNPCGJArs7894LIfsqXyw755noq7nZG6 MdHuft6uBrwwauCnnM6n+Jq4jomIswJ3Bd1raqrx169nz5kJudnb/wwI9uZGFJDt ixe30PhhwCdQxlg7XYDRadQYa8fSIXZQgSyh3JGsWAedcFu7ZYrFsiNV38TrSV8P h0vDcJr/m2Ia0zARJqYx8oRSlFtmYsWOQ2yb3r9oga7oJsVLMjpwZWWnNEieUE9T psGxllsPcHDIMy/JsMW5rbSGLADILOXPs6DPlunDswN/AseMCpNdhZ7XKRzM13PB tSROEMuD1NT9OpJGA7C9ZmEI6l1x29XyQfRhj0CkSMNV7k4zhL5CiXBNGNJ+fgwK SEtUIaXXFDIFhx00xv2eHpNsp4TBYSphFUNxOAgMCXl6I/mu4FGMcpHIaKAJNNrK PdCyKXNbw4+qMBrbeQ44On2gyQzC7A7tlVQsnf+5WZBHZyTPEB+ob2SG9Xgrcui6 x4WEkmWZWjPu/9TlOppXl1LOMeobwt5NSO27IZx1z4iEVTlbbjsS9zaLqrkniHyn JQjWg/O2iuMgSi+CCGU3 =QiKO -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Looks promising, I hope I will not need to convert all existing packages for InfluxDB :) 22.06.2015 10:59, Thomas Boerger пишет:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
It's some kind of work in progress. Some people including me are working on an better approach for packaging go like it is already done for Fedora. Just take a look at my current start [1]. Hopefully we will find some time pretty soon to kill the last issues with this approach. After fixing these issues we should be able to do proper packaging of go packages :). If you want to follow the progress come in and join #opensuse-golang on Freenode, hopefully we will get more people in there soon.
Regards, Thomas Boerger
[1] https://build.opensuse.org/project/monitor/home:tboerger:branches:devel: languages:go
On 06/19/2015 03:55 PM, Matwey V. Kornilov wrote:
Hi,
I've been working on RPM for new release of InfluxDB and found that we have to consider following Fedora Provides/Requires model for Go.
The build time error looks like the following:
[ 23s] ../go/src/github.com/prometheus/client_golang/prometheus/desc.go:12:2:
cannot find package "github.com/golang/protobuf/proto" in any of:
[ 23s] /usr/lib64/go/src/github.com/golang/protobuf/proto (from $GOROOT) [ 23s] /home/abuild/rpmbuild/BUILD/go/src/github.com/golang/protobuf/proto
(from $GOPATH)
[ 23s] /usr/lib64/go/contrib/src/github.com/golang/protobuf/proto
And I would like just add
BuildRequires: golang(github.com/golang/protobuf)
to my spec file.
Nowadays, I have to find go-protobuf package in OBS and then check where did it come from. There are two implementations of protobuf golang/protobuf (which is go-protobuf) and gogo/protobuf (which is go-gogo-protobuf package in my branch).
-----BEGIN PGP SIGNATURE-----
iQIcBAEBCgAGBQJVh8BfAAoJEFo4j1UoOWC2zAIP/iAqQ5+fojd+2l7JBl5kH9GG oJXQWnSjDd8ykiXrgGN7OGF5OoJVA7MF+W/5hkg6hmeah+DlO0pxM6Sa1osCk863 QSmQiNKAgQ6bFmXJGguNxU3w1vCn0VOdBNPCGJArs7894LIfsqXyw755noq7nZG6 MdHuft6uBrwwauCnnM6n+Jq4jomIswJ3Bd1raqrx169nz5kJudnb/wwI9uZGFJDt ixe30PhhwCdQxlg7XYDRadQYa8fSIXZQgSyh3JGsWAedcFu7ZYrFsiNV38TrSV8P h0vDcJr/m2Ia0zARJqYx8oRSlFtmYsWOQ2yb3r9oga7oJsVLMjpwZWWnNEieUE9T psGxllsPcHDIMy/JsMW5rbSGLADILOXPs6DPlunDswN/AseMCpNdhZ7XKRzM13PB tSROEMuD1NT9OpJGA7C9ZmEI6l1x29XyQfRhj0CkSMNV7k4zhL5CiXBNGNJ+fgwK SEtUIaXXFDIFhx00xv2eHpNsp4TBYSphFUNxOAgMCXl6I/mu4FGMcpHIaKAJNNrK PdCyKXNbw4+qMBrbeQ44On2gyQzC7A7tlVQsnf+5WZBHZyTPEB+ob2SG9Xgrcui6 x4WEkmWZWjPu/9TlOppXl1LOMeobwt5NSO27IZx1z4iEVTlbbjsS9zaLqrkniHyn JQjWg/O2iuMgSi+CCGU3 =QiKO -----END PGP SIGNATURE-----
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 06/24/2015 11:33 AM, Matwey V. Kornilov wrote:
Looks promising, I hope I will not need to convert all existing packages for InfluxDB :)
We will have some kind of a hackweek in July where I already said that I want to rebuild all the Go packages. Hopefully I will get some help with that :). First we need to extend the macros, afterward it should be quite easy to rewrite the packages including some obsoletes for the old naming :). But anyway it's still challenging for a single week... -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJVi7vHAAoJEFo4j1UoOWC2otYP/0sHpZXEcuTz5nSyi6Ypid2N FncMs2Cr5fTHeNpIoTFNLb2BRnNbpOasEzje8AUFOaBgZcRNqalFK1Px6odQ7Zdj 2ISVm1QC69lw20IBiQfljFgxW8wu4YBl41JvWvKWHbwCm+rb5s2kHMFiyZFau5FJ 5yxdNJB1yYddcZGsnzl/Ttq7of4XAWvpCNVRxtDOvceFUOFJqGL8P4sP/TwC57bS UJ6OkZUk8vpqhNkyLM40pJT+nW2BqtuayqOlinEBcwU892aMczBdFPMKY8yfo8Tp 39VhM6dz/KEY9uinbgRMgXEB/SPw5aVuP72qACGGCE6he62uRMGJFd/p8iPByenq MyrHIqli4eTiekfnUB7DnLegp5DDlnvLtgRSfaW+pFnxuSipMoxiRbPZ3TXeNwsh CtDC/hwvXGRB+wmkIUrkOidblVZwwA8/Ve/yZUzDkeOmlbQbnwRSBsLhOzyInBXE Pk6vTNmwIKa9vlkqhcMnhv/jc8xoRFwdE63/NEVJP4cBYdkxBVcB/Ub8qa0flp8s iEPOzRTijM24JiGxuXigICkCv9dExASfI/6cJVNzzJpWIlz5BX34hn2QIxcLbSNw gkdHuoIhXO/OcL2o1D2b60UR7zcDUc80v3+soXf1p0o1LdFBev8mP9ugJ+uYAEpm UhERCFgv+OP0KqfJBySP =Z/Os -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (2)
-
Matwey V. Kornilov
-
Thomas Boerger