From unknown Sat Jun 21 10:20:31 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#58344 <58344@debbugs.gnu.org> To: bug#58344 <58344@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add wipe. Reply-To: bug#58344 <58344@debbugs.gnu.org> Date: Sat, 21 Jun 2025 17:20:31 +0000 retitle 58344 [PATCH] gnu: Add wipe. reassign 58344 guix-patches submitter 58344 Denis 'GNUtoo' Carikli severity 58344 normal tag 58344 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 06 20:57:28 2022 Received: (at submit) by debbugs.gnu.org; 7 Oct 2022 00:57:28 +0000 Received: from localhost ([127.0.0.1]:33889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogbg7-0002z1-Sh for submit@debbugs.gnu.org; Thu, 06 Oct 2022 20:57:28 -0400 Received: from lists.gnu.org ([209.51.188.17]:40244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogbg2-0002yq-9U for submit@debbugs.gnu.org; Thu, 06 Oct 2022 20:57:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51674) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogbg2-0003eJ-4h for guix-patches@gnu.org; Thu, 06 Oct 2022 20:57:22 -0400 Received: from cyberdimension.org ([2001:910:1314:ffff::1]:41350 helo=gnutoo.cyberdimension.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1ogbfz-0000eF-Ka for guix-patches@gnu.org; Thu, 06 Oct 2022 20:57:21 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id e5aff2fb; Fri, 7 Oct 2022 00:57:13 +0000 (UTC) Received: from localhost.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 3bdec11d; Fri, 7 Oct 2022 00:57:12 +0000 (UTC) From: Denis 'GNUtoo' Carikli To: guix-patches@gnu.org Subject: [PATCH] gnu: Add wipe. Date: Fri, 7 Oct 2022 02:57:05 +0200 Message-Id: <20221007005706.31133-1-GNUtoo@cyberdimension.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2001:910:1314:ffff::1; envelope-from=GNUtoo@cyberdimension.org; helo=gnutoo.cyberdimension.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: Denis 'GNUtoo' Carikli X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) * 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/" 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 `(("automake" ,automake) + ("autoreconf" ,autoconf) + ("libtool" ,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: fd6cd9de8682c7ddf96bf8deb637b1ca6cdbd205 -- 2.37.3 From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 08 01:17:54 2022 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 To: Denis 'GNUtoo' Carikli Subject: Re: bug#58344: [PATCH] gnu: Add wipe. 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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58344 Cc: 58344@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 28 10:07:15 2022 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 To: 58344@debbugs.gnu.org, Maxim Cournoyer Subject: [PATCH v2] gnu: Add wipe. 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-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 58344 Cc: Denis 'GNUtoo' Carikli X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * 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 From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 31 11:44:47 2022 Received: (at 58344-done) by debbugs.gnu.org; 31 Oct 2022 15:44:47 +0000 Received: from localhost ([127.0.0.1]:41570 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opWxy-0007qH-Px for submit@debbugs.gnu.org; Mon, 31 Oct 2022 11:44:47 -0400 Received: from mail-qt1-f173.google.com ([209.85.160.173]:39655) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opWxx-0007q4-IO for 58344-done@debbugs.gnu.org; Mon, 31 Oct 2022 11:44:46 -0400 Received: by mail-qt1-f173.google.com with SMTP id r19so7634495qtx.6 for <58344-done@debbugs.gnu.org>; Mon, 31 Oct 2022 08:44:45 -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=cdKH2OS50zzmvJKY9b6TnjY7PbdLUtW+mJ/C11CWgs0=; b=JwcYy49UjNKtStJVY1zJQZh/RiBvm3xghguFS4N3sGgpJhg1K07IyWDMyE3j5klAP6 aP8I0Ji18D62IJ8DuXIcvObu5wT+gIA7OwFe9GRataC07oVUC1lm9B48Fz5JwxixbzAM 9X5KTItQ6xj8+l5p9ckUKhHCAlSkl8CEikp1jzsc1SB6N8Of4VQXf78gM5A5Yp+zQF8M aauqK1dAnddRBPVW+C5TRvjMxHiMsQ5/hpzV8ZDK3OfjxS9Jz6ICcuYtUicddyONVjpD aahkeio6JwhPVu+mterxLSKLdHsVK/jo9bnQvGENBxwFFgiRC4O1rRtBveiTQSNgmgdj sbpw== 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=cdKH2OS50zzmvJKY9b6TnjY7PbdLUtW+mJ/C11CWgs0=; b=HUcvsFo1hne7KMLdzMCQq70jgZJrZ1OMOrlP7qDNcdUyTolvhTB9s5cEP46A0Z2FUT jXjc6lA7Cq56wtxPMX3O4CZJ7MeKXfXg5fHxXwniYwEs6t6PshWnqZrCAFsc+csEHFhC AoAc7+iWgw+CWA8MDoRqUn/MGH72qj0FJQ+RDtzTNEzdf7F4dc6H8xtGRjOxo+KUgvAH aET9DKKvv+ZD7/yseNW6nTdfscJG4j/EGjS3hPJDnLSkEfI00ZiO59iekF+v0fHoqnuR tTEn1k4wXg0NOGdQ61RAeLoYUZoyhHp2aYA/upQHqMeZ+RBOApYOS+kK5hCoPUAeSAAK juQA== X-Gm-Message-State: ACrzQf0neKvFHm9vJCScQUARvFg6aVbV+I+kn2orojmKvp07GG2SxDPJ G34el3QjE4A1UvV+nHh3VE6LwElcshU= X-Google-Smtp-Source: AMsMyM5fQ2igHjWZ88D8QaFAC5bQa063QGiCdeptiua9FauC0v5MRByquZhdsL8VBLMblLiMrSA2bw== X-Received: by 2002:a05:622a:11cf:b0:39c:d63a:d79 with SMTP id n15-20020a05622a11cf00b0039cd63a0d79mr11290799qtk.260.1667231079709; Mon, 31 Oct 2022 08:44:39 -0700 (PDT) Received: from hurd ([2607:fad8:4:3::1001]) by smtp.gmail.com with ESMTPSA id r17-20020a05620a03d100b006eee3a09ff3sm4809165qkm.69.2022.10.31.08.44.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Oct 2022 08:44:39 -0700 (PDT) From: Maxim Cournoyer To: Denis 'GNUtoo' Carikli Subject: Re: [PATCH v2] gnu: Add wipe. References: <20221028140700.2799-1-GNUtoo@cyberdimension.org> Date: Mon, 31 Oct 2022 11:44:38 -0400 In-Reply-To: <20221028140700.2799-1-GNUtoo@cyberdimension.org> (Denis Carikli's message of "Fri, 28 Oct 2022 16:07:00 +0200") Message-ID: <874jvkdml5.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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58344-done Cc: 58344-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Denis, Denis 'GNUtoo' Carikli writes: > * 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=3D/gnu/store/7s2zlc4r9wqvlh9x2gqmzm= 4lnmbsdzmn-bash-minimal-5.1.8/bin/bash" "SHELL=3D/gnu/store/7s2zlc4r9wqvlh9= x2gqmzm4lnmbsdzmn-bash-minimal-5.1.8/bin/bash" "--prefix=3D/gnu/store/kx6s2= s5s2c99ckzvp81qgzd00qx5l8hp-wipe-2.3.1" "--enable-fast-install" "--build=3D= 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"). > Thanks for the changes; for the last point, it works for me; see the diff below. I've normalized the indentation a bit, stressed in the description that users shouldn't blindly put their trust in the tool... --8<---------------cut here---------------start------------->8--- modified gnu/packages/disk.scm @@ -1469,42 +1469,36 @@ (define-public wipe (build-system gnu-build-system) (arguments (list - #:tests? #f ;no tests + #: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 =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 otherwise - ;; 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/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")))))) + #~(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 =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) ")))) + (add-after 'unpack 'force-autotools-bootstrap + (lambda _ + ;; Rebuild the build system scripts, as the ones in bundles = are + ;; very old and do not support all the options used by Guix. + (delete-file "configure")))))) (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.") +relies on several assumptions like having the block device write the corre= ct +sectors, etc. For files it also doesn't work on log-structured file syste= ms +such as F2FS, JFFS, LogFS, etc. You should @emph{not} trust @command{wipe= } to +work as advertised until you have manually verified that all its assumption +hold true on your system. To overwrite data it uses the Mersenne Twister +pseudo-random number generator (PRNG) that is seeded with @file{/dev/urand= om} +or, if unavailable, @file{/dev/random}.") (license license:gpl2+))) --8<---------------cut here---------------end--------------->8--- ... and pushed! Thank you, Maxim From unknown Sat Jun 21 10:20:31 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 29 Nov 2022 12:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator