help with USB bluetooth driver

2020-06-26 Thread Jesse Gibbons
I recently purchased the device described here 



H-node says it should work without nonfree drivers. But when I plug it 
in, the kernel says non-free firmware was disabled. Do I need to setup 
anything to get the kernel to load the driver?


H-node says that it was tested on PureOS. I know that PureOS does not 
disable firmware, they simply don't install them on the distro by 
default and don't provide any way to install them. So this could be 
something for Purism to investigate.


I've searched the linux-libre source, including the deblob script, but I 
can't find where it disables that particular device, so it's safe to 
assume that it is not known to require blobs. Furthermore, the device 
itself is documented in the deblobbed source, so it's reasonable to 
expect the device to work.


I confirmed that lsusb -v is almost identical to what's on h-node, where 
the only difference is the serial number. I can't find the hwinfo 
package, so I can't compare the other data. What package contains hwinfo?


If I can get it to load on another gnu/linux-libre operating system, 
it's a problem with guix. Else it is a linux-libre bug and I should 
report it upstream. What linux-libre distro should I check?





Re: Printer configuration

2020-06-26 Thread Kyle Andrews


Wiktor Żelazny writes:

> On Fri, Jun 26, 2020 at 02:13:14PM -0400, Kyle Andrews wrote:
>>
>> Wiktor Żelazny writes:
>>
>> > Does /gnu/store/.../cups/filter/rastertoqpdl exist?
>>
>> Yes, it exists in the splix package, but not in the cups package.
>> Looking at the Guix source code I saw that ~system-config-printer~ (in
>> ~guix/gnu/packages/gnome.scm~) takes input from cups on build, but not
>> from splix or other print drivers. Could that be part of the problem?
>
> I wouldn’t be surprised. On the other hand, it does not import other
> extensions, such as hplip and foomatic-filters, either.
>
> Did you run guix system reconfigure after adding the packages to
> config.scm? Did you try removing and adding the printer again
> afterwards?
>
> Does a /var/guix/profiles/system/profile/lib/cups/filter/rastertoqpdl
> symlink exist in your filesystem? I think you could try changing the
> rastertoqpdl path defined in the system-config-printer configuration (or
> CUPS configuration, assuming it’s just a CUPS GUI frontend) from
> /gnu/store/… to that path. /gnu/store/ contents are volatile. Again,
> just guessing; perhaps the path is hardcoded into the CUPS/splix build
> and uneditable.
>
> WŻ

Hi WZ,

> Did you run guix system reconfigure after adding the packages to
> config.scm? Did you try removing and adding the printer again
> afterwards?

I did reconfigure, but I didn't try removing and adding the printer
again.

> Does a /var/guix/profiles/system/profile/lib/cups/filter/rastertoqpdl
> symlink exist in your filesystem? I think you could try changing the
> rastertoqpdl path defined in the system-config-printer configuration (or
> CUPS configuration, assuming it’s just a CUPS GUI frontend) from
> /gnu/store/… to that path. /gnu/store/ contents are volatile. Again,
> just guessing; perhaps the path is hardcoded into the CUPS/splix build
> and uneditable.

It does appear to exist. Actually, I figured out how to successfully
print a document using ~libreoffice --headless -p test.odt~. So, I think
my printer problem is actually reflecting a problem with
system-config-printer.

Kyle




Re: Printer configuration

2020-06-26 Thread Tobias Geerinckx-Rice

Kyle,

I'd strongly recommend using the ‘real’ CUPS interface at 
localhost:631 over any third-party helper, but…


Kyle Andrews 写道:
The CUPS localhost page was behaving strangely (stalling on 
load)

when I tried to click the administration tab.


I can confirm that the Administration tab freezes on my laptop and 
print server (CUPS proxied through nginx).  That's new :-/  I'll 
report a bug for that.


Thanks,

T G-R


signature.asc
Description: PGP signature


non-ascii char in mount-point name ?

2020-06-26 Thread Fulbert
Hi,

  In my Guix system configuration file, I have a
(file-system …  (mount-point "/mnt/raté"))
with a 'é' (U+00E9) in its name, which gives the following error when
trying to reconfigure :

system: error: invalid character `�' in name 
`shepherd-file-system--mnt-raté.scm-builder'


Did I miss something or is it a Guix limitation ?



Re: Printer configuration

2020-06-26 Thread Wiktor Żelazny
On Fri, Jun 26, 2020 at 02:13:14PM -0400, Kyle Andrews wrote:
>
> Wiktor Żelazny writes:
>
> > Does /gnu/store/.../cups/filter/rastertoqpdl exist?
>
> Yes, it exists in the splix package, but not in the cups package.
> Looking at the Guix source code I saw that ~system-config-printer~ (in
> ~guix/gnu/packages/gnome.scm~) takes input from cups on build, but not
> from splix or other print drivers. Could that be part of the problem?

I wouldn’t be surprised. On the other hand, it does not import other
extensions, such as hplip and foomatic-filters, either.

Did you run guix system reconfigure after adding the packages to
config.scm? Did you try removing and adding the printer again
afterwards?

Does a /var/guix/profiles/system/profile/lib/cups/filter/rastertoqpdl
symlink exist in your filesystem? I think you could try changing the
rastertoqpdl path defined in the system-config-printer configuration (or
CUPS configuration, assuming it’s just a CUPS GUI frontend) from
/gnu/store/… to that path. /gnu/store/ contents are volatile. Again,
just guessing; perhaps the path is hardcoded into the CUPS/splix build
and uneditable.

WŻ


signature.asc
Description: PGP signature


Re: Printer configuration

2020-06-26 Thread Kyle Andrews


Wiktor Żelazny writes:

> On Fri, Jun 26, 2020 at 12:56:08PM -0400, Kyle Andrews wrote:
>
>> I observed no change in the error I get when trying to print a test
>> page.
>
> Does /gnu/store/.../cups/filter/rastertoqpdl exist?
>
> Is the user printing the test page a member of the lp group (lpadmin
> might also help)?
>
> WŻ

Hi WZ,

Thanks for following up.

> Does /gnu/store/.../cups/filter/rastertoqpdl exist?

Yes, it exists in the splix package, but not in the cups
package. Looking at the Guix source code I saw that
~system-config-printer~ (in ~guix/gnu/packages/gnome.scm~) takes input
from cups on build, but not from splix or other print drivers. Could
that be part of the problem?

> Is the user printing the test page a member of the lp group (lpadmin
> might also help)?

The user is in the lp group. I didn't know about lpadmin. I will add
that group as well and see if it changes anything. The CUPS localhost
page was behaving strangely (stalling on load) when I tried to click the
administration tab. Thanks for the tip!

Kyle




Re: Install older version of a package with the "@version" specifier

2020-06-26 Thread zimoun
Dear,

On Fri, 26 Jun 2020 at 19:15, Julien Lepiller  wrote:

> - use r from an old revision of guix that had the version you're looking for. 
> This can be done using an "inferior". The package will more likely build (and 
> even have substitutes), but it uses the old version of all its dependencies, 
> which are not necessarily patched for vulnerabilities and may require more 
> space to be stored, as they are not shared with other packages.

It is not easy to find the old revision (commit) which owns the
version you are looking for.  In such cases, the Guix Data Service
could help.  For example, this URL lists all the R versions in Guix
over the time:

https://data.guix.gnu.org/repository/1/branch/master/package/r

As you can see, it is rare that 2 versions of R exist at the same time
in Guix.  I let you click and you will find that the last commit
containing the R version 3.6.3 is the commit 899093.

https://data.guix.gnu.org/revision/89909327d017198969436237acc7c93823ff8147/package/r/3.6.3

Then the way for creating an inferior is "guix time-machine".  It goes
back but without polluting your current setup; you can have different
versions from different time/commit.  The following command creates
temporarily an old Guix version and use it for spawning an environment
containing R.

--8<---cut here---start->8---
$ guix time-machine --commit=899093  \
 -- environment --ad-hoc r-minimal \
 -- R
R version 3.6.3 (2020-02-29) -- "Holding the Windsock"
[...]
> sessionInfo()
R version 3.6.3 (2020-02-29)
Platform: x86_64-unknown-linux-gnu (64-bit)
Running under: Debian GNU/Linux 10 (buster)

Matrix products: default
BLAS/LAPACK: 
/gnu/store/vax1vsg3ivf0r7j7n2xkbi1z3r0504l9-openblas-0.3.7/lib/libopenblasp-r0.3.7.so

locale:
[1] C

attached base packages:
[1] stats graphics  grDevices utils datasets  methods   base

loaded via a namespace (and not attached):
[1] compiler_3.6.3
>
--8<---cut here---end--->8---

Instead of 'environment', you can use 'install -p
/path/to/profile/with/old/R'.  However, it is important to be clear
with which version of R you are using and which version is used to
"compile" the R packages you will install, and use a manifest.scm file
is really a good practise when traveling in time. :-)


Hope that helps,
simon



Re: Printer configuration

2020-06-26 Thread Wiktor Żelazny
On Fri, Jun 26, 2020 at 12:56:08PM -0400, Kyle Andrews wrote:

> I observed no change in the error I get when trying to print a test
> page.

Does /gnu/store/.../cups/filter/rastertoqpdl exist?

Is the user printing the test page a member of the lp group (lpadmin
might also help)?

WŻ


signature.asc
Description: PGP signature


Re: Install older version of a package with the "@version" specifier

2020-06-26 Thread Julien Lepiller
Le 26 juin 2020 12:07:42 GMT-04:00, Lo Peter  a 
écrit :
>Dear all,
>
>I am trying to install r version 3.6.3, where the current version is at
>4.0.2.
>
>Accordingly to the manual at
>https://guix.gnu.org/manual/en/html_node/Invoking-guix-package.html it
>should be possible to specify the package version such as "guix
>package -i r@3.6.2", but on my guix (installed on slackware 14.2), it
>says:
>guix package: error: r: package not found for version 3.6.2
>
>What am I missing here?
>
>Regards,
>Peter

In general, at any point in time, we only keep one version of each packages. 
Exceptions are pretty rare (gcc, python, …). There two ways to get a version 
that's different from the one in the current guix:

- use the current guix and apply the recipe to an different version, by using 
something --with-source=r=r-3.6.3.tar.gz or similar. This is not guaranteed to 
work, as it applies the build procedure of version 4 to version 3. It uses 
recent software that are patched for vulnerability though.

- use r from an old revision of guix that had the version you're looking for. 
This can be done using an "inferior". The package will more likely build (and 
even have substitutes), but it uses the old version of all its dependencies, 
which are not necessarily patched for vulnerabilities and may require more 
space to be stored, as they are not shared with other packages.

HTH!



Re: Printer configuration

2020-06-26 Thread Kyle Andrews


Wiktor Żelazny writes:

> On Thu, Jun 25, 2020 at 10:11:36PM -0400, Kyle Andrews wrote:
>
>> (use-modules ...
>>   (gnu packages cups)
>>  ...)
>
>>   (service cups-service-type
>> (cups-configuration
>>  (extensions
>>   (list hplip-minimal cups-filters splix))
>>  (server-name host-name)
>>  (host-name-lookups #t)
>>  (web-interface? #t)))
>
> Hi Kyle,
>
> Just a wild guess, but how about declaring cups and splix in the
> `packages` part of your config.scm?
>
> WŻ

Thanks for the suggestion, WZ! I gave it a shot adding cups and splix
into my default packages. Unfortunately, even after completely
restarting the computer I observed no change in the error I get when
trying to print a test page.



Install older version of a package with the "@version" specifier

2020-06-26 Thread Lo Peter
Dear all,

I am trying to install r version 3.6.3, where the current version is at 4.0.2.

Accordingly to the manual at
https://guix.gnu.org/manual/en/html_node/Invoking-guix-package.html it
should be possible to specify the package version such as "guix
package -i r@3.6.2", but on my guix (installed on slackware 14.2), it
says:
guix package: error: r: package not found for version 3.6.2

What am I missing here?

Regards,
Peter



Re: Building packages in REPL

2020-06-26 Thread Efraim Flashner
On Fri, Jun 26, 2020 at 12:00:17PM +0200, zimoun wrote:
> Dear,
> 
> On Fri, 26 Jun 2020 at 09:25, Konrad Hinsen  
> wrote:
> > Anthony Quizon  writes:
> >
> >> Is there a way that I can build a package via the repl?
> 
> Well, it is not what you are asking I guess, but it is possible:
> 
> --8<---cut here---start->8---
> $ guix repl
> scheme@(guix-user)> (use-modules (guix scripts build))
> scheme@(guix-user)> (guix-build "-L" "." "bonjour")
> /gnu/store/m658csbnly6zywfl5nax9glya3rzhbdy-bonjour-2.10
> --8<---cut here---end--->8---
> 

As a side note, the various guix-foo commands from guix/scripts/* have
an undefined return value so you can't check for #t or anything to see
if a package built.

-- 
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: installing buildutils-gold

2020-06-26 Thread Anthony Quizon
Awesome, thanks!

On Fri, Jun 26, 2020 at 10:07 PM Marius Bakke  wrote:

> Hello Anthony,
>
> Anthony Quizon  writes:
>
> > Hello,
> > I'm trying to install gold linker using guix.
> > I noticed there is a package in `(gnu packages base)` called
> > "binutils-gold". However, it doesn't come up on the search via `guix
> search
> > binutils-gold` and I'm unable to install it.
> >
> > Why is this?
>
> This is because the regular binutils package was recently 'hidden' due
> to an upstream bug, and 'binutils-gold' accidentally inherited the
> 'hidden?' property.
>
> > How can I install gold linker using guix?
>
> I fixed the inheritance in 4a13050b877f9058414f4b7633e423726e9bbb32, so
> you should be able to install it (again) after a 'guix pull'.
>
> Thanks for reporting the issue!  :-)
>


Re: installing buildutils-gold

2020-06-26 Thread Marius Bakke
Hello Anthony,

Anthony Quizon  writes:

> Hello,
> I'm trying to install gold linker using guix.
> I noticed there is a package in `(gnu packages base)` called
> "binutils-gold". However, it doesn't come up on the search via `guix search
> binutils-gold` and I'm unable to install it.
>
> Why is this?

This is because the regular binutils package was recently 'hidden' due
to an upstream bug, and 'binutils-gold' accidentally inherited the
'hidden?' property.

> How can I install gold linker using guix?

I fixed the inheritance in 4a13050b877f9058414f4b7633e423726e9bbb32, so
you should be able to install it (again) after a 'guix pull'.

Thanks for reporting the issue!  :-)


signature.asc
Description: PGP signature


Re: BPF in linux-libre

2020-06-26 Thread Mathieu Othacehe

Hello John,

> ld: 
> /gnu/store/80y2wbx9lrhvwp41nnyjjsb4g9ff8avn-clang-toolchain-9.0.1/lib/libbfd.a(compress.o):
>  undefined reference to symbol 'inflateEnd'
> ld: 
> /gnu/store/80y2wbx9lrhvwp41nnyjjsb4g9ff8avn-clang-toolchain-9.0.1/lib/libz.so.1:
>  error adding symbols: DSO missing from command line
>
> I added zlib to the inputs of bpftrace but still the same error.  Are
> there any CMake experts out there that can tell if there is a flag or
> option to use here? Is this an upstream issue?

By default, a dynamic version of bpftrace is built. However, as we do
not provide a libbpf.so, it falls back on libbpf.a.

There's a comment in FindLibBfd.cmake which says:

--8<---cut here---start->8---
# libbfd.a is not statically linked with libiberty.a or libz.a so we must 
manually
# do it. Furthermore, libbfd uses some libc symbols that we must manually
# link against if we're not using static libc (which includes such symbols).
--8<---cut here---end--->8---

So when STATIC_LINKING is ON, they add "libz" to the required
libraries. It would be preferable to avoid building a static bpftrace,
so I tried to provide a dynamic version of libbpf.

There's still a failure at validate-runpath phase that need to be
fixed, not sure why.

Thanks,

Mathieu


diff
Description: Binary data


Re: Building packages in REPL

2020-06-26 Thread zimoun
Hi Julien,

On Fri, 26 Jun 2020 at 06:17, Julien Lepiller  wrote:

> One way to do this with the guix API is to get the derivation, then build it:
>
> (use-modules (guix derivations) (guix store) (gnu packages bash))
> (define package bash-minimal)
> (define store (open-connection))
> (define der (package-derivation store package))
> (build-derivations store (list der))
>
> Is that what you want?

Yes, but provides something like:

--8<---cut here---start->8---
(use-modules
 (guix store)
 (guix derivations)
 (guix packages))
 
(define (build-packages packages)
  (with-store store
(let ((builds (map (lambda (package)
 (package-derivation store package))
   packages)))
  (build-derivations store builds

(define (build-package package)
  (build-packages (list package)))
--8<---cut here---end--->8---

Because otherwise, you need to know "package-derivation" and
"build-derivation" and where they are (I run 'ag' or 'git-grep'
to find them which is not handy).  And for example, I knew it was
possible but it was not "obvious". :-)

Cheers,
simon






Re: Building packages in REPL

2020-06-26 Thread Julien Lepiller
Le 26 juin 2020 06:00:17 GMT-04:00, zimoun  a écrit :
>Dear,
>
>On Fri, 26 Jun 2020 at 09:25, Konrad Hinsen
> wrote:
>> Anthony Quizon  writes:
>>
>>> Is there a way that I can build a package via the repl?
>
>Well, it is not what you are asking I guess, but it is possible:
>
>--8<---cut here---start->8---
>$ guix repl
>scheme@(guix-user)> (use-modules (guix scripts build))
>scheme@(guix-user)> (guix-build "-L" "." "bonjour")
>/gnu/store/m658csbnly6zywfl5nax9glya3rzhbdy-bonjour-2.10
>--8<---cut here---end--->8---
>
>And there is no '~' expansion so "-L" "~/somewhere" does not work.
>
>> As far as I know, no. I have been looking for this as well,
>> in order to make package development more interactive.
>
>Well, I do not know enough the API but it should be added and exposed
>if
>it does not exist yet.  And the question is which level of granularity?
>
>
>>> For example,
>>> If I had a channel with a custom package in it, can I do:
>>>
>>> `$ guix repl -L .`
>>> `> ,use (my-channel packages base) `
>>> `> (build-package my-package) ;; this is the example imaginary
>command `
>
>The entry point is "(guix scripts build)".
>
>> I'd even want more: access to the individual build steps.
>
>Do you mean the "phases"?
>
>
>All the best,
>simon

One way to do this with the guix API is to get the derivation, then build it:

(use-modules (guix derivations) (guix store) (gnu packages bash))
(define package bash-minimal)
(define store (open-connection))
(define der (package-derivation store package))
(build-derivations store (list der))

Is that what you want?



Re: Building packages in REPL

2020-06-26 Thread zimoun
Dear,

On Fri, 26 Jun 2020 at 09:25, Konrad Hinsen  wrote:
> Anthony Quizon  writes:
>
>> Is there a way that I can build a package via the repl?

Well, it is not what you are asking I guess, but it is possible:

--8<---cut here---start->8---
$ guix repl
scheme@(guix-user)> (use-modules (guix scripts build))
scheme@(guix-user)> (guix-build "-L" "." "bonjour")
/gnu/store/m658csbnly6zywfl5nax9glya3rzhbdy-bonjour-2.10
--8<---cut here---end--->8---

And there is no '~' expansion so "-L" "~/somewhere" does not work.

> As far as I know, no. I have been looking for this as well,
> in order to make package development more interactive.

Well, I do not know enough the API but it should be added and exposed if
it does not exist yet.  And the question is which level of granularity?


>> For example,
>> If I had a channel with a custom package in it, can I do:
>>
>> `$ guix repl -L .`
>> `> ,use (my-channel packages base) `
>> `> (build-package my-package) ;; this is the example imaginary command `

The entry point is "(guix scripts build)".

> I'd even want more: access to the individual build steps.

Do you mean the "phases"?


All the best,
simon



Re: Building packages in REPL

2020-06-26 Thread Konrad Hinsen
Anthony Quizon  writes:

> Is there a way that I can build a package via the repl?

As far as I know, no. I have been looking for this as well,
in order to make package development more interactive.

> For example,
> If I had a channel with a custom package in it, can I do:
>
> `$ guix repl -L .`
> `> ,use (my-channel packages base) `
> `> (build-package my-package) ;; this is the example imaginary command `

I'd even want more: access to the individual build steps.

Konrad



Re: Printer configuration

2020-06-26 Thread Wiktor Żelazny
On Thu, Jun 25, 2020 at 10:11:36PM -0400, Kyle Andrews wrote:

> (use-modules ...
>(gnu packages cups)
>  ...)

>   (service cups-service-type
>  (cups-configuration
>   (extensions
>(list hplip-minimal cups-filters splix))
>   (server-name host-name)
>   (host-name-lookups #t)
>   (web-interface? #t)))

Hi Kyle,

Just a wild guess, but how about declaring cups and splix in the
`packages` part of your config.scm?

WŻ


signature.asc
Description: PGP signature