[collectd] how to build a debian package of a daily snapshot?
Svante Karlsson
svante.karlsson at csi.se
Mon May 11 23:55:46 CEST 2015
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.
I also had to add packages libvirt-bin dpatch to be able to build.
Finally I had to build protobuf and protobuf-c for both platforms (and
librdkafka for ubuntu 12)
If/when you start building the packages do you plan to provide them for
download somewhere? That would be awesome!
thanks again!
/svante
2015-05-11 11:04 GMT+02:00 Marc Fournier <marc.fournier at camptocamp.com>:
> Hello Svante,
>
> I still have a couple of details to sort out so nothing "official" yet,
> but I've been working on making nightly builds of collectd for debian,
> ubuntu LTS and centos.
>
> So if you feel like giving this a try, recent packages for your target
> distros are ready for consumption. Details here:
> https://github.com/collectd/collectd-ci
>
> By the way, an important fix to write_kafka has been merged this WE, so
> I recommend using the current tip of the master branch if you need this
> plugin.
>
> Anwsering your questions regarding building your own packages:
>
> - libprotobuf-c-dev has been renamed to libprotobuf-c0-dev in ubuntu
> 12.04 and 14.04. You should edit debian/control to reflect this
> change.
>
> - https://github.com/collectd/pkg-debian.git doesn't know yet about
> current collectd master (which has write_kafka). Have a look at
> https://github.com/mfournier/pkg-debian/branches/all for the
> differences which allow the nightly builds to work.
>
> - ubuntu 12.04 doesn't provide a package for librdkafka, so you'll need
> to backport it or install the library manually. The nightly builds I
> mentioned above don't provide write_kafka on ubuntu 12.04 because of
> this.
>
> Hope that helps !
>
> Marc
>
> Excerpts from Svante Karlsson's message of 2015-05-10 23:00:06 +0200:
> > I'm struggling to build a deb package for internal distribution on our
> > servers. I need to have kafka-writer plugin so I think I need to build
> from
> > a snapshot.
> >
> > this is what I'm doing
> >
> > sudo apt-get update
> > sudo apt-get upgrade
> > sudo apt-get install liboping-dev libmysqlclient-dev libpq-dev
> > librabbitmq-dev libvirt-bin librdkafka-dev
> > sudo apt-get install po-debconf dpatch iptables-dev javahelper
> > libcurl4-gnutls-dev libcurl4-gnutls-dev libcurl3-gnutls-dev libdbi0-dev
> > libesmtp-dev
> > sudo apt-get install libganglia1-dev libglib2.0-dev libhiredis-dev
> > liblvm2-dev libmemcached-dev libmodbus-dev libmnl-dev
> > sudo apt-get install libmysqlclient-dev libnotify-dev libopenipmi-dev
> > libpcap0.8-dev
> > sudo apt-get install libperl-dev libprotobuf-c0-dev librabbitmq-dev
> > librrd-dev libsensors4-dev libsnmp-dev perl
> > sudo apt-get install libtokyocabinet-dev libtokyotyrant-dev
> > libupsclient-dev libvarnish-dev libvirt-dev libyajl-dev
> > sudo apt-get install default-jdk protobuf-c-compiler libow-dev
> libprotobuf
> >
> >
> > git clone https://github.com/collectd/pkg-debian.git
> > wget
> >
> http://snapshots.tokkee.org/collectd/2015-03-17/collectd-5.4.2.694.g9817e72.tar.gz
> > -Ocollectd-5.4.2.694.g9817e72.tar.gz
> > tar xvzf collectd-5.4.2.694.g9817e72.tar.gz -C pkg-debian
> > --strip-components=1
> > cd pkg-debian
> > dpkg-buildpackage -us -uc
> >
> >
> > I've tried to build and install
> > git clone https://github.com/google/protobuf.git
> > git clone https://github.com/protobuf-c/protobuf-c.git
> >
> > but can't find dependency libprotobuf-c-dev
> >
> > right now I'm running ubuntu 14.04 but I also need to get this working on
> > 12.04. I realize that I'm doing something wrong - could you please give
> me
> > a hint on how to produce the deb package?
> >
> > thanks in advance
> > svante
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20150511/2dc051b6/attachment.html>
More information about the collectd
mailing list