[Pbuilder-maint] Bug#178350: marked as done (ccache support --
document how)
Debian Bug Tracking System
owner at bugs.debian.org
Sun Dec 4 06:48:05 UTC 2005
Your message dated Sat, 03 Dec 2005 22:32:07 -0800
with message-id <E1EinPr-0001qS-61 at spohr.debian.org>
and subject line Bug#178350: fixed in pbuilder 0.140
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 25 Jan 2003 13:43:53 +0000
>From yenar at host.sk Sat Jan 25 07:43:47 2003
Return-path: <yenar at host.sk>
Received: from ns.slovanet.net [195.80.171.4]
by master.debian.org with smtp (Exim 3.12 1 (Debian))
id 18cQb1-0002TC-00; Sat, 25 Jan 2003 07:43:43 -0600
Received: (qmail 97819 invoked from network); 25 Jan 2003 11:56:40 -0000
Received: from unknown (HELO mailhub1.slovanet.net) (195.28.64.118)
by mail-relay1.slovanet.net with SMTP; 25 Jan 2003 11:56:40 -0000
Received: (qmail 89187 invoked from network); 25 Jan 2003 11:56:30 -0000
Received: from unknown (HELO host.sk) (195.80.174.220)
by mailhub1.slovanet.net with SMTP; 25 Jan 2003 11:56:30 -0000
Message-ID: <3E327B8F.4060009 at host.sk>
Date: Sat, 25 Jan 2003 12:57:03 +0100
From: Yenar Calentaure <yenar at host.sk>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a) Gecko/20021212
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: submit at bugs.debian.org
Subject: ccache support
Content-Type: multipart/mixed;
boundary="------------020501070205060202060008"
Delivered-To: submit at bugs.debian.org
X-Spam-Status: No, hits=-0.3 required=5.0
tests=PATCH_UNIFIED_DIFF,SPAM_PHRASE_00_01,USER_AGENT,
USER_AGENT_MOZILLA_UA,X_ACCEPT_LANG
version=2.41
X-Spam-Level:
This is a multi-part message in MIME format.
--------------020501070205060202060008
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Package: pbuilder
Version: 0.61
Severity: wishlist
Tags: patch
Hi!
I compile kde from source quite often... I used custom script-set to get
it built, but pbuilder seemed more adequate for the job. The 2 big
problems were: compile time and compile breakages. To solve the first, i
used to use ccache, so i decided to hack ccache support into pbuilder. I
tried to do it as unobtrusively as possible - using hookdir. The only
problem was hardlinking cache into chroot - so i added [A-E]X hooks:
they are called from normal root, with chroot path as first argument.
The ones used for ccache handling and for Packages.gz building are
attached. I use these symlinks:
EX00-apt-cache (EX is called after moving result into target dir)
BX00-recover-ccache
CX00-recover-ccache
DX00-get-ccache
If it's worth it, i'd be glad if the pbuilder.diff made it into official
pbuilder releases. Beware, i added hook calling only into
pbuilder-buildpackage!
best regards and thanks for your time,
yenar
PS: i'll try to hack error recovery into pbuilder (of course, it would
be advisable to start build again after fixing all errors :).
--
-----------------------------------------------------------------------
inetname: Yenar Calentaure
realname: Peter Rockai
mail: yenar(at)host.sk
homepage: http://yenar.host.sk
-----------------------------------------------------------------------
"He says gods like to see an atheist around. Gives them something
to aim at."
-- (Terry Pratchett, Small Gods)
-----------------------------------------------------------------------
--------------020501070205060202060008
Content-Type: text/plain;
name="pbuilder.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="pbuilder.diff"
diff -uNr pbuilder.orig/pbuilder-buildpackage pbuilder/pbuilder-buildpackage
--- pbuilder.orig/pbuilder-buildpackage Thu Dec 12 10:30:48 2002
+++ pbuilder/pbuilder-buildpackage Sat Jan 18 14:31:48 2003
@@ -66,6 +66,7 @@
echo "Copying source file"
copydsc "$PACKAGENAME" "$BUILDPLACE/tmp/buildd"
executehooks "D"
+executehooks-extern "DX"
echo "Extracting source"
if ! $CHROOTEXEC /bin/bash -c "( cd tmp/buildd; chown $BUILDUSERNAME:$BUILDUSERNAME ../buildd *; $SUTOUSER /usr/bin/dpkg-source -x $(basename $PACKAGENAME) )"; then
@@ -84,6 +85,7 @@
export PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin"
executehooks "A"
+executehooks-extern "AX"
if [ -z "$DEBEMAIL" ]; then
DPKG_COMMANDLINE="cd tmp/buildd/*/; $SUTOUSER dpkg-buildpackage -us -uc $DEBBUILDOPTS"
@@ -113,6 +115,7 @@
eval "${KILL_WAIT_PID}"
echo "pbuilder: Failed autobuilding of package" >&2
executehooks "C"
+ executehooks-extern "CX"
exit 1;
else
eval ${KILL_WAIT_PID}
@@ -121,6 +124,7 @@
trap umountproc_cleanbuildplace exit
executehooks "B"
+executehooks-extern "BX"
trap cleanbuildplace exit
umountproc
@@ -138,6 +142,8 @@
echo "E: BUILDRESULT=[$BUILDRESULT] is not a directory." >&2
fi
fi
+
+executehooks-extern "EX"
echobacktime
diff -uNr pbuilder.orig/pbuilder-runhooks pbuilder/pbuilder-runhooks
--- pbuilder.orig/pbuilder-runhooks Wed Sep 25 10:55:44 2002
+++ pbuilder/pbuilder-runhooks Thu Jan 16 15:33:44 2003
@@ -144,4 +144,32 @@
done
}
+function executehooks-extern {
+ local prefix=$1
+ if [ -z "$HOOKDIR" ]; then
+ return ;
+ fi
+ export BUILDPLACE
+ for fn in "$HOOKDIR/$prefix"[0-9][0-9]* ; do
+ case "$fn" in
+ *~)
+ echo "W: skipping an editor backup file $fn"
+ ;;
+ *.bak)
+ echo "W: skipping a backup file $fn"
+ ;;
+ *)
+ if [ -x "$fn" ]; then
+ $fn $BUILDPLACE
+ echo " -> user script $fn finished"
+ else
+ filetype=$(readlink -f $(basename "$fn" ) )
+ echo "W: execute priv not set on file $filetype, not executing."
+ fi
+ ;;
+ esac
+ export -n BUILDPLACE
+ done
+}
+
#--------------------------------------------------------------------------
--------------020501070205060202060008
Content-Type: text/plain;
name="get-ccache"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="get-ccache"
#!/bin/sh
echo "CCACHE: getting from $CCACHE_DIR"
mkdir -p "$1/$CCACHE_DIR"
cp -Rl "$CCACHE_DIR/"* "$1/$CCACHE_DIR"
--------------020501070205060202060008
Content-Type: text/plain;
name="recover-ccache"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="recover-ccache"
#!/bin/sh
echo "CCACHE: recovering"
cp -Rl "$1/$CCACHE_DIR/"* "$CCACHE_DIR"
--------------020501070205060202060008
Content-Type: text/plain;
name="apt-archive"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="apt-archive"
#!/bin/sh
bd=/home/debian_local/i386
dd=.
pkgs=$MYBUILDROOT/_debian
echo "APT-ARCHIVE: building packages file..."
(cd ${bd}/ && apt-ftparchive packages $dd/ > $dd/Packages)
echo "APT-ARCHIVE: compressing packages file..."
gzip -f $bd/$dd/Packages
--------------020501070205060202060008--
---------------------------------------
Received: (at 178350-close) by bugs.debian.org; 4 Dec 2005 06:41:21 +0000
>From katie at ftp-master.debian.org Sat Dec 03 22:41:21 2005
Return-path: <katie at ftp-master.debian.org>
Received: from katie by spohr.debian.org with local (Exim 4.50)
id 1EinPr-0001qS-61; Sat, 03 Dec 2005 22:32:07 -0800
From: Junichi Uekawa <dancer at debian.org>
To: 178350-close at bugs.debian.org
X-Katie: $Revision: 1.60 $
Subject: Bug#178350: fixed in pbuilder 0.140
Message-Id: <E1EinPr-0001qS-61 at spohr.debian.org>
Sender: Archive Administrator <katie at ftp-master.debian.org>
Date: Sat, 03 Dec 2005 22:32:07 -0800
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-CrossAssassin-Score: 3
Source: pbuilder
Source-Version: 0.140
We believe that the bug you reported is fixed in the latest version of
pbuilder, which is due to be installed in the Debian FTP archive:
pbuilder_0.140.dsc
to pool/main/p/pbuilder/pbuilder_0.140.dsc
pbuilder_0.140.tar.gz
to pool/main/p/pbuilder/pbuilder_0.140.tar.gz
pbuilder_0.140_all.deb
to pool/main/p/pbuilder/pbuilder_0.140_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 178350 at bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Junichi Uekawa <dancer at debian.org> (supplier of updated pbuilder package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster at debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Sun, 4 Dec 2005 15:21:06 +0900
Source: pbuilder
Binary: pbuilder
Architecture: source all
Version: 0.140
Distribution: unstable
Urgency: low
Maintainer: Debian pbuilder maintenance team <pbuilder-maint at lists.alioth.debian.org>
Changed-By: Junichi Uekawa <dancer at debian.org>
Description:
pbuilder - personal package builder for Debian packages
Closes: 178350 338976 340715 341453 341916
Changes:
pbuilder (0.140) unstable; urgency=low
.
[Junichi Uekawa]
* Bug fix: "pbuilder: PATH not preserved when either BUILDUSERID or
BUILDUSERNAME isn't set", thanks to Mike Hommey (Closes: #341453).
* pbuilder-doc.xml: Document ccache support in FAQ (Closes: #178350).
* Bug fix: "/usr/share/doc/pbuilder/examples/B90linda missing
--force-yes option", thanks to qfunk (Closes: #340715).
Note: --allow-unauthenticated is probably a better option here, but
apt-get in sarge does not support it, we will revisit it after etch.
* debconf compatibility level 4
* Bug fix: "pbuilder-buildpackage-funcs check for createbuilduser for
SUTOUSER is bogus", thanks to Brian Nelson (Closes: #338976).
* Bug fix: "--no-targz option creates tarball in pbuilder create",
thanks to Junichi Uekawa (Closes: #341916).
Files:
8439bf8407108faef5d2d1fd610db9e9 673 devel extra pbuilder_0.140.dsc
a4ec99695567b073ba2d7e2a363bb37c 278500 devel extra pbuilder_0.140.tar.gz
d29f2fe5e2573e0ce533bc5c5ceb36e0 73476 devel extra pbuilder_0.140_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDkosF2Dd9TugeVcERAlWhAJ4lu0CmuUHHLkzc/lwJNvVcsxlKPQCeKsIb
EuxMGPjpgjsxH3OhlK3A1kE=
=C3Ng
-----END PGP SIGNATURE-----
More information about the Pbuilder-maint
mailing list