Build strongswan v5.5.0 debian package — with debug symbols

Usually I am using the packages from the official repositories. However, sometimes it's necessary to use a newer version, I recently had to do this with strongswan and I'm sharing the procedure for other people to try.

Get the build dependencies

[codesyntax lang="bash"]

apt-get update
apt-get install devscripts fakeroot
apt-get build-dep strongswan


Obtain and build the package

[codesyntax lang="bash"]

mkdir ~/work
cd ~/work
debcheckout strongswan
cd strongswan
sed -e '/dh_strip/ s/^#*/#/' -i debian/rules
sed -e 's/debhelper.*/debhelper,/g' -i debian/control
dpkg-buildpackage -rfakeroot -uc -b


One thought on “Build strongswan v5.5.0 debian package — with debug symbols”

  1. On Debian 8.7 Jessie (fresh install on a GCE, Google Compute Engine, VM) … I was unable to use `apt-get build-dep strongswan` as directed here. I ended with in a tangle with dh-systemd and debhelper dependencies which I finally had to use `aptitude` to resolve. Even then I need to try it twice, rejecting the first offered solution on the second attempt. Additionally I needed to add -d to the `dpkg-buildpackage` command.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.