Re: PKG_CONFIG_PATH missing from guix-profile/etc/profile

2019-09-27 Thread Marius Bakke
Pierre Neidhardt  writes:

> Hi!
>
> I've installed webkitgtk+ to a custom profile, and the etc/profile file
> does not contain any "export PKG_CONFIG_PATH...".
> Because of this,
>
> --8<---cut here---start->8---
> $ pkg-config --cflags webkit2gtk-4.0
> --8<---cut here---end--->8---
>
> fails to find anything.
>
> Is this a bug?

Search paths are properties of the packages that consume them.  Adding
"pkg-config" to the profile will populate PKG_CONFIG_PATH for that
profile.


signature.asc
Description: PGP signature


PKG_CONFIG_PATH missing from guix-profile/etc/profile

2019-09-27 Thread Pierre Neidhardt
Hi!

I've installed webkitgtk+ to a custom profile, and the etc/profile file
does not contain any "export PKG_CONFIG_PATH...".
Because of this,

--8<---cut here---start->8---
$ pkg-config --cflags webkit2gtk-4.0
--8<---cut here---end--->8---

fails to find anything.

Is this a bug?

-- 
Pierre Neidhardt
https://ambrevar.xyz/


signature.asc
Description: PGP signature


Re: bug#37369: Getting network-manager-openconnect to work

2019-09-27 Thread pelzflorian (Florian Pelz)
Hello!

There might be a workaround:

NetworkManager stopped segfaulting for me after I “edited” the
openconnect VPN connection in nm-connection-editor without making any
changes to the connection.  Apparently this fixed get_secrets_done_cb
being passed what GDB calls an “” as the connection
and crashing in nm_connection_get_setting_by_name.  I need to repeat
this nm-connection-editor editing after every reboot.

Does editing the VPN connection in nm-connection-editor fix the
problem for you, Divan Santana?

No patch at all is required for me.  nmtui works fine without the patch.

This issue is not present in Arch Linux using the more recent
NetworkManager 1.20.2.  I have not yet attempted to upgrade Guix’
NetworkManager to a more recent version.

Regards,
Florian



Re: internal 3g modem

2019-09-27 Thread pelzflorian (Florian Pelz)
On Fri, Sep 27, 2019 at 12:35:38PM +0200, Divan Santana wrote:
> Hi Guix,
> 
> Hopefully someone knowledgeable with these things here can help out. :)
> 
> I'm trying to get the internal 3g modem to work in my Dell laptop
> running guix.
> […]
> I think this is the internal modem device:
> 
> Bus 002 Device 003: ID 413c:81b6 Dell Computer Corp. DW5811e Snapdragon™ X7 
> LTE

ModemManager has a list of supported devices.  Your modem is not
listed there, but older similar modems “Should work”, it says.  Did it
work on another distro before?

I have no experience with dial-up modems, but apparently ppp can be
used somehow to connect with those.  Network-manager can be made to
use ppp, but I do not know if that works in Guix right now.

Regards,
Florian



internal 3g modem

2019-09-27 Thread Divan Santana
Hi Guix,

Hopefully someone knowledgeable with these things here can help out. :)

I'm trying to get the internal 3g modem to work in my Dell laptop
running guix.

Ideally with networkmanager/modemmanager would be great.

Using nm-connection-editor and selecting mobile broadband, it says
can't find any device.

Creating the connection manually and running it says:

ds@swift ~ $ sudo nmcli con up modem-internal
Error: Connection activation failed: No suitable device found for this 
connection.

Creating this file and trying to start the connecting with mbim-network results 
in this:

ds@swift ~ $ cat /etc/mbim-network.conf
APN=internet

ds@swift ~ $ ll /dev/cdc-wdm1
crw--- 1 root root 180, 1 2019-09-27 12:09:35 /dev/cdc-wdm1

ds@swift ~ $ sudo mbim-network /dev/cdc-wdm1 start
Loading profile at /etc/mbim-network.conf...
APN: internet
APN auth protocol: unset
APN user: unset
APN password: unset
mbim-proxy: no
Querying subscriber ready status 'mbimcli -d /dev/cdc-wdm1 
--query-subscriber-ready-status --no-close '...
[/dev/cdc-wdm1] Subscriber ready status retrieved: Ready state: 'initialized' 
Subscriber ID: '655071911202447' SIM ICCID: '89270761914025156856' Ready info: 
'none' Telephone numbers: (0) 'unknown' [/dev/cdc-wdm1] Session not closed: 
TRID: '3'
Saving state at /tmp/mbim-network-state-cdc-wdm1... (TRID: 3)
Querying registration state 'mbimcli -d /dev/cdc-wdm1 
--query-registration-state --no-open=3 --no-close '...
[/dev/cdc-wdm1] Registration status: Network error: 'unknown' Register state: 
'home' Register mode: 'automatic' Available data classes: 'umts, hsdpa, hsupa' 
Current cellular class: 'gsm' Provider ID: '65507' Provider name: 'FNB' Roaming 
text: 'unknown' Registration flags: 'packet-service-automatic-attach' 
[/dev/cdc-wdm1] Session not closed: TRID: '4'
Saving state at /tmp/mbim-network-state-cdc-wdm1... (TRID: 4)
Attaching to packet service with 'mbimcli -d /dev/cdc-wdm1 
--attach-packet-service --no-open=4 --no-close '...
Saving state at /tmp/mbim-network-state-cdc-wdm1... (TRID: 5)
Starting network with 'mbimcli -d /dev/cdc-wdm1 --connect=apn='internet' 
--no-open=5 --no-close '...
Network started successfully
Saving state at /tmp/mbim-network-state-cdc-wdm1... (TRID: 7)

ds@swift ~ $ sudo mbimcli -d /dev/cdc-wdm1 --query-ip-configuration 
--no-open=11 --no-close

[/dev/cdc-wdm1] IPv4 configuration available: 'address, gateway, dns, mtu'
 IP [0]: '10.122.106.8/28'
Gateway: '10.122.106.9'
DNS [0]: '41.50.20.29'
DNS [1]: '41.50.20.61'
MTU: '1500'

[/dev/cdc-wdm1] IPv6 configuration available: 'none'
[/dev/cdc-wdm1] Session not closed:
TRID: '12'

ds@swift ~ $ sudo ip link set wwan0 up
ds@swift ~ $ sudo dhclient -v wwan0
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wwan0/52:da:30:0c:9c:de
Sending on   LPF/wwan0/52:da:30:0c:9c:de
Sending on   Socket/fallback
DHCPDISCOVER on wwan0 to 255.255.255.255 port 67 interval 6
times out.

I think this is the internal modem device:

Bus 002 Device 003: ID 413c:81b6 Dell Computer Corp. DW5811e Snapdragon™ X7 
LTE
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   3.00
  bDeviceClass0
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 9
  idVendor   0x413c Dell Computer Corp.
  idProduct  0x81b6
  bcdDevice0.06
  iManufacturer   1 Sierra Wireless, Incorporated
  iProduct2 DW5811e Snapdragon™ X7 LTE
  iSerial 3 LF81212090021022
  bNumConfigurations  1

It seems from the above it's /almost/ working using mbimcli.

I'm not sure why MM doesn't detect it.