* Splitting mkvtoolnix outputs: cycle detected in the references
@ 2019-03-07 18:18 Pierre Neidhardt
2019-03-13 14:55 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Pierre Neidhardt @ 2019-03-07 18:18 UTC (permalink / raw)
To: Guix-devel
[-- Attachment #1: Type: text/plain, Size: 1343 bytes --]
Hi!
I'm trying to split mkvtoolnix-gui (depends on Qt) to a separate "gui" output.
"out" would only contain the command line tools.
Disabling Qt shrinks the closure size from 1.5+ GB to 277 MB. Pretty
neat, huh? :)
I naively tried to move mkvtoolnix-gui to the "gui" output:
--8<---------------cut here---------------start------------->8---
(add-after 'install 'post-install
(lambda* (#:key outputs #:allow-other-keys)
;; Move the Qt interface to "gui".
(let ((out (assoc-ref outputs "out"))
(gui (assoc-ref outputs "gui")))
(mkdir-p (string-append gui "/bin"))
(rename-file (string-append out "/bin/mkvtoolnix-gui")
(string-append gui "/bin/mkvtoolnix-gui")))
#t))
--8<---------------cut here---------------end--------------->8---
But I get the following error after the
`compress-documentation' phase:
--8<---------------cut here---------------start------------->8---
cycle detected in the references of `/gnu/store/7asc0q7kik1ak463nj8g675hnab7h982-mkvtoolnix-31.0.0-gui'
--8<---------------cut here---------------end--------------->8---
It's unclear to me why there would be a cycle. Any clue how to
investigate from there?
--
Pierre Neidhardt
https://ambrevar.xyz/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Splitting mkvtoolnix outputs: cycle detected in the references
2019-03-07 18:18 Splitting mkvtoolnix outputs: cycle detected in the references Pierre Neidhardt
@ 2019-03-13 14:55 ` Ludovic Courtès
2019-03-15 8:20 ` Pierre Neidhardt
0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2019-03-13 14:55 UTC (permalink / raw)
To: Pierre Neidhardt; +Cc: Guix-devel
Hi,
Pierre Neidhardt <mail@ambrevar.xyz> skribis:
> I'm trying to split mkvtoolnix-gui (depends on Qt) to a separate "gui" output.
> "out" would only contain the command line tools.
>
> Disabling Qt shrinks the closure size from 1.5+ GB to 277 MB. Pretty
> neat, huh? :)
Yup!
> I naively tried to move mkvtoolnix-gui to the "gui" output:
>
> (add-after 'install 'post-install
> (lambda* (#:key outputs #:allow-other-keys)
> ;; Move the Qt interface to "gui".
> (let ((out (assoc-ref outputs "out"))
> (gui (assoc-ref outputs "gui")))
> (mkdir-p (string-append gui "/bin"))
> (rename-file (string-append out "/bin/mkvtoolnix-gui")
> (string-append gui "/bin/mkvtoolnix-gui")))
> #t))
>
>
> But I get the following error after the
> `compress-documentation' phase:
>
> cycle detected in the references of `/gnu/store/7asc0q7kik1ak463nj8g675hnab7h982-mkvtoolnix-31.0.0-gui'
>
> It's unclear to me why there would be a cycle. Any clue how to
> investigate from there?
This error means that the two outputs, “out” and “gui”, refer to each
other; the daemon does not support that.
To find out where the references come from, you can build with -K, and
then grep -r for one output in the other.
If it turns out to be impossible to remove the cycle, I’d suggest making
a separate package for the GUI.
HTH!
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Splitting mkvtoolnix outputs: cycle detected in the references
2019-03-13 14:55 ` Ludovic Courtès
@ 2019-03-15 8:20 ` Pierre Neidhardt
0 siblings, 0 replies; 3+ messages in thread
From: Pierre Neidhardt @ 2019-03-15 8:20 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: Guix-devel
[-- Attachment #1: Type: text/plain, Size: 247 bytes --]
Thanks for the explanation.
I looked into this again and realized I had missed the obvious: I had forgotten
to move the .desktop file! :)
Problem solved, mkvtoolnix is now down by 1.2 GB! :D
--
Pierre Neidhardt
https://ambrevar.xyz/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-03-15 8:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-07 18:18 Splitting mkvtoolnix outputs: cycle detected in the references Pierre Neidhardt
2019-03-13 14:55 ` Ludovic Courtès
2019-03-15 8:20 ` Pierre Neidhardt
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).