Subject: Re: bug#72797: qt-tools is unnecessary optional dependency for monero

From: Guillaume Le Vaillant <[email-masked]>
Date: Sun, 25 Aug 2024 19:01:35 +0000

0xFFFC via Bug reports for GNU Guix <[email-masked]> skribis:

> Hi Guix community,
>
> Thank you for your great software :)
>
> I noticed that the Monero package has an (a huge) unnecessary dependency here [1]. qt is an optional dependency for Monero code base (we only need that in case of using translations).
>
> Anyway to make this optional? or get rid of this?
>
> 1.https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/finance.scm#n716
>
> Freedom wins.
> 0xFFFC

Hi.

The qt-tools package is used to create the binary translations files
that are used by the monero-wallet-cli program, which seems to be
a useful thing.

What kind of issue is the dependency on qt-tools causing for you?

To disable translations, a variant of the monero package like the
following could work (not tested, I'm writing this example on the fly):

--8<---------------cut here---------------start------------->8---
(define-public monero-without-translations
  (inherit monero)
  (name monero-without-translations)
  (native-inputs (package-native-inputs monero)
    (delete "qttools-5")))
--8<---------------cut here---------------end--------------->8---