GNU bug report logs -
#53583
[PATCH] gnu: Add ncdu-ng.
Previous Next
Reported by: phodina <phodina <at> protonmail.com>
Date: Thu, 27 Jan 2022 14:24:02 UTC
Severity: normal
Tags: patch
Done: Efraim Flashner <efraim <at> flashner.co.il>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 53583 in the body.
You can then email your comments to 53583 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#53583
; Package
guix-patches
.
(Thu, 27 Jan 2022 14:24:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
phodina <phodina <at> protonmail.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Thu, 27 Jan 2022 14:24:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello,
here is a patch for the ncdu. As version 2.0.* are based on Zig I decided to create a new variable instead of updating the old one.
FIY this is my first encounter with Zig and I just briefly swept through the documentation and I don't know if cross-compilation won't be an issue since the previous versions are just plain C.
If you think there is no need to do this and we can just simply update let me know and I'll send updated patch.
----
Petr
[Message part 2 (text/html, inline)]
[0001-gnu-Add-ncdu-ng.patch (text/x-patch, attachment)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#53583
; Package
guix-patches
.
(Tue, 01 Feb 2022 11:05:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 53583 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Thu, Jan 27, 2022 at 02:22:58PM +0000, phodina via Guix-patches via wrote:
> Hello,
>
> here is a patch for the ncdu. As version 2.0.* are based on Zig I decided to create a new variable instead of updating the old one.
>
> FIY this is my first encounter with Zig and I just briefly swept through the documentation and I don't know if cross-compilation won't be an issue since the previous versions are just plain C.
>
> If you think there is no need to do this and we can just simply update let me know and I'll send updated patch.
I also packaged ncdu <at> 2 locally, to try out packaging a zig program. I
was unable to build zig for aarch64 due to the memory requirements
during the linking stage, so for now I agree it makes sense to have a
separate zig version and not just upgrade to the new version.
Also I'm attaching my copy if you want to take a look and see about
merging the two.
> ----
> Petr
> From 3e6ad4ef4f928314bd69cae18a05be317e1b26ab Mon Sep 17 00:00:00 2001
> From: Petr Hodina <phodina <at> protonmail.com>
> Date: Thu, 27 Jan 2022 14:56:39 +0100
> Subject: [PATCH] gnu: Add ncdu-ng.
>
> * gnu/packages/ncdu.scm (ncdu-ng): New variable.
>
> diff --git a/gnu/packages/ncdu.scm b/gnu/packages/ncdu.scm
> index d6e4522bf0..01084976f0 100644
> --- a/gnu/packages/ncdu.scm
> +++ b/gnu/packages/ncdu.scm
> @@ -1,6 +1,7 @@
> ;;; GNU Guix --- Functional package management for GNU
> ;;; Copyright © 2014 John Darrington <jmd <at> gnu.org>
> ;;; Copyright © 2018–2021 Tobias Geerinckx-Rice <me <at> tobias.gr>
> +;;; Copyright © 2022 Petr Hodina <phodina <at> protonmail.com>
> ;;;
> ;;; This file is part of GNU Guix.
> ;;;
> @@ -20,8 +21,10 @@
> (define-module (gnu packages ncdu)
> #:use-module (gnu packages)
> #:use-module (gnu packages ncurses)
> + #:use-module (gnu packages zig)
> #:use-module (guix licenses)
> #:use-module (guix packages)
> + #:use-module (guix utils)
> #:use-module (guix download)
> #:use-module (guix build-system gnu))
>
> @@ -49,3 +52,32 @@ (define-public ncdu
> (string-append "https://g.blicky.net/ncdu.git/plain/COPYING?id=v"
> version)))
> (home-page "https://dev.yorhel.nl/ncdu")))
> +
> +(define-public ncdu-ng
> + (package
> + (inherit ncdu)
> + (name "ncdu-ng")
> + (version "2.0.1")
> + (source (origin
> + (method url-fetch)
> + (uri (string-append "https://dev.yorhel.nl/download/ncdu-"
> + version ".tar.gz"))
> + (sha256
> + (base32
> + "0j3w8xixz1zkzcpk0xrh6y3r7sii3h3y31lbvs5iqc5q7q6day9g"))))
> + (arguments
> + `(#:tests? #f
> + #:make-flags
> + (list (string-append "PREFIX="
> + (assoc-ref %outputs "out"))
> + ,(string-append "CC="
> + (cc-for-target)))
> + #:phases
> + (modify-phases %standard-phases
> + (add-after 'unpack 'set-home-dir
> + (lambda* _
> + ;; Zig caches build
> + (setenv "HOME" "/tmp")))
> + (delete 'configure))))
> + (native-inputs (list zig))
> + (inputs (list ncurses))))
> --
> 2.34.0
>
--
Efraim Flashner <efraim <at> flashner.co.il> רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[ncdu.scm (text/plain, attachment)]
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#53583
; Package
guix-patches
.
(Sun, 06 Feb 2022 07:21:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 53583 <at> debbugs.gnu.org (full text, mbox):
Hi Efraim,
Sent with ProtonMail Secure Email.
------- Original Message -------
On Tuesday, February 1st, 2022 at 12:03 PM, Efraim Flashner <efraim <at> flashner.co.il> wrote:
> On Thu, Jan 27, 2022 at 02:22:58PM +0000, phodina via Guix-patches via wrote:
>
> > Hello,
> >
> > here is a patch for the ncdu. As version 2.0.* are based on Zig I decided to create a new variable instead of updating the old one.
> >
> > FIY this is my first encounter with Zig and I just briefly swept through the documentation and I don't know if cross-compilation won't be an issue since the previous versions are just plain C.
> >
> > If you think there is no need to do this and we can just simply update let me know and I'll send updated patch.
>
> I also packaged ncdu <at> 2 locally, to try out packaging a zig program. I
>
> was unable to build zig for aarch64 due to the memory requirements
>
> during the linking stage, so for now I agree it makes sense to have a
>
> separate zig version and not just upgrade to the new version.
>
> Also I'm attaching my copy if you want to take a look and see about
>
> merging the two.
>
> > Petr
>
> > From 3e6ad4ef4f928314bd69cae18a05be317e1b26ab Mon Sep 17 00:00:00 2001
> >
> > From: Petr Hodina phodina <at> protonmail.com
> >
> > Date: Thu, 27 Jan 2022 14:56:39 +0100
> >
> > Subject: [PATCH] gnu: Add ncdu-ng.
> >
> > - gnu/packages/ncdu.scm (ncdu-ng): New variable.
> >
> > diff --git a/gnu/packages/ncdu.scm b/gnu/packages/ncdu.scm
> >
> > index d6e4522bf0..01084976f0 100644
> >
> > --- a/gnu/packages/ncdu.scm
> >
> > +++ b/gnu/packages/ncdu.scm
> >
> > @@ -1,6 +1,7 @@
> >
> > ;;; GNU Guix --- Functional package management for GNU
> >
> > ;;; Copyright © 2014 John Darrington jmd <at> gnu.org
> >
> > ;;; Copyright © 2018–2021 Tobias Geerinckx-Rice me <at> tobias.gr
> >
> > +;;; Copyright © 2022 Petr Hodina phodina <at> protonmail.com
> >
> > ;;;
> >
> > ;;; This file is part of GNU Guix.
> >
> > ;;;
> >
> > @@ -20,8 +21,10 @@
> >
> > (define-module (gnu packages ncdu)
> >
> > #:use-module (gnu packages)
> >
> > #:use-module (gnu packages ncurses)
> >
> > - #:use-module (gnu packages zig)
> >
> > #:use-module (guix licenses)
> >
> > #:use-module (guix packages)
> > - #:use-module (guix utils)
> >
> > #:use-module (guix download)
> >
> > #:use-module (guix build-system gnu))
> >
> > @@ -49,3 +52,32 @@ (define-public ncdu
> >
> > (string-append "https://g.blicky.net/ncdu.git/plain/COPYING?id=v"
> >
> > version)))
> >
> > (home-page "https://dev.yorhel.nl/ncdu")))
> >
> > +
> >
> > +(define-public ncdu-ng
> >
> > - (package
> > - (inherit ncdu)
> > - (name "ncdu-ng")
> > - (version "2.0.1")
> > - (source (origin
> > - (method url-fetch)
> >
> >
> > - (uri (string-append "https://dev.yorhel.nl/download/ncdu-"
> >
> >
> > - version ".tar.gz"))
> >
> >
> > - (sha256
> >
> >
> > - (base32
> >
> >
> > - "0j3w8xixz1zkzcpk0xrh6y3r7sii3h3y31lbvs5iqc5q7q6day9g"))))
> >
> >
> > - (arguments
> > - `(#:tests? #f
> >
> >
> > - #:make-flags
> >
> >
> > - (list (string-append "PREFIX="
> >
> >
> > - (assoc-ref %outputs "out"))
> >
> >
> > - ,(string-append "CC="
> >
> >
> > - (cc-for-target)))
> >
> >
> > - #:phases
> >
> >
> > - (modify-phases %standard-phases
> >
> >
> > - (add-after 'unpack 'set-home-dir
> >
> >
> > - (lambda* _
> >
> >
> > - ;; Zig caches build
> >
> >
> > - (setenv "HOME" "/tmp")))
> >
> >
> > - (delete 'configure))))
> >
> >
> > - (native-inputs (list zig))
> > - (inputs (list ncurses))))
> >
> > --
> >
> > 2.34.0
>
> --
>
> Efraim Flashner efraim <at> flashner.co.il רנשלפ םירפא
>
> GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
>
> Confidentiality cannot be guaranteed on emails sent or received unencrypted
I've reviewed and tested your patch on x86_64 machine and it build successfully. I also wasn't able to build Zig on my ARM machines (Raspberry and PBP) so it should definitely have it's own definition (at least for now).
I agree with keeping a note why there number 2 in the name.
Thanks for the phase with setting ZIG_GLOBAL_CACHE_DIR as this what helpful in my understanding of Zig.
Otherwise the patch LGTM.
----
Petr
Reply sent
to
Efraim Flashner <efraim <at> flashner.co.il>
:
You have taken responsibility.
(Sun, 06 Mar 2022 12:19:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
phodina <phodina <at> protonmail.com>
:
bug acknowledged by developer.
(Sun, 06 Mar 2022 12:19:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 53583-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
ncdu2 pushed.
--
Efraim Flashner <efraim <at> flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 04 Apr 2022 11:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 72 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.