Re: Best practices for Guix environment variables on foreign distro

2018-03-14 Thread Adonay Felipe Nogueira
> When I arrive home (I am at work) I will look at the suggestions in

Have you succeeded?

> Thank you in advance.

You're welcome! :D



Re: Problems with guile

2018-03-14 Thread Oleg Pykhalov
Hello Jone,

Jone  writes:

[…]

> After comment string in ~/.guile "(use-modules (ice-9 readline))"
> guile starts, but does not highlight matching brackets as before.

Could you show ‘%load-path’ and ‘%load-compiled-path’ by evaluating them
in a ‘guile’ REPL?

Thanks,
Oleg.


signature.asc
Description: PGP signature


Re: Problems with guile

2018-03-14 Thread Ludovic Courtès
Hello Jone,

Jone  skribis:

> After comment string in ~/.guile "(use-modules (ice-9 readline))"
> guile starts, but does not highlight matching brackets as before.

The (ice-9 readline) module is now part of the ‘guile-readline’
package.  Thus, to get that functionality, you need to run:

  guix package -i guile-readline

HTH!

Ludo’.



Re: Integrate guix-installed Emacs packages with locally compiled Emacs pretest

2018-03-14 Thread Ludovic Courtès
Pierre Neidhardt  skribis:

> Is there such a thing as a curated list of unofficial, user-contributed
> packages for GuixSD?  (Anything that cannot be accepted in the official
> repository, such as development versions.)

No, there’s no such thing.

However, I would hope that development versions can easily be packaged,
either from the command-line using ‘--with-source’¹, or by defining a
package variant as in:

  (define emacs-git
(package
  (inherit emacs)
  (source …)))

Thanks,
Ludo’.

¹ 
https://www.gnu.org/software/guix/manual/html_node/Package-Transformation-Options.html



Re: VLC could not decode the format "ssa " (SubStation Alpha subtitles)

2018-03-14 Thread Ludovic Courtès
Hi,

Dang Duong  skribis:

> I have added libass to the right package in that file and now it works!

Great!

Please do share it, that would make a good first contribution!

  https://www.gnu.org/software/guix/manual/html_node/Submitting-Patches.html

Ludo’.



Re: Problem with Glbc-locales: failed to install locale

2018-03-14 Thread Ludovic Courtès
Hello,

darlingmouse  skribis:

> The following package will be upgraded:
> glibc-locales 2.26.105-g0890d5379c -> 2.26.105-g0890d5379c 
> /gnu/store/j73ld7v624ix39imy94bncxzl8nirdn8-glibc-locales-2.26.105-g0890d5379c
>
> nothing to be done
> ruki@ruki-ThinkPad-T400:~$ export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale
> ruki@ruki-ThinkPad-T400:~$ guix
> guile: warning: failed to install locale
> warning: failed to install locale: Invalid argument
> guix: missing command name
> Try `guix --help' for more information.

Can you run the “locale” command and post the result?  Likewise for 
“env | grep LC”.

Also, how did you install Guix?

Thanks,
Ludo’.



Re: Problem with Glbc-locales: failed to install locale

2018-03-14 Thread Ludovic Courtès
darlingmouse  skribis:

> ||LANG=en_US.UTF-8||

Try “export LC_ALL=en_US.utf8; export LANG=en_US.utf8”; does it help?

> I installed Guix following the manual from Trisquel by unpacking it in
> root and /var as the guide shows. Nothing else.

OK.

(Please keep help-guix in Cc.)

Thanks,
Ludo’.



Re: Problem with Glbc-locales: failed to install locale

2018-03-14 Thread darlingmouse

ruki@ruki-ThinkPad-T400:~$ export LC_ALL=en_US.utf8; export LANG=en_US.utf8
ruki@ruki-ThinkPad-T400:~$ guix package
/gnu/store/f8k940vy9gck66m9r4id5m098w3hxgka-bash-minimal-4.4.12/bin/bash: warning: 
setlocale: LC_ALL: cannot change locale (en_US.utf8)

guile: warning: failed to install locale
warning: failed to install locale: Invalid argument
ruki@ruki-ThinkPad-T400:~$

On 03/14/2018 10:41 AM, Ludovic Courtès wrote:

darlingmouse  skribis:


||LANG=en_US.UTF-8||

Try “export LC_ALL=en_US.utf8; export LANG=en_US.utf8”; does it help?


I installed Guix following the manual from Trisquel by unpacking it in
root and /var as the guide shows. Nothing else.

OK.

(Please keep help-guix in Cc.)

Thanks,
Ludo’.





Re: Problems with guile

2018-03-14 Thread Efraim Flashner
On Wed, Mar 14, 2018 at 02:03:01PM +0100, Ludovic Courtès wrote:
> Hello Jone,
> 
> Jone  skribis:
> 
> > After comment string in ~/.guile "(use-modules (ice-9 readline))"
> > guile starts, but does not highlight matching brackets as before.
> 
> The (ice-9 readline) module is now part of the ‘guile-readline’
> package.  Thus, to get that functionality, you need to run:
> 
>   guix package -i guile-readline

gnu/system/shadow.scm has:
  (".guile" ,(plain-file "dot-guile"
  "(cond ((false-if-exception (resolve-interface '(ice-9 readline)))

so we might want to fix this systemwide

-- 
Efraim Flashner  אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted


signature.asc
Description: PGP signature


Re: Wayland setup

2018-03-14 Thread Thorsten Wilms

Hi!

I finally got Weston to ... fill my screen with a blocky mess and flood 
STDERR with failure.


To recap:
- use-modules freedesktop and xorg
- global packages: xorg-server-xwayland wayland weston %base-packages
- add "weston-launch" group
- add user to weston-launch
- add user to "input" group
- take care of XDG_RUNTIME_DIR:

  export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir;
  mkdir "${XDG_RUNTIME_DIR}"
  chmod 0700 "${XDG_RUNTIME_DIR}

I might just add that to .bash_profile or try to put both that and 
"weston-launch" in a script; rekado suggested this should be a service, 
but the documentation and examples (mainly looking at 
gnu/services/base.scm) leave me puzzled.


Though now I wonder, what would elogind do, if I had it installed?


The running Weston fills the log with repetitions of:

---
radeon: Failed to allocate a buffer:
radeon:size  : 1048576 bytes
radeon:alignment : 4096 bytes
radeon:domains   : 2
radeon:flags : 4
---

with a few interspersed:
  [17:53:53.145] queueing pageflip failed: Invalid argument
and
  EE r600_texture.c:1419 r600_texture_transfer_map - failed to create 
temporary texture to hold untiled copy


Meanwhile, weston-launch brings up a functional session on my Ubuntu 
17.04; it doesn't seem to be a general problem with my graphics card.




Re: Wayland setup

2018-03-14 Thread Marius Bakke
Hi Thorsten,

Thorsten Wilms  writes:

> Hi!
>
> I finally got Weston to ... fill my screen with a blocky mess and flood 
> STDERR with failure.
>
> To recap:
> - use-modules freedesktop and xorg
> - global packages: xorg-server-xwayland wayland weston %base-packages
> - add "weston-launch" group
> - add user to weston-launch
> - add user to "input" group
> - take care of XDG_RUNTIME_DIR:
>
>export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir;
>mkdir "${XDG_RUNTIME_DIR}"
>chmod 0700 "${XDG_RUNTIME_DIR}
>
> I might just add that to .bash_profile or try to put both that and 
> "weston-launch" in a script; rekado suggested this should be a service, 
> but the documentation and examples (mainly looking at 
> gnu/services/base.scm) leave me puzzled.

Thanks a lot for sharing these forays into Guix' uncharted waters :-)

> The running Weston fills the log with repetitions of:
>
> ---
> radeon: Failed to allocate a buffer:
> radeon:size  : 1048576 bytes
> radeon:alignment : 4096 bytes
> radeon:domains   : 2
> radeon:flags : 4
> ---
>
> with a few interspersed:
>[17:53:53.145] queueing pageflip failed: Invalid argument
> and
>EE r600_texture.c:1419 r600_texture_transfer_map - failed to create 
> temporary texture to hold untiled copy
>
> Meanwhile, weston-launch brings up a functional session on my Ubuntu 
> 17.04; it doesn't seem to be a general problem with my graphics card.

This looks like a driver problem.  Can you post the output of
"dmesg | grep -w 'drm|r600|radeon'" ?

I seem to recall that hardware acceleration on radeon/amdgpu requires
proprietary microcode, even when using the free driver.  Maybe that is
related?


signature.asc
Description: PGP signature