[Debian-ha-maintainers] Bug#573514: Does not build under m-a as non-root

Ben Hutchings ben at decadent.org.uk
Fri Mar 12 01:20:58 UTC 2010


Package: drbd8-source
Version: 2:8.3.7-1
Severity: important
Tags: patch

This does not work if the source unpack/build directory is changed,
for example if m-a is not run as root:

  cd /usr/src/modules/drbd8/drbd/
  ../scripts/adjust_drbd_config_h.sh

Since those commands run with the working directory set to the
directory where the source tarball is unpacked, a relative directory
will work:

  cd modules/drbd8/drbd/

Also, I don't understand why modass.drbd8-source includes a copy of
/usr/share/modass/packages/generic.sh.  You should instead do
something like:

. $MA_DIR/packages/generic.sh

$1 "$@"
if [ "$1" = "unpack" ]; then
  cd "$BUILDDIR/drbd"
  ../scripts/adjust_drbd_config_h.sh
fi

Ben.

-- System Information:
Debian Release: squeeze/sid
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.32-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages drbd8-source depends on:
ii  bzip2                         1.0.5-4    high-quality block-sorting file co
ii  debhelper                     7.4.15     helper programs for debian/rules
ii  dpatch                        2.0.31     patch maintenance system for Debia
ii  module-assistant              0.11.3     tool to make module package creati

Versions of packages drbd8-source recommends:
ii  debconf-utils                 1.5.28     debconf utilities
ii  dpkg-dev                      1.15.5.6   Debian package development tools
ii  kernel-package                12.033     A utility for building Linux kerne

drbd8-source suggests no packages.

-- no debconf information





More information about the Debian-ha-maintainers mailing list