bug#42151: [PATCH 4/3] database: Do not use journal_model=WAL for the Hurd.

2020-07-04 Thread Jan Nieuwenhuizen
Jan Nieuwenhuizen writes:

Adding one additional patch to this series, hence 4/3 (see attached)
fixes the sqlite problem.

With this over-complete series we can now do offload builds to a
childhurd:

--8<---cut here---start->8---
$ guix build -e '(@@ (gnu packages commencement) rsync-boot0)'
sending 74 store items (365 MiB) to 'localhost'...
exporting path 
`/gnu/store/1kf05mhh31wl89r3mlx52x5sxrjivi7i-module-import-compiled-guile-builder'
exporting path `/gnu/store/7jxamp3g8wdr6vwrisqfmrncxh8nbfb4-mirrors'
[...]
exporting path `/gnu/store/x8wnf0h0ipibgzadlbmll8bcnhvv1yaq-diffutils-boot0-3.7'
offloading '/gnu/store/3xmmbjfqrl4p4sn8vljfdikypb0vi5am-rsync-3.1.3.drv' to 
'localhost'...
offloading build of /gnu/store/3xmmbjfqrl4p4sn8vljfdikypb0vi5am-rsync-3.1.3.drv 
to 'localhost'
[...]
@ build-succeeded /gnu/store/3xmmbjfqrl4p4sn8vljfdikypb0vi5am-rsync-3.1.3.drv -
retrieving 1 store item from 'localhost'...
importing file or directory 
'/gnu/store/haf6mlm8xa6s2q918s05pijl6ql17mnq-rsync-3.1.3'...
guix offload: error: corrupt input while restoring archive from #
guix build: error: build of 
`/gnu/store/3xmmbjfqrl4p4sn8vljfdikypb0vi5am-rsync-3.1.3.drv' failed
[1]10:04:55 janneke@dundal:~/src/guix/master [env]
--8<---cut here---end--->8---

After the build succeeds, the download fails but lets first get this
patch series done...

Janneke

>From dc6f96fc7de50602fb28d7ad7b8cbff09e55f538 Mon Sep 17 00:00:00 2001
From: "Jan (janneke) Nieuwenhuizen" 
Date: Fri, 3 Jul 2020 23:45:20 +0200
Subject: [PATCH 4/3] database: Do not use journal_model=WAL for the Hurd.
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8

This fixes .

* guix/store/database.scm (call-with-database): When building for the Hurd,
do not set journal_model=WAL.
---
 guix/store/database.scm | 12 +---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/guix/store/database.scm b/guix/store/database.scm
index a38e4d7e52..da46b0abce 100644
--- a/guix/store/database.scm
+++ b/guix/store/database.scm
@@ -1,6 +1,7 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2017, 2019 Caleb Ristvedt 
 ;;; Copyright © 2018, 2020 Ludovic Courtès 
+;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen 
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -20,6 +21,7 @@
 (define-module (guix store database)
   #:use-module (sqlite3)
   #:use-module (guix config)
+  #:use-module (guix gexp)
   #:use-module (guix serialization)
   #:use-module (guix store deduplication)
   #:use-module (guix base16)
@@ -27,6 +29,7 @@
   #:use-module (guix build syscalls)
   #:use-module ((guix build utils)
 #:select (mkdir-p executable-file?))
+  #:use-module (guix utils)
   #:use-module (guix build store-copy)
   #:use-module (srfi srfi-1)
   #:use-module (srfi srfi-11)
@@ -105,9 +108,12 @@ create it and initialize it as a new database."
  (mkdir-p (dirname file))
  #t)))
 (db   (sqlite-open file)))
-;; Turn DB in "write-ahead log" mode, which should avoid SQLITE_LOCKED
-;; errors when we have several readers: .
-(sqlite-exec db "PRAGMA journal_mode=WAL;")
+;; Using WAL breaks for the Hurd .
+(unless (let-system (system target)
+  (equal? target "i586-pc-gnu"))
+  ;; Turn DB in "write-ahead log" mode, which should avoid SQLITE_LOCKED
+  ;; errors when we have several readers: .
+  (sqlite-exec db "PRAGMA journal_mode=WAL;"))
 
 ;; Install a busy handler such that, when the database is locked, sqlite
 ;; retries until 30 seconds have passed, at which point it gives up and
-- 
Jan Nieuwenhuizen  | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com


-- 
Jan Nieuwenhuizen  | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com


bug#42186: emacs swiper package missing since ivy update 0.13.1

2020-07-04 Thread Pierre Langlois
Hi Nicolas, hello Guix!

I just noticed the last update to the emacs-ivy package removed
swiper.el from the package by moving from github to elpa. It seems elpa
packages ivy and swiper separately
(https://elpa.gnu.org/packages/swiper.html).

I don't have time to submit a patch to fix it at the moment so I'm just
filing a bug, but I can get to it next week if needed :-). I think we
can either go back to using github to fetch the source, or package
emacs-swiper separately.

WDYT?

Thanks!
Pierre






bug#42186: emacs swiper package missing since ivy update 0.13.1

2020-07-04 Thread Pierre Langlois


Pierre Langlois writes:

> Hi Nicolas, hello Guix!
>
> I just noticed the last update to the emacs-ivy package removed
> swiper.el from the package by moving from github to elpa. It seems elpa
> packages ivy and swiper separately
> (https://elpa.gnu.org/packages/swiper.html).

Looking at elpa, it seems 0.13.1 isn't a new update to the code itself
(I couldn't find any 0.13.1 release upstream) but instead a change that
splits ivy into three packages for ivy, swiper and counsel. I wonder if
that means we should also package emacs-counsel separately, they mention
version conflict issues although I imagine we don't have this problem
in guix.

https://git.savannah.gnu.org/cgit/emacs/elpa.git/commit/packages/ivy?id=782117aa34418ff66ecf763327f1e2aa69f234f9

Thanks,
Pierre





bug#42186: emacs swiper package missing since ivy update 0.13.1

2020-07-04 Thread Nicolas Goaziou
Hello,

Pierre Langlois  writes:

> I just noticed the last update to the emacs-ivy package removed
> swiper.el from the package by moving from github to elpa. It seems elpa
> packages ivy and swiper separately
> (https://elpa.gnu.org/packages/swiper.html).
>
> I don't have time to submit a patch to fix it at the moment so I'm just
> filing a bug, but I can get to it next week if needed :-). I think we
> can either go back to using github to fetch the source, or package
> emacs-swiper separately.
>
> WDYT?

I think packages from GNU ELPA are cleaner, and easier to update.
I added emacs-swiper package.

Thank you for the heads up.

Regards,
-- 
Nicolas Goaziou





bug#42186: emacs swiper package missing since ivy update 0.13.1

2020-07-04 Thread Michael Rohleder
That is also the reason why emacs-lispy fails to build:

...
starting phase `check'
make: which: No such file or directory
Using ...
emacs -batch -l elpa.el -l lispy-test.el -l lispy-inline.el -l lispy.el -f 
ert-run-tests-batch-and-exit
Loading 
/gnu/store/3s56kpyjvds6apr21nw85nh83lwj6smg-emacs-clojure-mode-5.11.0/share/emacs/site-lisp/clojure-mode-autoloads...
Loading 
/gnu/store/p1advrdp5jipq915alsxgvdb24ck6rwd-emacs-undercover-0.6.1/share/emacs/site-lisp/undercover-autoloads...
Loading 
/gnu/store/j57rh6w6fvxibl08mj9x8pb7d98jbfk2-emacs-ace-window-0.10.0/share/emacs/site-lisp/ace-window-autoloads...
Loading 
/gnu/store/adndadpiaj5i08hiq9bddrn7m4sqy5a8-emacs-iedit-0.9.9.9-1.e2c100c/share/emacs/site-lisp/iedit-autoloads...
Loading 
/gnu/store/s86lwlq43m1jy7nw8ydwz6017cxhcl2x-emacs-ivy-0.13.1/share/emacs/site-lisp/ivy-autoloads...
Loading 
/gnu/store/5b6qndzv9hczlm7ax2vmah9z81177p5r-emacs-hydra-0.15.0/share/emacs/site-lisp/hydra-autoloads...
Loading 
/gnu/store/v09b5sx3lm9pybvikm19krmwvb2fgvqg-emacs-zoutline-0.2.0/share/emacs/site-lisp/zoutline-autoloads...
Loading 
/gnu/store/byijdv6j5gsdrvamcwcpnn9in6c8854h-emacs-shut-up-0.3.2/share/emacs/site-lisp/shut-up-autoloads...
Loading 
/gnu/store/qi38w5ivwzdiapnkj8h3v5zkdfy5wnkj-emacs-dash-2.17.0/share/emacs/site-lisp/dash-autoloads...
Loading 
/gnu/store/fxi3kp0kcbvp8grljm2c8h11xygggl47-emacs-avy-0.5.0/share/emacs/site-lisp/avy-autoloads...
Cannot open load file: No such file or directory, swiper
make: *** [Makefile:22: test] Error 255


-- 
The sendmail configuration file is one of those files that looks like someone
beat their head on the keyboard.  After working with it... I can see why!
-- Harry Skelton


signature.asc
Description: PGP signature


bug#42186: emacs swiper package missing since ivy update 0.13.1

2020-07-04 Thread Pierre Langlois

Nicolas Goaziou writes:

> Hello,
>
> Pierre Langlois  writes:
>
>> I just noticed the last update to the emacs-ivy package removed
>> swiper.el from the package by moving from github to elpa. It seems elpa
>> packages ivy and swiper separately
>> (https://elpa.gnu.org/packages/swiper.html).
>>
>> I don't have time to submit a patch to fix it at the moment so I'm just
>> filing a bug, but I can get to it next week if needed :-). I think we
>> can either go back to using github to fetch the source, or package
>> emacs-swiper separately.
>>
>> WDYT?
>
> I think packages from GNU ELPA are cleaner, and easier to update.
> I added emacs-swiper package.

Nice, thanks for the quick fix! Originally I noticed this because of the
emacs-lispy package failing to build. Here's a patch to add
`emacs-swiper` as a dependency to fix it.

I suspect we might need to fix some more, including the few
emacs-counsel-* packages we have. I agree things will be cleaner that
way in the end :-).

Thanks,
Pierre

From cc5609fbb99dbec1eefaca87a04bce8b6088bd2b Mon Sep 17 00:00:00 2001
From: Pierre Langlois 
Date: Sat, 4 Jul 2020 12:41:37 +0200
Subject: [PATCH] gnu: emacs-lispy: Add emacs-swiper dependency.

* gnu/packages/emacs-xyz.scm (emacs-lispy)[propagated-inputs]: Add
emacs-swiper.
---
 gnu/packages/emacs-xyz.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 5c4861766c..813b7d3eb1 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -6695,6 +6695,7 @@ navigate code in a tree-like fashion.")
  `(("emacs-ace-window" ,emacs-ace-window)
("emacs-iedit" ,emacs-iedit)
("emacs-ivy" ,emacs-ivy)
+   ("emacs-swiper" ,emacs-swiper)
("emacs-hydra" ,emacs-hydra)
("emacs-zoutline" ,emacs-zoutline)))
 (native-inputs
--
2.27.0



bug#42186: emacs swiper package missing since ivy update 0.13.1

2020-07-04 Thread Nicolas Goaziou
Pierre Langlois  writes:

> Nice, thanks for the quick fix! Originally I noticed this because of the
> emacs-lispy package failing to build. Here's a patch to add
> `emacs-swiper` as a dependency to fix it.
>
> I suspect we might need to fix some more, including the few
> emacs-counsel-* packages we have. I agree things will be cleaner that
> way in the end :-).

I think I fixed all Emacs packages depending on emacs-ivy.

Let me know if something is still wrong.

Regards,





bug#42186: emacs swiper package missing since ivy update 0.13.1

2020-07-04 Thread Pierre Langlois


Nicolas Goaziou writes:

> Pierre Langlois  writes:
>
>> Nice, thanks for the quick fix! Originally I noticed this because of the
>> emacs-lispy package failing to build. Here's a patch to add
>> `emacs-swiper` as a dependency to fix it.
>>
>> I suspect we might need to fix some more, including the few
>> emacs-counsel-* packages we have. I agree things will be cleaner that
>> way in the end :-).
>
> I think I fixed all Emacs packages depending on emacs-ivy.
>
> Let me know if something is still wrong.

It all works for me! This is great, thanks so much!

Pierre





bug#42191: hplip-3.20.6 hash mismatch

2020-07-04 Thread Matthew Brooks
Looks like the tarball for hplip was changed in-place again. It's been this way 
for a few days, and since it doesn't seem to have been reported yet, I figured 
I should do it.


building /gnu/store/5a07ajq8zkhblayhzn6z94nj8cgad406-hplip-3.20.6.tar.gz.drv...
downloading from 
http://downloads.sourceforge.net/project/hplip/hplip/3.20.6/hplip-3.20.6.tar.gz 
...
-sha256 hash mismatch for 
/gnu/store/ha65zsjdid82snj1w2c9mykl8iavwkww-hplip-3.20.6.tar.gz:
  expected hash: 0rmk7i28mb0q66i5l9d0fq2j23dkhz5gx5g2xvi16ga0dnprcilp
  actual hash:   083w58wpvvm6sir6rf5dwx3r0rman9sv1zpl26chl0a88crjsjy6
hash mismatch for store item 
'/gnu/store/ha65zsjdid82snj1w2c9mykl8iavwkww-hplip-3.20.6.tar.gz'
build of /gnu/store/5a07ajq8zkhblayhzn6z94nj8cgad406-hplip-3.20.6.tar.gz.drv 
failed





bug#42191: hplip-3.20.6 hash mismatch

2020-07-04 Thread Tobias Geerinckx-Rice via Bug reports for GNU Guix

Matthew,

Matthew Brooks 写道:
Looks like the tarball for hplip was changed in-place 
again. It's been this way for a few days, and since it doesn't 
seem to have been reported yet, I figured I should do it.


Thank you for doing so.

 $ file hplip-3.20.6.tar.gz 
 hplip-3.20.6.tar.gz: gzip compressed data, last modified: Thu 
 Jun 18 13:10:19 2020,


Nice.

The diff is a small (and irrelevant to us) qpdf→pikepdf switch for 
Red Hat, quoted below.  Fixed in 
ef0e7a5d332f0947adb3556cc5a8c8836eac0b6c.


Kind regards,

T G-R

--8<---cut here---start->8---
│ ├── hplip-3.20.6/installer/distros.dat
│ │ @@ -2635,16 +2635,16 @@
│ │  drv_dir=/usr/share/cups/drv/HP
│ │  ui_toolkit=qt4
│ │  policykit=0
│ │  native_cups=1
│ │  open_mdns_port=/bin/bash ./init-iptables-firewall
│ │  package_mgr_cmd= sudo dnf -y -d 10 -e 1 install 
$packages_to_install

│ │  pre_depend_cmd=sudo dnf check-update
│ │ -scanjet_depend_cmd=sudo dnf -y -d 10 -e 1 install 
python-pip,sudo pip install opencv-python,sudo pip install 
pypdf2,sudo pip install imutils,sudo dnf -y -d 10 -e 1 install 
zbar-devel,sudo dnf update gcc,sudo dnf -y -d 10 -e 1 install 
zbar-*,sudo dnf -y -d 10 -e 1 install leptonica,sudo dnf -y -d 10 
-e 1 install leptonica-devel,sudo dnf -y -d 10 -e 1 install 
tesseract,sudo dnf -y -d 10 -e 1 install tesseract-devel,sudo pip 
install tesserocr,sudo dnf -y -d 10 -e 1 install 
tesseract-langpack-*,sudo dnf -y -d 10 -e 1 install 
tesseract-osd,sudo dnf -y -d 10 -e 1 install qpdf,sudo pip install 
pypdfocr,sudo pip install scikit-image,sudo pip install scipy^M
│ │ -scanjet_py3_depend_cmd=sudo dnf -y -d 10 -e 1 install 
python3-pip,sudo pip3 install opencv-python,sudo pip3 install 
pypdf2,sudo pip3 install imutils,sudo dnf -y -d 10 -e 1 install 
leptonica,sudo dnf -y -d 10 -e 1 install leptonica-devel,sudo dnf 
-y -d 10 -e 1 install tesseract,sudo dnf -y -d 10 -e 1 install 
tesseract-devel,sudo pip3 install tesserocr,sudo dnf -y -d 10 -e 1 
install tesseract-langpack-*,sudo dnf -y -d 10 -e 1 install 
tesseract-osd,sudo dnf -y -d 10 -e 1 install qpdf,sudo pip3 
install ocrmypdf,sudo pip3 install scikit-image,sudo pip3 install 
scipy^M
│ │ +scanjet_depend_cmd=sudo dnf -y -d 10 -e 1 install 
python-pip,sudo pip install opencv-python,sudo pip install 
pypdf2,sudo pip install imutils,sudo dnf -y -d 10 -e 1 install 
zbar-devel,sudo dnf update gcc,sudo dnf -y -d 10 -e 1 install 
zbar-*,sudo dnf -y -d 10 -e 1 install leptonica,sudo dnf -y -d 10 
-e 1 install leptonica-devel,sudo dnf -y -d 10 -e 1 install 
tesseract,sudo dnf -y -d 10 -e 1 install tesseract-devel,sudo pip 
install tesserocr,sudo dnf -y -d 10 -e 1 install 
tesseract-langpack-*,sudo dnf -y -d 10 -e 1 install 
tesseract-osd,sudo pip install pikepdf,sudo pip install 
pypdfocr,sudo pip install scikit-image,sudo pip install scipy^M
│ │ +scanjet_py3_depend_cmd=sudo dnf -y -d 10 -e 1 install 
python3-pip,sudo pip3 install opencv-python,sudo pip3 install 
pypdf2,sudo pip3 install imutils,sudo dnf -y -d 10 -e 1 install 
leptonica,sudo dnf -y -d 10 -e 1 install leptonica-devel,sudo dnf 
-y -d 10 -e 1 install tesseract,sudo dnf -y -d 10 -e 1 install 
tesseract-devel,sudo pip3 install tesserocr,sudo dnf -y -d 10 -e 1 
install tesseract-langpack-*,sudo dnf -y -d 10 -e 1 install 
tesseract-osd,sudo pip3 install pikepdf,sudo pip3 install 
ocrmypdf,sudo pip3 install scikit-image,sudo pip3 install scipy^M

--8<---cut here---end--->8---


signature.asc
Description: PGP signature


bug#42195: python-shiboken@2-5.12.6 fails to build

2020-07-04 Thread Fulbert
Hi,


$ guix describe
Génération 14   04 jui 2020 12:45:29(actuelle)
  guix 525e152
URL du dépôt : https://git.savannah.gnu.org/git/guix.git
branche: master
commit : 525e1527c7b06e73baf0afd6a92197a9e9a4c0e0


Trying to install [Blender which depends on] 'python-shiboken'(2-5.12.6)
fails to compile with attached compilation log.

Best regards,
Fulbert


h0sddhi6d15qapvhazmhp8cd60xx5c-python-shiboken-2-5.12.6.drv.bz2
Description: Binary data