unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#39961] [PATCH] gnu: Add traceroute.
@ 2020-03-06 23:13 Vincent Legoll
  2020-03-07  1:28 ` Vincent Legoll
                   ` (7 more replies)
  0 siblings, 8 replies; 12+ messages in thread
From: Vincent Legoll @ 2020-03-06 23:13 UTC (permalink / raw)
  To: 39961

[-- Attachment #1: Type: text/plain, Size: 284 bytes --]

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.

-- 
Vincent Legoll

[-- Attachment #2: 0001-gnu-Add-traceroute.patch --]
[-- Type: text/x-patch, Size: 2777 bytes --]

From 5252f45030c9d725befcba698b0e5e9f9c49e00d Mon Sep 17 00:00:00 2001
From: Vincent Legoll <vincent.legoll@gmail.com>
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


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [bug#39961] [PATCH] gnu: Add traceroute.
  2020-03-06 23:13 [bug#39961] [PATCH] gnu: Add traceroute Vincent Legoll
@ 2020-03-07  1:28 ` Vincent Legoll
  2020-03-07 11:06 ` Vincent Legoll
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 12+ messages in thread
From: Vincent Legoll @ 2020-03-07  1:28 UTC (permalink / raw)
  To: 39961

tracerouted OK to 9.9.9.9

-- 
Vincent Legoll

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [bug#39961] [PATCH] gnu: Add traceroute.
  2020-03-06 23:13 [bug#39961] [PATCH] gnu: Add traceroute Vincent Legoll
  2020-03-07  1:28 ` Vincent Legoll
@ 2020-03-07 11:06 ` Vincent Legoll
  2020-03-07 11:08 ` Vincent Legoll
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 12+ messages in thread
From: Vincent Legoll @ 2020-03-07 11:06 UTC (permalink / raw)
  To: 39961

I've since seen a few other issues on the same subject, but cannot
find a way to get it work without setting LIBRARY_PATH...

I tried guix environment --ad-hoc gcc-toolchain, adding the missed
GUIX_PROFILE to .bash_profile, etc.

-- 
Vincent Legoll

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [bug#39961] [PATCH] gnu: Add traceroute.
  2020-03-06 23:13 [bug#39961] [PATCH] gnu: Add traceroute Vincent Legoll
  2020-03-07  1:28 ` Vincent Legoll
  2020-03-07 11:06 ` Vincent Legoll
@ 2020-03-07 11:08 ` Vincent Legoll
  2020-03-07 13:09 ` Leo Famulari
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 12+ messages in thread
From: Vincent Legoll @ 2020-03-07 11:08 UTC (permalink / raw)
  To: 39961

I am running all this through ssh into a VM, so I also tried to run
with bash -l...

This is probably misconfiguration on my end...

-- 
Vincent Legoll

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [bug#39961] [PATCH] gnu: Add traceroute.
  2020-03-06 23:13 [bug#39961] [PATCH] gnu: Add traceroute Vincent Legoll
                   ` (2 preceding siblings ...)
  2020-03-07 11:08 ` Vincent Legoll
@ 2020-03-07 13:09 ` Leo Famulari
  2020-03-07 13:23   ` Vincent Legoll
  2020-12-28 14:45 ` [bug#39961] traceroute Vincent Legoll
                   ` (3 subsequent siblings)
  7 siblings, 1 reply; 12+ messages in thread
From: Leo Famulari @ 2020-03-07 13:09 UTC (permalink / raw)
  To: Vincent Legoll; +Cc: 39961

On Sat, Mar 07, 2020 at 12:13:18AM +0100, Vincent Legoll wrote:
> +       (uri (string-append "mirror://sourceforge/traceroute/traceroute/"
> +               "traceroute-" version "/traceroute-" version ".tar.gz"))

How does this compare to the traceroute provided by the inetutils
package?

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [bug#39961] [PATCH] gnu: Add traceroute.
  2020-03-07 13:09 ` Leo Famulari
@ 2020-03-07 13:23   ` Vincent Legoll
  0 siblings, 0 replies; 12+ messages in thread
From: Vincent Legoll @ 2020-03-07 13:23 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 39961

On Sat, Mar 7, 2020 at 2:09 PM Leo Famulari <leo@famulari.name> wrote:
> How does this compare to the traceroute provided by the inetutils
> package?

It looks like this one does not need special permissions to run:

guest@guixsd ~/dev/repo/guix [env]$
/gnu/store/3h3h9qr14l7m1cwxi9598jzc3qd5pzaf-traceroute-2.1.0/bin/traceroute
-n 9.9.9.9
traceroute to 9.9.9.9 (9.9.9.9), 30 hops max, 60 byte packets
[...]
 7  212.27.56.30  45.227 ms  41.741 ms  41.734 ms
 8  212.27.56.38  48.909 ms  49.304 ms  48.599 ms
 9  212.27.56.41  55.846 ms  50.545 ms  51.603 ms
10  195.66.225.238  54.105 ms  51.924 ms  56.401 ms
11  9.9.9.9  54.743 ms !X  50.748 ms !X  52.979 ms !X

guest@guixsd ~/dev/repo/guix [env]$
/gnu/store/ljwvyw48n2j28q0w96qykr04wcgwzcnh-inetutils-1.9.4/bin/traceroute
9.9.9.9
traceroute to 9.9.9.9 (9.9.9.9), 64 hops max
/gnu/store/ljwvyw48n2j28q0w96qykr04wcgwzcnh-inetutils-1.9.4/bin/traceroute:
socket: Operation not permitted

guest@guixsd ~/dev/repo/guix [env]$ sudo
/gnu/store/ljwvyw48n2j28q0w96qykr04wcgwzcnh-inetutils-1.9.4/bin/traceroute
9.9.9.9
traceroute to 9.9.9.9 (9.9.9.9), 64 hops max
[...]
  7   212.27.56.30  51.092ms  38.423ms  34.532ms
  8   212.27.56.38  44.764ms  41.931ms  44.963ms
  9   212.27.56.41  55.887ms  50.083ms  49.295ms
 10   195.66.225.238  51.184ms  62.666ms  57.945ms
 11   9.9.9.9  48.800ms !*  48.870ms !*  61.399ms !*

guest@guixsd ~/dev/repo/guix [env]$ ls -lh
/gnu/store/3h3h9qr14l7m1cwxi9598jzc3qd5pzaf-traceroute-2.1.0/bin/traceroute
/gnu/store/ljwvyw48n2j28q0w96qykr04wcgwzcnh-inetutils-1.9.4/bin/traceroute
-r-xr-xr-x 8 root root 85K Jan  1  1970
/gnu/store/3h3h9qr14l7m1cwxi9598jzc3qd5pzaf-traceroute-2.1.0/bin/traceroute
-r-xr-xr-x 2 root root 70K Jan  1  1970
/gnu/store/ljwvyw48n2j28q0w96qykr04wcgwzcnh-inetutils-1.9.4/bin/traceroute

-- 
Vincent Legoll

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [bug#39961] traceroute
  2020-03-06 23:13 [bug#39961] [PATCH] gnu: Add traceroute Vincent Legoll
                   ` (3 preceding siblings ...)
  2020-03-07 13:09 ` Leo Famulari
@ 2020-12-28 14:45 ` Vincent Legoll
  2021-01-01 12:08   ` Christopher Baines
  2021-01-11 16:31 ` [bug#39961] New patch Vincent Legoll
                   ` (2 subsequent siblings)
  7 siblings, 1 reply; 12+ messages in thread
From: Vincent Legoll @ 2020-12-28 14:45 UTC (permalink / raw)
  To: 39961

ping ?

Anything I should add ?

-- 
Vincent Legoll




^ permalink raw reply	[flat|nested] 12+ messages in thread

* [bug#39961] traceroute
  2020-12-28 14:45 ` [bug#39961] traceroute Vincent Legoll
@ 2021-01-01 12:08   ` Christopher Baines
  0 siblings, 0 replies; 12+ messages in thread
From: Christopher Baines @ 2021-01-01 12:08 UTC (permalink / raw)
  To: Vincent Legoll; +Cc: 39961

[-- Attachment #1: Type: text/plain, Size: 1736 bytes --]


Vincent Legoll <vincent.legoll@gmail.com> writes:

> ping ?
>
> Anything I should add ?

This traceroute implementation looks to be particularly difficult to
build, just searching the web for some of the errors brings up other
people having problems with it (like [1]).

1: https://patchwork.ozlabs.org/project/buildroot/patch/1539902241-10211-1-git-send-email-sergio.prado@e-labworks.com/

Some comments though, I'd suggest transforming what you're doing with
make flags from modifying the phases to adding to the #:make-flags
argument, so something like this:

       #:make-flags
       (list (string-append "LIBRARY_PATH="
                            (assoc-ref %build-inputs "libc")
                            "/lib")
             (string-append "CFLAGS=-I"
                            (assoc-ref %build-inputs "kernel-headers")
                            "/include")
             "LDFLAGS=-lm -L../libsupp"
             (string-append "prefix=" (assoc-ref %outputs "out")))

What I've also done here is used the %build-inputs alist, which includes
the implicit libc and kernel-headers inputs, so you can remove those
inputs from the package definition.

As for the -lm issue with the Makefile, that's pretty frustrating. The
best thing I could come up with is something like this:

             (substitute* "default.rules"
               ((" \\$\\(LIBDEPS\\)") "$(filter-out -l%,$(LIBDEPS))"))

That has the advantage of still passing the -lm flag to gcc, and just
avoiding make tripping up over it.

Finally, I think the license might be gpl2+, with lgpl2.1+ for libsupp,
so it would be good to list both of those, with a comment describing
what the lgpl license applies to.

Could you send an updated patch?

Thanks,

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [bug#39961] New patch
  2020-03-06 23:13 [bug#39961] [PATCH] gnu: Add traceroute Vincent Legoll
                   ` (4 preceding siblings ...)
  2020-12-28 14:45 ` [bug#39961] traceroute Vincent Legoll
@ 2021-01-11 16:31 ` Vincent Legoll
  2021-01-11 16:31 ` [bug#39961] [PATCH] gnu: Add traceroute Vincent Legoll
  2021-01-11 16:32 ` Vincent Legoll
  7 siblings, 0 replies; 12+ messages in thread
From: Vincent Legoll @ 2021-01-11 16:31 UTC (permalink / raw)
  To: 39961

Hello,

following this is an updated patch, with
Christopher's feddback applied.

The nice thing is it now builds properly
without the LIBRABRY_PATH and the other
hacks. The licenses should be also good
now.

Is this OK ?

-- 
Vincent Legoll




^ permalink raw reply	[flat|nested] 12+ messages in thread

* [bug#39961] [PATCH] gnu: Add traceroute.
  2020-03-06 23:13 [bug#39961] [PATCH] gnu: Add traceroute Vincent Legoll
                   ` (5 preceding siblings ...)
  2021-01-11 16:31 ` [bug#39961] New patch Vincent Legoll
@ 2021-01-11 16:31 ` Vincent Legoll
  2021-01-11 16:32 ` Vincent Legoll
  7 siblings, 0 replies; 12+ messages in thread
From: Vincent Legoll @ 2021-01-11 16:31 UTC (permalink / raw)
  To: 39961; +Cc: Vincent Legoll

* 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 83a99ded72..5055cf399d 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -3680,6 +3680,51 @@ simulation, and a number of other applications.")
 network.  This must be enabled on the target host, usually in the BIOS.")
     (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.30.0





^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [bug#39961] [PATCH] gnu: Add traceroute.
  2020-03-06 23:13 [bug#39961] [PATCH] gnu: Add traceroute Vincent Legoll
                   ` (6 preceding siblings ...)
  2021-01-11 16:31 ` [bug#39961] [PATCH] gnu: Add traceroute Vincent Legoll
@ 2021-01-11 16:32 ` Vincent Legoll
  2021-07-14  3:15   ` bug#39961: " Maxim Cournoyer
  7 siblings, 1 reply; 12+ messages in thread
From: Vincent Legoll @ 2021-01-11 16:32 UTC (permalink / raw)
  To: 39961; +Cc: Vincent Legoll

* gnu/packages/networking.scm (traceroute): New variable.
---
 gnu/packages/networking.scm | 39 +++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 83a99ded72..4c3faaa578 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -3680,6 +3680,45 @@ simulation, and a number of other applications.")
 network.  This must be enabled on the target host, usually in the BIOS.")
     (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.
+       #:make-flags
+       (list (string-append "LIBRARY_PATH="
+                            (assoc-ref %build-inputs "libc")           "/lib")
+             (string-append "CFLAGS=-I"
+                            (assoc-ref %build-inputs "kernel-headers") "/include")
+             "LDFLAGS=-lm -L../libsupp"
+             (string-append "prefix=" (assoc-ref %outputs "out")))
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-make
+           (lambda _
+             (substitute* "default.rules"
+               ((" \\$\\(LIBDEPS\\)") "$(filter-out -l%,$(LIBDEPS))"))
+             #t))
+         (delete 'bootstrap)           ; there is no configure.ac file
+         (delete 'configure))))        ; there is no configure script
+    (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+
+               license:lgpl2.1+)))) ; for the libsupp subdirectory
+
 (define-public vde2
   (package
     (name "vde2")
-- 
2.30.0





^ permalink raw reply related	[flat|nested] 12+ messages in thread

* bug#39961: [PATCH] gnu: Add traceroute.
  2021-01-11 16:32 ` Vincent Legoll
@ 2021-07-14  3:15   ` Maxim Cournoyer
  0 siblings, 0 replies; 12+ messages in thread
From: Maxim Cournoyer @ 2021-07-14  3:15 UTC (permalink / raw)
  To: Vincent Legoll; +Cc: 39961-done, Christopher Baines

Hello,

Vincent Legoll <vincent.legoll@gmail.com> writes:

> * gnu/packages/networking.scm (traceroute): New variable.
> ---
>  gnu/packages/networking.scm | 39 +++++++++++++++++++++++++++++++++++++
>  1 file changed, 39 insertions(+)
>
> diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
> index 83a99ded72..4c3faaa578 100644
> --- a/gnu/packages/networking.scm
> +++ b/gnu/packages/networking.scm
> @@ -3680,6 +3680,45 @@ simulation, and a number of other applications.")
>  network.  This must be enabled on the target host, usually in the BIOS.")
>      (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.
> +       #:make-flags
> +       (list (string-append "LIBRARY_PATH="
> +                            (assoc-ref %build-inputs "libc")           "/lib")
> +             (string-append "CFLAGS=-I"
> +                            (assoc-ref %build-inputs "kernel-headers") "/include")
> +             "LDFLAGS=-lm -L../libsupp"
> +             (string-append "prefix=" (assoc-ref %outputs "out")))
> +       #:phases
> +       (modify-phases %standard-phases
> +         (add-after 'unpack 'patch-make
> +           (lambda _
> +             (substitute* "default.rules"
> +               ((" \\$\\(LIBDEPS\\)") "$(filter-out -l%,$(LIBDEPS))"))
> +             #t))
> +         (delete 'bootstrap)           ; there is no configure.ac file
> +         (delete 'configure))))        ; there is no configure script
> +    (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+
> +               license:lgpl2.1+)))) ; for the libsupp subdirectory
> +
>  (define-public vde2
>    (package
>      (name "vde2")

I edited it to expound the description someone and for cosmetic reasons
(fitting in the 80 chars limit for example), like so:

--8<---------------cut here---------------start------------->8---
1 file changed, 18 insertions(+), 14 deletions(-)
gnu/packages/networking.scm | 32 ++++++++++++++++++--------------

modified   gnu/packages/networking.scm
@@ -3796,17 +3796,19 @@ network.  This must be enabled on the target host, usually in the BIOS.")
      (origin
        (method url-fetch)
        (uri (string-append "mirror://sourceforge/traceroute/traceroute/"
-                           "traceroute-" version "/traceroute-" version ".tar.gz"))
+                           "traceroute-" version "/traceroute-"
+                           version ".tar.gz"))
        (sha256
         (base32 "1dh32vcfawkl1p9g4ral1p0camds4paqr8db1kaqxwyk6hmd4s9n"))))
     (build-system gnu-build-system)
     (arguments
-     `(#:tests? #f                      ; No tests.
+     `(#:tests? #f                      ;no test suite
        #:make-flags
        (list (string-append "LIBRARY_PATH="
-                            (assoc-ref %build-inputs "libc")           "/lib")
+                            (assoc-ref %build-inputs "libc") "/lib")
              (string-append "CFLAGS=-I"
-                            (assoc-ref %build-inputs "kernel-headers") "/include")
+                            (assoc-ref %build-inputs "kernel-headers")
+                            "/include")
              "LDFLAGS=-lm -L../libsupp"
              (string-append "prefix=" (assoc-ref %outputs "out")))
        #:phases
@@ -3814,18 +3816,20 @@ network.  This must be enabled on the target host, usually in the BIOS.")
          (add-after 'unpack 'patch-make
            (lambda _
              (substitute* "default.rules"
-               ((" \\$\\(LIBDEPS\\)") "$(filter-out -l%,$(LIBDEPS))"))
-             #t))
-         (delete 'bootstrap)           ; there is no configure.ac file
-         (delete 'configure))))        ; there is no configure script
+               ((" \\$\\(LIBDEPS\\)") "$(filter-out -l%,$(LIBDEPS))"))))
+         (delete 'bootstrap)            ;no configure.ac file
+         (delete 'configure))))         ;no configure script
     (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+
-               license:lgpl2.1+)))) ; for the libsupp subdirectory
+    (description "This package provides a modern, but Linux-specific
+implementation of the @command{traceroute} command that can be used to follow
+the route taken by packets on 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.
+Compared to other implementations, this @command{traceroute} command allows
+some traces for unprivileged users.")
+    (license (list license:gpl2+
+                   license:lgpl2.1+)))) ;for the libsupp subdirectory
 
 (define-public vde2
   (package
--8<---------------cut here---------------end--------------->8---

And pushed as 59e97a67ba.

Thank you!

Closing.

Maxim




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-07-14  3:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-06 23:13 [bug#39961] [PATCH] gnu: Add traceroute Vincent Legoll
2020-03-07  1:28 ` Vincent Legoll
2020-03-07 11:06 ` Vincent Legoll
2020-03-07 11:08 ` Vincent Legoll
2020-03-07 13:09 ` Leo Famulari
2020-03-07 13:23   ` Vincent Legoll
2020-12-28 14:45 ` [bug#39961] traceroute Vincent Legoll
2021-01-01 12:08   ` Christopher Baines
2021-01-11 16:31 ` [bug#39961] New patch Vincent Legoll
2021-01-11 16:31 ` [bug#39961] [PATCH] gnu: Add traceroute Vincent Legoll
2021-01-11 16:32 ` Vincent Legoll
2021-07-14  3:15   ` bug#39961: " Maxim Cournoyer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).