From: "Sebastian Pipping" <sping@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/dcfldd/
Date: Sat, 11 Jan 2025 21:57:21 +0000 (UTC) [thread overview]
Message-ID: <1736632615.e0b583e63f9c846d1c99359f7f3940e3b209fcf6.sping@gentoo> (raw)
commit: e0b583e63f9c846d1c99359f7f3940e3b209fcf6
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 11 21:53:42 2025 +0000
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Sat Jan 11 21:56:55 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0b583e6
sys-apps/dcfldd: Add simple test to detect miscompilation
Closes: https://bugs.gentoo.org/947030
Suggested-by: Sam James <sam <AT> gentoo.org>
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>
sys-apps/dcfldd/dcfldd-1.9.2-r1.ebuild | 53 ++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
diff --git a/sys-apps/dcfldd/dcfldd-1.9.2-r1.ebuild b/sys-apps/dcfldd/dcfldd-1.9.2-r1.ebuild
new file mode 100644
index 000000000000..9ed9f564a117
--- /dev/null
+++ b/sys-apps/dcfldd/dcfldd-1.9.2-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit autotools bash-completion-r1
+
+DESCRIPTION="enhanced dd with features for forensics and security"
+HOMEPAGE="https://github.com/resurrecting-open-source-projects/dcfldd"
+SRC_URI="https://github.com/resurrecting-open-source-projects/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~riscv ~x86"
+
+DEPEND="virtual/pkgconfig"
+
+DOCS=(
+ AUTHORS
+ CONTRIBUTING.md
+ ChangeLog
+ NEWS
+ README.md
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf --with-bash-completion
+}
+
+src_install() {
+ default
+
+ # Fix Bash completion filename
+ mv "${D}$(get_bashcompdir)"/dcfldd{-bash_completion,} || die
+}
+
+src_test() {
+ # Just in case upstream add tests in future
+ default
+
+ # Smoke test for Gentoo bug #930996
+ # Inspired by https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114698#c0
+ expected_sha256sum="$(sha256sum <<<TestInput | awk '{print $1}' \
+ | tee /dev/stderr)"
+ actual_sha256sum="$(dcfldd hash=sha256 2>&1 <<<TestInput \
+ | grep -F sha256 | awk '{print $3}' | tee /dev/stderr)"
+ [[ ${actual_sha256sum} = ${expected_sha256sum} ]] \
+ || die "dcfldd did not produce the expected SHA256 sum."
+}
next reply other threads:[~2025-01-11 21:57 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-11 21:57 Sebastian Pipping [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-13 9:53 [gentoo-commits] repo/gentoo:master commit in: sys-apps/dcfldd/ Sebastian Pipping
2025-01-12 17:48 Sebastian Pipping
2024-12-21 3:11 Sam James
2024-12-21 3:11 Sam James
2024-10-21 0:45 Sebastian Pipping
2024-10-21 0:45 Sebastian Pipping
2024-05-06 13:27 Sam James
2024-05-06 13:27 Sam James
2024-05-01 18:42 Sebastian Pipping
2023-04-26 14:41 Sebastian Pipping
2023-04-26 14:41 Sebastian Pipping
2023-02-12 4:47 Sebastian Pipping
2023-02-11 0:22 Sebastian Pipping
2023-02-11 0:20 Sebastian Pipping
2023-01-11 22:59 Sam James
2023-01-11 21:43 Sam James
2022-11-29 1:18 Sebastian Pipping
2022-10-17 22:50 Sebastian Pipping
2022-05-25 16:50 Jakov Smolić
2021-08-18 11:02 Sebastian Pipping
2021-03-13 13:43 Sebastian Pipping
2021-03-13 11:37 Sam James
2021-03-13 11:36 Sam James
2020-04-15 11:28 Sebastian Pipping
2020-01-27 0:27 Jeroen Roovers
2020-01-02 0:06 Jeroen Roovers
2019-02-10 12:12 Mikle Kolyada
2019-02-10 12:12 Mikle Kolyada
2019-02-10 12:12 Mikle Kolyada
2018-08-11 9:06 Andreas Sturmlechner
2017-08-11 17:38 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1736632615.e0b583e63f9c846d1c99359f7f3940e3b209fcf6.sping@gentoo \
--to=sping@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox