GNU bug report logs - #29686
gnu: aspell: Do not ignore GuixOS system profile.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Oleg Pykhalov <go.wigust@HIDDEN>; dated Wed, 13 Dec 2017 06:44:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 29686 <at> debbugs.gnu.org:


Received: (at 29686) by debbugs.gnu.org; 20 Dec 2017 13:14:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 20 08:14:20 2017
Received: from localhost ([127.0.0.1]:43265 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eReCR-000578-PN
	for submit <at> debbugs.gnu.org; Wed, 20 Dec 2017 08:14:19 -0500
Received: from hera.aquilenet.fr ([141.255.128.1]:45869)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1eReCQ-000571-Si
 for 29686 <at> debbugs.gnu.org; Wed, 20 Dec 2017 08:14:19 -0500
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id 1CFBD6E87;
 Wed, 20 Dec 2017 14:14:22 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at aquilenet.fr
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id G_FOxp0ijbg2; Wed, 20 Dec 2017 14:14:21 +0100 (CET)
Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id 1A7701056D;
 Wed, 20 Dec 2017 14:14:21 +0100 (CET)
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Oleg Pykhalov <go.wigust@HIDDEN>
Subject: Re: bug#29686: gnu: aspell: Do not ignore GuixOS system profile.
References: <87vahbgmbc.fsf@HIDDEN> <871sjygus3.fsf@HIDDEN>
Date: Wed, 20 Dec 2017 14:14:16 +0100
In-Reply-To: <871sjygus3.fsf@HIDDEN> ("Ludovic
 \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\=
 \=\?utf-8\?Q\?s\?\= message of "Wed, 13 Dec 2017 22:52:44 +0100")
Message-ID: <87a7ydy21j.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 29686
Cc: 29686 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

Hi Oleg,

ludo@HIDDEN (Ludovic Court=C3=A8s) skribis:

> Oleg Pykhalov <go.wigust@HIDDEN> skribis:
>
>> Currently, if aspell is installed in GuixOS system profile and not in
>> user profile then aspell cannot find dictionaries.
>
> If you install both aspell and aspell-dict-* in the global profile, then
> ASPELL_DICT_DIR will point to /run/current-system/profile/lib/aspell
> instead of ~/.guix-profile/lib/aspell.  Likewise:
>
> $ guix environment --ad-hoc aspell aspell-dict-ru coreutils -C -- env | g=
rep ASPELL
>
> [...]
>
> ASPELL_DICT_DIR=3D/gnu/store/hssihv9d5cq5hzh0kiwdwiv6qcrc921c-profile/lib=
/aspell
>
> So I=E2=80=99m not sure we need a custom fix, do we?  :-)

Oleg, can we close this bug?

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#29686; Package guix. Full text available.

Message received at 29686 <at> debbugs.gnu.org:


Received: (at 29686) by debbugs.gnu.org; 13 Dec 2017 21:52:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 13 16:52:48 2017
Received: from localhost ([127.0.0.1]:60872 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ePExM-0007Nd-Jo
	for submit <at> debbugs.gnu.org; Wed, 13 Dec 2017 16:52:48 -0500
Received: from hera.aquilenet.fr ([141.255.128.1]:49384)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1ePExL-0007NV-B7
 for 29686 <at> debbugs.gnu.org; Wed, 13 Dec 2017 16:52:47 -0500
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id B56691027A;
 Wed, 13 Dec 2017 22:52:49 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at aquilenet.fr
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id sG80jSb82TJ0; Wed, 13 Dec 2017 22:52:49 +0100 (CET)
Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id AC0056E87;
 Wed, 13 Dec 2017 22:52:48 +0100 (CET)
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Oleg Pykhalov <go.wigust@HIDDEN>
Subject: Re: bug#29686: gnu: aspell: Do not ignore GuixOS system profile.
References: <87vahbgmbc.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 23 Frimaire an 226 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Wed, 13 Dec 2017 22:52:44 +0100
In-Reply-To: <87vahbgmbc.fsf@HIDDEN> (Oleg Pykhalov's message of "Wed, 13
 Dec 2017 09:43:19 +0300")
Message-ID: <871sjygus3.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 29686
Cc: 29686 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

Hello,

Oleg Pykhalov <go.wigust@HIDDEN> skribis:

> Currently, if aspell is installed in GuixOS system profile and not in
> user profile then aspell cannot find dictionaries.

If you install both aspell and aspell-dict-* in the global profile, then
ASPELL_DICT_DIR will point to /run/current-system/profile/lib/aspell
instead of ~/.guix-profile/lib/aspell.  Likewise:

--8<---------------cut here---------------start------------->8---
$ guix environment --ad-hoc aspell aspell-dict-ru coreutils -C -- env | gre=
p ASPELL

[...]

ASPELL_DICT_DIR=3D/gnu/store/hssihv9d5cq5hzh0kiwdwiv6qcrc921c-profile/lib/a=
spell
--8<---------------cut here---------------end--------------->8---

So I=E2=80=99m not sure we need a custom fix, do we?  :-)

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#29686; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Dec 2017 06:43:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 13 01:43:44 2017
Received: from localhost ([127.0.0.1]:59321 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eP0lc-00036r-0b
	for submit <at> debbugs.gnu.org; Wed, 13 Dec 2017 01:43:44 -0500
Received: from eggs.gnu.org ([208.118.235.92]:51671)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <go.wigust@HIDDEN>) id 1eP0la-00036Q-AN
 for submit <at> debbugs.gnu.org; Wed, 13 Dec 2017 01:43:42 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <go.wigust@HIDDEN>) id 1eP0lU-0005qn-AU
 for submit <at> debbugs.gnu.org; Wed, 13 Dec 2017 01:43:37 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:36314)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <go.wigust@HIDDEN>) id 1eP0lU-0005qX-6V
 for submit <at> debbugs.gnu.org; Wed, 13 Dec 2017 01:43:36 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:42629)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <go.wigust@HIDDEN>) id 1eP0lT-0008HY-6H
 for bug-guix@HIDDEN; Wed, 13 Dec 2017 01:43:35 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <go.wigust@HIDDEN>) id 1eP0lQ-0005oU-M1
 for bug-guix@HIDDEN; Wed, 13 Dec 2017 01:43:35 -0500
Received: from mail-lf0-x234.google.com ([2a00:1450:4010:c07::234]:35345)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <go.wigust@HIDDEN>) id 1eP0lQ-0005nm-DX
 for bug-guix@HIDDEN; Wed, 13 Dec 2017 01:43:32 -0500
Received: by mail-lf0-x234.google.com with SMTP id j124so1400841lfg.2
 for <bug-guix@HIDDEN>; Tue, 12 Dec 2017 22:43:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:subject:date:message-id:user-agent:mime-version;
 bh=cXj7XDkn0CUKd52vfzw8byMcx+sQbjKqX64gMFoLAJw=;
 b=jZafQLU2mptuisc9Qp/q46ZhQuaZOMZAHq7AhNQIkB/0nqiWnrLUiZTCWNgaQo8+ml
 TQkG0QTzZZTwU+96jSZq2430QiQKQc6Dw/kIlPBfz1UPFsANmx7pZgYKVLIu/qxDKmct
 ZCPwDT9//Ofz81vsVkagZ7ypT869V5v39c7BXKIAO3+bm0dEp0gYIA4UM96eRtAoKW7f
 uq2+V/4R7vCKGa1BNiNBjjfrav/IU50hv0eSUVRYTGLMWfz0tMDhaTu0MKtpgcNKumZh
 3dAG5Hbti4aXfOHhm4TtrsJ0m6JGTs7ldtLBQbOKymnXEGpZsXEqb3Kw5GlOJH2i1xDe
 raBw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:date:message-id:user-agent
 :mime-version;
 bh=cXj7XDkn0CUKd52vfzw8byMcx+sQbjKqX64gMFoLAJw=;
 b=KwiatiQLZCShOwFwEWY0kF+lubNg+pJO9gUxRNxOZLzYRfWnbEiv0+tAsxaBJv8ipr
 k0jyMigCNj22IdXMX3XETaxuq6zKmtUoJyFlLN1uI7l40rz/YL3m2acbrzGo6e6eq4Ha
 E1dcLKrPYP6b0cfPkEEi8sE6Ey5YiEm1TA5Hx/mc377+G2VFln3ogiy09fVda76f10M5
 Yj1Xnj0EJAQY1c439r2WAjXl0WozfUkMIb2tKIWSudG27/q3XtikOHaByeAAg/bG90EH
 3Qjoo5HBzWBmjFg85Fx9jSvX9WAzq5KALsY2wjyzu4zjzvYXzJLCenAzFT8Dx24HgYii
 Rfug==
X-Gm-Message-State: AKGB3mKAtG2+EVmQkCSgu8ipoXSUtjwEQRW/lytHsMzkZfBNnpYCRIgm
 hR0Uqndkk0LyG1SZJXo9MkWEeA==
X-Google-Smtp-Source: ACJfBouGUyj0TOhl17JBlOJJB+/BJzOVKK3terXW3c8I9qNcOusihp3DGFQcTu01461totvMyVuXtQ==
X-Received: by 10.25.181.193 with SMTP id g62mr764712lfk.43.1513147410640;
 Tue, 12 Dec 2017 22:43:30 -0800 (PST)
Received: from magnolia (ppp91-122-81-8.pppoe.avangarddsl.ru. [91.122.81.8])
 by smtp.gmail.com with ESMTPSA id o86sm162138lja.2.2017.12.12.22.43.29
 for <bug-guix@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Tue, 12 Dec 2017 22:43:29 -0800 (PST)
From: Oleg Pykhalov <go.wigust@HIDDEN>
To: bug-guix@HIDDEN
Subject: gnu: aspell: Do not ignore GuixOS system profile.
Date: Wed, 13 Dec 2017 09:43:19 +0300
Message-ID: <87vahbgmbc.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hello Guix,

Currently, if aspell is installed in GuixOS system profile and not in
user profile then aspell cannot find dictionaries.

(define-public aspell
  (package
    ;; =E2=80=A6
    (arguments
     `(#:phases
       (modify-phases %standard-phases
         (add-after 'install 'wrap-aspell
           (lambda* (#:key outputs #:allow-other-keys)
             (let ((bin/aspell (string-append (assoc-ref outputs "out")
                                              "/bin/aspell")))
               (wrap-program bin/aspell
                 '("ASPELL_CONF" "" =3D
                   ("${ASPELL_CONF:-\"dict-dir ${GUIX_PROFILE:-$HOME/.guix-=
profile}/lib/aspell\"}")))))))))
    ;; =E2=80=A6
    ))

I have a solution on top of existing wrapper, but what is a good way to
implement the following?

=2D-8<---------------cut here---------------start------------->8---
LIB_ASPELL=3Dlib/aspell
HOME_PROFILE=3D$HOME/.guix-profile
SYSTEM_PROFILE=3D/run/current-system/profile

if [ -z ${GUIX_PROFILE} ]; then
    if [ -d $HOME_PROFILE/$LIB_ASPELL ]; then
        GUIX_PROFILE=3D$HOME_PROFILE
    elif [ -d $SYSTEM_PROFILE/$LIB_ASPELL ]; then
        GUIX_PROFILE=3D$SYSTEM_PROFILE
    fi
fi

export ASPELL_CONF=3D"${ASPELL_CONF:-"dict-dir ${GUIX_PROFILE}/lib/aspell"}"
=2D-8<---------------cut here---------------end--------------->8---

Thanks,
Oleg.

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEc+OyAXw1EaDPCmAPckbhHGm3lWkFAlowzAcACgkQckbhHGm3
lWlqvA//ROd2kxo67lWC3YquFA0DbiwzK9oAQFzkSrvfcGLkGLRPRQOh5aAvly0D
/buDHRQmDm22vI85RxaX6yJDVozt6VoqhBADYHs9tsyOGIY+k/rNM1BT9T5yjQNV
kphkIt0QLRomwHVVIiRJ352WYuIv7+njOp287zqewnH7xkeQkcNgnlX4E7v/s+O6
cKOHqc3DaCBEIWHl01KELTsqPsoUFhoQzS0fqn6Dqp+OWmemSP7+rn0nER8Dv4Ho
lTjGcb8Ah4NG3bd/jFw8DgZx0D4Vpp+3YfQb9VhkSdaW4tzOLHxMDjd7hGMKcn+W
rGKBaguXLt3TWNMI8uZF6zJP/d5LVUE/JtdTSHMGD8E11wwCruCYPG6pzIRqvVrz
jhYb+lmWmHCaC7Oca3muhOzgCKx0lznpMGM27ISPA0g5D0dm3YCA3YLhnM1jX/Hk
HWYnn5ussZKDNArKKi+5IGvYXnho4PUXyrWI+I09gwtvDBptMCRLUwhFTSzw75DC
lG2GOOPICZQqZm/yYwredjG42QTyM42bLYuBTeG3LBO+N7zpjjjDiV4m6erCOPSb
+oMr9uOpaTgyLF+GFLVjsEP8nMOduIAzX6Ge+TAstmplCtEWLNHpBV9DABxlmpTr
WjFN/R7mBAfyTqjcsnMPYS2RcuyyM+BNeJz5Ih7vFLSUQAt/bxk=
=wFiD
-----END PGP SIGNATURE-----
--=-=-=--




Acknowledgement sent to Oleg Pykhalov <go.wigust@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#29686; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 20 Dec 2017 13:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.