From: "Jakub Kądziołka" <kuba@kadziolka.net>
To: Thovthe <Thovthe@protonmail.com>
Cc: "41040@debbugs.gnu.org" <41040@debbugs.gnu.org>
Subject: [bug#41040] [PATCH] Package Definition for QDirStat
Date: Sun, 28 Jun 2020 14:56:24 +0200 [thread overview]
Message-ID: <20200628125624.3vr2borezix5ij4s@gravity> (raw)
In-Reply-To: <zAApckKRhqvy2njcWIMRnuUCNPFhXjm8fmOPU63f2CiFaXZY21i30yHZ1MUcnKXngDew7bcus_Z72EFO4L5Ty3z1rc-Bbj24AB6y-QXCx5o=@protonmail.com>
[-- Attachment #1: Type: text/plain, Size: 3718 bytes --]
Thanks for your patch!
The repository includes man pages, but the built package doesn't.
Interestingly, the man1 directory is there, it's just empty. Could you
investigate why this happens?
On Sat, Jun 13, 2020 at 09:51:29PM +0000, Thovthe wrote:
> > > > I think that perl should be added as input, so that the #! line of
> > > > qdirstat-cache-writer can be patched to refer to a perl in the store.
> > >
> > > I'm leaving this for once I've moved qdirstat-cache-writer into a
> > > separate package/output since this definition works for the essential
> > > functionality.
> >
> > Ok.
> > -------------------------
> > > > For bonus points, it might be nice to move qdirstat-cache-writer to its
> > > > own output since it is made to be run independently of QDirStat and that
> > > > way it could be installed without pulling in all the C++ and Graphical
> > > > dependencies.
> > >
> > > How do you think this should look? Would I make another output in this
> > > qdirstat.scm?
> >
> > Yes, adding another output is what I was thinking. The bind package is an
> > example of this.
>
> I've added some comments about this but right now I'm not interested in figuring
> out how this package is built at a lower level since with this definition
> provides the essential functionality and all tests pass.
I don't think it makes much sense to separate it into another output,
given that the data produced by the script would be consumed by qdirstat
proper anyway.
It does make sense, however, to include perl as an input. This makes the
script work even though /usr/bin/perl doesn't exist on Guix System.
> >From 159a4f8b44537c8b76db52b65cd9571962cb58e4 Mon Sep 17 00:00:00 2001
> From: Thovthe <thovthe@protonmail.com>
> Date: Sat, 13 Jun 2020 21:42:38 +0000
> Subject: [PATCH] gnu: Add qdirstat.
>
> * gnu/packages/qdirstat.scm: New file.
> * gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
> ---
> gnu/local.mk | 1 +
> gnu/packages/qdirstat.scm | 49 +++++++++++++++++++++++++++++++++++++++
> 2 files changed, 50 insertions(+)
> create mode 100644 gnu/packages/qdirstat.scm
Applying this patch was a bit problematic. If you put your comments
after the --- here and send the mail with git send-email (from the
send-email output of the git package), it would get picked up
automatically. Sending the patch as an attachment also works. However,
pasting the patch into the message requires quite some fiddling with
'git am'...
> diff --git a/gnu/packages/qdirstat.scm b/gnu/packages/qdirstat.scm
> new file mode 100644
> index 0000000000..8188357855
> --- /dev/null
> +++ b/gnu/packages/qdirstat.scm
> @@ -0,0 +1,49 @@
> +(define-module (gnu packages qdirstat)
> + #:use-module (gnu packages compression)
> + #:use-module (gnu packages qt)
> + #:use-module (guix build-system gnu)
> + #:use-module (guix git-download)
> + #:use-module (guix packages)
> + #:use-module ((guix licenses) #:prefix license:))
Make sure to include the copyright header that's present in all other
files.
> +(define-public qdirstat
> + (package
> + (name "qdirstat")
> + (version "1.6.1")
> + (source
> + (origin
> + (method git-fetch)
> + (uri (git-reference
> + (url "https://github.com/shundhammer/qdirstat.git")
> + (commit version)))
> + (file-name (git-file-name name version))
> + (sha256
> + (base32 "0q77a347qv1aka6sni6l03zh5jzyy9s74aygg554r73g01kxczpb"))))
> +
> + (outputs `("out")) ; "cache-writer" could be made an output
There's no point in specifying OUTPUTS if we're going to use the default
value.
Regards,
Jakub Kądziołka
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2020-06-28 12:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-03 0:28 [bug#41040] [PATCH] Package Definition for QDirStat Thovthe via Guix-patches via
2020-05-05 4:01 ` Jack Hill
2020-05-14 0:36 ` Jack Hill
2020-06-04 7:40 ` Thovthe via Guix-patches via
2020-06-07 4:23 ` Jack Hill
2020-06-13 21:51 ` Thovthe via Guix-patches via
2020-06-28 12:56 ` Jakub Kądziołka [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200628125624.3vr2borezix5ij4s@gravity \
--to=kuba@kadziolka.net \
--cc=41040@debbugs.gnu.org \
--cc=Thovthe@protonmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.