forked from mirrors/nixpkgs
iputils: 20190515 -> 20190709
https://github.com/iputils/iputils/releases/tag/s20190709 See release notes for details, but of particular note is that this expression is now quite simpler due to the following: * ninfod now builds w/nettle! * update includes patches we fetched from upstream * cross should be handled now, during move to meson * prelim testing confirms, meson makes it much easier to get things right re:explanation given in comment (not propagating host/target info) * issue re:musl+idn2 appears resolved re:compilation, but results in unclear runtime errors regarding "invalid flags". Keep disabled as before as this is clearer at the expression level and reports failure to resolve instead which is a bit clearer. (testing with systemd-less iputils) This also means our iputils is openssl-free, which if nothing else is a nice reduction in trans. size :). (quick imperfect comparison shows: 39MB -> 35MB w/glibc 11.4 -> 7.9 w/musl ) iputils: nvm no IDN w/musl iputils: nvm keep idn disabled w/musl
This commit is contained in:
parent
3e867d16cd
commit
d5dc9a2140
|
@ -1,13 +0,0 @@
|
|||
diff --git a/ninfod/meson.build b/ninfod/meson.build
|
||||
index ea7ec1b..fada05b 100644
|
||||
--- a/ninfod/meson.build
|
||||
+++ b/ninfod/meson.build
|
||||
@@ -10,7 +10,7 @@ ninfod_sources = files('''
|
||||
ninfod_name.c
|
||||
'''.split())
|
||||
executable('ninfod', [ninfod_sources, git_version_h],
|
||||
- dependencies : [cap_dep, crypto_dep, rt_dep, threads],
|
||||
+ dependencies : [cap_dep, dependency('openssl'), rt_dep, threads],
|
||||
link_with : [libcommon],
|
||||
include_directories : inc,
|
||||
install: true,
|
|
@ -1,42 +1,27 @@
|
|||
{ stdenv, fetchFromGitHub, fetchpatch
|
||||
, meson, ninja, pkgconfig, gettext, libxslt, docbook_xsl_ns
|
||||
, libcap, nettle, libidn2, openssl, systemd
|
||||
, libcap, nettle, libidn2, systemd
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
let
|
||||
time = "20190515";
|
||||
# ninfod probably could build on cross, but the Makefile doesn't pass --host
|
||||
# etc to the sub configure...
|
||||
withNinfod = stdenv.hostPlatform == stdenv.buildPlatform;
|
||||
version = "20190709";
|
||||
sunAsIsLicense = {
|
||||
fullName = "AS-IS, SUN MICROSYSTEMS license";
|
||||
url = "https://github.com/iputils/iputils/blob/s${time}/rdisc.c";
|
||||
url = "https://github.com/iputils/iputils/blob/s${version}/rdisc.c";
|
||||
};
|
||||
in stdenv.mkDerivation {
|
||||
name = "iputils-${time}";
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "iputils";
|
||||
inherit version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "iputils";
|
||||
repo = "iputils";
|
||||
rev = "s${time}";
|
||||
sha256 = "1k2wzgk0d47d1g9k8c1a5l24ml8h8xxz1vrs0vfbyxr7qghdhn4i";
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "s${version}";
|
||||
sha256 = "04bp4af15adp79ipxmiakfp0ij6hx5qam266flzbr94pr8z8l693";
|
||||
};
|
||||
|
||||
# ninfod cannot be build with nettle yet:
|
||||
patches =
|
||||
[ ./build-ninfod-with-openssl.patch
|
||||
(fetchpatch { # build-sys/doc: Fix the dependency on xsltproc
|
||||
url = "https://github.com/iputils/iputils/commit/3b013f271931c3fe771e5a2c591f35d617de90f3.patch";
|
||||
sha256 = "0ilhlgiqdflry7km3ik8i4h1yymm5f5zmwyl5r029q7x1p8kinfw";
|
||||
})
|
||||
(fetchpatch { # build-sys: Make setcap really optional
|
||||
url = "https://github.com/iputils/iputils/commit/473be6467f995865244e7e68b2fa587a4ee79551.patch";
|
||||
sha256 = "0781147qaf0jwa177jbmh474r8hqs0jwgi5vgx9csb43jzdm8hqf";
|
||||
})
|
||||
];
|
||||
|
||||
mesonFlags =
|
||||
[ "-DUSE_CRYPTO=nettle"
|
||||
"-DBUILD_RARPD=true"
|
||||
|
@ -44,14 +29,12 @@ in stdenv.mkDerivation {
|
|||
"-DNO_SETCAP_OR_SUID=true"
|
||||
"-Dsystemdunitdir=etc/systemd/system"
|
||||
]
|
||||
++ optional (!withNinfod) "-DBUILD_NINFOD=false"
|
||||
# Disable idn usage w/musl (https://github.com/iputils/iputils/pull/111):
|
||||
++ optional stdenv.hostPlatform.isMusl "-DUSE_IDN=false";
|
||||
|
||||
nativeBuildInputs = [ meson ninja pkgconfig gettext libxslt.bin docbook_xsl_ns ];
|
||||
buildInputs = [ libcap nettle systemd ]
|
||||
++ optional (!stdenv.hostPlatform.isMusl) libidn2
|
||||
++ optional withNinfod openssl; # TODO: Build with nettle
|
||||
++ optional (!stdenv.hostPlatform.isMusl) libidn2;
|
||||
|
||||
meta = {
|
||||
homepage = https://github.com/iputils/iputils;
|
||||
|
|
Loading…
Reference in a new issue