[Pkg-monitoring-maintainers] Ganglia dpkg-buildpackage failed

Daniel Pocock daniel at pocock.com.au
Wed Jan 23 14:59:09 UTC 2013



Nicholas Satterly <nfsatterly at gmail.com> wrote:

>Hi Daniel,
>
>I've successfully built version 3.5.0 of ganglia.
>
>I had to remove the large_block_count patch (which I think has already
>been applied), modify configure.in to skip the php5 version error and
>remove all references to web in the rules file [1].

It is highly preferable to avoid changing things like that in the debian git repo if we can fix them in the upstream release or if we can use debian/rules to disable something like that by passing options to configure

>
>Any thoughts as to why "make -C web" was failing?


Web is now a separate upstream release tarball and it goes into the ganglia-web git repo on alioth.

The regular ganglia pkg control file and rules file can be updated to remove references to web
>
>Regards,
>Nick
>
>make[3]: Leaving directory `/home/vagrant/build/ganglia-debian/gmetric'
>Making all in include
>make[3]: Entering directory
>`/home/vagrant/build/ganglia-debian/include'
>make[3]: Nothing to be done for `all'.
>make[3]: Leaving directory `/home/vagrant/build/ganglia-debian/include'
>Making all in mans
>make[3]: Entering directory `/home/vagrant/build/ganglia-debian/mans'
>make[3]: Nothing to be done for `all'.
>make[3]: Leaving directory `/home/vagrant/build/ganglia-debian/mans'
>make[3]: Entering directory `/home/vagrant/build/ganglia-debian'
>make[3]: Leaving directory `/home/vagrant/build/ganglia-debian'
>make[2]: Leaving directory `/home/vagrant/build/ganglia-debian'
>make[1]: Leaving directory `/home/vagrant/build/ganglia-debian'
>#/usr/bin/docbook-to-man debian/ganglia.sgml > ganglia.1
>touch build-stamp
>make -C web
>make: *** web: No such file or directory.  Stop.
>make: *** [build] Error 2
>dpkg-buildpackage: error: debian/rules build gave error exit status 2
>
>
>[1] diff of debian/patches, configure.in and debian/rules
>
>diff --git a/debian/patches/large_block_count.patch
>b/debian/patches/large_block_count.patch
>deleted file mode 100644
>index 15e171f..0000000
>--- a/debian/patches/large_block_count.patch
>+++ /dev/null
>@@ -1,39 +0,0 @@
>-Description: Fix truncation of large block sizes in disk space
>reporting
>- Free and used block counts were copied into a int32_t value which
>- led to truncation on systems with large storage.
>-Author: Mario Lang <mlang at debian.org>
>-Bug-Debian: http://bugs.debian.org/694623
>-Forwarded: no
>-Reviewed-By: Simon Kainz <simon.kainz at tugraz.at>
>-Last-Update: 2012-11-28
>-
>---- ganglia-3.3.8.orig/libmetrics/linux/metrics.c
>-+++ ganglia-3.3.8/libmetrics/linux/metrics.c
>-@@ -1174,9 +1174,6 @@ int remote_mount(const char *device, con
>- float device_space(char *mount, char *device, double *total_size,
>double *total_free)
>- {
>-    struct statvfs svfs;
>--   uint32_t blocksize;
>--   uint32_t free;
>--   uint32_t size;
>-    /* The percent used: used/total * 100 */
>-    float pct=0.0;
>-
>-@@ -1188,14 +1185,11 @@ float device_space(char *mount, char *de
>-       return pct;
>-    }
>-
>--   free = svfs.f_bavail;
>--   size  = svfs.f_blocks;
>--   blocksize = svfs.f_bsize;
>-    /* Keep running sum of total used, free local disk space. */
>--   *total_size += size * (double) blocksize;
>--   *total_free += free * (double) blocksize;
>-+   *total_size += svfs.f_blocks * (double) svfs.f_bsize;
>-+   *total_free += svfs.f_bavail * (double) svfs.f_bsize;
>-    /* The percentage of space used on this partition. */
>--   pct = size ? ((size - free) / (float) size) * 100 : 0.0;
>-+   pct = svfs.f_blocks ? ((svfs.f_blocks - svfs.f_bavail) / (float)
>svfs.f_blocks) * 100 : 0.0;
>-    return pct;
>- }
>-
>diff --git a/debian/patches/php-version-hack
>b/debian/patches/php-version-hack
>new file mode 100644
>index 0000000..19d3a9d
>--- /dev/null
>+++ b/debian/patches/php-version-hack
>@@ -0,0 +1,39 @@
>+Description: php-version-hack
>+ TODO: Put a short summary on the line above and replace this
>paragraph
>+ with a longer explanation of this change. Complete the
>meta-information
>+ with other relevant fields (see below for details). To make it
>easier, the
>+ information below has been extracted from the changelog. Adjust it or
>drop
>+ it.
>+ .
>+ ganglia (3.5.0-1) UNRELEASED; urgency=low
>+ .
>+   * New upstream release
>+Author: Nick Satterly <nick.satterly at guardian.co.uk>
>+
>+---
>+The information above should follow the Patch Tagging Guidelines,
>please
>+checkout http://dep.debian.net/deps/dep3/ to learn about the format.
>Here
>+are templates for supplementary fields that you might want to add:
>+
>+Origin: <vendor|upstream|other>, <url of original patch>
>+Bug: <url in upstream bugtracker>
>+Bug-Debian: http://bugs.debian.org/<bugnumber>
>+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
>+Forwarded: <no|not-needed|url proving that it has been forwarded>
>+Reviewed-By: <name and email of someone who approved the patch>
>+Last-Update: <YYYY-MM-DD>
>+
>+--- ganglia-3.5.0.orig/configure.in
>++++ ganglia-3.5.0/configure.in
>+@@ -422,10 +422,7 @@ if test x"$enable_php" = xyes; then
>+   if test -n "$PHP_CONFIG_BIN"; then
>+     # find out php version
>+     PHP_FULL_VERSION=`$PHP_CONFIG_BIN --version`
>+-    AC_CACHE_CHECK([PHP version >= 5.3], [php_cv_version_5],
>+-        [AX_COMPARE_VERSION([$PHP_FULL_VERSION], [ge], [5.3],
>+-            [php_cv_version_5="yes"],
>+-            [php_cv_version_5="no"])])
>++    php_cv_version_5="yes"
>+     if test "$php_cv_version_5" = "yes"; then
>+         PHP_VERSION=5
>+     else
>diff --git a/debian/patches/series b/debian/patches/series
>index bdb242d..1f41692 100644
>--- a/debian/patches/series
>+++ b/debian/patches/series
>@@ -1 +1 @@
>-large_block_count.patch
>+php-version-hack
>diff --git a/debian/rules b/debian/rules
>index a8ee5b5..3b3a9b6 100755
>--- a/debian/rules
>+++ b/debian/rules
>@@ -36,11 +36,9 @@ config.status: configure
>                --libdir=\$${prefix}/lib \
>                --sysconfdir=/etc/ganglia \
>                --infodir=\$${prefix}/share/info --enable-shared \
>-               --with-gmetad
>-build: build-stamp
>-       make -C web
>+               --with-gmetad --enable-status
>
>-build-stamp:  config.status
>+build:  config.status
>        dh_testdir
>
>        # Add here commands to compile the package.
>@@ -60,8 +58,7 @@ clean:
> #      -rm -f dotconf-1.0.9/conftest
>        -rm -f libtool.old \
>          ganglia-config contrib/ganglia_gmond.xml gmetad/gmetad.conf \
>-               gmond/gmond.solaris.init
>gmond/modules/conf.d/modpython.conf solaris/pkginfo \
>-               web/conf.php
>+               gmond/gmond.solaris.init
>gmond/modules/conf.d/modpython.conf solaris/pkginfo
>        debconf-updatepo
>        dh_autotools-dev_restoreconfig
>        dh_clean
>@@ -92,14 +89,6 @@ install: build
>        cp gmond/python_modules/*/*.py \
>          debian/ganglia-monitor-python/usr/lib/ganglia/python_modules/
>
>-#Install webfrontend
>-       $(MAKE) -C web install APACHE_USER=www-data
>DESTDIR=$(CURDIR)/debian/ganglia-webfrontend/usr/share/ganglia-webfrontend
> GWEB_STATEDIR=$(CURDIR)/debian/ganglia-webfrontend/v
>-       mkdir -p debian/ganglia-webfrontend/etc/apache2/conf.d/
>-       cp -f web/debian/apache.conf \
>-                debian/ganglia-webfrontend/etc/ganglia-webfrontend
>-       cp -f web/debian/conf_debian.php \
>-
>debian/ganglia-webfrontend/usr/share/ganglia-webfrontend/conf.php
>-
> # Build architecture-independent files here.
> binary-indep: build install
> # We have nothing to do by default.
>
>_______________________________________________
>Pkg-monitoring-maintainers mailing list
>Pkg-monitoring-maintainers at lists.alioth.debian.org
>https://lists.alioth.debian.org/mailman/listinfo/pkg-monitoring-maintainers




More information about the Pkg-monitoring-maintainers mailing list