3
0
Fork 0
forked from mirrors/nixpkgs

skarnet.org packages: fix darwin build

The configure scripts have been changed so that `--build` is now the
way to specify (non-cross compiling) build target, which is necessary
on darwin for binary compatibility across darwin versions.
This commit is contained in:
Patrick Mahoney 2017-03-26 17:30:41 -05:00
parent eab30996bd
commit 09a5007797
7 changed files with 13 additions and 11 deletions

View file

@ -30,7 +30,7 @@ in stdenv.mkDerivation rec {
# Explicitly setting target ensures code can be compiled against a skalibs # Explicitly setting target ensures code can be compiled against a skalibs
# binary built on a different version of darwin. # binary built on a different version of darwin.
# http://www.skarnet.org/cgi-bin/archive.cgi?1:mss:623:heiodchokfjdkonfhdph # http://www.skarnet.org/cgi-bin/archive.cgi?1:mss:623:heiodchokfjdkonfhdph
++ (stdenv.lib.optional stdenv.isDarwin "--target=${stdenv.system}"); ++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.system}");
meta = { meta = {
homepage = http://skarnet.org/software/skalibs/; homepage = http://skarnet.org/software/skalibs/;

View file

@ -28,7 +28,7 @@ in stdenv.mkDerivation rec {
"--with-dynlib=${skalibs}/lib" "--with-dynlib=${skalibs}/lib"
] ]
++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ]) ++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ])
++ (stdenv.lib.optional stdenv.isDarwin "--target=${stdenv.system}"); ++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.system}");
meta = { meta = {
homepage = http://skarnet.org/software/execline/; homepage = http://skarnet.org/software/execline/;

View file

@ -13,17 +13,19 @@ stdenv.mkDerivation rec {
dontDisableStatic = true; dontDisableStatic = true;
nativeBuildInputs = []
++ optional stdenv.isDarwin gcc;
configureFlags = [ configureFlags = [
"--enable-absolute-paths" "--enable-absolute-paths"
"--with-sysdeps=${skalibs}/lib/skalibs/sysdeps" "--with-sysdeps=${skalibs}/lib/skalibs/sysdeps"
"--with-include=${skalibs}/include" "--with-include=${skalibs}/include"
"--with-lib=${skalibs}/lib" "--with-lib=${skalibs}/lib"
"--with-dynlib=${skalibs}/lib" "--with-dynlib=${skalibs}/lib"
]; ]
# On darwin, the target triplet from -dumpmachine includes version number, but
# skarnet.org software uses the triplet to test binary compatibility.
# Explicitly setting target ensures code can be compiled against a skalibs
# binary built on a different version of darwin.
# http://www.skarnet.org/cgi-bin/archive.cgi?1:mss:623:heiodchokfjdkonfhdph
++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.system}");
meta = { meta = {
homepage = http://www.skarnet.org/software/s6-portable-utils/; homepage = http://www.skarnet.org/software/s6-portable-utils/;

View file

@ -28,7 +28,7 @@ in stdenv.mkDerivation rec {
"--with-dynlib=${skalibs}/lib" "--with-dynlib=${skalibs}/lib"
] ]
++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ]) ++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ])
++ (stdenv.lib.optional stdenv.isDarwin "--target=${stdenv.system}"); ++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.system}");
meta = { meta = {
homepage = http://www.skarnet.org/software/s6-dns/; homepage = http://www.skarnet.org/software/s6-dns/;

View file

@ -34,7 +34,7 @@ in stdenv.mkDerivation rec {
"--with-dynlib=${s6}/lib" "--with-dynlib=${s6}/lib"
"--with-dynlib=${s6Dns}/lib" "--with-dynlib=${s6Dns}/lib"
] ]
++ (stdenv.lib.optional stdenv.isDarwin "--target=${stdenv.system}"); ++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.system}");
meta = { meta = {
homepage = http://www.skarnet.org/software/s6-networking/; homepage = http://www.skarnet.org/software/s6-networking/;

View file

@ -32,7 +32,7 @@ in stdenv.mkDerivation rec {
"--with-dynlib=${s6}/lib" "--with-dynlib=${s6}/lib"
] ]
++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ]) ++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ])
++ (stdenv.lib.optional stdenv.isDarwin "--target=${stdenv.system}"); ++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.system}");
meta = { meta = {
homepage = http://skarnet.org/software/s6-rc/; homepage = http://skarnet.org/software/s6-rc/;

View file

@ -29,7 +29,7 @@ in stdenv.mkDerivation rec {
"--with-dynlib=${execline}/lib" "--with-dynlib=${execline}/lib"
] ]
++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ]) ++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ])
++ (stdenv.lib.optional stdenv.isDarwin "--target=${stdenv.system}"); ++ (stdenv.lib.optional stdenv.isDarwin "--build=${stdenv.system}");
meta = { meta = {
homepage = http://www.skarnet.org/software/s6/; homepage = http://www.skarnet.org/software/s6/;