<div dir="ltr">I finally managed to build both ubuntu 12 & 14 packages based on pkg-debian - if I skipped the patches and relaxed the dependency check on my home built packages.<div><br></div><div>I also had to add packages libvirt-bin dpatch to be able to build.</div><div><br></div><div>Finally I had to build protobuf and protobuf-c for both platforms (and librdkafka for ubuntu 12)</div><div><br></div><div>If/when you start building the packages do you plan to provide them for download somewhere? That would be awesome!</div><div><br></div><div>thanks again!<br></div><div><br></div><div>/svante</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-11 11:04 GMT+02:00 Marc Fournier <span dir="ltr"><<a href="mailto:marc.fournier@camptocamp.com" target="_blank">marc.fournier@camptocamp.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Svante,<br>
<br>
I still have a couple of details to sort out so nothing "official" yet,<br>
but I've been working on making nightly builds of collectd for debian,<br>
ubuntu LTS and centos.<br>
<br>
So if you feel like giving this a try, recent packages for your target<br>
distros are ready for consumption. Details here:<br>
<a href="https://github.com/collectd/collectd-ci" target="_blank">https://github.com/collectd/collectd-ci</a><br>
<br>
By the way, an important fix to write_kafka has been merged this WE, so<br>
I recommend using the current tip of the master branch if you need this<br>
plugin.<br>
<br>
Anwsering your questions regarding building your own packages:<br>
<br>
- libprotobuf-c-dev has been renamed to libprotobuf-c0-dev in ubuntu<br>
12.04 and 14.04. You should edit debian/control to reflect this<br>
change.<br>
<br>
- <a href="https://github.com/collectd/pkg-debian.git" target="_blank">https://github.com/collectd/pkg-debian.git</a> doesn't know yet about<br>
current collectd master (which has write_kafka). Have a look at<br>
<a href="https://github.com/mfournier/pkg-debian/branches/all" target="_blank">https://github.com/mfournier/pkg-debian/branches/all</a> for the<br>
differences which allow the nightly builds to work.<br>
<br>
- ubuntu 12.04 doesn't provide a package for librdkafka, so you'll need<br>
to backport it or install the library manually. The nightly builds I<br>
mentioned above don't provide write_kafka on ubuntu 12.04 because of<br>
this.<br>
<br>
Hope that helps !<br>
<br>
Marc<br>
<br>
Excerpts from Svante Karlsson's message of 2015-05-10 23:00:06 +0200:<br>
<div class="HOEnZb"><div class="h5">> I'm struggling to build a deb package for internal distribution on our<br>
> servers. I need to have kafka-writer plugin so I think I need to build from<br>
> a snapshot.<br>
><br>
> this is what I'm doing<br>
><br>
> sudo apt-get update<br>
> sudo apt-get upgrade<br>
> sudo apt-get install liboping-dev libmysqlclient-dev libpq-dev<br>
> librabbitmq-dev libvirt-bin librdkafka-dev<br>
> sudo apt-get install po-debconf dpatch iptables-dev javahelper<br>
> libcurl4-gnutls-dev libcurl4-gnutls-dev libcurl3-gnutls-dev libdbi0-dev<br>
> libesmtp-dev<br>
> sudo apt-get install libganglia1-dev libglib2.0-dev libhiredis-dev<br>
> liblvm2-dev libmemcached-dev libmodbus-dev libmnl-dev<br>
> sudo apt-get install libmysqlclient-dev libnotify-dev libopenipmi-dev<br>
> libpcap0.8-dev<br>
> sudo apt-get install libperl-dev libprotobuf-c0-dev librabbitmq-dev<br>
> librrd-dev libsensors4-dev libsnmp-dev perl<br>
> sudo apt-get install libtokyocabinet-dev libtokyotyrant-dev<br>
> libupsclient-dev libvarnish-dev libvirt-dev libyajl-dev<br>
> sudo apt-get install default-jdk protobuf-c-compiler libow-dev libprotobuf<br>
><br>
><br>
> git clone <a href="https://github.com/collectd/pkg-debian.git" target="_blank">https://github.com/collectd/pkg-debian.git</a><br>
> wget<br>
> <a href="http://snapshots.tokkee.org/collectd/2015-03-17/collectd-5.4.2.694.g9817e72.tar.gz" target="_blank">http://snapshots.tokkee.org/collectd/2015-03-17/collectd-5.4.2.694.g9817e72.tar.gz</a><br>
> -Ocollectd-5.4.2.694.g9817e72.tar.gz<br>
> tar xvzf collectd-5.4.2.694.g9817e72.tar.gz -C pkg-debian<br>
> --strip-components=1<br>
> cd pkg-debian<br>
> dpkg-buildpackage -us -uc<br>
><br>
><br>
> I've tried to build and install<br>
> git clone <a href="https://github.com/google/protobuf.git" target="_blank">https://github.com/google/protobuf.git</a><br>
> git clone <a href="https://github.com/protobuf-c/protobuf-c.git" target="_blank">https://github.com/protobuf-c/protobuf-c.git</a><br>
><br>
> but can't find dependency libprotobuf-c-dev<br>
><br>
> right now I'm running ubuntu 14.04 but I also need to get this working on<br>
> 12.04. I realize that I'm doing something wrong - could you please give me<br>
> a hint on how to produce the deb package?<br>
><br>
> thanks in advance<br>
> svante<br>
</div></div></blockquote></div><br></div>