techoe / ceres-solver

Automatically exported from code.google.com/p/ceres-solver
Other
0 stars 0 forks source link

RPM package missing from download options #84

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Pre-built RPM packages for the most popular RPM-based distros would be nice 
(done fairly easily using mock[1]). See change:

https://ceres-solver-review.googlesource.com/2540

for a .spec that is tested on a RHEL6-based distro but should be general enough 
to work for most other RPM-based distros.

[1] http://fedoraproject.org/wiki/Projects/Mock

Original issue reported on code.google.com by taylor.j...@gmail.com on 23 Feb 2013 at 5:02

GoogleCodeExporter commented 9 years ago
Taylor,

Keir and I are unable to do this in our dev environments. And we would like to 
stick to providing source distributions for now. If there are folks who would 
like to contribute rpms/debs/windows builds, I am okay with it, but I am 
skeptical that we want to deal with producing the binaries on our end.

Original comment by sameerag...@google.com on 25 Feb 2013 at 9:47

GoogleCodeExporter commented 9 years ago
Okay, that makes sense. Thanks.

Original comment by taylor.j...@gmail.com on 25 Feb 2013 at 9:50

GoogleCodeExporter commented 9 years ago

Original comment by sameerag...@google.com on 25 Feb 2013 at 9:53

GoogleCodeExporter commented 9 years ago
Before we close this: Taylor, if you are willing to build RPM's with each 
release cycle we can distribute them. We just can't do it ourselves.

Original comment by k...@locu.com on 25 Feb 2013 at 10:06

GoogleCodeExporter commented 9 years ago
I don't think I'll be able to reliably build RPMs for each release, but you
may want to consider using something like the OpenSUSE Build Service
(OBS)[1]. Given a .spec file it can build .rpm packages for several
different distributions and given a .dsc it can build .deb packages for
Debian and Ubuntu.

With a fairly simple "_service" file, it will

 - generate a tarball of a specific git revision (e.g. a "1.4.0" tag)
 - extract .spec or .dsc files from that tarball
 - correctly set the version in the .spec file
 - build .rpm and .deb packages for all .spec and .dsc files it found in
the tarball - one package for each distro you have opted to build for.
These are the supported distributions that can be built against:

distribution              project                   repository
   reponame
------------              -------                   ----------
   --------
openSUSE Factory          openSUSE:Factory          snapshot
   openSUSE_Factory
openSUSE 12.2             openSUSE:12.2             standard
   openSUSE_12.2
openSUSE 12.1             openSUSE:12.1             standard
   openSUSE_12.1
openSUSE Tumbleweed       openSUSE:Tumbleweed       standard
   openSUSE_Tumbleweed
SUSE SLE-11 SP 2          SUSE:SLE-11:SP2           standard
   SLE_11_SP2
SUSE SLE-11 SP 1          SUSE:SLE-11:SP1           standard
   SLE_11_SP1
SUSE SLE-11               SUSE:SLE-11               standard
   SLE_11
SUSE SLE-10               SUSE:SLE-10:SDK           standard
   SLE_10_SDK
Debian 6.0                Debian:6.0                standard
   Debian_6.0
Fedora 18                 Fedora:18                 standard
   Fedora_18
Fedora 17                 Fedora:17                 standard
   Fedora_17
RedHat RHEL-6             RedHat:RHEL-6             standard
   RedHat_RHEL-6
RedHat RHEL-5             RedHat:RHEL-5             standard
   RedHat_RHEL-5
RedHat RHEL-4             RedHat:RHEL-4             standard
   RedHat_RHEL-4
CentOS CentOS-6           CentOS:CentOS-6           standard
   CentOS_CentOS-6
CentOS CentOS-5           CentOS:CentOS-5           standard
   CentOS_CentOS-5
Mandriva 2011             Mandriva:2011             standard
   Mandriva_2011
Mandriva 2010.1           Mandriva:2010.1           standard
   Mandriva_2010.1
Mandriva 2010             Mandriva:2010             standard
   Mandriva_2010
Mandriva 2009.1           Mandriva:2009.1           standard
   Mandriva_2009.1
Ubuntu 12.10              Ubuntu:12.10              standard
   xUbuntu_12.10
Ubuntu 12.04              Ubuntu:12.04              standard
   xUbuntu_12.04
Ubuntu 11.10              Ubuntu:11.10              standard
   xUbuntu_11.10
Ubuntu 11.04              Ubuntu:11.04              standard
   xUbuntu_11.04
Ubuntu 10.04              Ubuntu:10.04              standard
   xUbuntu_10.04

I created an an OBS package that with a _service file that is quite close
if you are interested in checking it out[2]. For the Fedora 17 and 18
builds to work, the spec file needs a small change[3]. For the dependencies
to be resolved for a RHEL-6 build, there would need to be some way to build
for a "RHEL-6+EPEL" distribution - I'm not sure how/if that's possible.

Taylor

[1] http://en.opensuse.org/Portal:Build_Service
[2]
https://build.opensuse.org/package/show?package=ceres-solver&project=home%3Anocn
okneo
[3] https://ceres-solver-review.googlesource.com/2531

Original comment by taylor.j...@gmail.com on 26 Feb 2013 at 5:56