GNU bug report logs -
#39961
[PATCH] gnu: Add traceroute.
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#39961: [PATCH] gnu: Add traceroute.
which was filed against the guix-patches package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 39961 <at> debbugs.gnu.org.
--
39961: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=39961
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Hello,
Vincent Legoll <vincent.legoll <at> 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
[Message part 3 (message/rfc822, inline)]
[Message part 4 (text/plain, inline)]
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
[0001-gnu-Add-traceroute.patch (text/x-patch, attachment)]
This bug report was last modified 4 years and 7 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.