This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=f2678508dbbaa99d0d30ea81e4868f6548117dd1

commit f2678508dbbaa99d0d30ea81e4868f6548117dd1 (HEAD -> main)
Author: Guillem Jover <[email protected]>
AuthorDate: Wed Dec 7 19:27:48 2022 +0100

    test: Use perl instead of yes+dd to generate a data-file for deb-split
    
    Using yes+dd is problematic, and we already had to cope with SIGPIPE
    issues in the past. When using busybox's dd, the output is truncated
    unless we use iflag=fullblock which is a rather non-portable option.
    
    POSIX in general is rather lacking when it comes to standard commands
    to fetch a limited number of bytes. Instead of trying to do more
    portability gymnastics, simply switch to use perl, which we already
    depend on for the test suite, and is going to be more portable and
    featureful.
---
 src/at/deb-split.at | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/at/deb-split.at b/src/at/deb-split.at
index ae06d8154..6b07d7984 100644
--- a/src/at/deb-split.at
+++ b/src/at/deb-split.at
@@ -15,9 +15,7 @@ DPKG_MOD_CONTROL([pkg-split],
 AT_CHECK([
 # Initialize the template package
 chmod -R u+w pkg-split
-# XXX: Some environments set SIGPIPE to ignore which we cannot reset, and 'yes'
-# does check print error conditions, so we ignore its error message here.
-yes 2>/dev/null | dd of=pkg-split/data-file bs=1024 count=2048 2>/dev/null
+$PERL -E 'print "fade" foreach 1 .. 1024 * 512' >pkg-split/data-file
 find pkg-split | xargs touch -t 197001010100.00
 dpkg-deb --root-owner-group -Znone -b pkg-split >/dev/null
 ])
@@ -31,7 +29,7 @@ done
 ], [], [Splitting package pkg-split into 10 parts: 1 2 3 4 5 6 7 8 9 10 done
 ])
 
-DEB_SPLIT_MD5SUM=0a4dfee0e57e273cd260ece947ce6bde
+DEB_SPLIT_MD5SUM=1684b6cdb72bf035ccafd653f307d3da
 DEB_SPLIT_LENGTH=2109632
 DEB_SPLIT_PART_LENGTH=214016
 DEB_SPLIT_PART_SIZE=214222

-- 
Dpkg.Org's dpkg

Reply via email to