Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Following up on pre-packaging of current czmq, want version 3 too #1592

Closed
jimklimov opened this issue Jan 6, 2017 · 3 comments
Closed

Following up on pre-packaging of current czmq, want version 3 too #1592

jimklimov opened this issue Jan 6, 2017 · 3 comments
Labels

Comments

@jimklimov
Copy link
Member

Due to legacy reasons and API changes, some projects rely on czmq v3.0.2 and did not migrate to newer foundation yet. Recently good progress to speed up CI builds was made by pre-packaging some of the zeromq ecosystem components, but it seems "libczmq3-dev" is not among these. @bluca : Would it be possible to provide (packaged head of branch "v3.0.2") it with the same mechanism?

On a side note, maybe it makes sense to define a zproject known-project like "czmq3" with its customized version, release and package name values, which project.xml consumers could <use>.

@bluca
Copy link
Member

bluca commented Jan 6, 2017

libczmq3 was in Debian testing for a while so you can rebuild it in your OBS instance as a source artefact if you need it, simply add a _service with this content:

<services>
  <service name="download_url">
    <param name="host">snapshot.debian.org</param>
    <param name="protocol">http</param>
    <param name="path">/archive/debian/20150816T153634Z/pool/main/c/czmq/czmq_3.0.2.orig.tar.gz</param>
  </service>
  <service name="download_url">
    <param name="host">snapshot.debian.org</param>
    <param name="protocol">http</param>
    <param name="path">/archive/debian/20160902T164952Z/pool/main/c/czmq/czmq_3.0.2-10.dsc</param>
  </service>
  <service name="download_url">
    <param name="host">snapshot.debian.org</param>
    <param name="protocol">http</param>
    <param name="path">/archive/debian/20160902T164952Z/pool/main/c/czmq/czmq_3.0.2-10.debian.tar.xz</param>
  </service>
</services>

In general though, there is no 3.x branch, intentionally, following the C4 model, we are not going to maintain it. The API deprecation was announced 2 years ago after all, so we want everyone to move to 4.x. This is why I intentionally did not provide a versioned -dev package in Debian, and I upgraded all my internal projects to the new APIs

I don't think we should provide this in the zeromq OBS project as this might lead users to believe that 3.x is still maintained, when in fact it's not and it will not get any bugfix anymore

@bluca
Copy link
Member

bluca commented Jan 6, 2017

To make things easier to maintain in your OBS instance, you can configure your poject to link to zeromq:git-stable. This means OBS will automatically rebuild packages that depend on czmq, and take the rest as they are from zeromq's project. Something like this:

<project name="home:foo:bar">
  <link project="home:zeromq:git-stable"/>
  <repository name="Debian_8.0" linkedbuild="localdep">
    <path project="openSUSE:Tools" repository="Debian_8.0"/>
    <arch>i586</arch>
    <arch>x86_64</arch>
  </repository>
</project>

Note the "link" element and "linkedbuild" attribute. You can add these to an existing project.

Then create in that project a "czmq" package with the _service as described in the previous reply. This will build czmq3 and automatically rebuild zyre and malamute, and pick the other binaries as they are in zeromq:git-stable.

You can also do this in your private OBS instance, if you set up an interconnect to OpenSUSE's instance (which I'm pretty sure you have), then just prefix the interconnect name to home:zeromq:git-stable.

OBS is pretty amazing :-)

@stale
Copy link

stale bot commented Nov 10, 2018

This issue has been automatically marked as stale because it has not had recent activity for 90 days. It will be closed if no further activity occurs within 21 days. Thank you for your contributions.

@stale stale bot added the stale label Nov 10, 2018
@stale stale bot closed this as completed Dec 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants