aboutsummaryrefslogtreecommitdiff
path: root/Documentation/debconf7/pbuilder-presentation.tex
blob: 279799b8cef32153685603d38eb142f150ca53e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
%; whizzy document
% latex beamer presentation.

%     Copyright (C) 2007 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
%     the Free Software Foundation; either version 2 of the License, or
%     (at your option) any later version.

%     This program is distributed in the hope that it will be useful,
%     but WITHOUT ANY WARRANTY; without even the implied warranty of
%     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
%     GNU General Public License for more details.

%     You should have received a copy of the GNU General Public License
%     along with this program; if not, write to the Free Software
%     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA

\documentclass[dvipdfm,12pt,times]{beamer}

%  preview (shell-command (concat "xpdf " (replace-regexp-in-string "tex$" "pdf"(buffer-file-name)) "&"))
%  presentation (shell-command (concat "xpdf -fullscreen " (replace-regexp-in-string "tex$" "pdf"(buffer-file-name)) "&"))
%  presentation-evince (shell-command (concat "evince " (replace-regexp-in-string "tex$" "pdf"(buffer-file-name)) "&"))

\newcommand{\emtext}[1]{
\begin{frame}{}
 
{\Huge #1
}
\end{frame}
}


\title{what's happening with pbuilder?}
\subtitle{Debian Conference 2007}
\author{dancer@debian.org}
\date{June 2007}
\logo{\includegraphics[width=8cm]{openlogo-light.eps}}

\begin{document}
\frame{\titlepage{}}


\begin{frame}{Who am I?}
\begin{itemize}
 \item Junichi Uekawa, dancer@debian.org
 \item Lives in Japan, Debian JP Project Leader for 2007
 \item Debian Developer since 2000
 \item Interests: Audio-processing related tools, and 
       Debian quality maintenance related tools,
       Japanese localization, shared library packaging, 
       and more recently, Debian/MacBook related.
\end{itemize}
\end{frame}

\emtext{pbuilder, what is the concept?}

\emtext{What is a chroot?}

\begin{frame}{concept of a chroot}
 \includegraphics[width=1\hsize]{chroot.eps}\\
\texttt{\# chroot /var/cache/pbuilder/build/XXX bin/bash}
\end{frame}

\begin{frame}{concept of pbuilder}
 \includegraphics[width=1\hsize]{chroot-pbuilder.eps}\\
\texttt{\# pbuilder --create, pbuilder --update, pbuilder --build}
\end{frame}

\emtext{How do I use pbuilder?}

\begin{frame}{pbuilder basics}
\includegraphics[height=0.7\vsize]{pbuildercycle.eps}
\end{frame}

\begin{frame}{pbuilder basics ...}
\begin{tabular}{|l|p{9em}|p{10em}|}
\hline
\hline
operation & frequence & meaning \\
\hline
\hline
create & once initially & create base filesystem \\
\hline
update & twice a day (according to unstable updates) & 
 revise base filesystem \\
\hline
build & for each package build & build Debian package inside chroot \\
\hline
\end{tabular}
\end{frame}

\begin{frame}[containsverbatim]{pbuilder --create}
\begin{verbatim}
# pbuilder --create
Distribution is sid.
Building the build environment
 -> running debootstrap
/usr/sbin/debootstrap
I: Retrieving Release
I: Retrieving Packages
I: Validating Packages
	.
	.
\end{verbatim}
\end{frame}

\begin{frame}[containsverbatim]{pbuilder --update}
\begin{verbatim}
# pbuilder --update
W: /home/dancer/.pbuilderrc does not exist
Building the build Environment
 -> extracting base tarball [/var/cache/pbuilder/base.tgz]
	.
	.
\end{verbatim}
\end{frame}

\begin{frame}[containsverbatim]{pbuilder --build}
\begin{verbatim}
# pbuilder --build dsh_*.dsc
I: using fakeroot in build.
Current time: Sat Jan 20 12:03:34 JST 2007
pbuilder-time-stamp: 1169262214
Building the build Environment
 -> extracting base tarball [/home/dancer/DEBIAN/pbuilder/pbuilder/testsuite/tmp.FeeAX18779/testimage]
 -> creating local configuration
	.
	.
\end{verbatim}
\end{frame}


\begin{frame}[containsverbatim]{pbuilder --login}
\begin{verbatim}
# pbuilder --login --bindmount ${HOME}
I: using fakeroot in build.
Current time: Sat Jan 20 12:03:34 JST 2007
pbuilder-time-stamp: 1169262214
Building the build Environment
 -> extracting base tarball [/home/dancer/DEBIAN/pbuilder/pbuilder/testsuite/tmp.FeeAX18779/testimage]
 -> creating local configuration
	.
	.
\end{verbatim}
\end{frame}

\emtext{pdebuild}

\begin{frame}[containsverbatim]{pdebuild}
\begin{verbatim}
$ ls debian/rules
debian/rules
$ pdebuild
W: /home/dancer/.pbuilderrc does not exist
dpkg-buildpackage: source package is cowdancer
dpkg-buildpackage: source version is 0.26
dpkg-buildpackage: source changed by Junichi Uekawa <dancer@debian.org>
dpkg-buildpackage: source version without epoch 0.26
 fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
/usr/bin/make clean
make[1]: Entering directory `/home/dancer/DEBIAN/cowdancer/cowdancer'
rm -f *~ *.o *.lo libcowdancer.so cow-shell cowbuilder
make[1]: Leaving directory `/home/dancer/DEBIAN/cowdancer/cowdancer'
dh_clean
 dpkg-source -b cowdancer
dpkg-source: warning: source directory `./cowdancer' is not <sourcepackage>-<upstreamversion> `cowdancer-0.26'
dpkg-source: building cowdancer in cowdancer_0.26.tar.gz
	.
	.
	.
\end{verbatim}
\end{frame}

\begin{frame}{}
  \begin{minipage}{0.4\hsize}
   How do you maintain your package today?
  \end{minipage}
 \begin{minipage}{0.5\hsize}
  \includegraphics[height=0.95\vsize]{develcycle.eps}
 \end{minipage}
\end{frame}
 
\begin{frame}{pbuilder backend variations}
\begin{minipage}{0.5\hsize}
 Motivation
\begin{itemize}
 \item limitation in chroot segregation (process space, filesystem)
 \item COW filesystem optimization
\end{itemize}
\end{minipage}\begin{minipage}{0.4\hsize}
  \begin{itemize}
  \item LVM
  \item UML
  \item cowdancer
  \item qemu
 \end{itemize}
\end{minipage}
\end{frame}

\begin{frame}{uml}
 
 different method of segregation
 
 COW block device support
\end{frame}

\begin{frame}{cowdancer}
 
 speed up through implementation 
\end{frame}

\begin{frame}{qemu}

 Try running other architectures at your fingertips?
\end{frame}


\begin{frame}{further ideas}
 \begin{itemize}
  \item install testing
  \item package testing
 \end{itemize}
\end{frame}

\begin{frame}{related tools}
 \begin{itemize}
  \item schroot
  \item piuparts
  \item autopkgtest
 \end{itemize}
\end{frame}

\begin{frame}[containsverbatim]{References}
\begin{itemize}
 \item Information:\\
       \url{http://pbuilder.alioth.debian.org/}

 \item Development:\\
 alioth project: \url{http://alioth.debian.org/projects/pbuilder}

\begin{verbatim}
git-clone
  ssh://git.debian.org/git/pbuilder/pbuilder.git
\end{verbatim}
\end{itemize}
\end{frame}

\end{document}