diff options
author | Junichi Uekawa <dancer@dancer64.netfort.gr.jp> | 2007-03-27 22:54:38 +0900 |
---|---|---|
committer | Junichi Uekawa <dancer@dancer64.netfort.gr.jp> | 2007-03-27 22:54:38 +0900 |
commit | 96dbec0b076f3716fbf40d6b05d45e69e8b290b8 (patch) | |
tree | ab8e09d926ab21c8a622138feefaee1f4dc28915 | |
parent | bd60a2733ae0f1f61b41baf322134b4548e324fb (diff) | |
download | pbuilder-96dbec0b076f3716fbf40d6b05d45e69e8b290b8.tar pbuilder-96dbec0b076f3716fbf40d6b05d45e69e8b290b8.tar.gz |
399484: use buildresult in pdebuild-internal
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | debian/changelog | 4 | ||||
-rw-r--r-- | pdebuild | 11 |
3 files changed, 18 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2007-03-27 Junichi Uekawa <dancer@debian.org> + + * pdebuild: 399484: Use $BUILDRESULT with pdebuild-internal + "Anderson Lizardo" <anderson.lizardo@gmail.com> + 2007-03-21 Junichi Uekawa <dancer@debian.org> * debian/rules (binary-arch): create similar for amd64. diff --git a/debian/changelog b/debian/changelog index c9fa731..7ca839d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,8 +5,10 @@ pbuilder (0.165) UNRELEASED; urgency=low built on when building under fakeroot (closes: #415546) thanks to Paul TBBle Hampson for the patch. * pbuilder-uml: enable for amd64 + * Use $BUILDRESULT with pdebuild-internal thanks to Anderson Lizardo + (closes: #399484) - -- Junichi Uekawa <dancer@debian.org> Wed, 21 Mar 2007 22:10:32 +0900 + -- Junichi Uekawa <dancer@debian.org> Tue, 27 Mar 2007 22:54:22 +0900 pbuilder (0.164) unstable; urgency=low @@ -32,12 +32,21 @@ fi; PKG_SOURCENAME=$(dpkg-parsechangelog|sed -n 's/^Source: //p') PKG_VERSION=$(dpkg-parsechangelog|sed -n 's/^Version: \(.*:\|\)//p') ARCHITECTURE=$(dpkg-architecture -qDEB_HOST_ARCH) +CHANGES="${PKG_SOURCENAME}_${PKG_VERSION}_${ARCHITECTURE}.changes" export BUILDRESULTUID=$(id -u) export BUILDRESULTGID=$(id -g) if [ "${USE_PDEBUILD_INTERNAL}" = 'yes' ]; then ${PBUILDERROOTCMD} ${PDEBUILD_PBUILDER} --execute "$@" ${EXTRA_CONFIGFILE[@]/#/--configfile } --bindmounts $(readlink -f ..) -- /usr/lib/pbuilder/pdebuild-internal ${PWD} --debbuildopts "${DEBBUILDOPTS}" --uid "${BUILDRESULTUID}" --gid "${BUILDRESULTGID}" --pbuildersatisfydepends "$PBUILDERSATISFYDEPENDSCMD" + if [ -d "${BUILDRESULT}" ]; then + for f in $(sed -rn '/^Files:/,${s/.* ([^ ]+)$/\1/p}' ../${CHANGES}); do + cp -p ../$f "${BUILDRESULT}" + done + cp -p ../${CHANGES} "${BUILDRESULT}" + else + echo "E: BUILDRESULT=[$BUILDRESULT] is not a directory." >&2 + fi else if ! dpkg-checkbuilddeps -B ; then echo "W: Unmet build-dependency in source" @@ -52,6 +61,6 @@ if [ "${AUTO_DEBSIGN}" = "yes" ]; then if [ -n "${DEBSIGN_KEYID}" ]; then DEBSIGN_PARAM[1]="-k${DEBSIGN_KEYID}" fi - DEBSIGN_PARAM[2]="${BUILDRESULT}/${PKG_SOURCENAME}_${PKG_VERSION}_${ARCHITECTURE}.changes" + DEBSIGN_PARAM[2]="${BUILDRESULT}/${CHANGES}" debsign "${DEBSIGN_PARAM[@]}" fi |