From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKkz7-0004IW-B8 for guix-patches@gnu.org; Fri, 01 Dec 2017 08:04:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eKkz4-0005KG-75 for guix-patches@gnu.org; Fri, 01 Dec 2017 08:04:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:58747) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eKkz4-0005Ju-2w for guix-patches@gnu.org; Fri, 01 Dec 2017 08:04:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eKkz3-00067S-QH for guix-patches@gnu.org; Fri, 01 Dec 2017 08:04:01 -0500 Subject: [bug#29409] [PATCH] build: utils: Introduce dd. Resent-Message-ID: References: <877euhtjkj.fsf@gmail.com> <1512038828-10822-1-git-send-email-m.othacehe@gmail.com> <87609qhax6.fsf@gnu.org> From: Mathieu Othacehe In-reply-to: <87609qhax6.fsf@gnu.org> Date: Fri, 01 Dec 2017 14:03:18 +0100 Message-ID: <87vahqsiqx.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: 29409@debbugs.gnu.org > (call-with-input-file (string-append syslinux-dir "/" #$mbr) > (lambda (input) > (let ((bv (get-bytevector-n input 440)) > (output (open-file device "wb0"))) > (put-bytevector output bv) > (close-port output)))) > > Granted, that’s a bit more verbose, but it’s also very lightweight > compared to using ‘dd’. It's much more elegant anyway ! I'll adapt the patch. Thanks, Mathieu