From patchwork Tue Jul 5 13:25:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 644770 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rkPly1Q9rz9sBG for ; Tue, 5 Jul 2016 23:26:06 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=anEmxex8; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id EE19330D1E; Tue, 5 Jul 2016 13:26:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ROokHeuZyPgp; Tue, 5 Jul 2016 13:25:55 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id C32C230CF4; Tue, 5 Jul 2016 13:25:52 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id EE3C61C1F4B for ; Tue, 5 Jul 2016 13:25:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E63EB8B2C2 for ; Tue, 5 Jul 2016 13:25:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FyMpKdMjB8W7 for ; Tue, 5 Jul 2016 13:25:47 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by whitealder.osuosl.org (Postfix) with ESMTPS id 0CF17876F7 for ; Tue, 5 Jul 2016 13:25:47 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id c82so28711110wme.3 for ; Tue, 05 Jul 2016 06:25:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=j/RszFwWo+slp81zmQCgbyDF53KJFql5WfqQnHK3r7c=; b=anEmxex8XPocQWzEo/rS9kBLMOI3xWK9kVsO5L2ORcHb/jtYuNUEmiLijUdSF2/+xB aU5zGZUcRVhBF60/K75PCoKhAYf/GHScWP+F2J4OhWjhQibC8QEc5kko66p3tJyS2EVw nNKRUO5CBL1benCeqr3aNWXVYLMj9LotSFLR2fTyYlyG0NJY4y9SCHC8K+sLl5AuYsG0 TGqGzBM5guwW0fLldqLMTsbPvbHyAagr3d/y+z3KTI2rBHmlz7LKJ1PurABx4IgmDdNP 4KbY3OnemN2RZfwg4CRW1uAnddAuZTw76BUg8jh81IaeO0OGUzNXgMaEArHMIT3mgEKK WXvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=j/RszFwWo+slp81zmQCgbyDF53KJFql5WfqQnHK3r7c=; b=D2wxi91NgzCllzsPVvtErd4VxXLCIaCD5HYTJvDO5lnev684rzrJx1nmJMsrzvP5uT 1kaRoCSzFGQJDLla3MHYq5kYTkxa0u9EQmszJPExpHSGlfYc79Ic3U7vA0l8Vwa2X957 kTyuEog0GIQ79VL9PqOlHKRkY0VVNXC+4qgmZrWVoDS5oof8TOLNC8tXDmkMlQKKexcY Ikf8NHM0mV/qZkwG4SJ+bheEhqNcTBjYy9znW768pVPpV447llSbSlttQaSoO6yiQPid yIga6dtE/UzLZ78pCuufbgAAf2wiDgYV98zbB0Sz9dcx3gdiB3y0bKptdjNmvRrEIMGP /ymg== X-Gm-Message-State: ALyK8tJsY5Ky0SUDxCbzlGQgfQBHzJ3Y81/CvoPy12YnFDlAvjIjroMKxdODfXHGgEYPeA== X-Received: by 10.28.88.206 with SMTP id m197mr15099747wmb.18.1467725145487; Tue, 05 Jul 2016 06:25:45 -0700 (PDT) Received: from gourin.home ([2a01:cb19:84c0:6b00:3e97:eff:fe77:54d6]) by smtp.gmail.com with ESMTPSA id g2sm4087836wjd.5.2016.07.05.06.25.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Jul 2016 06:25:44 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Tue, 5 Jul 2016 15:25:41 +0200 Message-Id: <1467725141-26791-1-git-send-email-yann.morin.1998@free.fr> X-Mailer: git-send-email 2.7.4 Cc: "Yann E. MORIN" Subject: [Buildroot] [PATCH] package/liboping: fix build after bump X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes: http://autobuild.buildroot.org/results/6a9/6a9b4d7b1b3cd72e32579fbaf5a69dbde0fea8e4/ Signed-off-by: "Yann E. MORIN" Cc: Gustavo Zacarias --- .../liboping/0001-clock_gettime-needs-lrt.patch | 29 ++++++++++++++++++++++ package/liboping/liboping.mk | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 package/liboping/0001-clock_gettime-needs-lrt.patch diff --git a/package/liboping/0001-clock_gettime-needs-lrt.patch b/package/liboping/0001-clock_gettime-needs-lrt.patch new file mode 100644 index 0000000..63b2e55 --- /dev/null +++ b/package/liboping/0001-clock_gettime-needs-lrt.patch @@ -0,0 +1,29 @@ +configure: also check for clockgettime() + +clock_gettime() is also in -lrt so we also need to check for it. + +Signed-off-by: "Yann E. MORIN" + +diff -durN liboping-1.9.0.orig/configure.ac liboping-1.9.0/configure.ac +--- liboping-1.9.0.orig/configure.ac 2016-06-27 08:41:10.000000000 +0200 ++++ liboping-1.9.0/configure.ac 2016-07-05 15:14:15.793663190 +0200 +@@ -199,12 +199,16 @@ + + AC_SUBST(LIBOPING_PC_LIBS_PRIVATE) + +-nanosleep_needs_rt="no" ++needs_rt="no" + AC_CHECK_FUNCS(nanosleep, [], + AC_CHECK_LIB(rt, nanosleep, +- [nanosleep_needs_rt="yes"], ++ [needs_rt="yes"], + AC_MSG_ERROR(cannot find nanosleep))) +-AM_CONDITIONAL(BUILD_WITH_LIBRT, test "x$nanosleep_needs_rt" = "xyes") ++AC_CHECK_FUNCS(clock_gettime, [], ++ AC_CHECK_LIB(rt, nanosleep, ++ [needs_rt="yes"], ++ AC_MSG_ERROR(cannot find clock_gettime))) ++AM_CONDITIONAL(BUILD_WITH_LIBRT, test "x$needs_rt" = "xyes") + + with_ncurses="no" + AC_CHECK_HEADERS(ncursesw/ncurses.h ncurses.h, [with_ncurses="yes"], []) diff --git a/package/liboping/liboping.mk b/package/liboping/liboping.mk index 6e071a5..dd70387 100644 --- a/package/liboping/liboping.mk +++ b/package/liboping/liboping.mk @@ -13,4 +13,6 @@ LIBOPING_CONF_OPTS = --without-perl-bindings LIBOPING_LICENSE = LGPLv2.1+, GPLv2 LIBOPING_LICENSE_FILES = COPYING +LIBOPING_AUTORECONF = YES + $(eval $(autotools-package))