From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jone Subject: How to replace package in system configuration? Date: Wed, 4 Jul 2018 13:21:47 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000017695205702c506c" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fahjD-0006Jw-2R for help-guix@gnu.org; Wed, 04 Jul 2018 09:21:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fahjC-0002v7-14 for help-guix@gnu.org; Wed, 04 Jul 2018 09:21:51 -0400 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]:42463) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fahjB-0002uq-Pn for help-guix@gnu.org; Wed, 04 Jul 2018 09:21:49 -0400 Received: by mail-ed1-x52a.google.com with SMTP id g12-v6so4034998edi.9 for ; Wed, 04 Jul 2018 06:21:49 -0700 (PDT) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix --00000000000017695205702c506c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello. My question briefly: I want to get a compact base system, but can not do this by of the dependencies. Now for more details: during reconfigure installed a package A. A depend of B, B depend of C, C depend of D, .. and all of them I don't need. Removing package =D0=90 will probably require a lot of work, but I can chan= ge the dependencies of the package and rebuild A at next reconfigure. But how to specify it in system_configuration.scm? Such variant: (define-public PKG-A (package (inherit PKG-A)) (name ... (version ... (arguments #:tests? #f #:configure-flags LIST-OF-CHANGED-CONFIGURE-OPTIONS ... - probably is wrong? Then maybe so: (define B (package (inherit PKG-A)) ... (define-public B) In my case, the unfortunate chain of dependencies is: mariadb <- qtbase <- qtsvg <- python-pyqt <- hplip <- sane-backends <- colord and colord supports "--disable-sane" flag. --00000000000017695205702c506c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello. My question briefly: I want to = get a compact base system, but can not do this by of the dependencies.
<= br>Now for more details: during reconfigure installed a package A. A depend= of B, B depend of C,
C depend of D, .. and all of them I don't need= .
Removing package =D0=90 will probably require a lot of work, but I can= change the dependencies of the package
and rebuild A at next rec= onfigure. But how to specify it in system_configuration.scm?

Such va= riant:

=C2=A0=C2=A0=C2=A0 (define-public PKG= -A
=C2=A0=C2=A0=C2=A0=C2=A0 (package (inherit PKG-A))
=C2=A0=C2=A0=C2=A0=C2=A0 (name ...
=C2=A0=C2=A0=C2=A0=C2=A0 (version ...
=C2=A0=C2=A0=C2=A0=C2= =A0 (arguments
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 #:tests? #f
=C2=A0=C2= =A0 =C2=A0=C2=A0=C2=A0 #:configure-flags LIST-OF-CHANGED-CONFIGURE-OPTIONS<= br>=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 ...

- probably is wrong? Then may= be so:

=C2=A0=C2=A0=C2=A0 (define B<= br>=C2=A0=C2=A0=C2=A0=C2=A0 (p= ackage (inherit PKG-A))
=C2=A0=C2=A0=C2=A0=C2=A0 ...
=C2=A0=C2=A0=C2=A0 (define-public B)

In my cas= e, the unfortunate chain of dependencies is:
=C2=A0=C2=A0=C2=A0 mariadb = <- qtbase <- qtsvg <- python-pyqt <- hplip <- sane-backends = <- colord
=
and colord supports "--disable-sane" flag.

--00000000000017695205702c506c--