[Reproducible-commits] [presentations] 02/02: prepare lightning talk for devconf.cz

Holger Levsen holger at moszumanska.debian.org
Sat Feb 6 10:17:00 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository presentations.

commit 9c64db1a776bac446292879a3a0fffc89dcc039c
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sat Feb 6 11:02:31 2016 +0100

    prepare lightning talk for devconf.cz
---
 ...onf.cz-Reproducible-rpm-world-lightningtalk.tex | 828 +++++++++++++++++++++
 2016-02-06-devconf.cz/Makefile                     |  29 +
 2016-02-06-devconf.cz/images/2016-01-26-180836.jpg | Bin 0 -> 130311 bytes
 2016-02-06-devconf.cz/images/31c3.png              | Bin 0 -> 435876 bytes
 2016-02-06-devconf.cz/images/archlinux.png         | Bin 0 -> 7149 bytes
 .../images/cccamp2015_lunar_random.png             | Bin 0 -> 338020 bytes
 2016-02-06-devconf.cz/images/cii_logo.png          | Bin 0 -> 7099 bytes
 2016-02-06-devconf.cz/images/coreboot.png          | Bin 0 -> 3764 bytes
 .../images/diffoscope_example_html.png             | Bin 0 -> 98085 bytes
 2016-02-06-devconf.cz/images/diffoscope_logo.png   | Bin 0 -> 2335 bytes
 2016-02-06-devconf.cz/images/electrobsd.png        | Bin 0 -> 8608 bytes
 2016-02-06-devconf.cz/images/fedora.png            | Bin 0 -> 5508 bytes
 2016-02-06-devconf.cz/images/freebsd.png           | Bin 0 -> 21100 bytes
 2016-02-06-devconf.cz/images/guix.png              | Bin 0 -> 6440 bytes
 .../images/linux_foundation_logo.png               | Bin 0 -> 10163 bytes
 2016-02-06-devconf.cz/images/netbsd.png            | Bin 0 -> 7978 bytes
 2016-02-06-devconf.cz/images/openlogo-nd.pdf       | Bin 0 -> 3168 bytes
 2016-02-06-devconf.cz/images/openwrt.png           | Bin 0 -> 6785 bytes
 2016-02-06-devconf.cz/images/profitbricks_logo.png | Bin 0 -> 3778 bytes
 2016-02-06-devconf.cz/images/rbwww1.png            | Bin 0 -> 53235 bytes
 .../images/stats_bugs_sin_ftbfs_state.png          | Bin 0 -> 29144 bytes
 .../images/stats_builds_per_day_amd64.png          | Bin 0 -> 52732 bytes
 .../images/stats_meta_pkg_state_required.png       | Bin 0 -> 25817 bytes
 2016-02-06-devconf.cz/images/stats_pkg_state.png   | Bin 0 -> 30283 bytes
 .../images/stats_pkg_state_armhf.png               | Bin 0 -> 26789 bytes
 2016-02-06-devconf.cz/images/strawhorse.png        | Bin 0 -> 226278 bytes
 2016-02-06-devconf.cz/images/swirl-lightest.pdf    | Bin 0 -> 3540 bytes
 2016-02-06-devconf.cz/notes                        |  68 ++
 2016-02-06-devconf.cz/outline                      |  58 ++
 29 files changed, 983 insertions(+)

diff --git a/2016-02-06-devconf.cz/2016-02-06-devconf.cz-Reproducible-rpm-world-lightningtalk.tex b/2016-02-06-devconf.cz/2016-02-06-devconf.cz-Reproducible-rpm-world-lightningtalk.tex
new file mode 100644
index 0000000..80bdeec
--- /dev/null
+++ b/2016-02-06-devconf.cz/2016-02-06-devconf.cz-Reproducible-rpm-world-lightningtalk.tex
@@ -0,0 +1,828 @@
+\documentclass[14pt]{beamer}
+\setbeamertemplate{caption}[numbered]
+\setbeamertemplate{caption label separator}{:}
+\setbeamercolor{caption name}{fg=normal text.fg}
+\usepackage{amssymb,amsmath}
+\usepackage{ifxetex,ifluatex}
+\usepackage{fixltx2e} % provides \textsubscript
+\usepackage{lmodern}
+\ifxetex
+  \usepackage{fontspec,xltxtra,xunicode}
+  \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
+  \newcommand{\euro}{€}
+\else
+  \ifluatex
+    \usepackage{fontspec}
+    \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
+    \newcommand{\euro}{€}
+  \else
+    \usepackage[T1]{fontenc}
+    \usepackage[utf8]{inputenc}
+      \fi
+\fi
+% use upquote if available, for straight quotes in verbatim environments
+\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
+% use microtype if available
+\IfFileExists{microtype.sty}{\usepackage{microtype}}{}
+\PassOptionsToPackage{hyphens}{url}
+\usepackage{hyperref}
+\usepackage{ulem}
+
+% Comment these out if you don't want a slide with just the
+% part/section/subsection/subsubsection title:
+\AtBeginPart{
+  \let\insertpartnumber\relax
+  \let\partname\relax
+  \frame{\partpage}
+}
+\AtBeginSection{
+  \let\insertsectionnumber\relax
+  \let\sectionname\relax
+  \begin{frame}[plain]
+    \tableofcontents[currentsection]
+  \end{frame}
+}
+\AtBeginSubsection{
+  \let\insertsubsectionnumber\relax
+  \let\subsectionname\relax
+  \frame{\subsectionpage}
+}
+
+\setlength{\parindent}{0pt}
+\setlength{\parskip}{6pt plus 2pt minus 1pt}
+\setlength{\emergencystretch}{3em}  % prevent overfull lines
+\setcounter{secnumdepth}{0}
+% Thanks Richard Darst on how to get a nice Beamer theme.
+% See http://rkd.zgib.net/wiki/DebianBeamerThemes
+
+\usepackage{multicol}
+\usepackage[absolute,overlay]{textpos}
+\usepackage{tikz}
+\usepackage{ctable}
+\usetikzlibrary{positioning}
+
+\usebackgroundtemplate{\includegraphics[width=\paperwidth]{images/swirl-lightest.pdf}}
+\newif\ifplacelogo
+\placelogotrue
+\logo{\ifplacelogo\includegraphics[viewport=274 335 360 440,width=1cm]{images/openlogo-nd.pdf}\fi}
+
+\definecolor{debianred}{rgb}{.780,.000,.211} % 199,0,54
+\definecolor{debianblue}{rgb}{0,.208,.780} % 0,53,199
+\definecolor{debianlightbackgroundblue}{rgb}{.941,.941,.957} % 240,240,244
+\definecolor{debianbackgroundblue}{rgb}{.776,.784,.878} % 198,200,224
+
+\usetheme{Boadilla}
+\setbeamertemplate{navigation symbols}{}
+
+\usecolortheme[named=debianbackgroundblue]{structure}
+\setbeamercolor{normal text}{fg=black}
+\setbeamercolor{titlelike}{fg=debianblue}
+\setbeamercolor{sidebar}{fg=debianred,bg=debianbackgroundblue}
+
+\setbeamercolor{palette sidebar primary}{fg=debianred}
+\setbeamercolor{palette sidebar secondary}{fg=debianred}
+\setbeamercolor{palette sidebar tertiary}{fg=debianred}
+\setbeamercolor{palette sidebar quaternary}{fg=debianred}
+
+\setbeamercolor{section in toc}{fg=debianred}
+\setbeamercolor{subsection in toc}{parent=debianred}
+
+\setbeamercolor{item}{fg=debianred}
+
+\setbeamercolor{block title}{fg=debianblue}
+
+\title[Reproducible builds for the RPM world]{Reproducible builds for RPMs}
+\subtitle{Lightning talk \\
+as if it were possible to describe this properly in 5 minutes…}
+\author[Holger 'h01ger' Levsen]{%
+   \texorpdfstring{
+            \centering
+            Holger 'h01ger' Levsen\\
+            \href{mailto:holger at layer-acht.org}{holger at layer-acht.org}
+   }{h01ger}}
+\institute[Debian]{}
+\date[devconf.cz]{%
+ Devconf.cz (Brno, Czech Republic)\\
+ \small{2016-01-31}}
+
+\begin{document}
+
+\begin{frame}[plain]
+ \titlepage
+\end{frame}
+
+\begin{frame}
+ \frametitle{about me}
+
+ \begin{itemize}
+  \item \small{\texttt{B8BF 5413 7B09 D35C F026  FE9D 091A B856 069A AA1C}}
+  \item Debian user since 1995
+  \item Debian contributor since 2001
+  \item Debian developer since 2007
+  \item \underline{DebConf organizer},
+  founded the DebConf video team
+   \begin{itemize}
+    \item \texttt{http://video.debian.net}
+   \end{itemize}
+ \item \underline{Debian-Edu} (Debian for education)
+  \item Debian QA (quality assurance)
+  \begin{itemize}
+   \item \texttt{https://piuparts.debian.org}
+   \item \texttt{https://jenkins.debian.net} (~1100 jobs continously testing Debian)
+  \end{itemize}
+  \item \underline{Debian LTS} (Long Term Support)
+  \item Debian Reproducible builds team member
+  \begin{itemize}
+   \item until April 2016 together with Lunar funded by the Linux Foundation
+ \end{itemize}
+ \end{itemize}
+\end{frame}
+
+
+\begin{frame}
+ \frametitle{Debian reproducible builds team}
+ \begin{center}
+  \begin{columns}
+   \small
+   \column{.30\linewidth}
+    {akira} \\
+    {Andrew Ayer} \\
+    {Asheesh Laroia} \\
+    {Chris Lamb} \\
+    {Chris West} \\
+    {Christoph Berg} \\
+    {Daniel Kahn Gillmor} \\
+    David Suarez \\
+    {Dhole} \\
+    Drew Fisher \\
+    Esa Peuha \\
+    {Guillem Jover} \\
+   \column{.30\linewidth}
+    Hans-Christoph Steiner \\
+    {Helmut Grohne} \\
+    \only<1>{Holger Levsen}\only<2>{{\color{debianred} Holger Levsen}} \\
+    {Jelmer Vernooij} \\
+    {josch} \\
+    Juan Picca \\
+    {Lunar} \\
+    Mathieu Bridon \\
+    {Mattia Rizzolo} \\
+    Nicolas Boulenguez \\
+    {Niels Thykier} \\
+    Niko Tyni \\
+   \column{.30\linewidth}
+    {Paul Wise} \\
+    Peter De Wachter \\
+    Philip Rinn \\
+    {Reiner Herrmann} \\
+    {Stefano Rivera} \\
+    {Stéphane Glondu} \\
+    {Steven Chamberlain} \\
+    Tom Fitzhenry \\
+    Valentin Lorentz \\
+    {Wookey} \\
+    {Ximin Luo} \\
+  \end{columns}
+ \end{center}
+\end{frame}
+
+
+\begin{frame}
+ \frametitle{jenkins.debian.net.git contributors}
+ \begin{center}
+  \begin{columns}
+   \small
+   \column{.46\linewidth}
+    {akira} \\
+    \only<1>{Alexander Couzens}\only<2>{{\color{debianred} Alexander Couzens}} \\
+    \only<1>{Levente 'anthraxx' Polyak}\only<2>{{\color{debianred} Levente 'anthraxx' Polyak}} \\
+    {Antonio Terceiro} \\
+    {Axel Beckert} \\
+    \only<1>{Bryan Newbold}\only<2>{{\color{debianred} Bryan Newbold}} \\
+    {Chris Lamb} \\
+    {Daniel Kahn Gillmor} \\
+    {Gabriele Giacone} \\
+    \only<1>{Hans-Christoph Steiner}\only<2>{{\color{debianred} Hans-Christoph Steiner}} \\
+    Helmut Grohne \\
+    \only<1>{Holger Levsen}\only<2>{{\color{debianred} Holger Levsen}} \\
+    \only<1>{HW42}\only<2>{{\color{debianred} HW42}} \\
+    {James McCoy} \\
+    {Joachim Breitner} \\
+   \column{.46\linewidth}
+    {Johannes 'josch' Schauer} \\
+    {Jérémy Bobbio} \\
+    {Mattia Rizzolo} \\
+    {Niels Thykier} \\
+    {Paul Wise} \\
+    {Petter Reinholdtsen} \\
+    {Philip Hands} \\
+    \only<1>{Reiner Herrmann}\only<2>{{\color{debianred} Reiner Herrmann}} \\
+    {Samuel Thibault} \\
+    {Steven Chamberlain} \\
+    {Tails developers} \\
+    {Ulrike Uhlig} \\
+    {Wolfgang Schweer} \\
+    {Wouter Verhelst} \\
+  \end{columns}
+ \end{center}
+\end{frame}
+
+
+
+\section{Motivation}
+
+\begin{frame}
+ \frametitle{The problem}
+
+ \begin{center}
+  \includegraphics[width=0.7\textwidth]{images/31c3.png}
+
+  Available on \url{media.ccc.de}, 31c3
+ \end{center}
+\end{frame}
+
+\begin{frame}[fragile]
+ \frametitle{A few examples from that 31c3 talk}
+ \begin{itemize}
+  \item CVE-2002-0083: remote root exploit in \texttt{sshd}, a single bit difference in the binary
+  \item<2-5> 31c3 talk had a live demo with a kernel module modifying source code in memory only
+  \item<3-5> financial incentives to crack developer machines…
+  \item<4-5> {how can you be sure what's running on your machine or on a build
+  daemon network? Do you ever leave your} \only<4>{USB3 ports alone?}\only<5>{computers alone?}
+ \end{itemize}
+\end{frame}
+
+\begin{frame}[fragile]
+ \frametitle{Another example from real life}
+
+ At a CIA conference in 2012:
+ \begin{center}
+  \includegraphics[width=0.8\textwidth]{images/strawhorse.png}
+
+  {\footnotesize
+  \url{firstlook.org/theintercept/2015/03/10/ispy-cia-campaign-steal-apples-secrets/}
+  }
+ \end{center}
+\end{frame}
+
+
+\begin{frame}
+ \frametitle{The solution}
+
+ \begin{center}
+ \Large{
+ Promise that anyone can always generate
+ identical binary packages
+ from a given source}
+\end{center}
+\end{frame}
+
+
+\begin{frame}
+ \frametitle{The solution}
+
+ \begin{center}
+ We call this:
+
+ \Huge{ “Reproducible builds” }
+ \end{center}
+\end{frame}
+
+\begin{frame}
+ \frametitle{Demo}
+% show this once running in plain sid,
+% and then in sid with our modified toolchain.
+%
+% prepare demo:
+% mkdir demo ; cd demo ; apt-get source giftrans
+%
+% do demo:
+% PTH=$(mktemp -d); OPTH=$PWD; P=giftrans; cp ${P}_* $PTH/; cd $PTH ;
+%   dpkg-source -x ${P}*.dsc ; for X in 1 2 3 4 5 ; do (cd ${P}-*/;
+%   dpkg-buildpackage -b -uc -us); mkdir -p .$X ; cp $P_*.deb .$X; done ; rm
+%   *.deb ; echo; sha1sum *dsc *z .*/*.deb | grep -v giftrans-dbgsym ; cd - ;
+% rm -r $PTH
+\end{frame}
+
+\begin{frame}[plain]
+\begin{center}
+ \Huge{This should become the \textbf{norm}.}
+
+ \visible<2>{\small{ We want to change the meaning of "free software":
+
+  it's only free software if it's reproducible!}}
+\end{center}
+\end{frame}
+
+
+\section{Common ressources}
+
+\begin{frame}
+ \frametitle{reproducible-builds.org}
+
+ \begin{itemize}
+  \item \texttt{https://reproducible-builds.org}
+ \end{itemize}
+ \begin{center}
+ \includegraphics[width=0.7\textwidth]{images/rbwww1.png}
+ \end{center}
+\end{frame}
+
+\begin{frame}
+ \frametitle{Documentation about common problems}
+ \begin{itemize}
+  \item \texttt{https://reproducible-builds.org/docs}
+  \item Lunar's talk from CCCamp 2015 also on
+  \texttt{https://media.ccc.de}
+ \begin{tikzpicture}[remember picture]
+  \node[shift={(-1.05\paperwidth, -0.3\paperheight)},at=(current page.south east)] {
+    \includegraphics[width=0.83\textwidth]{images/cccamp2015_lunar_random.png}
+  };
+ \end{tikzpicture}
+ \end{itemize}
+\end{frame}
+
+\begin{frame}
+ \frametitle{Common problems}
+
+ \begin{itemize}
+  \item time stamps
+  \item<2-3> timezones
+  \item<2-3> locales
+  \item<3> everything else (seperated into known issues and the blurry rest)
+ \end{itemize}
+\end{frame}
+
+
+\begin{frame}
+ \frametitle{\texttt{SOURCE\_DATE\_EPOCH}}
+
+ \begin{itemize}
+  \item Build date (timestamps) usually not useful for the user
+  \item \texttt{SOURCE\_DATE\_EPOCH} is defined as the last modification of
+  the source, since the epoch (1970-01-01)
+  \item \texttt{SOURCE\_DATE\_EPOCH} can be used instead of current date
+  \item can also be used for random seeds etc.
+  \item in Debian, set from the latest \texttt{debian/changelog} entry
+  \item<2> solution has been adopted by other projects \& distributions
+  (NetBSD, FreeBSD, Arch Linux, Guix, …)
+ \end{itemize}
+\end{frame}
+
+\begin{frame}
+ \frametitle{\texttt{SOURCE\_DATE\_EPOCH}}
+
+ \begin{itemize}
+  \item \texttt{SOURCE\_DATE\_EPOCH} spec availble
+  \item \texttt{https://reproducible-builds.org/specs/}
+ \end{itemize}
+\end{frame}
+
+
+\begin{frame}
+ \frametitle{tests.reproducible-builds.org}
+
+ \begin{itemize}
+  \item Continuously testing Debian \texttt{testing}, \texttt{unstable} and
+  \texttt{experimental}
+  \item Also testing: coreboot, OpenWrt, NetBSD, FreeBSD,
+  Arch Linux, Fedora and soon F-Droid and Guix too
+  \item<2> 230 jenkins jobs running on seven amd64 nodes with 120 cores and
+  300 GB ram combined and 15 small armhf nodes…
+  \item<2> 42 scripts in Python and Bash, 282 lines of code in average
+  \item<2> 29 contributors for \texttt{jenkins.debian.net.git}
+ \end{itemize}
+\end{frame}
+
+
+\begin{frame}[fragile]
+ \frametitle{Variations (when testing Debian)}
+
+ \begin{center}
+  \begin{table}
+   \resizebox{0.95\textwidth}{!}{%
+    \begin{tabular}{l|ll}
+\textbf{variation} & \textbf{first build} & \textbf{second build} \\
+\hline
+hostname & \texttt{jenkins} & \texttt{i-capture-the-hostname} \\
+domainname & \texttt{debian.net} & \texttt{i-capture-the-domainname} \\
+\texttt{env TZ} & \texttt{GMT+12} & \texttt{GMT-14} \\
+\texttt{env LANG} & \texttt{C} & \texttt{fr\_CH.UTF-8} \\
+\texttt{env LC\_ALL} & not set & \texttt{fr\_CH.UTF-8} \\
+\texttt{env USER} & \texttt{pbuilder1} & \texttt{pbuilder2} \\
+uid & \texttt{1111} & \texttt{2222} \\
+gid & \texttt{1111} & \texttt{2222} \\
+UTS namespace & shared with the host & \textit{modified using \texttt{/usr/bin/unshare --uts}} \\
+kernel version & Linux 3.16 or 4.X & on amd64 always varied, on armhf
+sometimes \\
+umask & 0022 & 0002 \\
+CPU type & \multicolumn{2}{l}{same for both builds on amd64 \textit{(work in progress)}} \\
+ & on armhf varied a bit & \\
+filesystem & \multicolumn{2}{l}{same for both builds on amd64: (\texttt{tmpfs}), on armhf \texttt{ext3/4}} \\
+ & & \textit{(and we have} \texttt{disorderfs}\textit{, but the code is disabled)} \\
+year, month, date & \multicolumn{2}{l}{on amd64: 398 days variation, on armhf not yet} \\
+hour, minute & \multicolumn{2}{l}{hour is usually the same… usually, the minute differs… } \\
+\textit{everything else} & \multicolumn{2}{l}{\textit{is likely the same…}}
+    \end{tabular}
+   }
+  \end{table}
+ \end{center}
+\end{frame}
+
+
+\placelogofalse
+
+{
+\usebackgroundtemplate{%
+ \begin{tikzpicture}[remember picture,overlay]%
+  \node[shift={(-0.1\paperwidth, 0.15\paperheight)},at=(current page.south east)] {
+    \includegraphics[width=0.2\paperwidth]{images/diffoscope_logo.png}
+  };
+ \end{tikzpicture}%
+}
+
+\begin{frame}{diffoscope}
+ \frametitle{Debugging problems: \texttt{diffoscope}}
+
+ \begin{itemize}
+  \item Examines differences \textbf{in depth}.
+  \item Outputs HTML or plain text with human readable differences.
+  \item Recursively unpacks archives, uncompresses PDFs, disassembles
+  binaries, unpacks Gettext files, …
+  \item Easy to extend to new file formats.
+  \item Falls back to binary comparison.
+  \item Available from \texttt{git}, PyPI, Debian (sid and stretch), \\
+   Arch Linux, Guix, Homebrew. Works on BSD.
+  \item Maintainers in other distros wanted.
+  \item \url{https://diffoscope.org/}
+ \end{itemize}
+\end{frame}
+
+
+\begin{frame}
+ \frametitle{\texttt{diffoscope} example (HTML output)}
+ \begin{tikzpicture}[remember picture]
+  \node[at=(current page.center)] {
+   \includegraphics[width=0.9\paperwidth]{images/diffoscope_example_html.png}
+  };
+ \end{tikzpicture}
+\end{frame}
+
+
+\begin{frame}{diffoscope}
+ \frametitle{Try \texttt{diffoscope}}
+ \begin{itemize}
+  \item \texttt{https://try.diffoscope.org}
+ \end{itemize}
+\end{frame}
+
+
+
+\begin{frame}
+ \frametitle{\texttt{diffoscope} is "just" for debugging}
+
+ \begin{itemize}
+  \item Reminder: \texttt{diffoscope} is for \textbf{debugging}
+  \item<2> "reproducible" according to our definition means: \textbf{bit by bit
+  identical}. So the tools for testing whether something is reproducible are
+  either \texttt{diff} or \texttt{sha256sum}!
+ \end{itemize}
+\end{frame}
+
+}
+
+\placelogotrue
+
+
+\section{Status Debian}
+
+\begin{frame}
+ \frametitle{Progress in Debian \texttt{unstable}}
+ \begin{tikzpicture}[remember picture]
+  \node[shift={(-0.75\paperwidth, -0.3\paperheight)},at=(current page.south east)] {
+    \includegraphics[height=0.65\paperheight]{images/stats_pkg_state.png}
+  };
+ \end{tikzpicture}
+ \begin{center}
+  \footnotesize{20,079 (85\%) out of 23,595 source packages are reproducible \\
+    in our test framework}
+  \vfill
+ \end{center}
+\end{frame}
+
+\begin{frame}
+ \frametitle{Notes and issues on tests.reproducible-builds.org}
+
+ \begin{itemize}
+  \item { 179 categorised distinct issues }
+  \item { 3,792 notes }
+  \item<2-4> { 2549 unreproducible packages in \texttt{sid}, but only 139 without a 
+  note }
+  \item<2-4> { 728 packages failing to build, but only 74 without a note }
+  \item<3-4> { maintained in \texttt{notes.git} }
+  \item<4> { currently Debian only, but cross distro notes are planned}
+ \end{itemize}
+\end{frame}
+
+
+
+\begin{frame}
+ \frametitle{Debian packages on tests.reproducible-builds.org}
+ \begin{itemize}
+  \item \url {https://reproducible.debian.net/$src}
+ \end{itemize}
+\end{frame}
+
+
+\begin{frame}
+ \frametitle{Progress in the Debian bug tracker}
+ \begin{tikzpicture}[remember picture]
+  \node[shift={(-0.75\paperwidth, -0.3\paperheight)},at=(current page.south east)] {
+    \includegraphics[height=0.65\paperheight]{images/stats_bugs_sin_ftbfs_state.png}
+  };
+ \end{tikzpicture}
+ \begin{center}
+  \footnotesize{As a rule, we file bugs with patches. \\
+  There are very few exceptions.}
+  \vfill
+ \end{center}
+\end{frame}
+
+\begin{frame}
+ \frametitle{What we did in Debian}
+
+ \begin{itemize}
+  \item Agreed on using a fixed build path: \texttt{/build/}
+  \item Recording the build environment: \texttt{.buildinfo}
+  \item \texttt{strip-nondeterminism}
+  \item \texttt{diffoscope} (formerly \texttt{debbindiff})
+  \item \texttt{SOURCE\_DATE\_EPOCH}
+  \item \texttt{disorderfs}
+  \item 1000+ patches: \texttt{dpkg}, \texttt{debhelper}, \texttt{sbuild}, …
+  \item …
+ \end{itemize}
+\end{frame}
+
+
+\begin{frame}
+ \frametitle{Tell the world \& collaborate}
+
+ \begin{itemize}
+  \item Weekly reports since May 2015
+  \item<2-3> First Reproducible World Summit in December 2015 (Athens, Greece)
+   \begin{itemize}
+    \item<2-3> 40 people from 16 projects
+    \item<2-3> \texttt{reproducible.debian.net} has become
+  \texttt{tests.reproducible-builds.org}
+  \item<3> another Summit in April/May 2016?! Talk to me if you want to
+  attend.
+   \end{itemize}
+ \end{itemize}
+\end{frame}
+
+\begin{frame}
+ \frametitle{Detour: Reproducible builds demand a defined build environment}
+ \begin{itemize}
+  \item …and being able to re-create this build environment is mandatory too.
+  \item Without an \textit{sufficiently identical} build environment, reproducible builds will only
+  happen by sheer luck.
+  \item<2>{I've only seen this verified for Debian so far… \texttt{koji}
+  is designed for that too, Guix as well…}
+\item<2> {I'd very much like to be corrected here, with tests.}
+ \end{itemize}
+\end{frame}
+
+\begin{frame}
+ \frametitle{Reminder / Summary}
+ \begin{itemize}
+  \item This is just a proof-of-concept, Debian is not 85\% reproducible
+  \item Patches still need to be merged
+  \item<2-4> I hope that Debian 9, "stretch", will be partially reproducible in a meaningful way
+  \item<3-4> Debian "unstable" as an easter (=end of March 2016) present?
+  \item<4> what's beyond (rebuilding, \texttt{.buildinfo} file handling, user
+  tools) mostly still needs \it{design} and code
+
+ \end{itemize}
+\end{frame}
+
+\section{Status Non-Debian World}
+
+\placelogofalse
+
+\begin{frame}
+ \frametitle{Skipped stati}
+ \begin{itemize}
+  \item \texttt{https://tests.r-b.org/coreboot}
+  \item \texttt{https://tests.r-b.org/coreboot}
+  \item \texttt{https://tests.r-b.org/netbsd}
+  \item \texttt{https://tests.r-b.org/freebsd}
+  \item \texttt{https://tests.r-b.org/archlinux}
+  \item not yet: \texttt{https://tests.r-b.org/f-droid}
+  \item not yet: \texttt{https://tests.r-b.org/guix}
+ \end{itemize}
+\end{frame}
+
+
+\begin{frame}
+ \frametitle{Status Fedora}
+ \begin{itemize}
+  \item \texttt{https://tests.r-b.org/fedora} (23)
+  \item maintained by Dhiru Kholia and h01ger
+  \item rpm repo available by Dhiru, but still \textbf{0\% reproducible}
+  \item rpm format includes build time and build host and…
+  \item recreating the build env: koji
+  \item next: 24+rawhide, first reproducible rpm, use koji
+  \item next: get more people involved
+ \end{itemize}
+ \begin{tikzpicture}[remember picture,overlay]
+  \node[shift={(-0.15\paperwidth, 0.2\paperheight)},at=(current page.south east)] {
+    \includegraphics[height=0.33\paperheight]{images/fedora.png}
+  };
+ \end{tikzpicture}
+\end{frame}
+
+\begin{frame}
+ \frametitle{Unmentioned, with known activities}
+ \begin{itemize}
+\item Bitcoin
+\item Tor
+    \item NixOS
+    \item Qubes
+\item    commercial, propietary Software
+\item ?
+ \end{itemize}
+\end{frame}
+
+\begin{frame}
+ \frametitle{Unmentioned, unknown activities?}
+ \begin{itemize}
+\item  OpenSUSE (could be tested easily…)
+\item  Ubuntu
+\item  OpenBSD
+\item  Gentoo (stage1)
+ \item ?
+\end{itemize}
+\end{frame}
+
+
+\placelogotrue
+
+\section{Future work}
+
+\begin{frame}
+ \frametitle{Rebuilders and sharing signed checksums}
+ \begin{itemize}
+  \item Almost no work has been done here yet. We are just at the first step:
+  being able to rebuild reproducibly…
+  \item<2-3> Systematic, automatic rebuilds? 
+  \item<3> Different projects, different solutions? 
+ \end{itemize}
+\end{frame}
+
+\begin{frame}
+ \frametitle{Rebuilders and sharing signed checksums, cont.}
+ \begin{itemize}
+  \item Individuelly signed checksums (think web of trust) could work in the
+  Debian case (we have a gpg web of trust), but IMO won't scale.
+  \item<2-3> { Another idea: rebuilders, run by large organisations
+  (ACLU, CCC, CERN, Deutsche Bank, EDF, EON, Greenpeace, NASA, NSA, XYZ).}
+  \item<3> Fedora rebuilds Debian, Debian rebuilds OpenSUSE, OpenSUSE rebuilds
+  NetBSD, etc…
+ \end{itemize}
+\end{frame}
+
+
+\begin{frame}
+ \frametitle{Integration in user tools}
+ \begin{itemize}
+  \item "Do you really want to install this unreproducible software (y/N)"
+  \item<2-4> "Do you want to build those packages which unconfirmed checksums,
+  before installing? (Y/n)"
+  \item<3-4>{ "How many signed checksums do you require to call a package
+  'reproducible'?"}
+  \item<4>{ "Which rebuilders do you want to trust?"}
+ \end{itemize}
+\end{frame}
+
+
+\section{Getting involved}
+
+\begin{frame}
+ \frametitle{As a software developer}
+ \begin{itemize}
+  \item Stop using build dates
+  \item Use \texttt{SOURCE\_DATE\_EPOCH} instead
+  \item See \url{https://reproducible-builds.org/specs/}
+ \end{itemize}
+\end{frame}
+
+\begin{frame}
+ \frametitle{Getting involved - learning by doing}
+
+ \begin{itemize}
+  \item Test for yourself:
+   \begin{itemize}
+    \item Build something twice, run diffoscope on the results
+    \begin{itemize}
+     \item For better results use our “reproducible” repository, \texttt{pbuilder} and a custom config
+    \end{itemize}
+   \end{itemize}
+  \item Docs on the web: \\
+    \small{\url{https://reproducible-builds.org/docs/}} \\
+    \small{\url{https://wiki.debian.org/ReproducibleBuilds/ExperimentalToolchain}}
+  \item Ask for help on \texttt{\#debian-reproducible} or on mailing list
+ \end{itemize}
+\end{frame}
+
+
+\begin{frame}
+ \frametitle{Form the Fedora reproducible builds team!}
+
+ \begin{itemize}
+  \item Why?
+   \begin{itemize}
+    \item Every distribution should be reproducible!
+    \item Learn something new everyday
+    \item Change the (software) world!
+    \item \texttt{https://tests.reproducible-builds.org/\$project} needs
+    \textbf{your} help
+   \end{itemize}
+  \item How to get started?
+   \begin{itemize}
+    \item Talk to me here or talk to us on IRC or via mail.
+    \item RTFM, there is lots of documentation
+    \item Experiment - learning by doing
+   \end{itemize}
+ \end{itemize}
+\end{frame}
+
+\section{Questions, comments, ideas?}
+
+
+\begin{frame}
+ \frametitle{Questions, comments, ideas?}
+
+ \begin{itemize}
+  \item<2-3> \url{https://reproducible-builds.org/docs}
+  \item<2-3> \url{https://tests.reproducible-builds.org}
+  \item<2-3> \texttt{\#reproducible-builds} on \texttt{irc.OFTC.net}
+  \item<2-3> \small{and/or \texttt{\#debian-reproducible} too!}
+  \item<2-3> \small\it{with IRC notification by \texttt{KGB-0}}
+  \item<3> \url{https://lists.reproducible-builds.org}
+  \item<3> \url{https://twitter.com/ReproBuild}
+  \end{itemize}
+\end{frame}
+
+
+\begin{frame}
+ \frametitle{Thanks to…! …and thank \textbf{you}, too!}
+
+ \begin{itemize}
+  \item
+    \only<1>{Debian “Reproducible Builds” team \\
+        {\small (you are just \textbf{so} awesome!)}}
+    \only<2>{All “Reproducible Builds” teams \\
+        {\small (you are just \textbf{so} awesome!)}}
+  \item Linux Foundation and the Core Infrastructure Initiative
+\end{itemize}
+
+ \begin{center}
+  \includegraphics[height=0.1\paperheight]{images/linux_foundation_logo.png}
+  \hspace{0.1\paperwidth}
+  \includegraphics[height=0.1\paperheight]{images/cii_logo.png}
+ \end{center}
+
+ \vfill
+ \begin{center}
+  \resizebox{0.9\textwidth}{!}{%
+   \begin{tabular}{rl}
+    \texttt{holger at debian.org} & \texttt{B8BF 5413 7B09 D35C F026} \\
+                               & \texttt{FE9D 091A B856 069A AA1C}
+   \end{tabular}
+  }
+ \end{center}
+\end{frame}
+
+\begin{frame}{}
+\begin{textblock}{12}(2, 6)
+    \tiny{
+      Copyright \copyright{} 2014--2016 \\
+         Holger Levsen \texttt{holger at layer-acht.org} and others.\\[3.0mm]
+      Copyright of images included in this document are held by
+      their respective owners.
+      \\[3.0mm]
+      This work is licensed under the \alert{Creative Commons
+        Attribution-Share Alike 3.0} License.  To view a copy of this
+      license, visit
+      \url{http://creativecommons.org/licenses/by-sa/3.0/} or send a
+      letter to Creative Commons, 171 Second Street, Suite 300, San
+      Francisco, California, 94105, USA.
+      \\[2.0mm]
+      % Give a link to the 'Transparent Copy', as per Section 3 of the GFDL.
+      The source of this document is available from
+      \url{https://anonscm.debian.org/git/reproducible/presentations.git}.
+    }
+  \end{textblock}
+\end{frame}
+
+\end{document}
diff --git a/2016-02-06-devconf.cz/Makefile b/2016-02-06-devconf.cz/Makefile
new file mode 100644
index 0000000..4800fd0
--- /dev/null
+++ b/2016-02-06-devconf.cz/Makefile
@@ -0,0 +1,29 @@
+.PHONY: all source images
+
+PRESENTATION = 2016-02-06-devconf.cz-Reproducible-rpm-world-lightningtalk
+
+all: $(PRESENTATION).pdf
+
+source: $(PRESENTATION)-src.tar.gz
+
+IMGS = $(shell sed -n -e 's/^[^%]*\\includegraphics\([^{]*\)\?{\([^}]*\)}.*$$/\2/p' $(PRESENTATION).tex | sort -u)
+
+$(PRESENTATION).pdf: $(PRESENTATION).tex $(IMGS)
+	set -e && \
+	build=1; \
+	while [ $$build -le 5 ]; do \
+		build=$$(($$build + 1)); \
+		lualatex $<; \
+		if sha1sum -c $(PRESENTATION).aux.sha1sum > /dev/null 2>&1; then \
+			break; \
+		fi; \
+		sha1sum $(PRESENTATION).aux > $(PRESENTATION).aux.sha1sum; \
+	done 
+
+clean:
+	rm -f $(PRESENTATION).aux $(PRESENTATION).log $(PRESENTATION).nav \
+		$(PRESENTATION).out $(PRESENTATION).snm $(PRESENTATION).toc \
+		$(PRESENTATION).vrb $(PRESENTATION).aux.sha1sum $(PRESENTATION).pdfpc
+
+distclean:
+	rm -f $(PRESENTATION).pdf
diff --git a/2016-02-06-devconf.cz/images/2016-01-26-180836.jpg b/2016-02-06-devconf.cz/images/2016-01-26-180836.jpg
new file mode 100644
index 0000000..01b9a4d
Binary files /dev/null and b/2016-02-06-devconf.cz/images/2016-01-26-180836.jpg differ
diff --git a/2016-02-06-devconf.cz/images/31c3.png b/2016-02-06-devconf.cz/images/31c3.png
new file mode 100644
index 0000000..8922581
Binary files /dev/null and b/2016-02-06-devconf.cz/images/31c3.png differ
diff --git a/2016-02-06-devconf.cz/images/archlinux.png b/2016-02-06-devconf.cz/images/archlinux.png
new file mode 100644
index 0000000..0e0c2c3
Binary files /dev/null and b/2016-02-06-devconf.cz/images/archlinux.png differ
diff --git a/2016-02-06-devconf.cz/images/cccamp2015_lunar_random.png b/2016-02-06-devconf.cz/images/cccamp2015_lunar_random.png
new file mode 100644
index 0000000..9a9e91d
Binary files /dev/null and b/2016-02-06-devconf.cz/images/cccamp2015_lunar_random.png differ
diff --git a/2016-02-06-devconf.cz/images/cii_logo.png b/2016-02-06-devconf.cz/images/cii_logo.png
new file mode 100644
index 0000000..690b7c6
Binary files /dev/null and b/2016-02-06-devconf.cz/images/cii_logo.png differ
diff --git a/2016-02-06-devconf.cz/images/coreboot.png b/2016-02-06-devconf.cz/images/coreboot.png
new file mode 100644
index 0000000..7d7b186
Binary files /dev/null and b/2016-02-06-devconf.cz/images/coreboot.png differ
diff --git a/2016-02-06-devconf.cz/images/diffoscope_example_html.png b/2016-02-06-devconf.cz/images/diffoscope_example_html.png
new file mode 100644
index 0000000..f7bb7f9
Binary files /dev/null and b/2016-02-06-devconf.cz/images/diffoscope_example_html.png differ
diff --git a/2016-02-06-devconf.cz/images/diffoscope_logo.png b/2016-02-06-devconf.cz/images/diffoscope_logo.png
new file mode 100644
index 0000000..ff9c312
Binary files /dev/null and b/2016-02-06-devconf.cz/images/diffoscope_logo.png differ
diff --git a/2016-02-06-devconf.cz/images/electrobsd.png b/2016-02-06-devconf.cz/images/electrobsd.png
new file mode 100644
index 0000000..1868115
Binary files /dev/null and b/2016-02-06-devconf.cz/images/electrobsd.png differ
diff --git a/2016-02-06-devconf.cz/images/fedora.png b/2016-02-06-devconf.cz/images/fedora.png
new file mode 100644
index 0000000..9cc341f
Binary files /dev/null and b/2016-02-06-devconf.cz/images/fedora.png differ
diff --git a/2016-02-06-devconf.cz/images/freebsd.png b/2016-02-06-devconf.cz/images/freebsd.png
new file mode 100644
index 0000000..deb2768
Binary files /dev/null and b/2016-02-06-devconf.cz/images/freebsd.png differ
diff --git a/2016-02-06-devconf.cz/images/guix.png b/2016-02-06-devconf.cz/images/guix.png
new file mode 100644
index 0000000..9c12d13
Binary files /dev/null and b/2016-02-06-devconf.cz/images/guix.png differ
diff --git a/2016-02-06-devconf.cz/images/linux_foundation_logo.png b/2016-02-06-devconf.cz/images/linux_foundation_logo.png
new file mode 100644
index 0000000..860c2bb
Binary files /dev/null and b/2016-02-06-devconf.cz/images/linux_foundation_logo.png differ
diff --git a/2016-02-06-devconf.cz/images/netbsd.png b/2016-02-06-devconf.cz/images/netbsd.png
new file mode 100644
index 0000000..35fc1b4
Binary files /dev/null and b/2016-02-06-devconf.cz/images/netbsd.png differ
diff --git a/2016-02-06-devconf.cz/images/openlogo-nd.pdf b/2016-02-06-devconf.cz/images/openlogo-nd.pdf
new file mode 100644
index 0000000..fed3d93
Binary files /dev/null and b/2016-02-06-devconf.cz/images/openlogo-nd.pdf differ
diff --git a/2016-02-06-devconf.cz/images/openwrt.png b/2016-02-06-devconf.cz/images/openwrt.png
new file mode 100644
index 0000000..2d457c3
Binary files /dev/null and b/2016-02-06-devconf.cz/images/openwrt.png differ
diff --git a/2016-02-06-devconf.cz/images/profitbricks_logo.png b/2016-02-06-devconf.cz/images/profitbricks_logo.png
new file mode 100644
index 0000000..2ce8ce8
Binary files /dev/null and b/2016-02-06-devconf.cz/images/profitbricks_logo.png differ
diff --git a/2016-02-06-devconf.cz/images/rbwww1.png b/2016-02-06-devconf.cz/images/rbwww1.png
new file mode 100644
index 0000000..8932f53
Binary files /dev/null and b/2016-02-06-devconf.cz/images/rbwww1.png differ
diff --git a/2016-02-06-devconf.cz/images/stats_bugs_sin_ftbfs_state.png b/2016-02-06-devconf.cz/images/stats_bugs_sin_ftbfs_state.png
new file mode 100644
index 0000000..c8d16ac
Binary files /dev/null and b/2016-02-06-devconf.cz/images/stats_bugs_sin_ftbfs_state.png differ
diff --git a/2016-02-06-devconf.cz/images/stats_builds_per_day_amd64.png b/2016-02-06-devconf.cz/images/stats_builds_per_day_amd64.png
new file mode 100644
index 0000000..5b596a1
Binary files /dev/null and b/2016-02-06-devconf.cz/images/stats_builds_per_day_amd64.png differ
diff --git a/2016-02-06-devconf.cz/images/stats_meta_pkg_state_required.png b/2016-02-06-devconf.cz/images/stats_meta_pkg_state_required.png
new file mode 100644
index 0000000..b9cbb32
Binary files /dev/null and b/2016-02-06-devconf.cz/images/stats_meta_pkg_state_required.png differ
diff --git a/2016-02-06-devconf.cz/images/stats_pkg_state.png b/2016-02-06-devconf.cz/images/stats_pkg_state.png
new file mode 100644
index 0000000..37ccd22
Binary files /dev/null and b/2016-02-06-devconf.cz/images/stats_pkg_state.png differ
diff --git a/2016-02-06-devconf.cz/images/stats_pkg_state_armhf.png b/2016-02-06-devconf.cz/images/stats_pkg_state_armhf.png
new file mode 100644
index 0000000..2ac7633
Binary files /dev/null and b/2016-02-06-devconf.cz/images/stats_pkg_state_armhf.png differ
diff --git a/2016-02-06-devconf.cz/images/strawhorse.png b/2016-02-06-devconf.cz/images/strawhorse.png
new file mode 100644
index 0000000..d089dbf
Binary files /dev/null and b/2016-02-06-devconf.cz/images/strawhorse.png differ
diff --git a/2016-02-06-devconf.cz/images/swirl-lightest.pdf b/2016-02-06-devconf.cz/images/swirl-lightest.pdf
new file mode 100644
index 0000000..1c8ffd2
Binary files /dev/null and b/2016-02-06-devconf.cz/images/swirl-lightest.pdf differ
diff --git a/2016-02-06-devconf.cz/notes b/2016-02-06-devconf.cz/notes
new file mode 100644
index 0000000..351d28f
--- /dev/null
+++ b/2016-02-06-devconf.cz/notes
@@ -0,0 +1,68 @@
+demo: PTH=$(mktemp -d); OPTH=$PWD; P=giftrans; cp ${P}_* $PTH/; cd $PTH ; dpkg-source -x ${P}*.dsc ; for X in 1 2 3 4 5 ; do (cd ${P}-*/; dpkg-buildpackage -b -uc -us); mkdir -p .$X ; cp $P_*.deb .$X; done ; rm *deb ; echo; sha1sum *dsc *z .*/*.deb | grep -v giftrans-dbgsym ; cd - ; echo "don't foget to rm -r $PTH"
+
+
+
+koji records the build
+	can be used to recreate it, in theory, in practice this needs documentation / be done
+rpm container has
+	build date
+	build host
+	signature
+	signature changes between development and release
+
+mention gsoc, new people
+
+emphasize this is too much for me…
+add thanks slide for all the people working on it in other projects
+
+end (or beginning?):
+	the whole world is watching? no (not that slide, but its true… or maybe that slide indeed)
+	fosdem 2014 lunar in a dev room
+	fosdem 2015 lunar and holger in k building
+	fosdem 2016 holger in janson
+	will 2016 be the year of the reproducible linux desktop? maybe
+	or 2017?! (i think so, find a nice pic to prove it)
+	and mayne not on the desktop, but just servers
+	or 85% of Debian main ;-)
+	or something - i'll get into the details later
+
+describe debian test setup
+	debian repo
+	debian bugs categories, nah
+	mention variations from TODO
+	
+diffoscope can use debug symbols now
+
+add SOURCE_DATE_EPOCH adoption outside Debian…
+
+need logos:
+	fdroid
+	qubes 4.0
+
+dpkg: mention recent developments… same for ftp!
+re-read: https://wiki.debian.org/ReproducibleBuilds/About etc
+
+explain shortcuts:
+        defined build environment with little variations
+        subsets
+
+many good sideeffects
+	QA QA QA
+	eg also arm bootloader improvements ;)
+	faster builds, saves money
+	check our wiki page on that
+
+future other tests:
+	not all variations debian has are applied, notable not yet date+time
+	seperation of test logic and html page creation planned
+
+future
+	funding
+	another meeting or two in 2016
+	fosdem devroom in 2017?!
+	tests.r-b.o doing rebuilds against releases
+
+disclaimer:
+	the mistakes are mine
+	to better present this here,  chronologic order has been changed
+	this is the work of *many* more people than mentioned, this is free software!
diff --git a/2016-02-06-devconf.cz/outline b/2016-02-06-devconf.cz/outline
new file mode 100644
index 0000000..9e08f1c
--- /dev/null
+++ b/2016-02-06-devconf.cz/outline
@@ -0,0 +1,58 @@
+Outcomes
+========
+
+ * Get an idea of what has changed
+ * Learn about the open issues and questions to make Stretch (partly)
+   reproducible
+ * Learn how to help
+
+Outline
+=======
+
+What is it and why it matters
+-----------------------------
+
+5 minutes max on what it is and why it matters.
+
+What has changed and available tools
+------------------------------------
+
+What have been done real real quick but point people at:
+https://wiki.debian.org/ReproducibleBuilds/History
+
+Explain past changes in dpkg, debhelper, and others
+
+SOURCE_DATE_EPOCH
+
+strip-nondeterminism
+
+reproducible.debian.net test
+
+.buildinfo
+
+Unresolved issues
+-----------------
+
+.buildinfo signature
+
+Unmerged changes to dpkg and others
+
+others issues?
+
+announce the plenary (come help us figure out the best way to do things)
+
+How can you help
+----------------
+
+reproducible.debian.net web interface
+	useful to find other bugs too
+
+notes.git
+
+IRC channel
+
+debbindiff
+
+prebuilder script — improve the doc before, probably
+
+annonce the hack session (come learn how to fix specific packages)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/presentations.git



More information about the Reproducible-commits mailing list