From patchwork Fri Mar 6 23:13:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Legoll X-Patchwork-Id: 20556 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 98FEC27BBE4; Fri, 6 Mar 2020 23:14:17 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 41D9827BBEA for ; Fri, 6 Mar 2020 23:14:13 +0000 (GMT) Received: from localhost ([::1]:43392 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAMAW-0004D9-Mv for patchwork@mira.cbaines.net; Fri, 06 Mar 2020 18:14:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42640) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAMAO-0004Ce-3v for guix-patches@gnu.org; Fri, 06 Mar 2020 18:14:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAMAM-0005qv-S2 for guix-patches@gnu.org; Fri, 06 Mar 2020 18:14:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40021) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAMAM-0005qk-Ov for guix-patches@gnu.org; Fri, 06 Mar 2020 18:14:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jAMAM-0005uL-Jp for guix-patches@gnu.org; Fri, 06 Mar 2020 18:14:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#39961] [PATCH] gnu: Add traceroute. Resent-From: Vincent Legoll Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 06 Mar 2020 23:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39961 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 39961@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158353642022670 (code B ref -1); Fri, 06 Mar 2020 23:14:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Mar 2020 23:13:40 +0000 Received: from localhost ([127.0.0.1]:45994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAMA0-0005ta-BP for submit@debbugs.gnu.org; Fri, 06 Mar 2020 18:13:40 -0500 Received: from lists.gnu.org ([209.51.188.17]:45142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAM9y-0005tT-SE for submit@debbugs.gnu.org; Fri, 06 Mar 2020 18:13:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41911) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAM9u-0004Aa-SC for guix-patches@gnu.org; Fri, 06 Mar 2020 18:13:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAM9q-0004Ou-T5 for guix-patches@gnu.org; Fri, 06 Mar 2020 18:13:34 -0500 Received: from mail-il1-x12c.google.com ([2607:f8b0:4864:20::12c]:40292) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAM9q-0004LQ-KC for guix-patches@gnu.org; Fri, 06 Mar 2020 18:13:30 -0500 Received: by mail-il1-x12c.google.com with SMTP id g6so3562932ilc.7 for ; Fri, 06 Mar 2020 15:13:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=JoIibqJrJPud64DAADla5kZY82cMOkCcg46ZlNrkE1c=; b=ipU0FFborbJcGd9qX4TSAL5oO6eVn31Ke776bcFs6wi7NfmrX8HYRw2TXTZJ951Gfh 3YIXTF3DSyt0uAQ0VGJQ9q7L7TiUYq0hmC4rWU9AmOtRRWJhbuwkzRN0tmrvrLaLlEvd D/N+fdpdhk+/Fx0D17i/aibjvcTCIrXbw+wXnxBP5yx5QwP6NGhEeVwxDyu3s83GoII5 fmH+9+ozQIGT35Yo5AVxmWyZFE25CfOHH2Zim0aO4sJKDx1+HHS6cbsV3u3VLuBx+dm7 kiR36awbOrJqf76uH3KfZ7anTOOz7GsB1YyDMh5V06nNYOMhEfr4ykGOgXZppeC0EVGJ Siyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=JoIibqJrJPud64DAADla5kZY82cMOkCcg46ZlNrkE1c=; b=Y81VxL9dh9pkA2mULheeBx81Wdiw5kbWUN1LRn3VP+/lgP72eihuKU7MCPX0AOjlwa meHY/IOkZUIpUbNySmNmGYdVoqbOHH7MWnGkL1u1OHDaV5ProdLRe1IruW9Zy8UkjE9i WR6TXKZ8lgfaEI5WdX3T/dM40I8xsFfxohn4sWLg81Z/SD9LAYPCRMUAUxXuNMgsNsZs 7WPujbLexHyBeFzp6ENDqX2Kw+OJSMkvPqMLjeuKJ2VjAGuFOcHTzPCtZuixrjzJcZUi Dpxs5MUFHy70zlbBzbrKA2O5/xHMePDKqcpdBVvvU22de/b0lZ0oR2JXS4BdAnh3kX2r zGJQ== X-Gm-Message-State: ANhLgQ1HSapWtSVXzBFDBmkJXbnRgJqa5ffcvDIG5gvC/fFhpC3sOFEJ hQ6QDzB3pQxxOYlam7/QyPz6f53R+fEdFIr1i031M+mo X-Google-Smtp-Source: ADFU+vv+t0MSaeb/G4E+SeGGN4VPWBsaIc0YbT6hOc1g83wRfKu/6PwTAI3gjq1TCn47rPj2Hbs9mllsdplUKvKjFJ8= X-Received: by 2002:a05:6e02:605:: with SMTP id t5mr4889433ils.284.1583536409386; Fri, 06 Mar 2020 15:13:29 -0800 (PST) MIME-Version: 1.0 From: Vincent Legoll Date: Sat, 7 Mar 2020 00:13:18 +0100 Message-ID: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches This need an in-depth review, as there is something strange, I had to set LIBRARY_PATH to overcome gcc/ld not finding crt{i,1}.o I found the following bug: https://issues.guix.gnu.org/issue/32131 that met a similar issue... Please advise how to proceed further. From 5252f45030c9d725befcba698b0e5e9f9c49e00d Mon Sep 17 00:00:00 2001 From: Vincent Legoll Date: Sat, 7 Mar 2020 00:05:39 +0100 Subject: [PATCH] gnu: Add traceroute. * gnu/packages/networking.scm (traceroute): New variable. --- gnu/packages/networking.scm | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index eddfffd662..92b6391a53 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -2864,6 +2864,51 @@ Such interfaces are useful for VPN software, virtualization, emulation, simulation, and a number of other applications.") (license license:gpl2))) +(define-public traceroute + (package + (name "traceroute") + (version "2.1.0") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/traceroute/traceroute/" + "traceroute-" version "/traceroute-" version ".tar.gz")) + (sha256 + (base32 "1dh32vcfawkl1p9g4ral1p0camds4paqr8db1kaqxwyk6hmd4s9n")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No tests. + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-make + (lambda _ + (substitute* "Make.rules" + ((" -lm ") " ")) + #t)) + (replace 'build + (lambda* (#:key inputs #:allow-other-keys) + (let* ((libglibc (assoc-ref inputs "glibc")) + (headers (assoc-ref inputs "linux-libre-headers"))) + (invoke "make" "LDFLAGS=-lm -L../libsupp" + (string-append "LIBRARY_PATH=" libglibc "/lib") + (string-append "CFLAGS=-I" headers "/include"))))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (invoke "make" (string-append "prefix=" out) "install")))) + (delete 'bootstrap) ;there is no configure.ac file + (delete 'configure)))) ;there is no configure script + (native-inputs + `(("glibc" ,glibc) + ("linux-libre-headers" ,linux-libre-headers))) + (home-page "http://traceroute.sourceforge.net/") + (synopsis "Tracks the route taken by packets over an IP network") + (description "Traceroute tracks the route packets taken from an IP network +on their way to a given host. It utilizes the IP protocol's time to live (TTL) +field and attempts to elicit an ICMP TIME_EXCEEDED response from each gateway +along the path to the host.") + (license license:gpl2))) + (define-public vde2 (package (name "vde2") -- 2.25.1