<div dir="ltr"><div>From 5f6b24723b1d029d3c764aaa8dea31b8497c3905 Mon Sep 17 00:00:00 2001</div><div>From: &quot;Tuan T. Pham&quot; &lt;<a href="mailto:tuan@vt.edu">tuan@vt.edu</a>&gt;</div><div>Date: Thu, 8 Sep 2016 03:42:12 -0400</div><div>Subject: [PATCH] Add script to install required packages to compile in Debian</div><div><br></div><div>In order to setup an environment to compile and to test CRIU</div><div>from source, we need to have required packages in Debian</div><div>environment.[^0] This script and its package list will help</div><div>setting it up.</div><div><br></div><div>contrib/debian/dev-packages.lst:</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>* List of required packages for Debian development environment</div><div><br></div><div>scripts/install-debian-pkgs.sh:</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>* A simple bash script instaling the required Debian packages</div><div><br></div><div>[0]: <a href="https://criu.org/Installation">https://criu.org/Installation</a></div><div><br></div><div>Signed-off-by: Tuan T. Pham &lt;<a href="mailto:tuan@vt.edu">tuan@vt.edu</a>&gt;</div><div>---</div><div> contrib/debian/dev-packages.lst | 18 ++++++++++++++++++</div><div> scripts/install-debian-pkgs.sh  | 25 +++++++++++++++++++++++++</div><div> 2 files changed, 43 insertions(+)</div><div> create mode 100644 contrib/debian/dev-packages.lst</div><div> create mode 100755 scripts/install-debian-pkgs.sh</div><div><br></div><div>diff --git a/contrib/debian/dev-packages.lst b/contrib/debian/dev-packages.lst</div><div>new file mode 100644</div><div>index 0000000..e0aa513</div><div>--- /dev/null</div><div>+++ b/contrib/debian/dev-packages.lst</div><div>@@ -0,0 +1,18 @@</div><div>+# Required packages for development in Debian</div><div>+build-essential</div><div>+libprotobuf-dev</div><div>+libprotobuf-c0-dev</div><div>+protobuf-c-compiler</div><div>+protobuf-compiler</div><div>+python-protobuf</div><div>+</div><div>+# Extra packages, required for testing and building other tools</div><div>+pkg-config</div><div>+libnl-3-dev</div><div>+python-ipaddr</div><div>+libbsd0</div><div>+libbsd-dev</div><div>+iproute2</div><div>+libcap-dev</div><div>+libaio-dev</div><div>+python-yaml</div><div>diff --git a/scripts/install-debian-pkgs.sh b/scripts/install-debian-pkgs.sh</div><div>new file mode 100755</div><div>index 0000000..c8af34f</div><div>--- /dev/null</div><div>+++ b/scripts/install-debian-pkgs.sh</div><div>@@ -0,0 +1,25 @@</div><div>+#!/bin/bash</div><div>+# Install required packages for development environment in Debian Distro</div><div>+</div><div>+REQ_PKGS=${REQ_PKGS:=contrib/debian/dev-packages.lst}</div><div>+</div><div>+help_msg=&quot;Install required packages for development environment in Debian Distro</div><div>+Usage:</div><div>+<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>scripts/install-debian-pkgs.sh&quot;</div><div>+</div><div>+function print_help()</div><div>+{</div><div>+<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>exec echo -e &quot;$help_msg&quot;</div><div>+}</div><div>+</div><div>+function process()</div><div>+{</div><div>+<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>sudo apt-get update</div><div>+<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>sudo apt-get install -yq $( sed &#39;s/\#.*$//&#39; ${REQ_PKGS} )</div><div>+}</div><div>+</div><div>+if [ &quot;$1&quot; = &quot;--help&quot; ] || [ &quot;$1&quot; = &quot;-h&quot; ]; then</div><div>+<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>print_help</div><div>+else</div><div>+<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>process</div><div>+fi</div><div>-- </div><div>2.1.4</div><div><br></div></div>