Guix Emacs: use XRandr rather than Gdk?

2019-02-10 Thread Benjamin Slade
In both flown-blown GuixSD as well as Guix on a foreign distro, Guix's
Emacs seems to use "Gdk" rather than "XRandr" to get screen/monitor
information. Every other packaged version of Emacs I've tried uses
"XRandr" to get screen/monitor information. This is an issue because
"Gdk" apparently doesn't know about individual screens/monitors, but
only about the aggregate area, whereas "XRandr" returns individual
screen names (e.g. "DVI-1") and their respective areas. This means that,
on multi-monitor, where Emacs packages use the `frame.el` library, there
is no way of distinguishing screens/monitors (problematically for
packages which try to make reference to different screens,
e.g. https://gitlab.com/emacsomancer/equake ). I thought I'd start here,
since I've only found this behaviour on Guix, and `frame.el` doesn't
seem to be very forthcoming about how it decides whether to use 'Gdk' or 
'XRandr'.

 -Ben

-- 
Benjamin Slade - https://babbagefiles.xyz - https://slade.jnanam.net
  `(pgp_fp: ,(21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19))
'(sent by mu4e on Emacs running under GNU/Linux . https://gnu.org )
   `(Choose Linux ,(Choose Freedom) . https://linux.com )



Re: Spliting a huge package

2019-02-10 Thread Ludovic Courtès
Hi Hartmut,

Hartmut Goebel  skribis:

> following up a discussion from the GNUne mailinglist about how to slice
> the software, I would like to learn about the best practice of packaging
> huge packages in guix.

For Git we have a bunch of different outputs, which works well but is a
bit weird for users.

In other cases, we have “-minimal” variants and a regular, full-featured
variant.

There are also cases like Octave where there are several packages.

So I guess it really depends on what the split involves technically and
how it affects actual usage.

Thanks,
Ludo’.



Re: Guile fails to build

2019-02-10 Thread Ludovic Courtès
Hi Tobias!

Tobias Platen  skribis:

> When using the wip-gcc7 branch building guile fails with an out of
> memory error.

[...]

> GC Warning: Out of memory - trying to allocate requested amount (336 bytes)...
> GC Warning: Out of memory - trying to allocate requested amount (336 bytes)...
> GC Warning: Header allocation failed: dropping block
> GC Warning: Failed to expand heap by 6864896 bytes
> GC Warning: Failed to expand heap by 65536 bytes
> GC Warning: Out of Memory! Heap size: 21 MiB. Returning NULL!
> GC Warning: Failed to expand heap by 65536 bytes
> GC Warning: Out of Memory! Heap size: 21 MiB. Returning NULL!
> Warning: Unwind-only `out-of-memory' exception; skipping pre-unwind handler.
> FAIL: test-out-of-memory
> ==
> 1 of 39 tests failed

I suspect this test fails non-deterministically.

At any rate, ‘wip-gcc7’ has been merged in ‘core-updates’ now so I’d
suggest using that branch instead.  Note that ‘core-updates’ is pretty
much work-in-progress until it’s frozen, though.

Thanks,
Ludo’.



GDM update!

2019-02-10 Thread Ludovic Courtès
Hello Guix!

I’m happy to report that GDM basically works, including choosing among X
session… and it has a neat Guix theme!


The one thing I didn’t get to work is ~/.xsession support.  Any ideas?

I’d real like to get that fixed and then we can finally replace SLiM
with GDM as the default.

BTW, at the Guix Days, there were discussions about defaulting to
LightDM instead of GDM.  I forgot to mention then that using LightDM
wouldn’t solve the GNOME use case; in particular, closing the lid under
GNOME wouldn’t lock the screen, and clicking the lock button wouldn’t
have any effect, which is pretty bad.

Ludo’.


Re: libgtk3-nocsd and LD_PRELOAD

2019-02-10 Thread Björn Höfling
On Fri, 08 Feb 2019 22:58:01 +0100
Ludovic Courtès  wrote:

 
> Regardless of what this library does, if you need to preload it for
> Guix-built applications, then this library should also be built from
> Guix (otherwise you end up with several libcs, etc. in the same
> process, which is never a good thing.)
> 
> So I’d recommend packaging this library and then you can hopefully
> preload at will.  :-)

Acutally, I don't know if I _need_ it... It's just what my foreign
distro does ...

I'm a bit lazy about this and decided to only unset the variable in
my .bash file. One day I will switch to full GuixSD anyway. Each
step that raises the preasure for switching is good :-)

Björn


pgpZvphxHOslY.pgp
Description: OpenPGP digital signature


Re: New topic: configuration video

2019-02-10 Thread Björn Höfling
On Sat, 9 Feb 2019 20:50:47 -0300
Laura Lazzati  wrote:

> Hi Guix!
> 
> Out next video will be about getting our system properly configured.
> For instance, the troubleshooting with locales, source your profile,
> and whatever you think it should be mentioned in a 3 min video about
> having your system working.
> So let's the discussion start :)

Hi Laura, 

I would do all things mentioned in

https://www.gnu.org/software/guix/manual/en/guix.html#Application-Setup

I'm not sure of how much we can get into in 3 minutes, but one idea
would be to show the side-effects before and after doing the step.

For example, on could install and start icecat, see that the fonts look
totally non-available, install the fonts and show again that the output
is nice now.

That concrete example would then need a graphical screen-cast though, a
technical aspect we have not covered in the current workflow. Well or
at least a screen-shot, that could be enough.

Björn


pgpNksVeD6CgY.pgp
Description: OpenPGP digital signature


Re: Final discussion on the content of the Guix daily use video

2019-02-10 Thread Björn Höfling
Hi Gábor,

On Sun, 10 Feb 2019 12:49:52 +0100
Gábor Boskovits  wrote:

> Hello guix,
> 
> The final discussion of the content of the Guix daily use video will
> be at: Monday, 12:00 UTC
> 
> on IRC channel ##guix-outreachy at freenode.
> 
> It is expected that it will last around 15 minutes.

I'm very skeptical if we can finalize any discussions within 15 minutes
on IRC, if there starts one. I would prefer the mail-only discussions.
But let's see how it goes :-)

I'm not yet sure if I can join.

Björn


pgpjzrPoNR9FC.pgp
Description: OpenPGP digital signature


Re: Issue with my version of guix

2019-02-10 Thread znavko
Hello, Laura!
To update guix use this line under every user you need:

$ guix pull && guix package -u

by root the same:
# guix pull && guix package -u

Then `guix describe` or `guix --version` will show the commit you have. 

But I really do not know how to look human readable version like 0.15 or 0.16 ??


Also if you need to upgrade guix-daemon (but this does not matter,
Ricardo Wurmus said here 
https://lists.gnu.org/archive/html/help-guix/2019-01/msg0.html 
 ) 
you can use by root:

# guix system reconfigure /path/to/your/config.scm

If you do not use config.scm you will not be able to configure your system 
(something like  changing network settings or display manager settings 
(autologin for example)). You can copy it from example here 
https://www.gnu.org/software/guix/manual/en/guix.html#Using-the-Configuration-System
 

  . People say there are a lot of examples in the web. But there is no any link 
in manual, and I did not find in guix.cgit.

If you want to try different substitution servers use command to authorize new 
server you use first time and option --substitute-urls
You also can read manual 'Substitutes' section: 
https://www.gnu.org/software/guix/manual/en/guix.html#Substitutes 


Hope, it helps. 

Feb 8, 2019, 3:25 PM by laura.lazzati...@gmail.com:

> Hi Guix!
>
> i have an issue with my guix version. It seems to have not been
> upgraded to guix 0.16.0, even I have the new commands.
>
> This is the output of my guix --version, which shows a commit.
> guix --version
> guix (GNU Guix) 9d58e8819fdbc4c1c8a1ef6149e2d2376731a6a6
> Copyright (C) 2019 the Guix authors
>
> And both for installing stuff with guix package or even guix pulling,
> I need to add the subsitute option for using > https://ci.guix.info 
> 
> Otherwhise it uses the mirror from hydra.
>
> Do you know what I am missing here?
>
> Regards :)
> Laura
>



Re: Issue with my version of guix

2019-02-10 Thread Danny Milosavljevic
Hi Laura,

On Fri, 8 Feb 2019 16:22:08 -0300
Laura Lazzati  wrote:

> Weirdest, look at this:
> guix-daemon (GNU Guix) 0.16.0-3.6ddc63e
> root@ada:~# /proc/$(pidof -s guix-daemon)/exe -V
> guix-daemon (GNU Guix) 0.15.0-8.71a78ba

Yeah, I think Guix on GuixSD uses the guix-daemon from the package "guix",
which is always a little behind (it has to be updated by guix like any
other package).

Personally, I'd prefer if it was in an extra package "guix-daemon"--that
would be a lot less confusing.  I've checked and "guix-daemon" package
seems to exist.  Huh?  Maybe it's already like that?  Ludo?

> > Does your system configuration in /etc/config.scm specify custom
> > substitute-urls ?  
> I don't have that file? should I?

Hmm, I think the name is freely chooseable.  I meant your version of
desktop.scm where you have your operating-system configuration - it
can also contain a list of substitute servers to try.


pgp9CE9OPJRzu.pgp
Description: OpenPGP digital signature


Re: New videos: topic daily use.

2019-02-10 Thread Laura Lazzati
Another important IMHO for tomorrow's discussion which I guess I did
not mention but is quite useful and came to my mind : --list-installed
 :)
Regards!
Laura



Re: New videos: topic daily use.

2019-02-10 Thread Laura Lazzati
Hi Guix!Since tomorrow we have our 15 min final discussion, sth came
into my mind while reading the documentation again

> I am also looking for a video about manifests.
 WDYT about mentioning how powerful a manifest is, but let the "CLI
session" maybe for another video. For example, when mentioning the
basics, just say "instead of installing each package one by one, or if
you want to have your profile generated once, or have it in several
machines, then a manifest is a good idea" (doesn't have to be that
sentence).
Think about it for tomorrow's discussion :)
Regards!
Laura



Re: Guix shepherd user services

2019-02-10 Thread Gábor Boskovits
Hello Pierre,

> It would also make it possible to fully _initialize_ a user profile (just like
> we initialize the operating-system) with the desired files.  For instance, a
> service could synchronize git repositories (e.g. your dotfiles), deploy it,
> synchronize your emails, generate the mlocate cache, snapshot some btrfs 
> drives,
> you name it.

This would be awesome! How could we help you to make this happen?

Best regards,
g_bor



Getting a copy of the Cuirass (berlin.guixsd.org) database

2019-02-10 Thread Christopher Baines
Hey,

Would someone be able to make a copy of the Cuirass database available?
It might be useful when tinkering with Cuirass, as it contains some
realistic data.

I don't know much about SQLite, but it looks like there's a ".backup"
command [1] which might be useful.

1: https://sqlite.org/cli.html#special_commands_to_sqlite3_dot_commands_

Thanks,

Chris


signature.asc
Description: PGP signature


Final discussion on the content of the Guix daily use video

2019-02-10 Thread Gábor Boskovits
Hello guix,

The final discussion of the content of the Guix daily use video will be at:
Monday, 12:00 UTC

on IRC channel ##guix-outreachy at freenode.

It is expected that it will last around 15 minutes.

Please feel free to join if you wish.

Best regards,
g_bor