From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4EuFKyAIQWMtzQAAbAwnHQ (envelope-from ) for ; Sat, 08 Oct 2022 07:18:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8BOAKyAIQWM7FAAAauVa8A (envelope-from ) for ; Sat, 08 Oct 2022 07:18:24 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3E4D432114 for ; Sat, 8 Oct 2022 07:18:24 +0200 (CEST) Received: from localhost ([::1]:41736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oh2EB-0001rq-Ei for larch@yhetil.org; Sat, 08 Oct 2022 01:18:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44898) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oh2Dq-0001qv-6X for guix-patches@gnu.org; Sat, 08 Oct 2022 01:18:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38921) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oh2Dp-0002VG-VT for guix-patches@gnu.org; Sat, 08 Oct 2022 01:18:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oh2Dp-0004Ng-MD for guix-patches@gnu.org; Sat, 08 Oct 2022 01:18:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58344] [PATCH] gnu: Add wipe. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 08 Oct 2022 05:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58344 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Denis 'GNUtoo' Carikli Cc: 58344@debbugs.gnu.org Received: via spool by 58344-submit@debbugs.gnu.org id=B58344.166520627416827 (code B ref 58344); Sat, 08 Oct 2022 05:18:01 +0000 Received: (at 58344) by debbugs.gnu.org; 8 Oct 2022 05:17:54 +0000 Received: from localhost ([127.0.0.1]:37999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oh2Di-0004NK-61 for submit@debbugs.gnu.org; Sat, 08 Oct 2022 01:17:54 -0400 Received: from mail-qt1-f171.google.com ([209.85.160.171]:36843) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oh2Dg-0004N7-3y for 58344@debbugs.gnu.org; Sat, 08 Oct 2022 01:17:53 -0400 Received: by mail-qt1-f171.google.com with SMTP id d12so2759567qtp.3 for <58344@debbugs.gnu.org>; Fri, 07 Oct 2022 22:17:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=yv0C+sqZXkG53jInLm+Z96pNAUbzDCo1LAG1gOqWWJc=; b=nW8ilo33PJB3wSI6US/JtgDo6XWzSjw9E5yH6Ppyd143hEy8KdPIBHlhMecwfsFwmB Di+bpFcmyylC/L6+qMmJGwjG+x62ZoOXf3GBmdwvqQPgONRvva4URuo5xxMpCxRuXCAN B56i4Ovvy8tjrAlMOYdCwtdEbUgEGkYago3AOLWIA/lWXkUINhkmoNJnZasO3/JHOFwC cY6aDUWPUuXonqY4/NI8ls+EGLN0GPRVcLYybNswMA8/al2NaZfjSVMljrAsCCRWB/f6 qePulHlaNu5sZZT1hC0FZsNwAVOcbbDtosn4g7dJV3lmKc7twkQ2sl4ZQEtBhaOk3akL Ln+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=yv0C+sqZXkG53jInLm+Z96pNAUbzDCo1LAG1gOqWWJc=; b=S3ZuFgArSyroh8So/O3QxVV1moL/6dYsENHi0+Th7rDP7n6fIbsf73UHrDNsNTK0u7 Klz3TRCalw+0nndRQ+U+nfnOjbCdy6/CECy1VqdqyXWK/giJxQEifHgD/7u82uumoSCf odUInbTBZ63WMw8mKg2XVSkUzuSv99IwKx1BV6sNKJZAjKtvXWQ16Sue+EWtY4pzj3tq gTG4MO/OQoCLhICYewbGh2Q4QPg3luOLHXCNhRh0GDj9IkxMsR+HiO5Tg1Ja8HuzSeWe ztXGlQ3wDmY0QoEEyqV9EKFowfGHXbfbmtzJYqy6CmS2YIb6tFgI6QZX3Cg/044trU8Q idzw== X-Gm-Message-State: ACrzQf2Bn7IhNNhagMXhNc5zOlhgCYG+thYhtWbJkP6mfd/m7h2pJe3w PkTBtVgn6li0KkwmNEnIHhFR55uf4pWLKg== X-Google-Smtp-Source: AMsMyM6YEUeS3WWL4+Gbk17+h1RYqy+XfD5sJeNHFfC+Qfz08YvkrBQtDOSnL+EPKJUIriQFEaXUGg== X-Received: by 2002:a05:622a:38e:b0:35d:55c7:63a with SMTP id j14-20020a05622a038e00b0035d55c7063amr7018790qtx.532.1665206266432; Fri, 07 Oct 2022 22:17:46 -0700 (PDT) Received: from hurd ([2607:fad8:4:3::1005]) by smtp.gmail.com with ESMTPSA id m14-20020a05620a290e00b006cf19068261sm4051477qkp.116.2022.10.07.22.17.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Oct 2022 22:17:46 -0700 (PDT) From: Maxim Cournoyer References: <20221007005706.31133-1-GNUtoo@cyberdimension.org> Date: Sat, 08 Oct 2022 01:17:45 -0400 In-Reply-To: <20221007005706.31133-1-GNUtoo@cyberdimension.org> (Denis Carikli's message of "Fri, 7 Oct 2022 02:57:05 +0200") Message-ID: <877d1a28sm.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665206304; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=yv0C+sqZXkG53jInLm+Z96pNAUbzDCo1LAG1gOqWWJc=; b=T+zT8oRg23wI2tlBx1rDFra6IUFyeIkh/93vFvTW8sYq7Z7OVEtebUm8ajWtnYD8XvoG7K Ow4a5zfnSa7Wuuk0UhUHNQ5yEWzJSN/iRd7297t8lrVz8h1bHrBljaTxiHDHYUMjAZJBl7 wfy0LPPB7pcuEwCzq9dMZFI0dHSOyPUWG7diNCtZjgM5LpnO4fJzYajaajxO2nX2CCJuwl 6PCPyaeCxOk+aSWsoNDpLVPh2drXJ0KsrE0r1C1wGxK0wLYqtJ3NUrVQOuSyRNhOtQ6ZoN Jwz65tBpCzCVDw6gPRjA//TSJzg/ZpjuYOoA9KKtcjW0MeUgy5hoLjqsliN7ag== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665206304; a=rsa-sha256; cv=none; b=AJLWx6GOM2VP4Apan4wyrBoKwEBc1np1bMGfhHHiRIMpStTff7oTD+tB+z+qMneTJ1Mmex QWnImeXxkog9N+ICHi7Z8gU/YNjFzVgY+FTxoZnqDUyL7R2VGzc6YLFmRL2Hss6dVM1dvs qD+ES07gqSa6b5Xvs9kgfAlJ+3hDU70oSFdf7z6WbpkZDEApTkd7IIjt1jUnFnQTatX6dz w8HGLyG2c8UEVbjDzmlpwD3f/x2LX0u5DX8Ng0qHqmq/LEhvOBv9so/VocEeLMHLJvBsuc 2CLAhnqg0da8JsHxfl1RVaeJfsxePE23Q8oPl4HzB3//8oi0vmXj0JvzL2lcyg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=nW8ilo33; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=nW8ilo33; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 3E4D432114 X-Spam-Score: 5.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: P2tqAHNVvNUH Hi, Denis 'GNUtoo' Carikli writes: > * gnu/packages/disk.scm (wipe): New variable. > > Signed-off-by: Denis 'GNUtoo' Carikli > --- > gnu/packages/disk.scm | 54 +++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 54 insertions(+) > > diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm > index 818ca065b8..b5e6c07cc3 100644 > --- a/gnu/packages/disk.scm > +++ b/gnu/packages/disk.scm > @@ -1454,3 +1454,57 @@ (define-public qdirstat > gone and to help you to clean it up.") > (home-page "https://github.com/shundhammer/qdirstat") > (license license:gpl2))) > + > +(define-public wipe > + (package > + (name "wipe") > + (version "2.3.1") > + (source (origin > + (method url-fetch) > + (uri (string-append "mirror://sourceforge/wipe/wipe/" vers= ion > + "/wipe-" version ".tar.bz2")) > + (sha256 > + (base32 > + "180snqvh6k6il6prb19fncflf2jcvkihlb4w84sbndcv1wvicfa6"))= )) > + (build-system gnu-build-system) > + (arguments > + (list #:tests? #f ;no tests > + #:phases #~(modify-phases %standard-phases > + (add-after 'unpack 'patch-makefile > + (lambda _ > + (substitute* "Makefile.in" > + ;; The Makefile.in uses install -o root, b= ut > + ;; during the build there is no root user,= so if > + ;; we leave that in, the build fails with = the > + ;; following error: > + ;; /gnu/[...]/install: invalid user =E2=80= =98root=E2=80=99 > + (("-o root") "") > + ;; It's up to the distribution to strip the > + ;; binaries or not. > + (("\\$\\(INSTALL_BIN\\) -s ") > + "$(INSTALL_BIN) ")))) > + ;; We need to regenerate the configure script ot= herwise > + ;; configure fails with the following error: > + ;; configure: warning: > + ;; CONFIG_SHELL=3D/gnu/[...]-bash-minimal-5.1.8/= bin/bash: > + ;; invalid host type > + ;; configure: warning: > + ;; SHELL=3D/gnu/[...]-bash-minimal-5.1.8/bin/bas= h: > + ;; invalid host type > + ;; configure: error: can only configure for one = host > + ;; and one target at a time nitpick: the phases would gain in readability if indented more left, as is more common. To force regenerating the build scripts with the gnu-build-system, you can simply delete the existing 'configure' file after 'unpack. > + (add-before 'configure 'autoreconf > + (lambda _ > + (invoke "autoreconf" "-vfi")))))) > + (native-inputs `(("automake" ,automake) > + ("autoreconf" ,autoconf) > + ("libtool" ,libtool))) Please do not use labels anymore. A simple (list autoconf automake libtool) (ordered) will do. > + (home-page "https://wipe.sourceforge.net") > + (synopsis "Secure file/block device wiping utility") > + (description > + "Wipe can erase files and block devices securely. To work properly= it > +relies on several assumptions like having the block device write the > +correct sectors, etc. For files it also doesn't work on log based > +filesystems. To overwrite data it uses the mersenne twister PRNG that > +is seeded with /dev/urandom or, if unavailable, /dev/random.") > + (license license:gpl2+))) Otherwise, it looks fine :-). --=20 Thanks, Maxim