bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FTBFS on GNU/Hurd


From: BlueT - Matthew Lien - 練喆明
Subject: Re: FTBFS on GNU/Hurd
Date: Fri, 05 Jul 2013 17:05:37 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Ludo',

Yup I know running anything with root is dangerous, so I created a clean
sandbox VM and build Guix in it with root to avoid any error caused by
user permission, to clarify those problems.
But thanks still for mentioning that. :-)

Tried the fix and got different error. Same Failed: 10.
I commented out the line '#define HAVE_HUP_NOTIFICATION', and here's all
changes and current ENV on my sandbox now, as a summary.
(logs in attachment.)

address@hidden:~/guix# git diff
diff --git a/guix/store.scm b/guix/store.scm
index 57e1ca0..c565c7b 100644
- --- a/guix/store.scm
+++ b/guix/store.scm
@@ -266,8 +266,16 @@ operate, should the disk become full.  Return a
server object."
              (socket PF_UNIX SOCK_STREAM 0)))
         (a (make-socket-address PF_UNIX file)))

+     (catch 'system-error
+       (lambda ()
     ;; Enlarge the receive buffer.
- -    (setsockopt s SOL_SOCKET SO_RCVBUF (* 12 1024))
+    ;;(setsockopt s SOL_SOCKET SO_RCVBUF (* 12 1024))
+       (setsockopt s SOL_SOCKET SO_RCVBUF (* 12 1024)))
+       (lambda args
+        ;; On the Hurd, the pflocal server's implementation of
`socket_setopt'
+        ;; always returns ENOPROTOOPT.  Ignore it.
+        (unless (= (system-error-errno args) ENOPROTOOPT)
+          (apply throw args))))

     (catch 'system-error
       (cut connect s a)
diff --git a/nix/nix-daemon/guix-daemon.cc b/nix/nix-daemon/guix-daemon.cc
index 5f0710c..e2c30e7 100644
- --- a/nix/nix-daemon/guix-daemon.cc
+++ b/nix/nix-daemon/guix-daemon.cc
@@ -171,10 +171,10 @@ parse_opt (int key, char *arg, struct argp_state
*state)
       settings.thisSystem = arg;
       break;
     default:
- -      return ARGP_ERR_UNKNOWN;
+      return (error_t) ARGP_ERR_UNKNOWN;
     }

- -  return 0;
+  return (error_t) 0;
 }

 /* Argument parsing.  */

address@hidden:~/guix# diff nix/nix-daemon/nix-daemon.cc
nix-upstream/src/nix-daemon/nix-daemon.cc
30c30
< /* #define HAVE_HUP_NOTIFICATION */
- ---
> #define HAVE_HUP_NOTIFICATION



On 2013年07月05日 04:42, Ludovic Courtès wrote:
> Matthew Lien <address@hidden> skribis:
> 
>> warning: daemon is running as root, so using `--build-users-group' is highly 
>> recommended
> 
> This is just a warning, but really, don’t run everything as ‘root’.
> 
>> child error: F_SETOWN: Operation not supported
> 
> Another unimplemented feature:
> 
>   http://git.savannah.gnu.org/cgit/hurd/hurd.git/tree/pflocal/io.c#n569
> 
> In nix/nix-daemon/nix-daemon.cc, could you comment out the line that
> reads ‘#define HAVE_HUP_NOTIFICATION’, then rebuild and try again?
> 
> Let me know if that works and I’ll propose a patch for Nix, which is
> where this code comes from.
> 
> TIA,
> Ludo’.
> 

- -- 
/ Just another [ Perl | FOSS | Security ] Hacker. /
/ BlueT = Matthew Lien = 練喆明 /
/ http://BlueT.org /
/ GPG: 4A293CBD /
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlHWjF8ACgkQvRNvgEopPL02SQCfX+XrowLzxtiCvKE1mmoZF9Wb
/lsAn1+H0u0kqB//jFR92rm689wLH6RX
=FW1J
-----END PGP SIGNATURE-----

Attachment: utils.log
Description: Text Data

Attachment: ui.log
Description: Text Data

Attachment: test-suite.log
Description: Text Data

Attachment: store.log
Description: Text Data

Attachment: snix.log
Description: Text Data

Attachment: records.log
Description: Text Data

Attachment: packages.log
Description: Text Data

Attachment: nar.log
Description: Text Data

Attachment: hash.log
Description: Text Data

Attachment: config.log
Description: Text Data

Attachment: build-utils.log
Description: Text Data

Attachment: base32.log
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]