1 From bounce-debian-mentors=bremner=unb.ca@lists.debian.org Wed Jul 30 06:23:25 2008
2 Return-path: <bounce-debian-mentors=bremner=unb.ca@lists.debian.org>
3 Envelope-to: bremner@pivot.cs.unb.ca
4 Delivery-date: Wed, 30 Jul 2008 06:23:25 -0300
5 Received: from mailserv2.unb.ca ([131.202.1.10])
6 by pivot.cs.unb.ca with esmtp (Exim 4.69)
7 (envelope-from <bounce-debian-mentors=bremner=unb.ca@lists.debian.org>)
9 for bremner@pivot.cs.unb.ca; Wed, 30 Jul 2008 06:23:25 -0300
10 Received: from mx4.nbpei-ecn.ca (mx4.nbpei-ecn.ca [198.164.163.197])
11 by mailserv2.unb.ca (8.13.6.20060614/8.13.6) with ESMTP id m6U9NDWf015654
12 for <bremner@unb.ca>; Wed, 30 Jul 2008 06:23:20 -0300
13 Received: from mx4.nbpei-ecn.ca (localhost.localdomain [127.0.0.1])
14 by localhost (Postfix) with SMTP id ABA2B7C411B
15 for <bremner@unb.ca>; Wed, 30 Jul 2008 06:23:12 -0300 (ADT)
16 Received: from liszt.debian.org (liszt.debian.org [82.195.75.100])
17 by mx4.nbpei-ecn.ca (Postfix) with ESMTP id B07477C40D8
18 for <bremner@unb.ca>; Wed, 30 Jul 2008 05:52:07 -0300 (ADT)
19 Received: from localhost (localhost [127.0.0.1])
20 by liszt.debian.org (Postfix) with QMQP
21 id 5386513A5FD8; Wed, 30 Jul 2008 08:52:06 +0000 (UTC)
22 Old-Return-Path: <jpsecher@gmail.com>
23 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on liszt.debian.org
25 X-Spam-Status: No, score=-4.3 required=4.0 tests=FOURLA,LDO_WHITELIST,
26 SARE_MSGID_LONG40 autolearn=failed version=3.2.3
27 X-Original-To: lists-debian-mentors@liszt.debian.org
28 Delivered-To: lists-debian-mentors@liszt.debian.org
29 Received: from localhost (localhost [127.0.0.1])
30 by liszt.debian.org (Postfix) with ESMTP id E2A3713A5F78
31 for <lists-debian-mentors@liszt.debian.org>; Wed, 30 Jul 2008 08:51:56 +0000 (UTC)
32 Received: from liszt.debian.org ([127.0.0.1])
33 by localhost (lists.debian.org [127.0.0.1]) (amavisd-new, port 2525)
34 with ESMTP id 31837-36 for <lists-debian-mentors@liszt.debian.org>;
35 Wed, 30 Jul 2008 08:51:53 +0000 (UTC)
36 X-policyd-weight: DYN_NJABL=ERR NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mu-out-0910.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2 IN_PM_RFCI=0.1 <client=209.85.134.185> <helo=mu-out-0910.google.com> <from=jpsecher@gmail.com> <to=debian-mentors@lists.debian.org>, rate: -6.9
37 Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.185])
38 by liszt.debian.org (Postfix) with ESMTP id BA66D13A5FC0
39 for <debian-mentors@lists.debian.org>; Wed, 30 Jul 2008 08:51:47 +0000 (UTC)
40 Received: by mu-out-0910.google.com with SMTP id w9so246610mue.0
41 for <debian-mentors@lists.debian.org>; Wed, 30 Jul 2008 01:51:44 -0700 (PDT)
42 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
44 h=domainkey-signature:received:received:message-id:date:from:sender
45 :to:subject:mime-version:content-type:content-transfer-encoding
46 :content-disposition:x-google-sender-auth;
47 bh=B46qi++Qc+o45M0qCK+l/5iH6YDeThy9NnU1JgvVuzc=;
48 b=fM1zWnFLJcb5DDnMCMCkZdpxNKHL8IiAbaE9MWhtf3yoSJ1q7LBVlbygcT9xOMON0h
49 AMa17055JwBj52s6Ow1XhVdHFjp818utPP7PBU7XaNJo53h4/qmmMiKfS8CctmCJXPjY
50 +qBeA6WDFQoKqm7gHr25uMzD5li45MRNae7Rw=
51 DomainKey-Signature: a=rsa-sha1; c=nofws;
53 h=message-id:date:from:sender:to:subject:mime-version:content-type
54 :content-transfer-encoding:content-disposition:x-google-sender-auth;
55 b=hIN+6D7rniUdoS9OPBLCFiikG8ykIOb7vvgEyEKS7ZuNeOXXXynsKiWz04KN1+saX7
56 8byrqViqSmwTkXY0yIem2Xx5eGIaRAMwHKc7MLvvGJsL/E5kqvMx5PupLoKVeDuxRY2N
57 bbLcjorpwtRrlbigwtdcDuK3ILzygiD8pRqcg=
58 Received: by 10.103.243.7 with SMTP id v7mr2718341mur.118.1217407904516;
59 Wed, 30 Jul 2008 01:51:44 -0700 (PDT)
60 Received: by 10.103.175.12 with HTTP; Wed, 30 Jul 2008 01:51:44 -0700 (PDT)
61 Message-ID: <c4f47b5b0807300151u4565bb6fi3dcb68fa9bd02d1a@mail.gmail.com>
62 Date: Wed, 30 Jul 2008 10:51:44 +0200
63 From: "Jens Peter Secher" <jps@debian.org>
64 Sender: jpsecher@gmail.com
65 To: debian-mentors@lists.debian.org
66 Subject: pbuilder/pdebuild mini-howto (Was: Building a build environment)
68 Content-Type: text/plain; charset=ISO-8859-1
69 Content-Transfer-Encoding: 7bit
70 Content-Disposition: inline
71 X-Google-Sender-Auth: 3697963bb83213d5
72 X-Virus-Scanned: ClamAV version 0.93.3, clamav-milter version 0.93.3 on mailserv2.unb.ca
73 X-Virus-Scanned: at lists.debian.org with policy bank en-lt
74 X-Amavis-Spam-Status: No, score=-4.263 tagged_above=3.6 required=5.3
75 tests=[FOURLA=0.1, LDO_WHITELIST=-5, SARE_MSGID_LONG40=0.637]
76 X-Rc-Virus: 2007-09-13_01
77 X-Rc-Spam: 2007-10-04_01
78 Resent-Message-ID: <z-mBL7GyZYE.A.zKB.2uCkIB@liszt>
79 Resent-From: debian-mentors@lists.debian.org
80 X-Mailing-List: <debian-mentors@lists.debian.org> archive/latest/42381
81 X-Loop: debian-mentors@lists.debian.org
82 List-Id: <debian-mentors.lists.debian.org>
83 List-Post: <mailto:debian-mentors@lists.debian.org>
84 List-Help: <mailto:debian-mentors-request@lists.debian.org?subject=help>
85 List-Subscribe: <mailto:debian-mentors-request@lists.debian.org?subject=subscribe>
86 List-Unsubscribe: <mailto:debian-mentors-request@lists.debian.org?subject=unsubscribe>
88 Resent-Sender: debian-mentors-request@lists.debian.org
89 Resent-Date: Wed, 30 Jul 2008 08:52:06 +0000 (UTC)
90 X-PMX-Version: 5.4.2.338381, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.7.30.90610
91 X-PerlMx-Spam: Gauge=IIIIIIIII, Probability=9%, Report='WEBMAIL_REPLYTO_NOT_FROM 0.5, BODY_SIZE_4000_4999 0, BODY_SIZE_5000_LESS 0, WEBMAIL_SOURCE 0, __CD 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __FRAUD_419_WEBMAIL 0, __FRAUD_419_WEBMAIL_SENDER 0, __HAS_LIST_HEADER 0, __HAS_LIST_HELP 0, __HAS_LIST_SUBSCRIBE 0, __HAS_LIST_UNSUBSCRIBE 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __PHISH_SPEAR_HTTP_RECEIVED 0, __PHISH_SPEAR_STRUCTURE_1 0, __PHISH_SPEAR_STRUCTURE_2 0, __SANE_MSGID 0'
93 X-Sender-Verified: bounce-debian-mentors=bremner=unb.ca@lists.debian.org
95 2008/7/29 Richard Hurt <rnhurt@kangaroobox.com>:
96 > I am just getting started in Debian package building and I need to know if
97 > this idea is valid or if there is a better way.
101 I find pbuilder easiest to work with. Since I am mostly running
102 Testing, I have two setups, one for Sid and one for Backports. Here is
103 a mini-howto for what to do.
105 Create a ~/deb/unstable-pbuilderrc:
108 BASETGZ="$HOME/var/pbuilder/$DISTRIBUTION-base.tgz"
109 BUILDPLACE="$HOME/var/pbuilder/$DISTRIBUTION"
110 MIRRORSITE="http://ftp.se.debian.org/debian"
114 BUILDRESULT="$HOME/var/presult"
115 APTCACHE="/var/cache/apt/archives"
116 APTCACHEHARDLINK="no"
117 REMOVEPACKAGES="lilo grub"
119 export DEBIAN_FRONTEND="noninteractive"
120 DEBEMAIL="Jens Peter Secher <jps@debian.org>"
121 BUILDSOURCEROOTCMD="fakeroot"
122 PBUILDERROOTCMD="sudo"
124 APTCONFDIR="$HOME/deb/apt.config"
127 DEBOOTSTRAPOPTS[0]='--variant=buildd'
129 And create a ~/deb/backports-pbuilderrc:
132 BASETGZ="$HOME/var/pbuilder/backports-base.tgz"
133 BUILDPLACE="$HOME/var/pbuilder/backports"
134 MIRRORSITE="http://ftp.se.debian.org/debian"
135 OTHERMIRROR="deb http://www.backports.org/debian/
136 $DISTRIBUTION-backports main"
140 BUILDRESULT="$HOME/var/presult"
141 APTCACHE="/var/cache/apt/archives"
142 APTCACHEHARDLINK="no"
143 REMOVEPACKAGES="lilo grub"
145 export DEBIAN_FRONTEND="noninteractive"
146 DEBEMAIL="Jens Peter Secher <jps@debian.org>"
147 BUILDSOURCEROOTCMD="fakeroot"
148 PBUILDERROOTCMD="sudo"
150 APTCONFDIR="$HOME/deb/apt.config"
153 DEBOOTSTRAPOPTS[0]='--variant=buildd'
155 To stop apt complaining, create an
156 ~/deb/apt.config/apt.conf.d/allow-unauthenticated:
158 APT::Get::AllowUnauthenticated 1;
160 To give pbuilder a place to store its stuff, do
162 mkdir -p ~/var/presults ~/var/pbuilder
164 To create the environments, do
166 sudo pbuilder create --configfile ~/deb/unstable-pbuilderrc
167 sudo pbuilder create --configfile ~/deb/backports-pbuilderrc
169 To build a new package, in your package directory
170 (eg. ~/deb/libfoo/libfoo-2.13/) you then just do
172 pdebuild --configfile ~/deb/unstable-pbuilderrc
174 or to build a backport, use the -sa -v options:
176 pdebuild --configfile ~/deb/backports-pbuilderrc --debbuildopts '-sa -v2.12-1'
178 To manually install dependencies in the environment, you can do
180 sudo pbuilder login --configfile ~/deb/backports-pbuilderrc
182 and then manually copy (source) packages into the chroot. To tweak
183 things in the environment in general, you can do
185 sudo pbuilder login --save-after-exec --configfile ~/deb/unstable-pbuilderrc
187 To sponsor a package, use the -k option:
189 pdebuild --configfile ~/deb/unstable-pbuilderrc --debbuildopts '-kFE63E8A1'
191 Remember to update the environments before building:
193 sudo /usr/sbin/pbuilder update --configfile ~/deb/unstable-pbuilderrc
195 The resulting packages are placed in ~/var/presults, where you need to
196 sign them with debsign, which works best with GPG Agent running, so put
197 something like this in your .xsession file:
199 if test -f $HOME/.gpg-agent-info && \
200 kill -0 `cut -d: -f 2 $HOME/.gpg-agent-info` 2>/dev/null;
202 GPG_AGENT_INFO=`cat $HOME/.gpg-agent-info`
203 export GPG_AGENT_INFO
205 eval `gpg-agent --daemon`
206 echo $GPG_AGENT_INFO >$HOME/.gpg-agent-info
213 _DD6A 05B0 174E BFB2 D4D9 B52E 0EE5 978A FE63 E8A1 jpsecher gmail com_.
214 A. Because it breaks the logical sequence of discussion.
215 Q. Why is top posting bad?
219 To UNSUBSCRIBE, email to debian-mentors-REQUEST@lists.debian.org
220 with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org