Skip to content

Instantly share code, notes, and snippets.

@lvm
Created October 29, 2017 04:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lvm/5750dee6880fc60be15732fd0785908a to your computer and use it in GitHub Desktop.
Save lvm/5750dee6880fc60be15732fd0785908a to your computer and use it in GitHub Desktop.
Building supercollider_*.deb

Supercollider.deb

Additional info to Dan Stowell's fantastic post about building supercollider.

Note: This are the steps I made to build the binaries based on that post.

Docker + Debian

To make things simple, created a very simple Debian image based on "stable" with the necessary dependencies to properly build the .deb files. See Dockerfile.

In order to build the Docker image:

$ docker build -t scdeb .

To run it after:

$ docker run --rm -it scdeb

Dan's post

Once you have a clean Debian installation working, just follow his advice.
The only thing that changes are:

gbp import-orig --pristine-tar --sign-tags ${path-to-fetched-tarball}
He describes ../tarballs as the directory where the repacked tar is placed, in my case this directory was simply .. (the directory above).

gbp buildpackage -S --git-export-dir=../buildarea
Same thing here: He describes ../buildarea as the directory where the repacked tar is placed, in my case this directory was simply .. (the directory above). Also, since I'm not Felipe Sateler nor Dan Stowell, I wasn't able to sign the .changes or the source, so I used the flags -uc -us which doesn't sign the .changes / source respectively.
ie: gbp buildpackage -S -uc -us --git-export-dir=../

That's it.

If everything went well, you'll see a bunch of .deb files placed in the directory above of the cloned repository.

FROM debian:stable
MAINTAINER Mauro <mauro@sdf.org>
###
# Building env
#
ENV LANG C.UTF-8
ENV USER root
ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_PRIORITY critical
ENV DEBCONF_NOWARNINGS yes
ENV QUILT_PATCHES=debian/patches
###
# Distro setup: Sources repositories & SC build dependencies
#
RUN echo "deb-src http://deb.debian.org/debian stable main" >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get -y upgrade \
&& apt-get install -yq \
devscripts git-buildpackage \
ca-certificates quilt \
libwww-perl gnupg2 \
file pristine-tar fakeroot \
--no-install-recommends \
&& apt-get build-dep -yq supercollider
WORKDIR /root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment