From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxZDm-00042r-LA for guix-patches@gnu.org; Mon, 10 Apr 2017 09:19:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cxZDi-0004Yy-Me for guix-patches@gnu.org; Mon, 10 Apr 2017 09:19:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:42474) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cxZDi-0004Yc-JZ for guix-patches@gnu.org; Mon, 10 Apr 2017 09:19:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cxZDi-0007sz-5w for guix-patches@gnu.org; Mon, 10 Apr 2017 09:19:02 -0400 Subject: bug#26341: [PATCH 1/5] build: syscalls: Add reboot. Resent-Message-ID: References: <20170408160329.4068-1-m.othacehe@gmail.com> <20170408160329.4068-2-m.othacehe@gmail.com> <87lgr8fvk7.fsf@gnu.org> From: Mathieu Othacehe In-reply-to: <87lgr8fvk7.fsf@gnu.org> Date: Mon, 10 Apr 2017 15:18:30 +0200 Message-ID: <8637dgs8nt.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 26341@debbugs.gnu.org Hey Ludo, > The problem is that we cannot #:replace unconditionally (when not using > the patched Guile, there’s nothing to replace¹). Yes I was relying on #:replace ability to just export the symbol if there's nothing to replace (as explained in your note¹). > > WDYT? Anyway, your macro seems a nicer way than dealing with export/replace. I gave it a try and everything still seems warning free. My only concern is that it won't be obvious for people who want to use reboot or mount or any other syscall that they have to use (guix build syscalls) because the #:export list won't contain those syscalls. Maybe a big explanation on top of the file would be enough ? Thanks, Mathieu