aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog17
-rw-r--r--Documentation/pbuilder-doc.xml11
-rw-r--r--Makefile1
-rw-r--r--debian/changelog4
-rwxr-xr-xexamples/pbuilder-distribution.sh30
-rw-r--r--pdebuild5
-rw-r--r--pdebuild-user-mode-linux4
7 files changed, 70 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index eee39d2..fe6b0be 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2004-11-17 Junichi Uekawa <dancer@debian.org>
+
+ * Makefile: add pbuilder-distribution.sh
+
+ * Documentation/pbuilder-doc.xml: document the example.
+
+ * examples/pbuilder-distribution.sh: add example from Jamin.
+
+2004-11-16 Junichi Uekawa <dancer@debian.org>
+
+ * pdebuild-user-mode-linux:
+ * pdebuild: Check for build-deps before dpkg-buildpackage -S
+
+2004-11-14 Junichi Uekawa <dancer@debian.org>
+
+ * pdebuild: add quoting for debbuildopts.
+
2004-11-05 Junichi Uekawa <dancer@debian.org>
* pbuilderrc.5: Fix formatting errors
diff --git a/Documentation/pbuilder-doc.xml b/Documentation/pbuilder-doc.xml
index 451ffac..ed99d83 100644
--- a/Documentation/pbuilder-doc.xml
+++ b/Documentation/pbuilder-doc.xml
@@ -723,6 +723,17 @@ $ sudo pbuilder update --hookdir ~/loginhooks/E10shell
<filename>examples/D10tmp</filename> with pbuilder.
</para>
</sect1>
+ <sect1 id="DISTRIBUTIONSWITCH">
+ <title>Creating shortcut for running pbuilder with specific distribution</title>
+ <para>
+ When working with multiple chroots, it would be nice to work with
+ scripts that facilitate the amount of typing.
+ An example script
+ <filename>pbuilder-distribution.sh</filename> is provided as an example.
+ Invoking the script as <filename>pbuilder-woody</filename> will invoke
+ pbuilder for woody chroot.
+ </para>
+ </sect1>
<sect1>
<title>Using special apt sources list other than the default</title>
<para>
diff --git a/Makefile b/Makefile
index a5dc564..8e8215d 100644
--- a/Makefile
+++ b/Makefile
@@ -80,6 +80,7 @@ install:
$(INSTALL_EXECUTABLE) examples/F90chrootmemo $(DESTDIR)/usr/share/doc/pbuilder/examples
$(INSTALL_EXECUTABLE) examples/execute_installtest.sh $(DESTDIR)/usr/share/doc/pbuilder/examples
$(INSTALL_EXECUTABLE) examples/execute_paramtest.sh $(DESTDIR)/usr/share/doc/pbuilder/examples
+ $(INSTALL_EXECUTABLE) examples/pbuilder-distribution.sh $(DESTDIR)/usr/share/doc/pbuilder/examples
# install workaround for libc6 -- 2004-03-13
$(INSTALL_DIRECTORY) $(DESTDIR)/usr/share/doc/pbuilder/examples/libc6workaround
diff --git a/debian/changelog b/debian/changelog
index d581775..e4d3d69 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,10 @@
pbuilder (0.119) UNRELEASED; urgency=low
* pbuilderrc.5:Fix manual page formatting (closes: #279700)
+ * Add example script from Jamin W Collins for short-cut way of specifying distribution. (closes: #255165)
+ * Warn if build-depends is not satisfied when invoking dpkg-buildpackage -S (closes: #266349)
- -- Junichi Uekawa <dancer@debian.org> Fri, 5 Nov 2004 07:54:04 +0900
+ -- Junichi Uekawa <dancer@debian.org> Wed, 17 Nov 2004 08:54:02 +0900
pbuilder (0.118) unstable; urgency=low
diff --git a/examples/pbuilder-distribution.sh b/examples/pbuilder-distribution.sh
new file mode 100755
index 0000000..9845d6a
--- /dev/null
+++ b/examples/pbuilder-distribution.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+# script from Jamin W. Collins BTS: #255165
+# name this script 'pbuilder-woody', 'pbuilder-sid', 'pbuilder-sarge' etc.
+
+OPERATION=$1
+DISTRIBUTION=`basename $0 | cut -f2 -d '-'`
+PROCEED=false
+BASE_DIR="$HOME/pbuilder"
+case $OPERATION in
+ create|update|build|clean|login|execute )
+ PROCEED=true
+ ;;
+esac
+if ( $PROCEED == true ) then
+ shift
+ sudo pbuilder $OPERATION \
+ --basetgz $BASE_DIR/$DISTRIBUTION-base.tgz \
+ --distribution $DISTRIBUTION \
+ --buildresult $BASE_DIR/result $@
+else
+ echo "Invalid command..."
+ echo "Valid commands are:"
+ echo " create"
+ echo " update"
+ echo " build"
+ echo " clean"
+ echo " login"
+ echo " execute"
+ exit 1
+fi
diff --git a/pdebuild b/pdebuild
index 2256033..191e6c1 100644
--- a/pdebuild
+++ b/pdebuild
@@ -1,6 +1,6 @@
#! /bin/bash
# pbuilder -- personal Debian package builder
-# Copyright (C) 2001-2003 Junichi Uekawa
+# Copyright (C) 2001-2004 Junichi Uekawa
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -36,6 +36,9 @@ ARCHITECTURE=$(dpkg-architecture -qDEB_HOST_ARCH)
if [ "${USE_PDEBUILD_INTERNAL}" = 'yes' ]; then
${PBUILDERROOTCMD} pbuilder execute "$@" ${EXTRA_CONFIGFILE[@]/#/--configfile } --bindmounts $(readlink -f ..) /usr/lib/pbuilder/pdebuild-internal ${PWD} --debbuildopts "${DEBBUILDOPTS}"
else
+ if [ ! dpkg-checkbuilddeps -B ]; then
+ echo "W: Unmet build-dependency in source"
+ fi
dpkg-buildpackage -S -us -uc -r${BUILDSOURCEROOTCMD} $DEBBUILDOPTS
${PBUILDERROOTCMD} pbuilder build "$@" ${EXTRA_CONFIGFILE[@]/#/--configfile } --buildresult "${BUILDRESULT}" --debbuildopts "${DEBBUILDOPTS}" ../"${PKG_SOURCENAME}_${PKG_VERSION}".dsc
fi
diff --git a/pdebuild-user-mode-linux b/pdebuild-user-mode-linux
index e26b0bd..c3fd815 100644
--- a/pdebuild-user-mode-linux
+++ b/pdebuild-user-mode-linux
@@ -34,6 +34,7 @@ PKG_SOURCENAME=$(dpkg-parsechangelog|sed -n 's/^Source: //p')
PKG_VERSION=$(dpkg-parsechangelog|sed -n 's/^Version: \(.*:\|\)//p')
ARCHITECTURE=$(dpkg-architecture -qDEB_HOST_ARCH)
+
if [ "${USE_PDEBUILD_INTERNAL}" = 'yes' ]; then
if [ ! readlink -f .. ]; then
echo "E: Cannot find .. dir from PWD=$(pwd)"
@@ -41,6 +42,9 @@ if [ "${USE_PDEBUILD_INTERNAL}" = 'yes' ]; then
fi
pbuilder-user-mode-linux execute "$@" --bindmounts $(readlink -f ..) /usr/lib/pbuilder/pdebuild-internal ${PWD} --debbuildopts "${DEBBUILDOPTS}"
else
+ if [ ! dpkg-checkbuilddeps -B ]; then
+ echo "W: Unmet build-dependency in source"
+ fi
dpkg-buildpackage -S -us -uc -r${BUILDSOURCEROOTCMD} $DEBBUILDOPTS
pbuilder-user-mode-linux build "$@" --buildresult "${UML_BUILDRESULT}" --debbuildopts "${DEBBUILDOPTS}" ../"${PKG_SOURCENAME}_${PKG_VERSION}".dsc
fi