Files with multiple consecutive spaces cause errors

Bug #1953239 reported by Boris Gjenero
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
checkinstall (Ubuntu)
New
Undecided
Unassigned

Bug Description

I was trying to use checkinstall to create a package for projectM music visualizer which I compiled. I already made a tar.xz and was doing "sudo checkinstall tar -C / -xJf /d/projectm-linux-x86_64-20211102.tar.xz" and that was failing with a bunch of errors after "Installation successful":

======================== Installation successful ==========================

Copying files to the temporary directory...tar: ./usr/local/share/projectM/presets/presets_eyetune/New Creation Sensation - AdamFx,Flexi,Amandio c n Martin - Star to Another World ft Hexocollie n Shadow Harlequin n Geiss B.milk: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
tar: ./usr/local/share/projectM/presets/presets_milkdrop/Rovastar - Kalideostars (Round Round Mix).milk: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
tar: ./usr/local/share/projectM/presets/presets_mischa_collection/A New Definition for Milk - AdamFX - Laser Show in a Crystalstorm ft Orb n Martin Inside the Forge of Isengard.milk: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
tar: ./usr/local/share/projectM/presets/presets_mischa_collection/Stahlregen & AdamFX closer to god through bacon.milk: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors

There is a lot more of this. These files indeed do not exist in the .tar.xz or on disk once it is extracted. I tracked down a bunch of the files, and all the corresponding files which do exist have two consecutive spaces in the file name. Apparently checkinstall turns two consecutive spaces into a single space, and then fails to find the file.

As a simple test, I created a .tar.gz with "/usr/local/Hello World" (with two spaces between Hello and World) and "/usr/local/Hello World" (with a single space). Creating a package via "sudo checkinstall tar -C / -xzf /d/break_checkinstall_spaces.tar.gz", only the file with a single space gets included, though I don't see the "Cannot stat: No such file or directory" error.

Using --fstrans=0 or --fstrans=no doesn't help.

ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: checkinstall 1.6.2+git20170426.d24a630-2ubuntu1
ProcVersionSignature: Ubuntu 5.13.0-22.22-generic 5.13.19
Uname: Linux 5.13.0-22-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu71
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: XFCE
Date: Sat Dec 4 23:43:35 2021
SourcePackage: checkinstall
UpgradeStatus: Upgraded to impish on 2021-10-02 (63 days ago)

Revision history for this message
Boris Gjenero (boris-gjenero) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.