Browse Source

on debian-9 change dependencies s.t. it creates a vanilla directory with only libc6

master
Arian Sanusi Arian Sanusi (p≡p Foundation) 2 years ago
parent
commit
189f63432f
No known key found for this signature in database GPG Key ID: 49B08FCFF6BC3B2
2 changed files with 6 additions and 7 deletions
  1. +3
    -6
      README.md
  2. +3
    -1
      dependencies_debian_9.sh

+ 3
- 6
README.md View File

@@ -3,8 +3,8 @@
this build system has two stages:
- dependencies_$ID_$Version_ID.sh # installs dependencies and prepares a vanilla distribution installation
- Makefile # make all builds
We distinct between "well supported linuxes", distributions for that we know they ship supported versions of gnupg and libgpgme and we have a dependencies*.sh script for. On the other hand are "linuxes with basic support" for which we ship _all_ taken from debian-9 or built by us.
(FIXME: this sentence superseeded by gpg not portable :( )
We distinct between "well supported linuxes", distributions for that we know they ship supported versions of gnupg and we have a dependencies*.sh script for. The version built on debian generates a pep-distribution that should run on all linux installation with a supported gpg version (only if the build- and target architecture match that is)

## well-supported Linuxes
- Debian 9
@@ -19,7 +19,7 @@ run dependencies_${ID}_${VERSION_ID}.sh for your distribution as root - this has
For each actual build, create a user solely for this purpose. On Debian:
``` adduser --gecos '' pep-enigmail-build ```

- clone the common directory to ~pep-enigmail-build
- clone the this repository to ~pep-enigmail-build/common
- ln -s common/Makefile .
- export LD_LIBRARY_PATH=~/build/lib
- make
@@ -27,6 +27,3 @@ For each actual build, create a user solely for this purpose. On Debian:
### Fedora
on fedora the libtool shipped with and used by libetpan is broken, therefore use the system one:
``` cd libetpan; ln -s `which libtool` libtool```

## Building for Linux with basic support
start on debian-9 and run its preparations.sh, but replace common/vanilla with an empty directory. This leads to all dependencies being integrated into the xpi.

+ 3
- 1
dependencies_debian_9.sh View File

@@ -4,5 +4,7 @@ set -e
. `dirname $0`/dependencies_debuntu_common.sh

cd `dirname $0`
debootstrap stretch vanilla || ( echo "could not debootstrap, are you in lxc? then debootstrap outside"; read dontcare )
# emulate libc6 installed in vanilla: the build checks for existance of any file in target
# hence having directories there suffices - unceccessary to create dirs and then the files
dpkg -L libc6 | while read dep ; do mkdir -p "vanilla/$dep" ; done
cd -

Loading…
Cancel
Save