all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bodertz <bodertz@gmail.com>
To: guix-devel@gnu.org
Subject: How to remove output from inherited package?
Date: Wed, 25 Dec 2024 20:10:10 -0700	[thread overview]
Message-ID: <87jzbnjg19.fsf@gmail.com> (raw)

In trying to create a transmission-qt package, I inherit from
transmission, remove the gtkmm dependency and the phases that deal with
moving transmission-gtk to the :gui output, and add a few qt
dependencies so that transmission-qt is built.  See the package
definition below:

    (define-module (bodertz transmission-qt)
      #:use-module (gnu packages bittorrent)
      #:use-module (gnu packages qt)
      #:use-module (guix packages)
      #:use-module (guix gexp)
      #:use-module (guix utils))

    (define-public transmission-qt
      (package
        (inherit transmission)
        ;; (outputs '("out"))
        (name "transmission-qt")
        (arguments
         (substitute-keyword-arguments (package-arguments transmission)
           ((#:phases phases)
            #~(modify-phases #$phases
                (delete 'move-gui)
                (delete 'glib-or-gtk-wrap)
                (delete 'wrap-program)))))
        (inputs (modify-inputs (package-inputs transmission)
                  (delete "gtkmm")
                  (append qtbase qttools qtsvg)))))

This works fine, except that an unnecessary transmission-qt:gui output
is created which contains license files (apologies if the email messes
up the formatting):

    $ tree /gnu/store/k34zx89kvd712maqfi62spnbb5s31bqd-transmission-qt-4.0.6-gui
    /gnu/store/k34zx89kvd712maqfi62spnbb5s31bqd-transmission-qt-4.0.6-gui
    └── share
        └── doc
            └── transmission-qt-4.0.6
                ├── bsd-3-clause.txt
                ├── COPYING
                ├── gpl-2.0.txt
                ├── gpl-3.0.txt
                └── mit.txt


When I uncomment the ;; outputs '("out")) line from my package
definition, I expected that it would only create the ordinary :out
output, but instead, I get this error:

    $ guix build transmission-qt
    [...]
    builder for `/gnu/store/026fwjchyis1x99iqsgliqga284wydbc-transmission-qt-4.0.6.drv' failed to produce output path `/gnu/store/v331nyi7kqg4gi432gvhz1c719n8x7xf-transmission-qt-4.0.6-gui'


Is there a way to avoid the attempt to create a :gui output?



             reply	other threads:[~2024-12-26  3:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-26  3:10 Bodertz [this message]
2024-12-27  2:03 ` How to remove output from inherited package? 宋文武 via Development of GNU Guix and the GNU System distribution.
2024-12-27  4:52   ` Bodertz
2024-12-27  6:55     ` Bodertz
2024-12-27  7:34     ` 宋文武 via Development of GNU Guix and the GNU System distribution.

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=87jzbnjg19.fsf@gmail.com \
    --to=bodertz@gmail.com \
    --cc=guix-devel@gnu.org \
    /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.