From 0cfed263f16a28ccf8130e543d264cf061c409a3 Mon Sep 17 00:00:00 2001 From: q66 Date: Wed, 14 Aug 2019 16:23:17 +0200 Subject: [PATCH] gip: fix build on ppc*-musl --- srcpkgs/gip/template | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/srcpkgs/gip/template b/srcpkgs/gip/template index 590b7a0d5d0..17b19df9814 100644 --- a/srcpkgs/gip/template +++ b/srcpkgs/gip/template @@ -1,7 +1,7 @@ # Template file for 'gip' pkgname=gip version=0.6.0 -revision=1 +revision=2 build_style=cargo short_desc="CLI tool to get global IP address" maintainer="Jan Christian Grünhage " @@ -10,6 +10,13 @@ homepage="https://github.com/dalance/gip" distfiles="https://github.com/dalance/gip/archive/v${version}.tar.gz" checksum=b8f5ba15a554ba4cb85a32449a8f665db24ab9dde7c47e7e6e10724fc9a76422 +pre_build() { + # the defined version (0.2.39 at the time of writing) is buggy on + # ppc64*-musl, pin the oldest newer working version; on next update + # please check Cargo.lock to verify if this is still necessary + cargo update --package libc --precise 0.2.43 +} + post_install() { vlicense LICENSE-MIT }