Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 890869

Summary: sys-block/parted-3.5 fails tests (DASH-SYSTEM)
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Michał Górny <mgorny>
Status: RESOLVED FIXED    
Severity: normal CC: base-system, kfm
Priority: Normal Keywords: PATCH, TESTFAILURE, UPSTREAM
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61128
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 526268    
Attachments: build.log
1-test-suite.log
0001-Use-complementation-correctly-in-shell-globs.patch

Description Agostino Sarubbo gentoo-dev 2023-01-15 05:46:07 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-block/parted-3.5 fails tests (DASH-SYSTEM).
Discovered on: amd64 (internal ref: dash_tinderbox)

NOTE:
(DASH-SYSTEM) in the summary means that the bug was found on a machine that runs /bin/sh as dash but this bug MAY or MAY NOT BE related to dash.
Comment 1 Agostino Sarubbo gentoo-dev 2023-01-15 05:46:09 UTC
Created attachment 848503 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-01-15 05:46:11 UTC
Created attachment 848505 [details]
1-test-suite.log

1-test-suite.log
Comment 3 Agostino Sarubbo gentoo-dev 2023-01-15 05:46:12 UTC
Error(s) that match a know pattern:


Can't locate Digest/CRC.pm in @INC (you may need to install the Digest::CRC module) (@INC contains: /etc/perl /usr/local/lib64/perl5/5.36/x86_64-linux-debug-thread-multi /usr/local/lib64/perl5/5.36 /usr/lib64/perl5/vendor_perl/5.36/x86_64-linux-debug-thread-multi /usr/lib64/perl5/vendor_perl/5.36 /usr/lib64/perl5/5.36/x86_64-linux-debug-thread-multi /usr/lib64/perl5/5.36 /usr/lib64/perl5/vendor_perl/5.34) at -e line 1.
+ echo Error: The primary GPT table is corrupt, but the backup appears OK, so that will be used.
-Error: The primary GPT table is corrupt, but the backup appears OK, so that will be used.
FAIL: t0206-gpt-print-with-corrupt-primary-clobbers-pmbr
FAIL: t0206-gpt-print-with-corrupt-primary-clobbers-pmbr.sh
FAIL t0206-gpt-print-with-corrupt-primary-clobbers-pmbr.sh (exit status: 1)
FAIL: t0280-gpt-corrupt
FAIL: t0280-gpt-corrupt.sh
FAIL t0280-gpt-corrupt.sh (exit status: 1)
+ grep Error: err
Comment 4 kfm 2023-01-25 14:27:47 UTC
The principle of pusillanimous portability is very much at play here. I have identified the cause and shall submit a patch soon.
Comment 5 kfm 2023-01-25 15:28:52 UTC
Created attachment 849189 [details, diff]
0001-Use-complementation-correctly-in-shell-globs.patch
Comment 6 Larry the Git Cow gentoo-dev 2023-06-16 03:05:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8489bdccc712eb390d43de5f3b0918bb839e8361

commit 8489bdccc712eb390d43de5f3b0918bb839e8361
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-06-16 02:56:01 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-06-16 02:56:01 +0000

    sys-block/parted: fix test portability issues
    
    Closes: https://bugs.gentoo.org/753677
    Closes: https://bugs.gentoo.org/890869
    Thanks-to: Kerin Millar <kfm@plushkava.net>
    Signed-off-by: Sam James <sam@gentoo.org>

 .../parted/files/parted-3.6-tests-non-bash.patch   | 86 ++++++++++++++++++++++
 .../parted/files/parted-3.6-tests-unicode.patch    | 59 +++++++++++++++
 sys-block/parted/parted-3.6.ebuild                 |  6 +-
 3 files changed, 150 insertions(+), 1 deletion(-)