Skip to content
Snippets Groups Projects
Commit a1f1976d authored by Simon McVittie's avatar Simon McVittie
Browse files

build: Automatically special-case sysroot=/

parent 774bf9c5
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,9 @@ _build/sysroot.tar.gz: sysroot/debos.yaml
mkdir -p $(dir $@)
debos -t mirror:$(mirror) -t ospack:$@ sysroot/debos.yaml
ifeq ($(sysroot),/)
in_sysroot =
else
in_sysroot = \
bwrap \
--ro-bind $(CURDIR)/$(sysroot) / \
......@@ -27,6 +30,7 @@ in_sysroot = \
--chdir $(CURDIR) \
--setenv LC_ALL C.UTF-8 \
$(NULL)
endif
install:
rm -fr relocatable-install
......
......@@ -40,13 +40,17 @@ for libcapsule 0.20180430.0 or later, on a system with autoconf-archive
dcmd cp ../build-area/libcapsule_0.20180430.0-0co1.dsc .
To make the built version compatible with older systems, you will need a
Debian 8 'jessie' chroot with some extra packages. SteamOS 2 'brewmaster'
Debian 8 'jessie' environment with some extra packages. SteamOS 2 'brewmaster'
is not suitable, because its amd64 and i386 linux-libc-dev packages are
not co-installable.
The build also needs `bubblewrap`. To make the relocatable installation,
by default it relies on [debos][] and [qemu-system-x86_64][qemu]. If
you have that, you can just run:
The simplest way is to do the build in a Debian 8 'jessie' container:
make sysroot=/
Alternatively, you can use `bubblewrap` to enter a sysroot prepared
using [debos][] and [qemu-system-x86_64][qemu]. If
you have all those, you can just run:
make
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment