bug#33867: Folding with origin-uri fails for inherited packages

2018-12-25 Thread swedebugia

Is this a bug?

scheme@(guix-user) [1]> (define snakes
   (fold-packages
(lambda (package lst)
(if (string-prefix? "python"
  (package-name package))
   (cons (origin-uri package) lst)
 lst))
'()))
... ... ... ... ... ... ... :15:45: In procedure 
origin-uri: Wrong type argument: #gnu/packages/xml.scm:1235 2220300>


Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guix-user) [2]> ,bt
In current input:
11:23  5 (_)
In guix/discovery.scm:
155:3  4 (fold-module-public-variables _ _ _)
In guix/combinators.scm:
45:26  3 (fold2 #(mod…> …)
45:26  2 (fold2 #(var…> …)

In guix/discovery.scm:
   158:33  1 (_ #gnu/packages/xml.scm:1…> …)

In current input:
15:45  0 (_ _ _)


--
Cheers Swedebugia





bug#33867: Folding with origin-uri fails for inherited packages

2018-12-25 Thread Mathieu Othacehe


Hi,

> Is this a bug?

No it's not, the following snippet should work better.

--8<---cut here---start->8---
(fold-packages
 (lambda (package lst)
   (if (string-prefix? "python" (package-name package))
   (cons (and=> (package-source package)
(lambda (source)
  (origin-uri source)))
 lst)
 lst))
 '())
--8<---cut here---end--->8---

Mathieu





bug#33239: 'guix offload' regularly hangs in 'channel-get-exit-status' call

2018-12-25 Thread Ludovic Courtès
Hello!

Ludovic Courtès  skribis:

> l...@gnu.org (Ludovic Courtès) skribis:
>
>> The ‘guix offload’ processes on berlin regularly hang while calling
>> ‘channel-get-exit-status’:
>>
>> (gdb) bt
>> #0  0x7f299fb330f1 in __GI___poll (fds=0x1dd58c0, nfds=1, timeout=-1) at 
>> ../sysdeps/unix/sysv/linux/poll.c:29
>> #1  0x7f2994287577 in ssh_poll_ctx_dopoll () from 
>> target:/gnu/store/wmpg67bn7i7pqc0p4xjp1npnqixk9znd-libssh-0.7.6/lib/libssh.so.4
>> #2  0x7f29942884d9 in ssh_handle_packets () from 
>> target:/gnu/store/wmpg67bn7i7pqc0p4xjp1npnqixk9znd-libssh-0.7.6/lib/libssh.so.4
>> #3  0x7f29942885ad in ssh_handle_packets_termination () from 
>> target:/gnu/store/wmpg67bn7i7pqc0p4xjp1npnqixk9znd-libssh-0.7.6/lib/libssh.so.4
>> #4  0x7f2994275080 in ssh_channel_get_exit_status () from 
>> target:/gnu/store/wmpg67bn7i7pqc0p4xjp1npnqixk9znd-libssh-0.7.6/lib/libssh.so.4
>> #5  0x7f29946dd11a in guile_ssh_channel_get_exit_status () from 
>> target:/gnu/store/i3nfl17wfx7sryq6w15r9wxl7ilmq4rb-guile-ssh-0.11.3/lib/libguile-ssh.so.11
>> #6  0x7f29a1765965 in vm_regular_engine (thread=0x1dd58c0, vp=0x1d4df30, 
>> registers=0x, resume=-1615646479) at vm-engine.c:786
>
> I was able to come up with a reduced test case for Guile-SSH:
>
>   https://github.com/artyom-poptsov/guile-ssh/issues/11

It turned out that the code to start a REPL server in (ssh dist node)
would currently hang, as I wrote in the bug report above.

After investigation, I decided that inferiors are more appropriate than
Guile-SSH’s node to address this use case, after all.  Commit
ed7b44370f71126087eb953f36aad8dc4c44109f changes ‘guix offload’ to
inferiors.

As a result, build machines must now run Guix > 0.15.0, which provides
‘guix repl’.  That in turn simplifies setup of build machines: no need
to fiddle with GUILE_LOAD_PATH.

On berlin, build machines were running an older Guix so I copied a
recently pulled Guix on each of them and installed it in
~/.config/guix/current.  They’re now operational, except for the ARMv7
one which is still pulling.  So far it seems to be working well but
we’ll have to keep an eye on it.

Thanks,
Ludo’.





bug#33867: Folding with origin-uri fails for inherited packages

2018-12-25 Thread swedebugia

On 2018-12-25 13:01, Mathieu Othacehe wrote:

(fold-packages
  (lambda (package lst)
(if (string-prefix? "python" (package-name package))
(cons (and=> (package-source package)
 (lambda (source)
   (origin-uri source)))
  lst)
  lst))
  '())


thanks!
closing
--
Cheers Swedebugia





bug#33861: Problem building sources for guile-bash

2018-12-25 Thread Ricardo Wurmus


Hi Amar,

> * Error building sources for 'guile-*' using guix build --source `guix 
> package -I guile- | cut -f1`
>> fatal: repository 
>> 'https://anonscm.debian.org/cgit/users/kaction-guest/retired/dev.guile-bash.git/'
>>  not found
>> Failed to do a shallow fetch; retrying a full fetch...
>> fatal: repository 
>> 'https://anonscm.debian.org/cgit/users/kaction-guest/retired/dev.guile-bash.git/'
>>  not found
>
> Looks like there is an extra "/" at the end of the urls

That’s fine.  The problem here is that the repository is no longer
hosted there.  (The URL returns 404.)

Do you happen to know where the repository might now be?

-- 
Ricardo






bug#33751: [GNU bug Tracking System] bug#33783: closed (Re: [bug#33783] [PATCH] gnu: sqlite: Replace with 3.26.0 [security fixes].)

2018-12-25 Thread Alex Vong
Closing as patch was appied

--- Begin Message ---
Your bug report

#33783: [PATCH] gnu: sqlite: Replace with 3.26.0 [security fixes].

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 33...@debbugs.gnu.org.

-- 
33783: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=33783
GNU Bug Tracking System
Contact help-debb...@gnu.org with problems
--- Begin Message ---
Patch was pushed as 38abef124bc18d3834eb12352a974b6143f62e97

-- 
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
--- End Message ---
--- Begin Message ---
Tag: security

Hello,

This patch grafts sqlite to its latest version. It also changes all the
sqlite-* packages to use 'package/inherit' so that they get the
replacement as well. See  for details.

From 9d0fae1e1fa2fc13bd794bb2dbeb89750c772cfb Mon Sep 17 00:00:00 2001
From: Alex Vong 
Date: Tue, 18 Dec 2018 10:36:52 +0800
Subject: [PATCH] gnu: sqlite: Replace with 3.26.0 [security fixes].

Fixes .
Reported by Marius Bakke .

* gnu/packages/databases.scm (sqlite-3.26.0): New public variable.
(sqlite)[replacement]: Use it.
(sqlite-with-fts5): Use 'package/inherit'.
(sqlite-with-column-metadata): Likewise.
---
 gnu/packages/databases.scm | 27 ---
 1 file changed, 24 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 0fa6d451e..78d9a6739 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -24,7 +24,7 @@
 ;;; Copyright © 2017 Adriano Peluso 
 ;;; Copyright © 2017 Arun Isaac 
 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice 
-;;; Copyright © 2017 Alex Vong 
+;;; Copyright © 2017, 2018 Alex Vong 
 ;;; Copyright © 2017, 2018 Ben Woodcroft 
 ;;; Copyright © 2017 Rutger Helling 
 ;;; Copyright © 2017, 2018 Pierre Langlois 
@@ -1183,6 +1183,7 @@ changes.")
 (define-public sqlite
   (package
(name "sqlite")
+   (replacement sqlite-3.26.0)
(version "3.24.0")
(source (origin
 (method url-fetch)
@@ -1219,9 +1220,29 @@ widely deployed SQL database engine in the world.  The source code for SQLite
 is in the public domain.")
(license license:public-domain)))
 
+(define-public sqlite-3.26.0
+  (package/inherit sqlite
+(version "3.26.0")
+(source (origin
+  (method url-fetch)
+  (uri (let ((numeric-version
+  (match (string-split version #\.)
+((first-digit other-digits ...)
+ (string-append first-digit
+(string-pad-right
+ (string-concatenate
+  (map (cut string-pad <> 2 #\0)
+   other-digits))
+ 6 #\0))
+ (string-append "https://sqlite.org/2018/sqlite-autoconf-";
+numeric-version ".tar.gz")))
+  (sha256
+   (base32
+"0pdzszb4sp73hl36siiv3p300jvfvbcdxi2rrmkwgs6inwznmajx"))
+
 ;; This is used by Tracker.
 (define-public sqlite-with-fts5
-  (package (inherit sqlite)
+  (package/inherit sqlite
 (name "sqlite-with-fts5")
 (arguments
  (substitute-keyword-arguments (package-arguments sqlite)
@@ -1230,7 +1251,7 @@ is in the public domain.")
 
 ;; This is used by Qt.
 (define-public sqlite-with-column-metadata
-  (package (inherit sqlite)
+  (package/inherit sqlite
 (name "sqlite-with-column-metadata")
 (arguments
  (substitute-keyword-arguments (package-arguments sqlite)
-- 
2.19.2


Cheers,
Alex


signature.asc
Description: PGP signature
--- End Message ---
--- End Message ---


signature.asc
Description: PGP signature