Re: evince: Is this a bug?

2023-05-01 Thread Development of GNU Guix and the GNU System distribution.
Hi,

On Mon, May 1, 2023 at 6:44 PM jgart  wrote:
>
> (evince:8881): Gtk-WARNING **: 20:41:52.851: Could not load a pixbuf from 
> icon theme.
> This may indicate that pixbuf loaders or the mime database could not be found.

I do not see any messages with Evince under EXWM (i.e. no GNOME). I
would make sure gdk-pixbuf is installed, as well as
adwaita-icon-theme, gnome-theme-extras and gnome-themes-standard.

Also, this message [1] seems to indicate that your Gtk is not
installed, or not being found.

Kind regards
Felix

[1] 
https://stackoverflow.com/questions/67745085/gtk-how-can-i-fix-this-problem-could-not-load-a-pixbuf-from-org-gtk-libgtk-ic



evince: Is this a bug?

2023-05-01 Thread jgart
Is this a bug?

$ evince

(evince:8881): Gtk-WARNING **: 20:41:52.851: Could not load a pixbuf from icon 
theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error 
== NULL): Failed to load 
/gnu/store/vkcl29s7qcfgqz1cs6lab98fyxsxyczx-adwaita-icon-theme-43/share/icons/Adwaita/48x48/status/image-missing.png:
 Unrecognized image file format (gdk-pixbuf-error-quark, 3)
Bail out! Gtk:ERROR:gtkiconhelper.c:494:ensure_surface_for_gicon: assertion 
failed (error == NULL): Failed to load 
/gnu/store/vkcl29s7qcfgqz1cs6lab98fyxsxyczx-adwaita-icon-theme-43/share/icons/Adwaita/48x48/status/image-missing.png:
 Unrecognized image file format (gdk-pixbuf-error-quark, 3)

I have gnome-desktop-service running fine that brought with it evince



Re: `mumi send-email' means no more debbugs dance to send multiple patches

2023-05-01 Thread Arun Isaac


Hi Josselin,

> Thanks for looking into it.  I have tried twice now, with the same issue
> both times, with [1] and [2].
>
> [1] mid:cover.1682364024.git@jpoiret.xyz
> https://yhetil.org/guix/cover.1682364024.git@jpoiret.xyz/
>
> [2] mid:cover.1682452738.git@jpoiret.xyz
> https://yhetil.org/guix/cover.1682452738.git@jpoiret.xyz/

I have looked at the headers of both these emails. The Received headers
indicate that they have been received by Debbugs in less than a minute
from the time of sending. Maybe, the mumi server took longer to sync up
with Debbugs, and that's why `mumi send-email' failed. But, I am unable
to ascertain this from the email headers. Maybe, the mumi server keeps
logs, but I don't have ssh access to it. So, I am at a loss as to
debugging this. Ideas welcome!

Regards,
Arun



Re: `mumi send-email' means no more debbugs dance to send multiple patches

2023-05-01 Thread Arun Isaac


> All the above could be handled at the level of git directly with the
> changes suggested in #58813, so I'd suggest we do this, which benefits
> everyone/everything relying on it.

Ah, I was not aware of #58813 and that this could be done at the level
of git. Good point! And, thanks for your work on #58813!

> But I think something extra that mumi send-email could do, which git
> can't (because it doesn't fetch the existing thread data), would be to
> CC all parties that have already commented in the corresponding thread
> (if the issue already exists).  I think this is what John was going
> at.

Done now! I have sent patches to https://issues.guix.gnu.org/63215 . I
will push in a few days unless there are objections.



Re: Running Tor Browser with guix shell

2023-05-01 Thread Development of GNU Guix and the GNU System distribution.



Altadil  writes:

thanks to the blog post on FHS emulation, I’ve been able to run 
Tor
Browser in Guix, so I figured I would help back a little, by 
sharing

this small improvement.
There are two new things in this guix shell command :
- replace gcc:lib (which does not exist anymore) with libgccjit
- add audio.

guix shell -CFN --preserve='^DISPLAY$' --preserve='^XAUTHORITY$' 
--expose=$XAUTHORITY  \
--preserve='XDG_RUNTIME_DIR' --expose=/run/user/"$(id -u)"/pulse 
\
alsa-lib bash coreutils dbus-glib file grep gtk+ libcxx 
libgccjit pciutils pulseaudio sed \

-- ./tor-browser/Browser/start-tor-browser -v

Hopefully, this can spare someone all the trial and error. :)
Since this use case was first discussed on this list, I am 
writing
here, but maybe there is a better place where to put this kind 
of

information ?
Anyway, thank you all for Guix !


It might be nice to have a section in the cookbook for things like 
this? Maybe something like “Containerizing services”, with an 
examples section for common stuff, and an explanation of why the 
flags are used and why the packages are required?


-bjc



Re: Greater bug specifics for automatic team assignment

2023-05-01 Thread Maxim Cournoyer
Hi Felix,

Felix Lechner via "Development of GNU Guix and the GNU System
distribution."  writes:

> Hi Simon,
>
> On Fri, Apr 28, 2023 at 10:02 AM Simon Tournier
>  wrote:
>>
>> What do you have in mind?
>
> In my recollection of using Debbugs in Debian, which uses a slightly
> different version with more features (for example, a SOAP interface)
> than the instance provided by GNU.org, there is a feature called "user
> tags." They allow anyone to set arbitrary labels. [1]

The GNU Debbugs also has the user tags feature (it's documented in our
manual, as was pointed by Simon).

I haven't found how it's supposed to work exactly, as when adding test
tags to some issues, I can't seem to find them back.  Perhaps you could
teach us how you used them, perhaps improving the doc already mentioning
their usage in the Guix manual?  That'd be cool.

-- 
Thanks,
Maxim



New Home service: Pantalaimon

2023-05-01 Thread Kjartan Óli Águstsson
I've been working on a home service for the pantalaimon matrix reverse
proxy (https://github.com/matrix-org/pantalaimon/).  I have been
successfully using successfully for a while now, so I believe it could
be useful to others.  I've attached the service definition, and would
welcome comments from people with more experience in this area of Guix.

Also if there is interest in this service should it go into a new file
in gnu/home/services or into one of the existing files?

(define-module (kjartan home services pantalaimon)
  #:use-module (srfi srfi-26)
  #:use-module (srfi srfi-1)
  #:use-module (guix gexp)
  #:use-module (guix records)
  #:use-module (guix packages)
  #:use-module (gnu services)
  #:use-module (gnu home services)
  #:use-module (gnu services configuration)
  #:use-module (gnu home services shepherd)
  #:use-module (gnu packages matrix)
  #:export (pantalaimon-configuration
pantalaimon-homeserver-configuration
pantalaimon-service-type))

(define (uglify-field-name field-name)
  (string-trim-right
   (if (eq? field-name 'ssl?)
   "SSL"
   (fold-right string-append ""
   (map (cut string-upcase <> 0 1)
(string-split (symbol->string field-name) #\-
   (lambda (c) (eqv? c #\?

(define (port-number? val)
  (and (exact-integer? val) (not (negative? val

(define (serialize-string field-name value)
  (format #f "~a = ~a\n" (uglify-field-name field-name) value))

(define (serialize-port-number field-name value)
  (format #f "~a = ~a\n" (uglify-field-name field-name) value))

(define (serialize-boolean field-name value)
  (format #f "~a = ~a\n" (uglify-field-name field-name) (if value "True" 
"False")))

(define (serialize-boolean-yn field-name value)
  (if (maybe-value-set? value)
  (format #f "~a = ~a\n" (uglify-field-name field-name) (if value "Yes" 
"No"))
  ""))

(define (serialize-boolean-on-off field-name value)
  (if (maybe-value-set? value)
  (format #f "~a = ~a\n" (uglify-field-name field-name) (if value "On" 
"Off"))
  ""))

(define (serialize-symbol field-name value)
  (if (maybe-value-set? value)
  (format #f "~a = ~a\n" (uglify-field-name field-name) (symbol->string 
value))
  ""))

(define (serialize-name field-name value)
  (format #f "\n[~a]\n" value))

(define-maybe port-number)
(define-maybe string)
(define-maybe boolean)
(define-maybe symbol)

(define-configuration pantalaimon-homeserver-configuration
  (name
   string
   "The name of the proxy instance"
   serialize-name)
  (homeserver
   string
   "The URI of the homeserver that the pantalaimon proxy should forward 
requests to, without the matrix API path but including the http(s) schema.")
  (listen-address
   maybe-string
   "The address where the daemon will listen to client connections for this 
homeserver. Defaults to localhost")
  (listen-port
   maybe-port-number
   "The port where the daemon will listen to client connections for this 
homeserver. Note that the listen address/port combination needs to be unique 
between different homeservers. Defaults to 8009.")
  (proxy
   maybe-string
   "An URI of a HTTP proxy that the daemon should use when making requests to 
the homeserver. pantalaimon only supports HTTP proxies. The default is to make 
a direct connection to the homeserver.")
  (ssl?
   maybe-boolean
   "A boolean that decides if SSL verification should be enabled for outgoing 
connections to the homeserver. Defaults to True.")
  (ignore-verification?
   maybe-boolean
   "A boolean that decides if device verification should be enabled. If this is 
True devices will be marked as ignored automatically and encryption keys will 
be shared with them, if this is False the user needs to verify, blacklist or 
ignore devices manually before messages can be sent to a room. Defaults to 
False.")
  (use-keyring?
   maybe-boolean
   "This option configures if a proxy instance should use the OS keyring to 
store its own access tokens. The access tokens are required for the daemon to 
resume operation. If this is set to No, access tokens are stored in the 
pantalaimon database in plaintext. Defaults to Yes."
   serialize-boolean-yn)
  (drop-old-keys?
   maybe-boolean
   "This option configures if a proxy instance should only keep the latest 
version of a room key from a certain user around. This effectively means that 
only newly incoming messages will be decryptable, the proxy will be unable to 
decrypt the room history. Defaults to No."
   serialize-boolean-yn))

(define (list-of-pantalaimon-homeserver-configurations? lst)
  (every pantalaimon-homeserver-configuration? lst))

(define (serialize-list-of-pantalaimon-homeserver-configurations field-name 
value)
  #~(string-append #$@(map (cut serialize-configuration <>
pantalaimon-homeserver-configuration-fields)
   value)))

(define-configuration pantalaimon-configuration
  (pantalaimon
   (package pantalaimon)
   

Running Tor Browser with guix shell

2023-05-01 Thread Altadil
Hi,

thanks to the blog post on FHS emulation, I’ve been able to run Tor Browser in 
Guix, so I figured I would help back a little, by sharing this small 
improvement.
There are two new things in this guix shell command :
- replace gcc:lib (which does not exist anymore) with libgccjit
- add audio.

guix shell -CFN --preserve='^DISPLAY$' --preserve='^XAUTHORITY$' 
--expose=$XAUTHORITY  \
--preserve='XDG_RUNTIME_DIR' --expose=/run/user/"$(id -u)"/pulse \
alsa-lib bash coreutils dbus-glib file grep gtk+ libcxx libgccjit pciutils 
pulseaudio sed \
-- ./tor-browser/Browser/start-tor-browser -v

Hopefully, this can spare someone all the trial and error. :)
Since this use case was first discussed on this list, I am writing here, but 
maybe there is a better place where to put this kind of information ?
Anyway, thank you all for Guix !



Re: #:tests? #f

2023-05-01 Thread Efraim Flashner
On Mon, May 01, 2023 at 05:48:47AM +, jgart wrote:
> hi,
> 
> wdyt
> 
> `guix build qutebrowser --disable-tests`
> 
> or bloat?

Need more context. We already have `guix build qutebrowser  \
--without-tests=qutebrowser`

-- 
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


#:tests? #f

2023-05-01 Thread jgart
hi,

wdyt

`guix build qutebrowser --disable-tests`

or bloat?