diff options
author | Andrés J. Díaz | 2016-09-17 19:31:14 +0200 |
---|---|---|
committer | Andrés J. Díaz | 2016-09-17 19:31:14 +0200 |
commit | bbee9f86b3fe0da6b2799ba9239bd01ed4fc97a8 (patch) | |
tree | c5022ad9e3b5c2d78aea6109f384b9bfd7f0f08f /PKGBUILD | |
parent | 9dbac67fbd01e8e52aa66ec97f01f224383c7e6c (diff) | |
download | aur-bbee9f86b3fe0da6b2799ba9239bd01ed4fc97a8.tar.gz |
Fixing GPG Key and -fPIC compiling problem
- Since version 1.1.6, sks project tarball is signed with generic GPG
key, insted of personal key. There are an email in sks-devel list
which confirms the change, signed by the developer of the project:
https://lists.gnupg.org/pipermail/gnupg-users/2016-August/056398.html
- Due how ocaml is compiled in arch, dynamic linking fails during sks
compilation, to workarround the problem added -runtime-variant _pic.
- Force make all to run in one core with -j1, because parallel
compilation is not working for Bdb module.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -22,7 +22,7 @@ md5sums=('43f0cc8b4b43d798d453fedad840f926' '9cf5495b95e84ed91788c04c9ce1b8c1' 'e8c7dcbb7db3ad879d391a7c0127a068' 'f28a2d0b151996a99bb006b8e1d29408') -validpgpkeys=(65F173BEC0450DA07A58619716E0CF8D6B0B9508) # Kristian Fiskerstrand +validpgpkeys=(C90EF1430B3AC0DFD00E6EA541259773973A612A) # SKS Keyserver Signing Key prepare() { @@ -32,6 +32,15 @@ prepare() { patch -Np1 -i "$srcdir/500_debian_fhs.patch" cp Makefile.local.unused Makefile.local + + # XXX Due to how ocaml package is generated in arch, we cannot link + # dynamically, so we workarround the problem using runtime-variant _pic + # More info: + # - https://wiki.ubuntu.com/SteveBeattie/PIENotes#Incompatible_relocation_R_X86_64_32 + # - https://bugs.archlinux.org/task/42748 + # - http://caml.inria.fr/mantis/view.php?id=6693 + echo "OCAMLOPT=ocamlopt -runtime-variant _pic" >> Makefile.local + sed -i -e 's#LIBDB=-ldb-4.6#LIBDB=-ldb-5.3#g' Makefile.local sed -i -e "s#/usr/local#$pkgdir/usr#g" Makefile.local sed -i -e "s#/usr/share/man#$pkgdir/usr/share/man#g" Makefile.local @@ -39,10 +48,11 @@ prepare() { build() { cd "$pkgname-$pkgver" - unset MAKEFLAGS make dep - make CFLAGS="$CFLAGS -I`ocamlc -where` -I ." all + + # XXX Parallel compiling not supporting for Bdb module, force -j1 always. + make CFLAGS="$CFLAGS -I`ocamlc -where` -I ." -j1 all } package() { |