From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2C3VOFjiW2PNFQAAbAwnHQ (envelope-from ) for ; Fri, 28 Oct 2022 16:08:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yD29N1jiW2N0CAAAG6o9tA (envelope-from ) for ; Fri, 28 Oct 2022 16:08: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 6F6927521 for ; Fri, 28 Oct 2022 16:08:24 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooQ1k-0005bA-EY; Fri, 28 Oct 2022 10:08:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooQ1j-0005ZJ-1N for guix-patches@gnu.org; Fri, 28 Oct 2022 10:08:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ooQ1i-0003Ym-PY for guix-patches@gnu.org; Fri, 28 Oct 2022 10:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ooQ1i-0002Z6-Aw for guix-patches@gnu.org; Fri, 28 Oct 2022 10:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58344] [PATCH v2] gnu: Add wipe. References: <20221007005706.31133-1-GNUtoo@cyberdimension.org> In-Reply-To: <20221007005706.31133-1-GNUtoo@cyberdimension.org> Resent-From: Denis 'GNUtoo' Carikli Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 28 Oct 2022 14:08:02 +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: 58344@debbugs.gnu.org, Maxim Cournoyer Cc: Denis 'GNUtoo' Carikli Received: via spool by 58344-submit@debbugs.gnu.org id=B58344.16669660359804 (code B ref 58344); Fri, 28 Oct 2022 14:08:02 +0000 Received: (at 58344) by debbugs.gnu.org; 28 Oct 2022 14:07:15 +0000 Received: from localhost ([127.0.0.1]:34027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ooQ0x-0002Y4-9L for submit@debbugs.gnu.org; Fri, 28 Oct 2022 10:07:15 -0400 Received: from cyberdimension.org ([80.67.179.20]:39436 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ooQ0u-0002Xt-86 for 58344@debbugs.gnu.org; Fri, 28 Oct 2022 10:07:13 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id 00a3307e; Fri, 28 Oct 2022 14:03:27 +0000 (UTC) Received: from localhost.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 1eded1bf; Fri, 28 Oct 2022 14:03:27 +0000 (UTC) From: Denis 'GNUtoo' Carikli Date: Fri, 28 Oct 2022 16:07:00 +0200 Message-Id: <20221028140700.2799-1-GNUtoo@cyberdimension.org> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: , Sender: "Guix-patches" Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org 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=1666966104; 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; bh=AQLGOaRfZqPT+dfllxwDhY/gmYQH8LVj+VQvEofcY00=; b=WUtFMwikZRmaNPM0JZEpbni2tvSY3tU3EqofdSm3rUVm2cHA2bWClhPoGDi9Byr03oEIrt 9y+lweaoqSpU8ne28jtRhDaOC3lG5rBg6FlfUI3IzGjTm3++tS1MUKJ0OD2Z7/kspuhWgA gKe4eEOog4Ys23Dm+owesyW41/bmt+uCYRICIT46VJUBRsU/A/wiTKItdkQ/nW9dM6/g9R IVLyD5DK0wVATXnX2p2L7gl/9R9OSyfbQvILQ0yjib50Ued2uAI220DcvO1IrSM6ywj2he rmLYj1Bbjh6BJs6ln5OD+DnwHMSxDgeUk/WRJ46S4wojyyDxndzfrPa58wNj3Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666966104; a=rsa-sha256; cv=none; b=I/k6yEk5FYsnP0lV2EFJVTK4aG5B264uoPUoNDY7anVxEcJtfez27MjpZBNN8NCgqPFSZ0 yOPM47yypHQD3hku5Az6awgOm/YwJGdSkupmrwdUCnsXgzMZp86y7l03PfC8Llg30mKleE 8i1eiz+SHzqn8hC1Moh5nCbAcXaHa0LlXw7SwhEUnasBiNVmi2FmG8LroWM7r7XDRGIPWK nVYgi4s78tvwudeXKBVoyIQ/kil7CXW6tBgef8/rxx5cx9iA9hJFP0067qdp9DKK+IGWaj hfAhKHQJEdoAIaqOWzuC3Ox/LBnIEL3bJS59WJPxqmJ3f1dUaztnPond7LHgqA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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: -2.42 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: 6F6927521 X-Spam-Score: -2.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: YzCIp2CWxMv1 * gnu/packages/disk.scm (wipe): New variable. --- ChangeLog: - The phases modification have been indented more on the left - native-inputs have been converted to a list - replacing (invoke "autoreconf" "-vfi") by (delete-file "configure") resulted in the following build failure: configure flags: ("CONFIG_SHELL=/gnu/store/7s2zlc4r9wqvlh9x2gqmzm4lnmbsdzmn-bash-minimal-5.1.8/bin/bash" "SHELL=/gnu/store/7s2zlc4r9wqvlh9x2gqmzm4lnmbsdzmn-bash-minimal-5.1.8/bin/bash" "--prefix=/gnu/store/kx6s2s5s2c99ckzvp81qgzd00qx5l8hp-wipe-2.3.1" "--enable-fast-install" "--build=i686-unknown-linux-gnu") /gnu/store/7s2zlc4r9wqvlh9x2gqmzm4lnmbsdzmn-bash-minimal-5.1.8/bin/bash: ./configure: No such file or directory error: in phase 'configure': uncaught exception: so I kept (invoke "autoreconf" "-vfi"). --- gnu/packages/disk.scm | 54 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm index 818ca065b8..ef1fd1385b 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/" version + "/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, but 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 ‘root’ + (("-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 otherwise + ;; configure fails with the following error: + ;; configure: warning: + ;; CONFIG_SHELL=/gnu/[...]-bash-minimal-5.1.8/bin/bash: + ;; invalid host type configure: warning: + ;; SHELL=/gnu/[...]-bash-minimal-5.1.8/bin/bash: + ;; invalid host type configure: error: + ;; can only configure for one host and one target at a time + (add-before 'configure 'autoreconf + (lambda _ + (invoke "autoreconf" "-vfi")))))) + (native-inputs (list autoconf automake libtool)) + (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+))) base-commit: 302eae2fc3f92b64682ea30a80139867d448084b -- 2.38.0