Your message dated Mon, 18 Oct 2021 20:33:39 +0000
with message-id <[email protected]>
and subject line Bug#986570: fixed in ddrutility 2.8-2
has caused the Debian Bug report #986570,
regarding ddrutility: ddru_findbad fails if fdisk output uses translated
strings (ddru_findbad: 1027: arithmetic expression: expecting primary)
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
986570: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=986570
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ddrutility
Version: 2.8-1.1
Severity: normal
X-Debbugs-Cc: [email protected]
Dear Maintainer,
I found on some attempts to use ddru_findbad are
failing for me like this:
...
/usr/bin/ddru_findbad: 1027: arithmetic expression: expecting primary: "
(300-/dev/loop0:) "
I used as a workaround a "export LANG=C" before using it.
Now I found some more time to report it.
The issue shows when package util-linux-locales is installed and
fdisk outputs something different than "Disk" in the column header.
A minimal improvement might be this:
/usr/bin/ddru_findbad:1027
- $GFDISK -lu "$TARGET" | grep -a "$TARGET" | grep -a -v Disk >
tempddrfdisk
+ LANG=C $GFDISK -lu "$TARGET" | grep -a "$TARGET" | grep -a -v Disk >
tempddrfdisk
Kind regards,
Bernhard
-- System Information:
Debian Release: bullseye/sid
APT prefers testing-security
APT policy: (500, 'testing-security'), (500, 'testing-debug'), (500,
'proposed-updates-debug'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 5.10.0-5-amd64 (SMP w/16 CPU threads)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages ddrutility depends on:
ii fdisk 2.36.1-7
ii libc6 2.31-11
ii ntfs-3g 1:2017.3.23AR.3-4
ii sleuthkit 4.10.1+dfsg-1
ddrutility recommends no packages.
ddrutility suggests no packages.
-- no debconf information
Thank you for using reportbug
# single-use Bullseye/testing amd64 qemu VM 2021-04-07
echo "set enable-bracketed-paste off" >> /etc/inputrc; bash
apt update
apt dist-upgrade
apt install mc gdb gddrescue ddrutility util-linux-locales fdisk-dbgsym
apt build-dep fdisk
mkdir /home/benutzer/source/fdisk/orig -p
cd /home/benutzer/source/fdisk/orig
apt source fdisk
cd
mkdir /home/benutzer/source/glibc/orig -p
cd /home/benutzer/source/glibc/orig
apt source glibc
cd
truncate --size=300M test.img
fdisk test.img
# create primary Linux partition
losetup -P /dev/loop0 test.img
mkfs.ext4 /dev/loop0p1
mount /dev/loop0p1 /mnt
dd if=/dev/zero of=/mnt/testfile bs=1M
umount /mnt
ddrescue /dev/loop0 ddrescue.img ddrescue.log
losetup -d /dev/loop0
cat <<EOF > ddrescue-fake.log
# Mapfile. Created by GNU ddrescue version 1.23
# Command line: ddrescue /dev/loop0 ddrescue.img ddrescue.log
# Start time: 2021-04-07 15:33:00
# Current time: 2021-04-07 15:33:01
# Finished
# current_pos current_status current_pass
0x12BF0000 + 1
# pos size status
0x00000000 0x04860000 +
0x04860000 0x00004000 -
0x04864000 0x12C00000 +
EOF
bash
mkdir try1; cd try1
echo $LANG
ddru_findbad ../ddrescue.img ../ddrescue-fake.log
fdisk -lu ../ddrescue.img | grep ../ddrescue.img
exit
root@debian:~# bash
root@debian:~# mkdir try1
root@debian:~# cd try1
root@debian:~/try1# echo $LANG
de_DE.UTF-8
root@debian:~/try1# ddru_findbad ../ddrescue.img ../ddrescue-fake.log
Command line input was processed succesfully
ddru_findbad 1.11 20141015
Waring! GNU fdisk is not detected!
Therefore GPT partitioned disks will not be able to be processed
and this script may produce errors if trying to do so.
See help file for more info.
Target = ../ddrescue.img
Logfile = ../ddrescue-fake.log
Output base name = results
Sector size = 512
Loop wait time = 2
More info = false
Extra output = false
Quick = false
Quick ntfs = false
Target ../ddrescue.img is detected to be a file
Target ../ddrescue.img is found to be a whole dos partitioned disk
Processing ddrescue log file
0x04860000 0x00004000 -
148224 148255
Checking Festplatte
/usr/bin/ddru_findbad: 1027: arithmetic expression: expecting primary: "
(300-/dev/loop0:) "
root@debian:~/try1# fdisk -lu ../ddrescue.img | grep ../ddrescue.img
Festplatte ../ddrescue.img: 300 MiB, 314572800 Bytes, 614400 Sektoren
../ddrescue.img1 2048 614399 612352 299M 83 Linux
root@debian:~/try1# exit
bash
mkdir try2; cd try2
export LANG=C
echo $LANG
ddru_findbad ../ddrescue.img ../ddrescue-fake.log
fdisk -lu ../ddrescue.img | grep ../ddrescue.img
exit
root@debian:~# bash
root@debian:~# mkdir try2; cd try2
root@debian:~/try2# export LANG=C
root@debian:~/try2# echo $LANG
C
root@debian:~/try2# ddru_findbad ../ddrescue.img ../ddrescue-fake.log
Command line input was processed succesfully
ddru_findbad 1.11 20141015
Waring! GNU fdisk is not detected!
Therefore GPT partitioned disks will not be able to be processed
and this script may produce errors if trying to do so.
See help file for more info.
Target = ../ddrescue.img
Logfile = ../ddrescue-fake.log
Output base name = results
Sector size = 512
Loop wait time = 2
More info = false
Extra output = false
Quick = false
Quick ntfs = false
Target ../ddrescue.img is detected to be a file
Existing loop linked to target found, deleting /dev/loop0
Target ../ddrescue.img is found to be a whole dos partitioned disk
Processing ddrescue log file
0x04860000 0x00004000 -
148224 148255
Checking /dev/loop0p1
Partition /dev/loop0p1 type Ext4 is found to be linux
Checking block 73088 Inode 12 File //testfile
Checking block 73089 Inode 12 File //testfile
Checking block 73090 Inode 12 File //testfile
Checking block 73091 Inode 12 File //testfile
Checking block 73092 Inode 12 File //testfile
Checking block 73093 Inode 12 File //testfile
Checking block 73094 Inode 12 File //testfile
Checking block 73095 Inode 12 File //testfile
Checking block 73096 Inode 12 File //testfile
Checking block 73097 Inode 12 File //testfile
Checking block 73098 Inode 12 File //testfile
Checking block 73099 Inode 12 File //testfile
Checking block 73100 Inode 12 File //testfile
Checking block 73101 Inode 12 File //testfile
Checking block 73102 Inode 12 File //testfile
Checking block 73103 Inode 12 File //testfile
Processing output files
Producing stats
Creating list of files with counts
Cleaning up
Total elapsed time: 00:00:00:12
root@debian:~/try2# fdisk -lu ../ddrescue.img | grep ../ddrescue.img
Disk ../ddrescue.img: 300 MiB, 314572800 bytes, 614400 sectors
../ddrescue.img1 2048 614399 612352 299M 83 Linux
root@debian:~/try2# exit
--- End Message ---
--- Begin Message ---
Source: ddrutility
Source-Version: 2.8-2
Done: Paulo Roberto Alves de Oliveira (aka kretcheu) <[email protected]>
We believe that the bug you reported is fixed in the latest version of
ddrutility, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Paulo Roberto Alves de Oliveira (aka kretcheu) <[email protected]> (supplier
of updated ddrutility package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sat, 09 Oct 2021 19:24:00 -0300
Source: ddrutility
Architecture: source
Version: 2.8-2
Distribution: unstable
Urgency: medium
Maintainer: Paulo Roberto Alves de Oliveira (aka kretcheu) <[email protected]>
Changed-By: Paulo Roberto Alves de Oliveira (aka kretcheu) <[email protected]>
Closes: 986570
Changes:
ddrutility (2.8-2) unstable; urgency=medium
.
* Using new DH level format. Consequently:
- debian/compat: removed.
- debian/control: changed from 'debhelper' to 'debhelper-compat' in
Build-Depends field and bumped level to 13.
* debian/copyright:
- Use https protocol in Format field.
- Updated copyright information.
* debian/control:
- Added 'Rules-Requires-Root: no' in source stanza.
- Bumped Standards-Version to 4.6.0.1.
- Added VCS-* fields.
* debian/patches/:
- Fixed description spell error.
- New patch 04-fix-fail-output.patch to fix fails.if.fdisk.output.uses.
Thanks to Bernhard Übelacker <[email protected]> (Closes: #986570).
* debian/rules: Removed '-Wl,--as-needed' from LDFLAGS set, not required now.
* Add Upstream Metadata file.
Checksums-Sha1:
56353b254f11b1f3837b7037d88d91da5ce3e88f 1863 ddrutility_2.8-2.dsc
b227a8f7a8dd23b3cd293a8292e64906b5586765 4312 ddrutility_2.8-2.debian.tar.xz
065b589427df3f7bb015c0ad3823a86595bca4f6 6078 ddrutility_2.8-2_amd64.buildinfo
Checksums-Sha256:
9ad2b5a807308e75a9e71727172ed6462100bcf1a3d290ab68b785cf8c937593 1863
ddrutility_2.8-2.dsc
9067eeeceeabf4f282add2b1060f08627f8ec8d280847273912d8895deb31b57 4312
ddrutility_2.8-2.debian.tar.xz
4019ad2cd85edc30e5003bfd08365972cad67492a24c32d20ff87b580c8b5662 6078
ddrutility_2.8-2_amd64.buildinfo
Files:
3b0d23968b11e25c1ec548118c082a20 1863 utils optional ddrutility_2.8-2.dsc
74750fc945d5834f1c30926961051d99 4312 utils optional
ddrutility_2.8-2.debian.tar.xz
d9b9b7ee6617c216187e48135eeeea53 6078 utils optional
ddrutility_2.8-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEBdtqg34QX0sdAsVfu6n6rcz7RwcFAmFtzq8ACgkQu6n6rcz7
RweURw//VQwolNaZCGjdC6zjg6umw6xo8YFs/GmqxHLKdamnrHsSDYOG3pEuNHak
DYwR0NVByTZJmG6sloJ+Dg5BlcSAN0oQGwciQ0ex6MSkLBWOtsvIQFofPVvjL81g
4OAl+BJMWZiaxCp/oP8xxYrenVytPfVosRvVMgBr/VwsNN+f05lbBz0mZGX523Vx
DWsXjxV94D9bDWRiEduOZ8aGiMAIlVAb1fQtYYE6SyYEFGszpPk1nsHWXXAQ6ML6
/dD/XxD4iJ86mx11WcvSDFXTmFAyFeZRZA7PSpCzTn3O9eqOuYEqXNRkHYCHI/zs
cem9s4Am9len8YEzMOxnEmuN9j8zNPMe+vGKzfGwj7yb79WEn7uUJdTiHJM5vgPG
0iOSsYS9J8z6MB+o8PAqLOZea1EsqiBPOVPYv1nfWxWvx7R85VXXdqQLfEduWi0V
R+Go8qb+KCe4NgUuy+Pca4cPT3Ic9h0wpmyDgnrDh8gfbFpNnpp/KLSM3ahKbTuW
4hKMOIXfYdtGRgprq8E/ccKM0H4fP9jMYU+jNJSzgwnCjHv8ORBNinl7L1rSPz6t
4UDl6yQlG3vdJBIHRv+koTOGUbq3solbIq0LuwaiskgmtMEgmycrUvnB6khZj8my
XYmRzovbUNR2dw4uEOAInzsaTTU1FnixUH02E0pbOvH97FufoxI=
=q60k
-----END PGP SIGNATURE-----
--- End Message ---