Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.rc > #333449 > unrolled thread

Bug#1026664: misspell-fixer: FTBFS: grep: work/R.txt: Permission denied

Started byLucas Nussbaum <lucas@debian.org>
First post2022-12-20 18:50 +0100
Last post2022-12-31 00:30 +0100
Articles 5 — 3 participants

Back to article view | Back to linux.debian.bugs.rc


Contents

  Bug#1026664: misspell-fixer: FTBFS: grep: work/R.txt: Permission denied Lucas Nussbaum <lucas@debian.org> - 2022-12-20 18:50 +0100
    Bug#1026664: misspell-fixer: FTBFS: grep: work/R.txt: Permission denied Lajos Veres <vlajos@gmail.com> - 2022-12-23 01:10 +0100
      Bug#1026664: misspell-fixer: FTBFS: grep: work/R.txt: Permission denied Lucas Nussbaum <lucas@debian.org> - 2022-12-23 09:10 +0100
    Bug#1026664: misspell-fixer: FTBFS: grep: work/R.txt: Permission denied Santiago Vila <sanvila@debian.org> - 2022-12-29 13:20 +0100
    Bug#1026664: misspell-fixer: FTBFS: grep: work/R.txt: Permission denied Santiago Vila <sanvila@debian.org> - 2022-12-31 00:30 +0100

#333449 — Bug#1026664: misspell-fixer: FTBFS: grep: work/R.txt: Permission denied

FromLucas Nussbaum <lucas@debian.org>
Date2022-12-20 18:50 +0100
SubjectBug#1026664: misspell-fixer: FTBFS: grep: work/R.txt: Permission denied
Message-ID<FEOUK-bZV5-139@gated-at.bofh.it>
Source: misspell-fixer
Version: 0.4-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas@debian.org
Usertags: ftbfs-20221220 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> /bin/bash -c 'source test/tests.sh'
> Git is not available so we do not test .gitignore related functionality.
> testWhitelist
> misspell-fixer: -W Save found misspelled file entries into  .misspell-fixer.ignore instead of fixing them.
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Saving found misspells into .misspell-fixer.ignore.
> misspell-fixer: Iteration 0: done.
> /<<PKGBUILDDIR>>
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: -n Disable backups.
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Skipping whitelisted entries based on .misspell-fixer.ignore.
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: Iteration 0: done.
> misspell-fixer: Iteration 1: prefiltering.
> misspell-fixer: Skipping whitelisted entries based on .misspell-fixer.ignore.
> misspell-fixer: Iteration 1: nothing to replace.
> misspell-fixer: Iteration 1: done.
> /<<PKGBUILDDIR>>
> /<<PKGBUILDDIR>>
> testWhitelistWithFileNameOverride
> misspell-fixer: -W Save found misspelled file entries into  .misspell-fixer.ignore instead of fixing them.
> misspell-fixer: -w Use .misspell-fixer.ignore.override as white list file instead of  .misspell-fixer.ignore.
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Saving found misspells into .misspell-fixer.ignore.override.
> misspell-fixer: Iteration 0: done.
> /<<PKGBUILDDIR>>
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: -n Disable backups.
> misspell-fixer: -w Use .misspell-fixer.ignore.override as white list file instead of  .misspell-fixer.ignore.
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Skipping whitelisted entries based on .misspell-fixer.ignore.override.
> misspell-fixer: Iteration 0: nothing to replace.
> misspell-fixer: Iteration 0: done.
> ASSERT:
> /<<PKGBUILDDIR>>
> diff -ruwb /tmp/misspell-fixer-test/1434479/expected/1.txt /tmp/misspell-fixer-test/1434479/work/1.txt
> --- /tmp/misspell-fixer-test/1434479/expected/1.txt	2022-12-20 09:55:05.905961848 +0000
> +++ /tmp/misspell-fixer-test/1434479/work/1.txt	2022-12-20 09:55:05.901961812 +0000
> @@ -1,3 +1,3 @@
> -successful
> -successfully
> -lower than
> \ No newline at end of file
> +succesful
> +succesfully
> +lower then
> \ No newline at end of file
> ASSERT:Expected output differs.
> /<<PKGBUILDDIR>>
> testWhitelistConflictWithRealRun
> /<<PKGBUILDDIR>>
> diff -ruwb /tmp/misspell-fixer-test/1434479/expected/1.txt /tmp/misspell-fixer-test/1434479/work/1.txt
> --- /tmp/misspell-fixer-test/1434479/expected/1.txt	2022-12-20 09:55:05.905961848 +0000
> +++ /tmp/misspell-fixer-test/1434479/work/1.txt	2022-12-20 09:55:05.901961812 +0000
> @@ -1,3 +1,3 @@
> -successful
> -successfully
> -lower than
> \ No newline at end of file
> +succesful
> +succesfully
> +lower then
> \ No newline at end of file
> ASSERT:Expected output differs.
> testWhitelistConflictWithDoubleWhitelist
> /<<PKGBUILDDIR>>
> diff -ruwb /tmp/misspell-fixer-test/1434479/expected/1.txt /tmp/misspell-fixer-test/1434479/work/1.txt
> --- /tmp/misspell-fixer-test/1434479/expected/1.txt	2022-12-20 09:55:05.905961848 +0000
> +++ /tmp/misspell-fixer-test/1434479/work/1.txt	2022-12-20 09:55:05.901961812 +0000
> @@ -1,3 +1,3 @@
> -successful
> -successfully
> -lower than
> \ No newline at end of file
> +succesful
> +succesfully
> +lower then
> \ No newline at end of file
> ASSERT:Expected output differs.
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: Target directories: .
> misspell-fixer: We found both .github/.misspell-fixer.ignore and .misspell-fixer.ignore.  We can handle only one at the moment.
> /<<PKGBUILDDIR>>
> testShowDiff
> /<<PKGBUILDDIR>>
> diff -ruwb /tmp/misspell-fixer-test/1434479/expected/1.txt /tmp/misspell-fixer-test/1434479/work/1.txt
> --- /tmp/misspell-fixer-test/1434479/expected/1.txt	2022-12-20 09:55:05.905961848 +0000
> +++ /tmp/misspell-fixer-test/1434479/work/1.txt	2022-12-20 09:55:05.901961812 +0000
> @@ -1,3 +1,3 @@
> -successful
> -successfully
> -lower than
> \ No newline at end of file
> +succesful
> +succesfully
> +lower then
> \ No newline at end of file
> ASSERT:Expected output differs.
> --- /tmp/misspell-fixer-test/1434479/output.diff.standard	2022-12-20 09:55:06.141963997 +0000
> +++ test/expected.diff.output	2021-01-13 19:01:21.000000000 +0000
> @@ -14,15 +14,4 @@
>  +successfully
>  +lower than
>  \ No newline at end of file
> ---- work/X.txt	X-X-X X:X:X.X +X
> -+++ work/X.txt.X	X-X-X X:X:X.X +X
> -@@ -X,X +X,X @@
> --succesful
> --succesfully
> --lower then
> -\ No newline at end of file
> -+successful
> -+successfully
> -+lower than
> -\ No newline at end of file
>  misspell-fixer: Iteration X: done.
> ASSERT:Expected output differs.
> testErrors
> # Misspell Fixer
> 
> [![Build Status](https://travis-ci.org/vlajos/misspell-fixer.svg?branch=master)](https://travis-ci.org/vlajos/misspell-fixer)
> [![Coverage Status](https://img.shields.io/coveralls/vlajos/misspell-fixer.svg)](https://coveralls.io/r/vlajos/misspell-fixer?branch=master)
> [![Circle CI Build Status](https://circleci.com/gh/vlajos/misspell-fixer.svg?style=svg)](https://circleci.com/gh/vlajos/misspell-fixer)
> [![Issue Count](https://codeclimate.com/github/vlajos/misspell-fixer/badges/issue_count.svg)](https://codeclimate.com/github/vlajos/misspell-fixer)
> [![Average time to resolve an issue](https://isitmaintained.com/badge/resolution/vlajos/misspell-fixer.svg)](https://isitmaintained.com/project/vlajos/misspell-fixer "Average time to resolve an issue")
> [![Percentage of issues still open](https://isitmaintained.com/badge/open/vlajos/misspell-fixer.svg)](https://isitmaintained.com/project/vlajos/misspell-fixer "Percentage of issues still open")
> 
> Utility to fix common misspellings, typos in source code. There are lots of typical misspellings in program code.
> Typically they are more eye-catching in the living code but they can easily hide in comments, examples, samples, notes and documentation.
> With this utility you can fix a large number of them very quickly.
> 
> Be aware that the utility does not check or fix file names. It could easily happen that a misspelled word is fixed in a file name in a program's code, but
> the file itself will not be renamed by this utility.
> 
> It is also important to be very careful when fixing public APIs!
> 
> A manual review is always needed to verify that nothing has been broken.
> 
> [Jump to docker notes](#with-docker)
> 
> ### Synopsis
>     
>     misspell-fixer	[OPTION] target[s]
> 
> ### Options, Arguments
> 
> `target[s]` can be any file[s] or directory/ies.
> 
> Main options:
> 
> * `-r` Real run mode: Overwrites the original files with the fixed one. Without this option the originals will be untouched.
> * `-n` Disable backups. (By default the modified files' originals will be saved with the `.$$.BAK` suffix.)
> * `-P n` Enable processing on `n` forks. For example: `-P 4` processes the files in 4 threads. (`-s` option is not supported)
> * `-f` Fast mode. (Equivalent with `-P4`)
> * `-h` Help.
> 
> Performance note: `-s`, `-v` or the lack of `-n` or `-r` use a slower processing internal loop. So usually `-frn` without `-s` and `-v` are the highest performing
> combination.
> 
> Output control options:
> 
> * `-s` Shows diffs of changes.
> * `-v` Verbose mode: shows the iterated files. (Without the prefiltering step)
> * `-o` Verbose mode: shows progress (prints a dot for each file scanned, a comma for each file fix iteration/file.)
> * `-d` Debug mode: shows all steps of the core logic.
> 
> By default only a subset of rules are enabled (around 100). You can enable more rules with the following options:
> 
> * `-u` Enable less safe rules. (Manual review's importance is more significant...) (Around ten rules.)
> * `-g` Enable rules to convert British English to US English. (These rules aren't exactly typos but sometimes they can be useful.) (Around ten rules.)
> * `-R` Enable rare rules. (Few hundred rules.)
> * `-V` Enable very rare rules. (Mostly from the wikipedia article.) (More than four thousand rules.)
> * `-D` Enable rules based on lintian.debian.org  ( git:ebac9a7, ~2300 )
> 
> The processing speed decreases as you activate more rules. But with newer greps this is much less significant.
> 
> File filtering options:
> 
> * `-G` Respect `.gitignore` files. (Requires executable `git` command.) (experimental)
> * `-N` Enable file name filtering. For example: `-N '*.cpp' -N '*.h'`
> * `-i` Walk through source code management system's internal directories. (do not ignore `.git`, `.svn`, `.hg`, `CVS`)
> * `-b` Process binary, generated files. (do not ignore `*.gif`, `*.jpg`, `*.jpeg`, `*.png`, `*.zip`, `*.gz`, `*.bz2`, `*.xz`, `*.rar`, `*.po`, `*.pdf`, `*.woff`, `yarn.lock`, `package-lock.json`, `composer.lock`, `*.mo`, `*.mov`, `*.mp4`, `*.jar`)
> * `-m` Disable file size checks. Default is to ignore files > 1MB. (usually csv, compressed JS, ..)
> 
> Whitelisting files/entries:
> 
> Misspell-fixer automatically ignores the issues matching to the patterns listed in `.misspell-fixer.ignore` or `.github/.misspell-fixer.ignore`.
> The format of this file follows the prefiltering's temporary result format:
> 
> `^filename:line number:matched word`
> 
> * `-W` can be used to append the found issues instead of fixing them based on the other settings.
> * `-w filename` can be used to override the ignore file's name.
> 
> The ignore file is interpreted as a `grep` exclusion list.
> It is applied after the prefiltering step as a set of grep expression.
> So it is possible to exclude any prefixes or more specifically whole files with keeping only their file names:
> 
> `^filename`
> 
> Or a directory:
> 
> `^directory`
> 
> The entries are listed/matched with the paths based on the current invocation. Reaching the same target with different path from
> the same working directory will not apply the whitelisted entries generated from the other invocation.
> In directory `x` the whitelist entries generated with target `.` will not be applied for target `../x`, although they are the same.
> There is a workaround for this with manually editing the whitelist to your needs.
> (Patches are welcome for a more general solution...)
> 
> ### Return values
> 
> Generally the script tries to return with `0` if there were no typos or errors found/fixed.
> 
> * `0` No typos found,
> * `1-5` Typos found. The return value shows the number of iterations executed.
> * `10` Help successfully printed.
> * `11` Whitelist successfully saved.
> * `100-` Parameter errors. (invalid, missing, conflicting)
> 
> 
> ### Sample usage
> 
> Without arguments, the script will not change anything and its output is minimal.
> Its return value can be used to detect whether it found any typos or not.
> 
>     $ misspell-fixer target
> 
> Fixing the files with displaying each fixed file:
> 
>     $ misspell-fixer -rv target
> 
> Showing only the diffs without modifying the originals:
> 
>     $ misspell-fixer -sv target
> 
> Showing the diffs with progress and fixing the found typos:
> 
>     $ misspell-fixer -rsv target
> 
> Fast mode example, no backups: (highest performance)
> 
>     $ misspell-fixer -frn target
> 
> The previous with all rules enabled:
> 
>     $ misspell-fixer -frunRVD target
> 
> It is based on the following sources for common misspellings:
> 
> * https://en.wikipedia.org/wiki/Commonly_misspelled_words
> * https://github.com/neleai/stylepp
> * https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines
> * https://anonscm.debian.org/git/lintian/lintian.git/tree/data/spelling/corrections
> * http://www.how-do-you-spell.com/
> * http://www.wrongspelled.com/
> 
> ### With Docker
> 
> In some environments the dependencies may cause some trouble. (Mac, Windows, older linux versions.)
> In this case, you can use misspell-fixer as a docker container image.
> 
> Pull the latest version:
> 
>     $ docker pull vlajos/misspell-fixer
> 
> And fix `targetdir`'s content:
> 
>     $ docker run -ti --rm -v targetdir:/work vlajos/misspell-fixer -frunRVD .
> 
> #### Some other different use cases, examples:
> 
> General execution directly with docker:
> 
>     $ docker run -ti --rm -v targetdir:/work vlajos/misspell-fixer [arguments]
> 
> `targetdir` becomes the current working directory in the container, so you can reference it as `.` in the arguments list.
> 
> You can also use the `dockered-fixer` wrapper from the source repository:
> 
>     $ dockered-fixer [arguments]
> 
> In case your shell supports functions, you can define a function to make the command a little shorter:
> 
>     $ function misspell-fixer { docker run -ti --rm -v $(pwd):/work vlajos/misspell-fixer "$@"; }
> 
> And fixing with the function:
> 
>     $ misspell-fixer [arguments]
> 
> Through the wrapper and the function it can access only the folders below the current working directory
> as it is the only one passed to the container as a volume.
> 
> You can build the container locally, although this should not be really needed:
> 
>     $ docker build . -t misspell-fixer
> 
> ### With GitHub Actions
> 
> There's a [GitHub Action](https://github.com/sobolevn/misspell-fixer-action) to run `misspell-fixer` as well.
> It can even send PRs automatically with the fixes.
> 
> ### Dependencies - "On the shoulders of giants"
> 
> The script itself is just a misspelling database and some glue in `bash` between `grep` and `sed`.
> `grep`'s `-F` combined with `sed`'s line targeting makes the script quite efficient.
> `-F` enables parallel pattern matching with the [Aho–Corasick algorithm](https://en.wikipedia.org/wiki/Aho%E2%80%93Corasick_algorithm) .
> Unfortunately only the newer (2.28+) versions of grep supports `-w` properly.
> 
> A little more comprehensive list:
> 
> * bash
> * find
> * sed
> * grep
> * diff
> * sort
> * tee
> * cut
> * rm, cp, mv
> * xargs
> * git (for respecting .gitignore files)
> 
> ### Authors
> 
> * Veres Lajos
> * ka7
> 
> ### Original source
> 
> https://github.com/vlajos/misspell-fixer
> 
> Feel free to use!
> misspell-fixer: Invalid option: -p
> misspell-fixer: Option -P requires an argument.
> misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> misspell-fixer: -s Enable showing of diffs.
> misspell-fixer: Target directories: /dev/null
> misspell-fixer: Real run (-r) has not been enabled. Files will not be changed. Use -r to override this.
> misspell-fixer: Parallel mode cannot show diffs. Showing diffs is turned on. => Exiting.
> testOnlyDir
> misspell-fixer: Target directories:  work
> misspell-fixer: Real run (-r) has not been enabled. Files will not be changed. Use -r to override this.
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: Iteration 0: done.
> /<<PKGBUILDDIR>>
> diff -ruwb /tmp/misspell-fixer-test/1434479/expected/1.txt /tmp/misspell-fixer-test/1434479/work/1.txt
> --- /tmp/misspell-fixer-test/1434479/expected/1.txt	2022-12-20 09:55:05.905961848 +0000
> +++ /tmp/misspell-fixer-test/1434479/work/1.txt	2022-12-20 09:55:05.901961812 +0000
> @@ -1,3 +1,3 @@
> -successful
> -successfully
> -lower than
> \ No newline at end of file
> +succesful
> +succesfully
> +lower then
> \ No newline at end of file
> ASSERT:Expected output differs.
> shunit2:ERROR testOnlyDir() returned non-zero return code.
> testSpaceInFileName
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: -n Disable backups.
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: Iteration 0: done.
> misspell-fixer: Iteration 1: prefiltering.
> misspell-fixer: Iteration 1: nothing to replace.
> misspell-fixer: Iteration 1: done.
> /<<PKGBUILDDIR>>
> testMultipleFileNames
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: -n Disable backups.
> misspell-fixer: Target directories: work/0.txt work/1.txt
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: Iteration 0: done.
> misspell-fixer: Iteration 1: prefiltering.
> misspell-fixer: Iteration 1: nothing to replace.
> misspell-fixer: Iteration 1: done.
> /<<PKGBUILDDIR>>
> testParallel
> misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: -n Disable backups.
> misspell-fixer: -P Enable parallelism: 4
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: Iteration 0: done.
> misspell-fixer: Iteration 1: prefiltering.
> misspell-fixer: Iteration 1: nothing to replace.
> misspell-fixer: Iteration 1: done.
> /<<PKGBUILDDIR>>
> testBackup
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: Iteration 0: done.
> misspell-fixer: Iteration 1: prefiltering.
> misspell-fixer: Iteration 1: nothing to replace.
> misspell-fixer: Iteration 1: done.
> /<<PKGBUILDDIR>>
> testSCMdirsuntouched
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: -n Disable backups.
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: Iteration 0: done.
> misspell-fixer: Iteration 1: prefiltering.
> misspell-fixer: Iteration 1: nothing to replace.
> misspell-fixer: Iteration 1: done.
> /<<PKGBUILDDIR>>
> testSCMdirstouched
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: -n Disable backups.
> misspell-fixer: -i Disable scm dir ignoring.
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: Iteration 0: done.
> misspell-fixer: Iteration 1: prefiltering.
> misspell-fixer: Iteration 1: nothing to replace.
> misspell-fixer: Iteration 1: done.
> /<<PKGBUILDDIR>>
> testNamefilter
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: -n Disable backups.
> misspell-fixer: -i Disable scm dir ignoring.
> misspell-fixer: -N Enable name filter: *.aaa
> misspell-fixer: -N Enable name filter: *.yyy
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: Iteration 0: done.
> misspell-fixer: Iteration 1: prefiltering.
> misspell-fixer: Iteration 1: nothing to replace.
> misspell-fixer: Iteration 1: done.
> /<<PKGBUILDDIR>>
> --- test/expecteds/0.txt	2021-01-13 19:01:21.000000000 +0000
> +++ /tmp/misspell-fixer-test/1434479/work/0.zzz	2022-12-20 09:55:06.917971062 +0000
> @@ -1,3 +1,3 @@
> -successful
> -successfully
> -lower than
> \ No newline at end of file
> +succesful
> +succesfully
> +lower then
> \ No newline at end of file
> testKeepPermissionsNormal
> misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> misspell-fixer: -n Disable backups.
> misspell-fixer: -u Enable unsafe rules.
> misspell-fixer: -V Enable very-rare rules.
> misspell-fixer: Target directories: work
> misspell-fixer: Real run (-r) has not been enabled. Files will not be changed. Use -r to override this.
> misspell-fixer: Iteration 0: prefiltering.
> grep: work/0.txt: Permission denied
> grep: work/V.txt: Permission denied
> grep: work/R.txt: Permission denied
> grep: work/0.txt: Permission denied
> grep: work/V.txt: Permission denied
> grep: work/R.txt: Permission denied
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: Iteration 0: done.
> /<<PKGBUILDDIR>>
> testKeepPermissionsFast
> misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: -n Disable backups.
> misspell-fixer: -u Enable unsafe rules.
> misspell-fixer: -V Enable very-rare rules.
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> grep: work/0.txt: Permission denied
> grep: work/V.txt: Permission denied
> grep: work/R.txt: Permission denied
> grep: work/0.txt: Permission denied
> grep: work/V.txt: Permission denied
> grep: work/R.txt: Permission denied
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: Iteration 0: done.
> misspell-fixer: Iteration 1: prefiltering.
> misspell-fixer: Iteration 1: nothing to replace.
> misspell-fixer: Iteration 1: done.
> /<<PKGBUILDDIR>>
> testIgnoreBinary
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: -n Disable backups.
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: Iteration 0: done.
> misspell-fixer: Iteration 1: prefiltering.
> misspell-fixer: Iteration 1: nothing to replace.
> misspell-fixer: Iteration 1: done.
> /<<PKGBUILDDIR>>
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: -n Disable backups.
> misspell-fixer: -i Disable binary ignoring.
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: Iteration 0: done.
> misspell-fixer: Iteration 1: prefiltering.
> misspell-fixer: Iteration 1: nothing to replace.
> misspell-fixer: Iteration 1: done.
> /<<PKGBUILDDIR>>
> testVerbose
> /<<PKGBUILDDIR>>
> testDots
> /<<PKGBUILDDIR>>
> testMNoChange
> misspell-fixer: -m Disable max-size check.  Default is to ignore files > 1MB.
> misspell-fixer: -v Enable verbose mode.
> misspell-fixer: -R Enable rare rules.
> misspell-fixer: -V Enable very-rare rules.
> misspell-fixer: Target directories: work
> misspell-fixer: Real run (-r) has not been enabled. Files will not be changed. Use -r to override this.
> misspell-fixer: Your grep version is 3.8 which is at least the optimal: 2.28.
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Results of prefiltering: (filename:line:pattern)
> work/0.txt:1:succesful
> work/0.txt:2:succesful
> work/0.txt:3:lower then
> work/R.txt:1:truely
> work/V.txt:1:retore
> work/V.txt:2:initilized
> work/V.txt:3:a'ready
> work/nochange.txt:1:carefull
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: actual file: work/0.txt
> misspell-fixer: temp file: work/0.txt.1436161
> misspell-fixer: actual file: work/R.txt
> misspell-fixer: temp file: work/R.txt.1436162
> misspell-fixer: actual file: work/V.txt
> misspell-fixer: temp file: work/V.txt.1436163
> misspell-fixer: actual file: work/nochange.txt
> misspell-fixer: temp file: work/nochange.txt.1436164
> misspell-fixer: nothing changed
> misspell-fixer: Iteration 0: done.
> /<<PKGBUILDDIR>>
> testMainNormal
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: -n Disable backups.
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: Iteration 0: done.
> misspell-fixer: Iteration 1: prefiltering.
> misspell-fixer: Iteration 1: nothing to replace.
> misspell-fixer: Iteration 1: done.
> /<<PKGBUILDDIR>>
> testMainFast
> misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: -n Disable backups.
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: Iteration 0: done.
> misspell-fixer: Iteration 1: prefiltering.
> misspell-fixer: Iteration 1: nothing to replace.
> misspell-fixer: Iteration 1: done.
> /<<PKGBUILDDIR>>
> testMainNormalR
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: -n Disable backups.
> misspell-fixer: -R Enable rare rules.
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Iteration 0: nothing to replace.
> misspell-fixer: Iteration 0: done.
> ASSERT:
> /<<PKGBUILDDIR>>
> diff -ruwb /tmp/misspell-fixer-test/1434479/expected/0.txt /tmp/misspell-fixer-test/1434479/work/0.txt
> --- /tmp/misspell-fixer-test/1434479/expected/0.txt	2021-01-13 19:01:21.000000000 +0000
> +++ /tmp/misspell-fixer-test/1434479/work/0.txt	2021-01-13 19:01:21.000000000 +0000
> @@ -1,3 +1,3 @@
> -successful
> -successfully
> -lower than
> \ No newline at end of file
> +succesful
> +succesfully
> +lower then
> \ No newline at end of file
> diff -ruwb /tmp/misspell-fixer-test/1434479/expected/R.txt /tmp/misspell-fixer-test/1434479/work/R.txt
> --- /tmp/misspell-fixer-test/1434479/expected/R.txt	2021-01-13 19:01:21.000000000 +0000
> +++ /tmp/misspell-fixer-test/1434479/work/R.txt	2021-01-13 19:01:21.000000000 +0000
> @@ -1 +1 @@
> -truly
> +truely
> ASSERT:Expected output differs.
> shunit2:ERROR testMainNormalR() returned non-zero return code.
> testMainFastR
> misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: -n Disable backups.
> misspell-fixer: -R Enable rare rules.
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: Iteration 0: done.
> misspell-fixer: Iteration 1: prefiltering.
> misspell-fixer: Iteration 1: nothing to replace.
> misspell-fixer: Iteration 1: done.
> /<<PKGBUILDDIR>>
> testMainNormalV
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: -n Disable backups.
> misspell-fixer: -V Enable very-rare rules.
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: Iteration 0: done.
> misspell-fixer: Iteration 1: prefiltering.
> misspell-fixer: Iteration 1: nothing to replace.
> misspell-fixer: Iteration 1: done.
> /<<PKGBUILDDIR>>
> testMainFastV
> misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: -n Disable backups.
> misspell-fixer: -V Enable very-rare rules.
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: Iteration 0: done.
> misspell-fixer: Iteration 1: prefiltering.
> misspell-fixer: Iteration 1: nothing to replace.
> misspell-fixer: Iteration 1: done.
> /<<PKGBUILDDIR>>
> testMainNormalu
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: -n Disable backups.
> misspell-fixer: -u Enable unsafe rules.
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: Iteration 0: done.
> misspell-fixer: Iteration 1: prefiltering.
> misspell-fixer: Iteration 1: nothing to replace.
> misspell-fixer: Iteration 1: done.
> /<<PKGBUILDDIR>>
> testMainFastu
> misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: -n Disable backups.
> misspell-fixer: -u Enable unsafe rules.
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: Iteration 0: done.
> misspell-fixer: Iteration 1: prefiltering.
> misspell-fixer: Iteration 1: nothing to replace.
> misspell-fixer: Iteration 1: done.
> /<<PKGBUILDDIR>>
> testMainNormalg
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: -n Disable backups.
> misspell-fixer: -g Enable GB to US rules.
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: Iteration 0: done.
> misspell-fixer: Iteration 1: prefiltering.
> misspell-fixer: Iteration 1: nothing to replace.
> misspell-fixer: Iteration 1: done.
> /<<PKGBUILDDIR>>
> testMainFastg
> misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: -n Disable backups.
> misspell-fixer: -g Enable GB to US rules.
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: Iteration 0: done.
> misspell-fixer: Iteration 1: prefiltering.
> misspell-fixer: Iteration 1: nothing to replace.
> misspell-fixer: Iteration 1: done.
> /<<PKGBUILDDIR>>
> testMainNormalRVD
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: -n Disable backups.
> misspell-fixer: -R Enable rare rules.
> misspell-fixer: -V Enable very-rare rules.
> misspell-fixer: -D Enable rules from lintian.debian.org / spelling.
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: Iteration 0: done.
> misspell-fixer: Iteration 1: prefiltering.
> misspell-fixer: Iteration 1: nothing to replace.
> misspell-fixer: Iteration 1: done.
> /<<PKGBUILDDIR>>
> testMainFastRVD
> misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: -n Disable backups.
> misspell-fixer: -R Enable rare rules.
> misspell-fixer: -V Enable very-rare rules.
> misspell-fixer: -D Enable rules from lintian.debian.org / spelling.
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: Iteration 0: done.
> misspell-fixer: Iteration 1: prefiltering.
> misspell-fixer: Iteration 1: nothing to replace.
> misspell-fixer: Iteration 1: done.
> /<<PKGBUILDDIR>>
> testMainNormalRVugD
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: -n Disable backups.
> misspell-fixer: -R Enable rare rules.
> misspell-fixer: -V Enable very-rare rules.
> misspell-fixer: -u Enable unsafe rules.
> misspell-fixer: -g Enable GB to US rules.
> misspell-fixer: -D Enable rules from lintian.debian.org / spelling.
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: Iteration 0: done.
> misspell-fixer: Iteration 1: prefiltering.
> misspell-fixer: Iteration 1: nothing to replace.
> misspell-fixer: Iteration 1: done.
> /<<PKGBUILDDIR>>
> testMainFastRVugD
> misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> misspell-fixer: -r Enable real run. Overwrite original files!
> misspell-fixer: -n Disable backups.
> misspell-fixer: -R Enable rare rules.
> misspell-fixer: -V Enable very-rare rules.
> misspell-fixer: -u Enable unsafe rules.
> misspell-fixer: -g Enable GB to US rules.
> misspell-fixer: -D Enable rules from lintian.debian.org / spelling.
> misspell-fixer: Target directories: work
> misspell-fixer: Iteration 0: prefiltering.
> misspell-fixer: Iteration 0: processing.
> misspell-fixer: Iteration 0: done.
> misspell-fixer: Iteration 1: prefiltering.
> misspell-fixer: Iteration 1: nothing to replace.
> misspell-fixer: Iteration 1: done.
> /<<PKGBUILDDIR>>
> testDebug
> /<<PKGBUILDDIR>>
> 
> Ran 35 tests.
> 
> FAILED (failures=11)
> make[1]: *** [Makefile:34: test] Error 1
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> dh_auto_test: error: make -j8 test returned exit code 2


The full build log is available from:
http://qa-logs.debian.net/2022/12/20/misspell-fixer_0.4-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20221220;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20221220&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

[toc] | [next] | [standalone]


#333679

FromLajos Veres <vlajos@gmail.com>
Date2022-12-23 01:10 +0100
Message-ID<FFDNn-cypZ-9@gated-at.bofh.it>
In reply to#333449
Hi,

Thanks for checking this.
I suspect this report is the same as
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1026771

Could you please help me how I can test these issues in the
infrastructure?

Thank you.

Best regards,
Lajos

On Tue, 20 Dec 2022, Lucas Nussbaum wrote:

> Source: misspell-fixer
> Version: 0.4-1
> Severity: serious
> Justification: FTBFS
> Tags: bookworm sid ftbfs
> User: lucas@debian.org
> Usertags: ftbfs-20221220 ftbfs-bookworm
>
> Hi,
>
> During a rebuild of all packages in sid, your package failed to build
> on amd64.
>
>
> Relevant part (hopefully):
> > make[1]: Entering directory '/<<PKGBUILDDIR>>'
> > /bin/bash -c 'source test/tests.sh'
> > Git is not available so we do not test .gitignore related functionality.
> > testWhitelist
> > misspell-fixer: -W Save found misspelled file entries into  .misspell-fixer.ignore instead of fixing them.
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Saving found misspells into .misspell-fixer.ignore.
> > misspell-fixer: Iteration 0: done.
> > /<<PKGBUILDDIR>>
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: -n Disable backups.
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Skipping whitelisted entries based on .misspell-fixer.ignore.
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: Iteration 0: done.
> > misspell-fixer: Iteration 1: prefiltering.
> > misspell-fixer: Skipping whitelisted entries based on .misspell-fixer.ignore.
> > misspell-fixer: Iteration 1: nothing to replace.
> > misspell-fixer: Iteration 1: done.
> > /<<PKGBUILDDIR>>
> > /<<PKGBUILDDIR>>
> > testWhitelistWithFileNameOverride
> > misspell-fixer: -W Save found misspelled file entries into  .misspell-fixer.ignore instead of fixing them.
> > misspell-fixer: -w Use .misspell-fixer.ignore.override as white list file instead of  .misspell-fixer.ignore.
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Saving found misspells into .misspell-fixer.ignore.override.
> > misspell-fixer: Iteration 0: done.
> > /<<PKGBUILDDIR>>
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: -n Disable backups.
> > misspell-fixer: -w Use .misspell-fixer.ignore.override as white list file instead of  .misspell-fixer.ignore.
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Skipping whitelisted entries based on .misspell-fixer.ignore.override.
> > misspell-fixer: Iteration 0: nothing to replace.
> > misspell-fixer: Iteration 0: done.
> > ASSERT:
> > /<<PKGBUILDDIR>>
> > diff -ruwb /tmp/misspell-fixer-test/1434479/expected/1.txt /tmp/misspell-fixer-test/1434479/work/1.txt
> > --- /tmp/misspell-fixer-test/1434479/expected/1.txt	2022-12-20 09:55:05.905961848 +0000
> > +++ /tmp/misspell-fixer-test/1434479/work/1.txt	2022-12-20 09:55:05.901961812 +0000
> > @@ -1,3 +1,3 @@
> > -successful
> > -successfully
> > -lower than
> > \ No newline at end of file
> > +succesful
> > +succesfully
> > +lower then
> > \ No newline at end of file
> > ASSERT:Expected output differs.
> > /<<PKGBUILDDIR>>
> > testWhitelistConflictWithRealRun
> > /<<PKGBUILDDIR>>
> > diff -ruwb /tmp/misspell-fixer-test/1434479/expected/1.txt /tmp/misspell-fixer-test/1434479/work/1.txt
> > --- /tmp/misspell-fixer-test/1434479/expected/1.txt	2022-12-20 09:55:05.905961848 +0000
> > +++ /tmp/misspell-fixer-test/1434479/work/1.txt	2022-12-20 09:55:05.901961812 +0000
> > @@ -1,3 +1,3 @@
> > -successful
> > -successfully
> > -lower than
> > \ No newline at end of file
> > +succesful
> > +succesfully
> > +lower then
> > \ No newline at end of file
> > ASSERT:Expected output differs.
> > testWhitelistConflictWithDoubleWhitelist
> > /<<PKGBUILDDIR>>
> > diff -ruwb /tmp/misspell-fixer-test/1434479/expected/1.txt /tmp/misspell-fixer-test/1434479/work/1.txt
> > --- /tmp/misspell-fixer-test/1434479/expected/1.txt	2022-12-20 09:55:05.905961848 +0000
> > +++ /tmp/misspell-fixer-test/1434479/work/1.txt	2022-12-20 09:55:05.901961812 +0000
> > @@ -1,3 +1,3 @@
> > -successful
> > -successfully
> > -lower than
> > \ No newline at end of file
> > +succesful
> > +succesfully
> > +lower then
> > \ No newline at end of file
> > ASSERT:Expected output differs.
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: Target directories: .
> > misspell-fixer: We found both .github/.misspell-fixer.ignore and .misspell-fixer.ignore.  We can handle only one at the moment.
> > /<<PKGBUILDDIR>>
> > testShowDiff
> > /<<PKGBUILDDIR>>
> > diff -ruwb /tmp/misspell-fixer-test/1434479/expected/1.txt /tmp/misspell-fixer-test/1434479/work/1.txt
> > --- /tmp/misspell-fixer-test/1434479/expected/1.txt	2022-12-20 09:55:05.905961848 +0000
> > +++ /tmp/misspell-fixer-test/1434479/work/1.txt	2022-12-20 09:55:05.901961812 +0000
> > @@ -1,3 +1,3 @@
> > -successful
> > -successfully
> > -lower than
> > \ No newline at end of file
> > +succesful
> > +succesfully
> > +lower then
> > \ No newline at end of file
> > ASSERT:Expected output differs.
> > --- /tmp/misspell-fixer-test/1434479/output.diff.standard	2022-12-20 09:55:06.141963997 +0000
> > +++ test/expected.diff.output	2021-01-13 19:01:21.000000000 +0000
> > @@ -14,15 +14,4 @@
> >  +successfully
> >  +lower than
> >  \ No newline at end of file
> > ---- work/X.txt	X-X-X X:X:X.X +X
> > -+++ work/X.txt.X	X-X-X X:X:X.X +X
> > -@@ -X,X +X,X @@
> > --succesful
> > --succesfully
> > --lower then
> > -\ No newline at end of file
> > -+successful
> > -+successfully
> > -+lower than
> > -\ No newline at end of file
> >  misspell-fixer: Iteration X: done.
> > ASSERT:Expected output differs.
> > testErrors
> > # Misspell Fixer
> >
> > [![Build Status](https://travis-ci.org/vlajos/misspell-fixer.svg?branch=master)](https://travis-ci.org/vlajos/misspell-fixer)
> > [![Coverage Status](https://img.shields.io/coveralls/vlajos/misspell-fixer.svg)](https://coveralls.io/r/vlajos/misspell-fixer?branch=master)
> > [![Circle CI Build Status](https://circleci.com/gh/vlajos/misspell-fixer.svg?style=svg)](https://circleci.com/gh/vlajos/misspell-fixer)
> > [![Issue Count](https://codeclimate.com/github/vlajos/misspell-fixer/badges/issue_count.svg)](https://codeclimate.com/github/vlajos/misspell-fixer)
> > [![Average time to resolve an issue](https://isitmaintained.com/badge/resolution/vlajos/misspell-fixer.svg)](https://isitmaintained.com/project/vlajos/misspell-fixer "Average time to resolve an issue")
> > [![Percentage of issues still open](https://isitmaintained.com/badge/open/vlajos/misspell-fixer.svg)](https://isitmaintained.com/project/vlajos/misspell-fixer "Percentage of issues still open")
> >
> > Utility to fix common misspellings, typos in source code. There are lots of typical misspellings in program code.
> > Typically they are more eye-catching in the living code but they can easily hide in comments, examples, samples, notes and documentation.
> > With this utility you can fix a large number of them very quickly.
> >
> > Be aware that the utility does not check or fix file names. It could easily happen that a misspelled word is fixed in a file name in a program's code, but
> > the file itself will not be renamed by this utility.
> >
> > It is also important to be very careful when fixing public APIs!
> >
> > A manual review is always needed to verify that nothing has been broken.
> >
> > [Jump to docker notes](#with-docker)
> >
> > ### Synopsis
> >
> >     misspell-fixer	[OPTION] target[s]
> >
> > ### Options, Arguments
> >
> > `target[s]` can be any file[s] or directory/ies.
> >
> > Main options:
> >
> > * `-r` Real run mode: Overwrites the original files with the fixed one. Without this option the originals will be untouched.
> > * `-n` Disable backups. (By default the modified files' originals will be saved with the `.$$.BAK` suffix.)
> > * `-P n` Enable processing on `n` forks. For example: `-P 4` processes the files in 4 threads. (`-s` option is not supported)
> > * `-f` Fast mode. (Equivalent with `-P4`)
> > * `-h` Help.
> >
> > Performance note: `-s`, `-v` or the lack of `-n` or `-r` use a slower processing internal loop. So usually `-frn` without `-s` and `-v` are the highest performing
> > combination.
> >
> > Output control options:
> >
> > * `-s` Shows diffs of changes.
> > * `-v` Verbose mode: shows the iterated files. (Without the prefiltering step)
> > * `-o` Verbose mode: shows progress (prints a dot for each file scanned, a comma for each file fix iteration/file.)
> > * `-d` Debug mode: shows all steps of the core logic.
> >
> > By default only a subset of rules are enabled (around 100). You can enable more rules with the following options:
> >
> > * `-u` Enable less safe rules. (Manual review's importance is more significant...) (Around ten rules.)
> > * `-g` Enable rules to convert British English to US English. (These rules aren't exactly typos but sometimes they can be useful.) (Around ten rules.)
> > * `-R` Enable rare rules. (Few hundred rules.)
> > * `-V` Enable very rare rules. (Mostly from the wikipedia article.) (More than four thousand rules.)
> > * `-D` Enable rules based on lintian.debian.org  ( git:ebac9a7, ~2300 )
> >
> > The processing speed decreases as you activate more rules. But with newer greps this is much less significant.
> >
> > File filtering options:
> >
> > * `-G` Respect `.gitignore` files. (Requires executable `git` command.) (experimental)
> > * `-N` Enable file name filtering. For example: `-N '*.cpp' -N '*.h'`
> > * `-i` Walk through source code management system's internal directories. (do not ignore `.git`, `.svn`, `.hg`, `CVS`)
> > * `-b` Process binary, generated files. (do not ignore `*.gif`, `*.jpg`, `*.jpeg`, `*.png`, `*.zip`, `*.gz`, `*.bz2`, `*.xz`, `*.rar`, `*.po`, `*.pdf`, `*.woff`, `yarn.lock`, `package-lock.json`, `composer.lock`, `*.mo`, `*.mov`, `*.mp4`, `*.jar`)
> > * `-m` Disable file size checks. Default is to ignore files > 1MB. (usually csv, compressed JS, ..)
> >
> > Whitelisting files/entries:
> >
> > Misspell-fixer automatically ignores the issues matching to the patterns listed in `.misspell-fixer.ignore` or `.github/.misspell-fixer.ignore`.
> > The format of this file follows the prefiltering's temporary result format:
> >
> > `^filename:line number:matched word`
> >
> > * `-W` can be used to append the found issues instead of fixing them based on the other settings.
> > * `-w filename` can be used to override the ignore file's name.
> >
> > The ignore file is interpreted as a `grep` exclusion list.
> > It is applied after the prefiltering step as a set of grep expression.
> > So it is possible to exclude any prefixes or more specifically whole files with keeping only their file names:
> >
> > `^filename`
> >
> > Or a directory:
> >
> > `^directory`
> >
> > The entries are listed/matched with the paths based on the current invocation. Reaching the same target with different path from
> > the same working directory will not apply the whitelisted entries generated from the other invocation.
> > In directory `x` the whitelist entries generated with target `.` will not be applied for target `../x`, although they are the same.
> > There is a workaround for this with manually editing the whitelist to your needs.
> > (Patches are welcome for a more general solution...)
> >
> > ### Return values
> >
> > Generally the script tries to return with `0` if there were no typos or errors found/fixed.
> >
> > * `0` No typos found,
> > * `1-5` Typos found. The return value shows the number of iterations executed.
> > * `10` Help successfully printed.
> > * `11` Whitelist successfully saved.
> > * `100-` Parameter errors. (invalid, missing, conflicting)
> >
> >
> > ### Sample usage
> >
> > Without arguments, the script will not change anything and its output is minimal.
> > Its return value can be used to detect whether it found any typos or not.
> >
> >     $ misspell-fixer target
> >
> > Fixing the files with displaying each fixed file:
> >
> >     $ misspell-fixer -rv target
> >
> > Showing only the diffs without modifying the originals:
> >
> >     $ misspell-fixer -sv target
> >
> > Showing the diffs with progress and fixing the found typos:
> >
> >     $ misspell-fixer -rsv target
> >
> > Fast mode example, no backups: (highest performance)
> >
> >     $ misspell-fixer -frn target
> >
> > The previous with all rules enabled:
> >
> >     $ misspell-fixer -frunRVD target
> >
> > It is based on the following sources for common misspellings:
> >
> > * https://en.wikipedia.org/wiki/Commonly_misspelled_words
> > * https://github.com/neleai/stylepp
> > * https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines
> > * https://anonscm.debian.org/git/lintian/lintian.git/tree/data/spelling/corrections
> > * http://www.how-do-you-spell.com/
> > * http://www.wrongspelled.com/
> >
> > ### With Docker
> >
> > In some environments the dependencies may cause some trouble. (Mac, Windows, older linux versions.)
> > In this case, you can use misspell-fixer as a docker container image.
> >
> > Pull the latest version:
> >
> >     $ docker pull vlajos/misspell-fixer
> >
> > And fix `targetdir`'s content:
> >
> >     $ docker run -ti --rm -v targetdir:/work vlajos/misspell-fixer -frunRVD .
> >
> > #### Some other different use cases, examples:
> >
> > General execution directly with docker:
> >
> >     $ docker run -ti --rm -v targetdir:/work vlajos/misspell-fixer [arguments]
> >
> > `targetdir` becomes the current working directory in the container, so you can reference it as `.` in the arguments list.
> >
> > You can also use the `dockered-fixer` wrapper from the source repository:
> >
> >     $ dockered-fixer [arguments]
> >
> > In case your shell supports functions, you can define a function to make the command a little shorter:
> >
> >     $ function misspell-fixer { docker run -ti --rm -v $(pwd):/work vlajos/misspell-fixer "$@"; }
> >
> > And fixing with the function:
> >
> >     $ misspell-fixer [arguments]
> >
> > Through the wrapper and the function it can access only the folders below the current working directory
> > as it is the only one passed to the container as a volume.
> >
> > You can build the container locally, although this should not be really needed:
> >
> >     $ docker build . -t misspell-fixer
> >
> > ### With GitHub Actions
> >
> > There's a [GitHub Action](https://github.com/sobolevn/misspell-fixer-action) to run `misspell-fixer` as well.
> > It can even send PRs automatically with the fixes.
> >
> > ### Dependencies - "On the shoulders of giants"
> >
> > The script itself is just a misspelling database and some glue in `bash` between `grep` and `sed`.
> > `grep`'s `-F` combined with `sed`'s line targeting makes the script quite efficient.
> > `-F` enables parallel pattern matching with the [Aho–Corasick algorithm](https://en.wikipedia.org/wiki/Aho%E2%80%93Corasick_algorithm) .
> > Unfortunately only the newer (2.28+) versions of grep supports `-w` properly.
> >
> > A little more comprehensive list:
> >
> > * bash
> > * find
> > * sed
> > * grep
> > * diff
> > * sort
> > * tee
> > * cut
> > * rm, cp, mv
> > * xargs
> > * git (for respecting .gitignore files)
> >
> > ### Authors
> >
> > * Veres Lajos
> > * ka7
> >
> > ### Original source
> >
> > https://github.com/vlajos/misspell-fixer
> >
> > Feel free to use!
> > misspell-fixer: Invalid option: -p
> > misspell-fixer: Option -P requires an argument.
> > misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> > misspell-fixer: -s Enable showing of diffs.
> > misspell-fixer: Target directories: /dev/null
> > misspell-fixer: Real run (-r) has not been enabled. Files will not be changed. Use -r to override this.
> > misspell-fixer: Parallel mode cannot show diffs. Showing diffs is turned on. => Exiting.
> > testOnlyDir
> > misspell-fixer: Target directories:  work
> > misspell-fixer: Real run (-r) has not been enabled. Files will not be changed. Use -r to override this.
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: Iteration 0: done.
> > /<<PKGBUILDDIR>>
> > diff -ruwb /tmp/misspell-fixer-test/1434479/expected/1.txt /tmp/misspell-fixer-test/1434479/work/1.txt
> > --- /tmp/misspell-fixer-test/1434479/expected/1.txt	2022-12-20 09:55:05.905961848 +0000
> > +++ /tmp/misspell-fixer-test/1434479/work/1.txt	2022-12-20 09:55:05.901961812 +0000
> > @@ -1,3 +1,3 @@
> > -successful
> > -successfully
> > -lower than
> > \ No newline at end of file
> > +succesful
> > +succesfully
> > +lower then
> > \ No newline at end of file
> > ASSERT:Expected output differs.
> > shunit2:ERROR testOnlyDir() returned non-zero return code.
> > testSpaceInFileName
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: -n Disable backups.
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: Iteration 0: done.
> > misspell-fixer: Iteration 1: prefiltering.
> > misspell-fixer: Iteration 1: nothing to replace.
> > misspell-fixer: Iteration 1: done.
> > /<<PKGBUILDDIR>>
> > testMultipleFileNames
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: -n Disable backups.
> > misspell-fixer: Target directories: work/0.txt work/1.txt
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: Iteration 0: done.
> > misspell-fixer: Iteration 1: prefiltering.
> > misspell-fixer: Iteration 1: nothing to replace.
> > misspell-fixer: Iteration 1: done.
> > /<<PKGBUILDDIR>>
> > testParallel
> > misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: -n Disable backups.
> > misspell-fixer: -P Enable parallelism: 4
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: Iteration 0: done.
> > misspell-fixer: Iteration 1: prefiltering.
> > misspell-fixer: Iteration 1: nothing to replace.
> > misspell-fixer: Iteration 1: done.
> > /<<PKGBUILDDIR>>
> > testBackup
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: Iteration 0: done.
> > misspell-fixer: Iteration 1: prefiltering.
> > misspell-fixer: Iteration 1: nothing to replace.
> > misspell-fixer: Iteration 1: done.
> > /<<PKGBUILDDIR>>
> > testSCMdirsuntouched
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: -n Disable backups.
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: Iteration 0: done.
> > misspell-fixer: Iteration 1: prefiltering.
> > misspell-fixer: Iteration 1: nothing to replace.
> > misspell-fixer: Iteration 1: done.
> > /<<PKGBUILDDIR>>
> > testSCMdirstouched
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: -n Disable backups.
> > misspell-fixer: -i Disable scm dir ignoring.
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: Iteration 0: done.
> > misspell-fixer: Iteration 1: prefiltering.
> > misspell-fixer: Iteration 1: nothing to replace.
> > misspell-fixer: Iteration 1: done.
> > /<<PKGBUILDDIR>>
> > testNamefilter
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: -n Disable backups.
> > misspell-fixer: -i Disable scm dir ignoring.
> > misspell-fixer: -N Enable name filter: *.aaa
> > misspell-fixer: -N Enable name filter: *.yyy
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: Iteration 0: done.
> > misspell-fixer: Iteration 1: prefiltering.
> > misspell-fixer: Iteration 1: nothing to replace.
> > misspell-fixer: Iteration 1: done.
> > /<<PKGBUILDDIR>>
> > --- test/expecteds/0.txt	2021-01-13 19:01:21.000000000 +0000
> > +++ /tmp/misspell-fixer-test/1434479/work/0.zzz	2022-12-20 09:55:06.917971062 +0000
> > @@ -1,3 +1,3 @@
> > -successful
> > -successfully
> > -lower than
> > \ No newline at end of file
> > +succesful
> > +succesfully
> > +lower then
> > \ No newline at end of file
> > testKeepPermissionsNormal
> > misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> > misspell-fixer: -n Disable backups.
> > misspell-fixer: -u Enable unsafe rules.
> > misspell-fixer: -V Enable very-rare rules.
> > misspell-fixer: Target directories: work
> > misspell-fixer: Real run (-r) has not been enabled. Files will not be changed. Use -r to override this.
> > misspell-fixer: Iteration 0: prefiltering.
> > grep: work/0.txt: Permission denied
> > grep: work/V.txt: Permission denied
> > grep: work/R.txt: Permission denied
> > grep: work/0.txt: Permission denied
> > grep: work/V.txt: Permission denied
> > grep: work/R.txt: Permission denied
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: Iteration 0: done.
> > /<<PKGBUILDDIR>>
> > testKeepPermissionsFast
> > misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: -n Disable backups.
> > misspell-fixer: -u Enable unsafe rules.
> > misspell-fixer: -V Enable very-rare rules.
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > grep: work/0.txt: Permission denied
> > grep: work/V.txt: Permission denied
> > grep: work/R.txt: Permission denied
> > grep: work/0.txt: Permission denied
> > grep: work/V.txt: Permission denied
> > grep: work/R.txt: Permission denied
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: Iteration 0: done.
> > misspell-fixer: Iteration 1: prefiltering.
> > misspell-fixer: Iteration 1: nothing to replace.
> > misspell-fixer: Iteration 1: done.
> > /<<PKGBUILDDIR>>
> > testIgnoreBinary
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: -n Disable backups.
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: Iteration 0: done.
> > misspell-fixer: Iteration 1: prefiltering.
> > misspell-fixer: Iteration 1: nothing to replace.
> > misspell-fixer: Iteration 1: done.
> > /<<PKGBUILDDIR>>
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: -n Disable backups.
> > misspell-fixer: -i Disable binary ignoring.
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: Iteration 0: done.
> > misspell-fixer: Iteration 1: prefiltering.
> > misspell-fixer: Iteration 1: nothing to replace.
> > misspell-fixer: Iteration 1: done.
> > /<<PKGBUILDDIR>>
> > testVerbose
> > /<<PKGBUILDDIR>>
> > testDots
> > /<<PKGBUILDDIR>>
> > testMNoChange
> > misspell-fixer: -m Disable max-size check.  Default is to ignore files > 1MB.
> > misspell-fixer: -v Enable verbose mode.
> > misspell-fixer: -R Enable rare rules.
> > misspell-fixer: -V Enable very-rare rules.
> > misspell-fixer: Target directories: work
> > misspell-fixer: Real run (-r) has not been enabled. Files will not be changed. Use -r to override this.
> > misspell-fixer: Your grep version is 3.8 which is at least the optimal: 2.28.
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Results of prefiltering: (filename:line:pattern)
> > work/0.txt:1:succesful
> > work/0.txt:2:succesful
> > work/0.txt:3:lower then
> > work/R.txt:1:truely
> > work/V.txt:1:retore
> > work/V.txt:2:initilized
> > work/V.txt:3:a'ready
> > work/nochange.txt:1:carefull
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: actual file: work/0.txt
> > misspell-fixer: temp file: work/0.txt.1436161
> > misspell-fixer: actual file: work/R.txt
> > misspell-fixer: temp file: work/R.txt.1436162
> > misspell-fixer: actual file: work/V.txt
> > misspell-fixer: temp file: work/V.txt.1436163
> > misspell-fixer: actual file: work/nochange.txt
> > misspell-fixer: temp file: work/nochange.txt.1436164
> > misspell-fixer: nothing changed
> > misspell-fixer: Iteration 0: done.
> > /<<PKGBUILDDIR>>
> > testMainNormal
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: -n Disable backups.
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: Iteration 0: done.
> > misspell-fixer: Iteration 1: prefiltering.
> > misspell-fixer: Iteration 1: nothing to replace.
> > misspell-fixer: Iteration 1: done.
> > /<<PKGBUILDDIR>>
> > testMainFast
> > misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: -n Disable backups.
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: Iteration 0: done.
> > misspell-fixer: Iteration 1: prefiltering.
> > misspell-fixer: Iteration 1: nothing to replace.
> > misspell-fixer: Iteration 1: done.
> > /<<PKGBUILDDIR>>
> > testMainNormalR
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: -n Disable backups.
> > misspell-fixer: -R Enable rare rules.
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Iteration 0: nothing to replace.
> > misspell-fixer: Iteration 0: done.
> > ASSERT:
> > /<<PKGBUILDDIR>>
> > diff -ruwb /tmp/misspell-fixer-test/1434479/expected/0.txt /tmp/misspell-fixer-test/1434479/work/0.txt
> > --- /tmp/misspell-fixer-test/1434479/expected/0.txt	2021-01-13 19:01:21.000000000 +0000
> > +++ /tmp/misspell-fixer-test/1434479/work/0.txt	2021-01-13 19:01:21.000000000 +0000
> > @@ -1,3 +1,3 @@
> > -successful
> > -successfully
> > -lower than
> > \ No newline at end of file
> > +succesful
> > +succesfully
> > +lower then
> > \ No newline at end of file
> > diff -ruwb /tmp/misspell-fixer-test/1434479/expected/R.txt /tmp/misspell-fixer-test/1434479/work/R.txt
> > --- /tmp/misspell-fixer-test/1434479/expected/R.txt	2021-01-13 19:01:21.000000000 +0000
> > +++ /tmp/misspell-fixer-test/1434479/work/R.txt	2021-01-13 19:01:21.000000000 +0000
> > @@ -1 +1 @@
> > -truly
> > +truely
> > ASSERT:Expected output differs.
> > shunit2:ERROR testMainNormalR() returned non-zero return code.
> > testMainFastR
> > misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: -n Disable backups.
> > misspell-fixer: -R Enable rare rules.
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: Iteration 0: done.
> > misspell-fixer: Iteration 1: prefiltering.
> > misspell-fixer: Iteration 1: nothing to replace.
> > misspell-fixer: Iteration 1: done.
> > /<<PKGBUILDDIR>>
> > testMainNormalV
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: -n Disable backups.
> > misspell-fixer: -V Enable very-rare rules.
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: Iteration 0: done.
> > misspell-fixer: Iteration 1: prefiltering.
> > misspell-fixer: Iteration 1: nothing to replace.
> > misspell-fixer: Iteration 1: done.
> > /<<PKGBUILDDIR>>
> > testMainFastV
> > misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: -n Disable backups.
> > misspell-fixer: -V Enable very-rare rules.
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: Iteration 0: done.
> > misspell-fixer: Iteration 1: prefiltering.
> > misspell-fixer: Iteration 1: nothing to replace.
> > misspell-fixer: Iteration 1: done.
> > /<<PKGBUILDDIR>>
> > testMainNormalu
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: -n Disable backups.
> > misspell-fixer: -u Enable unsafe rules.
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: Iteration 0: done.
> > misspell-fixer: Iteration 1: prefiltering.
> > misspell-fixer: Iteration 1: nothing to replace.
> > misspell-fixer: Iteration 1: done.
> > /<<PKGBUILDDIR>>
> > testMainFastu
> > misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: -n Disable backups.
> > misspell-fixer: -u Enable unsafe rules.
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: Iteration 0: done.
> > misspell-fixer: Iteration 1: prefiltering.
> > misspell-fixer: Iteration 1: nothing to replace.
> > misspell-fixer: Iteration 1: done.
> > /<<PKGBUILDDIR>>
> > testMainNormalg
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: -n Disable backups.
> > misspell-fixer: -g Enable GB to US rules.
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: Iteration 0: done.
> > misspell-fixer: Iteration 1: prefiltering.
> > misspell-fixer: Iteration 1: nothing to replace.
> > misspell-fixer: Iteration 1: done.
> > /<<PKGBUILDDIR>>
> > testMainFastg
> > misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: -n Disable backups.
> > misspell-fixer: -g Enable GB to US rules.
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: Iteration 0: done.
> > misspell-fixer: Iteration 1: prefiltering.
> > misspell-fixer: Iteration 1: nothing to replace.
> > misspell-fixer: Iteration 1: done.
> > /<<PKGBUILDDIR>>
> > testMainNormalRVD
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: -n Disable backups.
> > misspell-fixer: -R Enable rare rules.
> > misspell-fixer: -V Enable very-rare rules.
> > misspell-fixer: -D Enable rules from lintian.debian.org / spelling.
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: Iteration 0: done.
> > misspell-fixer: Iteration 1: prefiltering.
> > misspell-fixer: Iteration 1: nothing to replace.
> > misspell-fixer: Iteration 1: done.
> > /<<PKGBUILDDIR>>
> > testMainFastRVD
> > misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: -n Disable backups.
> > misspell-fixer: -R Enable rare rules.
> > misspell-fixer: -V Enable very-rare rules.
> > misspell-fixer: -D Enable rules from lintian.debian.org / spelling.
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: Iteration 0: done.
> > misspell-fixer: Iteration 1: prefiltering.
> > misspell-fixer: Iteration 1: nothing to replace.
> > misspell-fixer: Iteration 1: done.
> > /<<PKGBUILDDIR>>
> > testMainNormalRVugD
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: -n Disable backups.
> > misspell-fixer: -R Enable rare rules.
> > misspell-fixer: -V Enable very-rare rules.
> > misspell-fixer: -u Enable unsafe rules.
> > misspell-fixer: -g Enable GB to US rules.
> > misspell-fixer: -D Enable rules from lintian.debian.org / spelling.
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: Iteration 0: done.
> > misspell-fixer: Iteration 1: prefiltering.
> > misspell-fixer: Iteration 1: nothing to replace.
> > misspell-fixer: Iteration 1: done.
> > /<<PKGBUILDDIR>>
> > testMainFastRVugD
> > misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> > misspell-fixer: -r Enable real run. Overwrite original files!
> > misspell-fixer: -n Disable backups.
> > misspell-fixer: -R Enable rare rules.
> > misspell-fixer: -V Enable very-rare rules.
> > misspell-fixer: -u Enable unsafe rules.
> > misspell-fixer: -g Enable GB to US rules.
> > misspell-fixer: -D Enable rules from lintian.debian.org / spelling.
> > misspell-fixer: Target directories: work
> > misspell-fixer: Iteration 0: prefiltering.
> > misspell-fixer: Iteration 0: processing.
> > misspell-fixer: Iteration 0: done.
> > misspell-fixer: Iteration 1: prefiltering.
> > misspell-fixer: Iteration 1: nothing to replace.
> > misspell-fixer: Iteration 1: done.
> > /<<PKGBUILDDIR>>
> > testDebug
> > /<<PKGBUILDDIR>>
> >
> > Ran 35 tests.
> >
> > FAILED (failures=11)
> > make[1]: *** [Makefile:34: test] Error 1
> > make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> > dh_auto_test: error: make -j8 test returned exit code 2
>
>
> The full build log is available from:
> http://qa-logs.debian.net/2022/12/20/misspell-fixer_0.4-1_unstable.log
>
> All bugs filed during this archive rebuild are listed at:
> https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20221220;users=lucas@debian.org
> or:
> https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20221220&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
>
> A list of current common problems and possible solutions is available at
> http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
>
> If you reassign this bug to another package, please mark it as 'affects'-ing
> this package. See https://www.debian.org/Bugs/server-control#affects
>
> If you fail to reproduce this, please provide a build log and diff it with mine
> so that we can identify if something relevant changed in the meantime.
>

-- 
Lajos Veres
vlajos@gmail.com
07927 460 778

[toc] | [prev] | [next] | [standalone]


#333691

FromLucas Nussbaum <lucas@debian.org>
Date2022-12-23 09:10 +0100
Message-ID<FFLhT-cE0d-5@gated-at.bofh.it>
In reply to#333679
Hi,

I use sbuild with a standard setup to build packages, so it should be
reasonably easy for you to set it up locally.
I run sbuild with:
su user42 -c 'sbuild -n -A -s --force-orig-source --apt-update -d unstable -v --no-run-lintian misspell-fixer_0.4-1'

Lucas


On 22/12/22 at 23:59 +0000, Lajos Veres wrote:
> Hi,
> 
> Thanks for checking this.
> I suspect this report is the same as
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1026771
> 
> Could you please help me how I can test these issues in the
> infrastructure?
> 
> Thank you.
> 
> Best regards,
> Lajos
> 
> On Tue, 20 Dec 2022, Lucas Nussbaum wrote:
> 
> > Source: misspell-fixer
> > Version: 0.4-1
> > Severity: serious
> > Justification: FTBFS
> > Tags: bookworm sid ftbfs
> > User: lucas@debian.org
> > Usertags: ftbfs-20221220 ftbfs-bookworm
> >
> > Hi,
> >
> > During a rebuild of all packages in sid, your package failed to build
> > on amd64.
> >
> >
> > Relevant part (hopefully):
> > > make[1]: Entering directory '/<<PKGBUILDDIR>>'
> > > /bin/bash -c 'source test/tests.sh'
> > > Git is not available so we do not test .gitignore related functionality.
> > > testWhitelist
> > > misspell-fixer: -W Save found misspelled file entries into  .misspell-fixer.ignore instead of fixing them.
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Saving found misspells into .misspell-fixer.ignore.
> > > misspell-fixer: Iteration 0: done.
> > > /<<PKGBUILDDIR>>
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: -n Disable backups.
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Skipping whitelisted entries based on .misspell-fixer.ignore.
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: Iteration 0: done.
> > > misspell-fixer: Iteration 1: prefiltering.
> > > misspell-fixer: Skipping whitelisted entries based on .misspell-fixer.ignore.
> > > misspell-fixer: Iteration 1: nothing to replace.
> > > misspell-fixer: Iteration 1: done.
> > > /<<PKGBUILDDIR>>
> > > /<<PKGBUILDDIR>>
> > > testWhitelistWithFileNameOverride
> > > misspell-fixer: -W Save found misspelled file entries into  .misspell-fixer.ignore instead of fixing them.
> > > misspell-fixer: -w Use .misspell-fixer.ignore.override as white list file instead of  .misspell-fixer.ignore.
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Saving found misspells into .misspell-fixer.ignore.override.
> > > misspell-fixer: Iteration 0: done.
> > > /<<PKGBUILDDIR>>
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: -n Disable backups.
> > > misspell-fixer: -w Use .misspell-fixer.ignore.override as white list file instead of  .misspell-fixer.ignore.
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Skipping whitelisted entries based on .misspell-fixer.ignore.override.
> > > misspell-fixer: Iteration 0: nothing to replace.
> > > misspell-fixer: Iteration 0: done.
> > > ASSERT:
> > > /<<PKGBUILDDIR>>
> > > diff -ruwb /tmp/misspell-fixer-test/1434479/expected/1.txt /tmp/misspell-fixer-test/1434479/work/1.txt
> > > --- /tmp/misspell-fixer-test/1434479/expected/1.txt	2022-12-20 09:55:05.905961848 +0000
> > > +++ /tmp/misspell-fixer-test/1434479/work/1.txt	2022-12-20 09:55:05.901961812 +0000
> > > @@ -1,3 +1,3 @@
> > > -successful
> > > -successfully
> > > -lower than
> > > \ No newline at end of file
> > > +succesful
> > > +succesfully
> > > +lower then
> > > \ No newline at end of file
> > > ASSERT:Expected output differs.
> > > /<<PKGBUILDDIR>>
> > > testWhitelistConflictWithRealRun
> > > /<<PKGBUILDDIR>>
> > > diff -ruwb /tmp/misspell-fixer-test/1434479/expected/1.txt /tmp/misspell-fixer-test/1434479/work/1.txt
> > > --- /tmp/misspell-fixer-test/1434479/expected/1.txt	2022-12-20 09:55:05.905961848 +0000
> > > +++ /tmp/misspell-fixer-test/1434479/work/1.txt	2022-12-20 09:55:05.901961812 +0000
> > > @@ -1,3 +1,3 @@
> > > -successful
> > > -successfully
> > > -lower than
> > > \ No newline at end of file
> > > +succesful
> > > +succesfully
> > > +lower then
> > > \ No newline at end of file
> > > ASSERT:Expected output differs.
> > > testWhitelistConflictWithDoubleWhitelist
> > > /<<PKGBUILDDIR>>
> > > diff -ruwb /tmp/misspell-fixer-test/1434479/expected/1.txt /tmp/misspell-fixer-test/1434479/work/1.txt
> > > --- /tmp/misspell-fixer-test/1434479/expected/1.txt	2022-12-20 09:55:05.905961848 +0000
> > > +++ /tmp/misspell-fixer-test/1434479/work/1.txt	2022-12-20 09:55:05.901961812 +0000
> > > @@ -1,3 +1,3 @@
> > > -successful
> > > -successfully
> > > -lower than
> > > \ No newline at end of file
> > > +succesful
> > > +succesfully
> > > +lower then
> > > \ No newline at end of file
> > > ASSERT:Expected output differs.
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: Target directories: .
> > > misspell-fixer: We found both .github/.misspell-fixer.ignore and .misspell-fixer.ignore.  We can handle only one at the moment.
> > > /<<PKGBUILDDIR>>
> > > testShowDiff
> > > /<<PKGBUILDDIR>>
> > > diff -ruwb /tmp/misspell-fixer-test/1434479/expected/1.txt /tmp/misspell-fixer-test/1434479/work/1.txt
> > > --- /tmp/misspell-fixer-test/1434479/expected/1.txt	2022-12-20 09:55:05.905961848 +0000
> > > +++ /tmp/misspell-fixer-test/1434479/work/1.txt	2022-12-20 09:55:05.901961812 +0000
> > > @@ -1,3 +1,3 @@
> > > -successful
> > > -successfully
> > > -lower than
> > > \ No newline at end of file
> > > +succesful
> > > +succesfully
> > > +lower then
> > > \ No newline at end of file
> > > ASSERT:Expected output differs.
> > > --- /tmp/misspell-fixer-test/1434479/output.diff.standard	2022-12-20 09:55:06.141963997 +0000
> > > +++ test/expected.diff.output	2021-01-13 19:01:21.000000000 +0000
> > > @@ -14,15 +14,4 @@
> > >  +successfully
> > >  +lower than
> > >  \ No newline at end of file
> > > ---- work/X.txt	X-X-X X:X:X.X +X
> > > -+++ work/X.txt.X	X-X-X X:X:X.X +X
> > > -@@ -X,X +X,X @@
> > > --succesful
> > > --succesfully
> > > --lower then
> > > -\ No newline at end of file
> > > -+successful
> > > -+successfully
> > > -+lower than
> > > -\ No newline at end of file
> > >  misspell-fixer: Iteration X: done.
> > > ASSERT:Expected output differs.
> > > testErrors
> > > # Misspell Fixer
> > >
> > > [![Build Status](https://travis-ci.org/vlajos/misspell-fixer.svg?branch=master)](https://travis-ci.org/vlajos/misspell-fixer)
> > > [![Coverage Status](https://img.shields.io/coveralls/vlajos/misspell-fixer.svg)](https://coveralls.io/r/vlajos/misspell-fixer?branch=master)
> > > [![Circle CI Build Status](https://circleci.com/gh/vlajos/misspell-fixer.svg?style=svg)](https://circleci.com/gh/vlajos/misspell-fixer)
> > > [![Issue Count](https://codeclimate.com/github/vlajos/misspell-fixer/badges/issue_count.svg)](https://codeclimate.com/github/vlajos/misspell-fixer)
> > > [![Average time to resolve an issue](https://isitmaintained.com/badge/resolution/vlajos/misspell-fixer.svg)](https://isitmaintained.com/project/vlajos/misspell-fixer "Average time to resolve an issue")
> > > [![Percentage of issues still open](https://isitmaintained.com/badge/open/vlajos/misspell-fixer.svg)](https://isitmaintained.com/project/vlajos/misspell-fixer "Percentage of issues still open")
> > >
> > > Utility to fix common misspellings, typos in source code. There are lots of typical misspellings in program code.
> > > Typically they are more eye-catching in the living code but they can easily hide in comments, examples, samples, notes and documentation.
> > > With this utility you can fix a large number of them very quickly.
> > >
> > > Be aware that the utility does not check or fix file names. It could easily happen that a misspelled word is fixed in a file name in a program's code, but
> > > the file itself will not be renamed by this utility.
> > >
> > > It is also important to be very careful when fixing public APIs!
> > >
> > > A manual review is always needed to verify that nothing has been broken.
> > >
> > > [Jump to docker notes](#with-docker)
> > >
> > > ### Synopsis
> > >
> > >     misspell-fixer	[OPTION] target[s]
> > >
> > > ### Options, Arguments
> > >
> > > `target[s]` can be any file[s] or directory/ies.
> > >
> > > Main options:
> > >
> > > * `-r` Real run mode: Overwrites the original files with the fixed one. Without this option the originals will be untouched.
> > > * `-n` Disable backups. (By default the modified files' originals will be saved with the `.$$.BAK` suffix.)
> > > * `-P n` Enable processing on `n` forks. For example: `-P 4` processes the files in 4 threads. (`-s` option is not supported)
> > > * `-f` Fast mode. (Equivalent with `-P4`)
> > > * `-h` Help.
> > >
> > > Performance note: `-s`, `-v` or the lack of `-n` or `-r` use a slower processing internal loop. So usually `-frn` without `-s` and `-v` are the highest performing
> > > combination.
> > >
> > > Output control options:
> > >
> > > * `-s` Shows diffs of changes.
> > > * `-v` Verbose mode: shows the iterated files. (Without the prefiltering step)
> > > * `-o` Verbose mode: shows progress (prints a dot for each file scanned, a comma for each file fix iteration/file.)
> > > * `-d` Debug mode: shows all steps of the core logic.
> > >
> > > By default only a subset of rules are enabled (around 100). You can enable more rules with the following options:
> > >
> > > * `-u` Enable less safe rules. (Manual review's importance is more significant...) (Around ten rules.)
> > > * `-g` Enable rules to convert British English to US English. (These rules aren't exactly typos but sometimes they can be useful.) (Around ten rules.)
> > > * `-R` Enable rare rules. (Few hundred rules.)
> > > * `-V` Enable very rare rules. (Mostly from the wikipedia article.) (More than four thousand rules.)
> > > * `-D` Enable rules based on lintian.debian.org  ( git:ebac9a7, ~2300 )
> > >
> > > The processing speed decreases as you activate more rules. But with newer greps this is much less significant.
> > >
> > > File filtering options:
> > >
> > > * `-G` Respect `.gitignore` files. (Requires executable `git` command.) (experimental)
> > > * `-N` Enable file name filtering. For example: `-N '*.cpp' -N '*.h'`
> > > * `-i` Walk through source code management system's internal directories. (do not ignore `.git`, `.svn`, `.hg`, `CVS`)
> > > * `-b` Process binary, generated files. (do not ignore `*.gif`, `*.jpg`, `*.jpeg`, `*.png`, `*.zip`, `*.gz`, `*.bz2`, `*.xz`, `*.rar`, `*.po`, `*.pdf`, `*.woff`, `yarn.lock`, `package-lock.json`, `composer.lock`, `*.mo`, `*.mov`, `*.mp4`, `*.jar`)
> > > * `-m` Disable file size checks. Default is to ignore files > 1MB. (usually csv, compressed JS, ..)
> > >
> > > Whitelisting files/entries:
> > >
> > > Misspell-fixer automatically ignores the issues matching to the patterns listed in `.misspell-fixer.ignore` or `.github/.misspell-fixer.ignore`.
> > > The format of this file follows the prefiltering's temporary result format:
> > >
> > > `^filename:line number:matched word`
> > >
> > > * `-W` can be used to append the found issues instead of fixing them based on the other settings.
> > > * `-w filename` can be used to override the ignore file's name.
> > >
> > > The ignore file is interpreted as a `grep` exclusion list.
> > > It is applied after the prefiltering step as a set of grep expression.
> > > So it is possible to exclude any prefixes or more specifically whole files with keeping only their file names:
> > >
> > > `^filename`
> > >
> > > Or a directory:
> > >
> > > `^directory`
> > >
> > > The entries are listed/matched with the paths based on the current invocation. Reaching the same target with different path from
> > > the same working directory will not apply the whitelisted entries generated from the other invocation.
> > > In directory `x` the whitelist entries generated with target `.` will not be applied for target `../x`, although they are the same.
> > > There is a workaround for this with manually editing the whitelist to your needs.
> > > (Patches are welcome for a more general solution...)
> > >
> > > ### Return values
> > >
> > > Generally the script tries to return with `0` if there were no typos or errors found/fixed.
> > >
> > > * `0` No typos found,
> > > * `1-5` Typos found. The return value shows the number of iterations executed.
> > > * `10` Help successfully printed.
> > > * `11` Whitelist successfully saved.
> > > * `100-` Parameter errors. (invalid, missing, conflicting)
> > >
> > >
> > > ### Sample usage
> > >
> > > Without arguments, the script will not change anything and its output is minimal.
> > > Its return value can be used to detect whether it found any typos or not.
> > >
> > >     $ misspell-fixer target
> > >
> > > Fixing the files with displaying each fixed file:
> > >
> > >     $ misspell-fixer -rv target
> > >
> > > Showing only the diffs without modifying the originals:
> > >
> > >     $ misspell-fixer -sv target
> > >
> > > Showing the diffs with progress and fixing the found typos:
> > >
> > >     $ misspell-fixer -rsv target
> > >
> > > Fast mode example, no backups: (highest performance)
> > >
> > >     $ misspell-fixer -frn target
> > >
> > > The previous with all rules enabled:
> > >
> > >     $ misspell-fixer -frunRVD target
> > >
> > > It is based on the following sources for common misspellings:
> > >
> > > * https://en.wikipedia.org/wiki/Commonly_misspelled_words
> > > * https://github.com/neleai/stylepp
> > > * https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines
> > > * https://anonscm.debian.org/git/lintian/lintian.git/tree/data/spelling/corrections
> > > * http://www.how-do-you-spell.com/
> > > * http://www.wrongspelled.com/
> > >
> > > ### With Docker
> > >
> > > In some environments the dependencies may cause some trouble. (Mac, Windows, older linux versions.)
> > > In this case, you can use misspell-fixer as a docker container image.
> > >
> > > Pull the latest version:
> > >
> > >     $ docker pull vlajos/misspell-fixer
> > >
> > > And fix `targetdir`'s content:
> > >
> > >     $ docker run -ti --rm -v targetdir:/work vlajos/misspell-fixer -frunRVD .
> > >
> > > #### Some other different use cases, examples:
> > >
> > > General execution directly with docker:
> > >
> > >     $ docker run -ti --rm -v targetdir:/work vlajos/misspell-fixer [arguments]
> > >
> > > `targetdir` becomes the current working directory in the container, so you can reference it as `.` in the arguments list.
> > >
> > > You can also use the `dockered-fixer` wrapper from the source repository:
> > >
> > >     $ dockered-fixer [arguments]
> > >
> > > In case your shell supports functions, you can define a function to make the command a little shorter:
> > >
> > >     $ function misspell-fixer { docker run -ti --rm -v $(pwd):/work vlajos/misspell-fixer "$@"; }
> > >
> > > And fixing with the function:
> > >
> > >     $ misspell-fixer [arguments]
> > >
> > > Through the wrapper and the function it can access only the folders below the current working directory
> > > as it is the only one passed to the container as a volume.
> > >
> > > You can build the container locally, although this should not be really needed:
> > >
> > >     $ docker build . -t misspell-fixer
> > >
> > > ### With GitHub Actions
> > >
> > > There's a [GitHub Action](https://github.com/sobolevn/misspell-fixer-action) to run `misspell-fixer` as well.
> > > It can even send PRs automatically with the fixes.
> > >
> > > ### Dependencies - "On the shoulders of giants"
> > >
> > > The script itself is just a misspelling database and some glue in `bash` between `grep` and `sed`.
> > > `grep`'s `-F` combined with `sed`'s line targeting makes the script quite efficient.
> > > `-F` enables parallel pattern matching with the [Aho–Corasick algorithm](https://en.wikipedia.org/wiki/Aho%E2%80%93Corasick_algorithm) .
> > > Unfortunately only the newer (2.28+) versions of grep supports `-w` properly.
> > >
> > > A little more comprehensive list:
> > >
> > > * bash
> > > * find
> > > * sed
> > > * grep
> > > * diff
> > > * sort
> > > * tee
> > > * cut
> > > * rm, cp, mv
> > > * xargs
> > > * git (for respecting .gitignore files)
> > >
> > > ### Authors
> > >
> > > * Veres Lajos
> > > * ka7
> > >
> > > ### Original source
> > >
> > > https://github.com/vlajos/misspell-fixer
> > >
> > > Feel free to use!
> > > misspell-fixer: Invalid option: -p
> > > misspell-fixer: Option -P requires an argument.
> > > misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> > > misspell-fixer: -s Enable showing of diffs.
> > > misspell-fixer: Target directories: /dev/null
> > > misspell-fixer: Real run (-r) has not been enabled. Files will not be changed. Use -r to override this.
> > > misspell-fixer: Parallel mode cannot show diffs. Showing diffs is turned on. => Exiting.
> > > testOnlyDir
> > > misspell-fixer: Target directories:  work
> > > misspell-fixer: Real run (-r) has not been enabled. Files will not be changed. Use -r to override this.
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: Iteration 0: done.
> > > /<<PKGBUILDDIR>>
> > > diff -ruwb /tmp/misspell-fixer-test/1434479/expected/1.txt /tmp/misspell-fixer-test/1434479/work/1.txt
> > > --- /tmp/misspell-fixer-test/1434479/expected/1.txt	2022-12-20 09:55:05.905961848 +0000
> > > +++ /tmp/misspell-fixer-test/1434479/work/1.txt	2022-12-20 09:55:05.901961812 +0000
> > > @@ -1,3 +1,3 @@
> > > -successful
> > > -successfully
> > > -lower than
> > > \ No newline at end of file
> > > +succesful
> > > +succesfully
> > > +lower then
> > > \ No newline at end of file
> > > ASSERT:Expected output differs.
> > > shunit2:ERROR testOnlyDir() returned non-zero return code.
> > > testSpaceInFileName
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: -n Disable backups.
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: Iteration 0: done.
> > > misspell-fixer: Iteration 1: prefiltering.
> > > misspell-fixer: Iteration 1: nothing to replace.
> > > misspell-fixer: Iteration 1: done.
> > > /<<PKGBUILDDIR>>
> > > testMultipleFileNames
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: -n Disable backups.
> > > misspell-fixer: Target directories: work/0.txt work/1.txt
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: Iteration 0: done.
> > > misspell-fixer: Iteration 1: prefiltering.
> > > misspell-fixer: Iteration 1: nothing to replace.
> > > misspell-fixer: Iteration 1: done.
> > > /<<PKGBUILDDIR>>
> > > testParallel
> > > misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: -n Disable backups.
> > > misspell-fixer: -P Enable parallelism: 4
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: Iteration 0: done.
> > > misspell-fixer: Iteration 1: prefiltering.
> > > misspell-fixer: Iteration 1: nothing to replace.
> > > misspell-fixer: Iteration 1: done.
> > > /<<PKGBUILDDIR>>
> > > testBackup
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: Iteration 0: done.
> > > misspell-fixer: Iteration 1: prefiltering.
> > > misspell-fixer: Iteration 1: nothing to replace.
> > > misspell-fixer: Iteration 1: done.
> > > /<<PKGBUILDDIR>>
> > > testSCMdirsuntouched
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: -n Disable backups.
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: Iteration 0: done.
> > > misspell-fixer: Iteration 1: prefiltering.
> > > misspell-fixer: Iteration 1: nothing to replace.
> > > misspell-fixer: Iteration 1: done.
> > > /<<PKGBUILDDIR>>
> > > testSCMdirstouched
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: -n Disable backups.
> > > misspell-fixer: -i Disable scm dir ignoring.
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: Iteration 0: done.
> > > misspell-fixer: Iteration 1: prefiltering.
> > > misspell-fixer: Iteration 1: nothing to replace.
> > > misspell-fixer: Iteration 1: done.
> > > /<<PKGBUILDDIR>>
> > > testNamefilter
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: -n Disable backups.
> > > misspell-fixer: -i Disable scm dir ignoring.
> > > misspell-fixer: -N Enable name filter: *.aaa
> > > misspell-fixer: -N Enable name filter: *.yyy
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: Iteration 0: done.
> > > misspell-fixer: Iteration 1: prefiltering.
> > > misspell-fixer: Iteration 1: nothing to replace.
> > > misspell-fixer: Iteration 1: done.
> > > /<<PKGBUILDDIR>>
> > > --- test/expecteds/0.txt	2021-01-13 19:01:21.000000000 +0000
> > > +++ /tmp/misspell-fixer-test/1434479/work/0.zzz	2022-12-20 09:55:06.917971062 +0000
> > > @@ -1,3 +1,3 @@
> > > -successful
> > > -successfully
> > > -lower than
> > > \ No newline at end of file
> > > +succesful
> > > +succesfully
> > > +lower then
> > > \ No newline at end of file
> > > testKeepPermissionsNormal
> > > misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> > > misspell-fixer: -n Disable backups.
> > > misspell-fixer: -u Enable unsafe rules.
> > > misspell-fixer: -V Enable very-rare rules.
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Real run (-r) has not been enabled. Files will not be changed. Use -r to override this.
> > > misspell-fixer: Iteration 0: prefiltering.
> > > grep: work/0.txt: Permission denied
> > > grep: work/V.txt: Permission denied
> > > grep: work/R.txt: Permission denied
> > > grep: work/0.txt: Permission denied
> > > grep: work/V.txt: Permission denied
> > > grep: work/R.txt: Permission denied
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: Iteration 0: done.
> > > /<<PKGBUILDDIR>>
> > > testKeepPermissionsFast
> > > misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: -n Disable backups.
> > > misspell-fixer: -u Enable unsafe rules.
> > > misspell-fixer: -V Enable very-rare rules.
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > grep: work/0.txt: Permission denied
> > > grep: work/V.txt: Permission denied
> > > grep: work/R.txt: Permission denied
> > > grep: work/0.txt: Permission denied
> > > grep: work/V.txt: Permission denied
> > > grep: work/R.txt: Permission denied
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: Iteration 0: done.
> > > misspell-fixer: Iteration 1: prefiltering.
> > > misspell-fixer: Iteration 1: nothing to replace.
> > > misspell-fixer: Iteration 1: done.
> > > /<<PKGBUILDDIR>>
> > > testIgnoreBinary
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: -n Disable backups.
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: Iteration 0: done.
> > > misspell-fixer: Iteration 1: prefiltering.
> > > misspell-fixer: Iteration 1: nothing to replace.
> > > misspell-fixer: Iteration 1: done.
> > > /<<PKGBUILDDIR>>
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: -n Disable backups.
> > > misspell-fixer: -i Disable binary ignoring.
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: Iteration 0: done.
> > > misspell-fixer: Iteration 1: prefiltering.
> > > misspell-fixer: Iteration 1: nothing to replace.
> > > misspell-fixer: Iteration 1: done.
> > > /<<PKGBUILDDIR>>
> > > testVerbose
> > > /<<PKGBUILDDIR>>
> > > testDots
> > > /<<PKGBUILDDIR>>
> > > testMNoChange
> > > misspell-fixer: -m Disable max-size check.  Default is to ignore files > 1MB.
> > > misspell-fixer: -v Enable verbose mode.
> > > misspell-fixer: -R Enable rare rules.
> > > misspell-fixer: -V Enable very-rare rules.
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Real run (-r) has not been enabled. Files will not be changed. Use -r to override this.
> > > misspell-fixer: Your grep version is 3.8 which is at least the optimal: 2.28.
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Results of prefiltering: (filename:line:pattern)
> > > work/0.txt:1:succesful
> > > work/0.txt:2:succesful
> > > work/0.txt:3:lower then
> > > work/R.txt:1:truely
> > > work/V.txt:1:retore
> > > work/V.txt:2:initilized
> > > work/V.txt:3:a'ready
> > > work/nochange.txt:1:carefull
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: actual file: work/0.txt
> > > misspell-fixer: temp file: work/0.txt.1436161
> > > misspell-fixer: actual file: work/R.txt
> > > misspell-fixer: temp file: work/R.txt.1436162
> > > misspell-fixer: actual file: work/V.txt
> > > misspell-fixer: temp file: work/V.txt.1436163
> > > misspell-fixer: actual file: work/nochange.txt
> > > misspell-fixer: temp file: work/nochange.txt.1436164
> > > misspell-fixer: nothing changed
> > > misspell-fixer: Iteration 0: done.
> > > /<<PKGBUILDDIR>>
> > > testMainNormal
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: -n Disable backups.
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: Iteration 0: done.
> > > misspell-fixer: Iteration 1: prefiltering.
> > > misspell-fixer: Iteration 1: nothing to replace.
> > > misspell-fixer: Iteration 1: done.
> > > /<<PKGBUILDDIR>>
> > > testMainFast
> > > misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: -n Disable backups.
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: Iteration 0: done.
> > > misspell-fixer: Iteration 1: prefiltering.
> > > misspell-fixer: Iteration 1: nothing to replace.
> > > misspell-fixer: Iteration 1: done.
> > > /<<PKGBUILDDIR>>
> > > testMainNormalR
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: -n Disable backups.
> > > misspell-fixer: -R Enable rare rules.
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Iteration 0: nothing to replace.
> > > misspell-fixer: Iteration 0: done.
> > > ASSERT:
> > > /<<PKGBUILDDIR>>
> > > diff -ruwb /tmp/misspell-fixer-test/1434479/expected/0.txt /tmp/misspell-fixer-test/1434479/work/0.txt
> > > --- /tmp/misspell-fixer-test/1434479/expected/0.txt	2021-01-13 19:01:21.000000000 +0000
> > > +++ /tmp/misspell-fixer-test/1434479/work/0.txt	2021-01-13 19:01:21.000000000 +0000
> > > @@ -1,3 +1,3 @@
> > > -successful
> > > -successfully
> > > -lower than
> > > \ No newline at end of file
> > > +succesful
> > > +succesfully
> > > +lower then
> > > \ No newline at end of file
> > > diff -ruwb /tmp/misspell-fixer-test/1434479/expected/R.txt /tmp/misspell-fixer-test/1434479/work/R.txt
> > > --- /tmp/misspell-fixer-test/1434479/expected/R.txt	2021-01-13 19:01:21.000000000 +0000
> > > +++ /tmp/misspell-fixer-test/1434479/work/R.txt	2021-01-13 19:01:21.000000000 +0000
> > > @@ -1 +1 @@
> > > -truly
> > > +truely
> > > ASSERT:Expected output differs.
> > > shunit2:ERROR testMainNormalR() returned non-zero return code.
> > > testMainFastR
> > > misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: -n Disable backups.
> > > misspell-fixer: -R Enable rare rules.
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: Iteration 0: done.
> > > misspell-fixer: Iteration 1: prefiltering.
> > > misspell-fixer: Iteration 1: nothing to replace.
> > > misspell-fixer: Iteration 1: done.
> > > /<<PKGBUILDDIR>>
> > > testMainNormalV
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: -n Disable backups.
> > > misspell-fixer: -V Enable very-rare rules.
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: Iteration 0: done.
> > > misspell-fixer: Iteration 1: prefiltering.
> > > misspell-fixer: Iteration 1: nothing to replace.
> > > misspell-fixer: Iteration 1: done.
> > > /<<PKGBUILDDIR>>
> > > testMainFastV
> > > misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: -n Disable backups.
> > > misspell-fixer: -V Enable very-rare rules.
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: Iteration 0: done.
> > > misspell-fixer: Iteration 1: prefiltering.
> > > misspell-fixer: Iteration 1: nothing to replace.
> > > misspell-fixer: Iteration 1: done.
> > > /<<PKGBUILDDIR>>
> > > testMainNormalu
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: -n Disable backups.
> > > misspell-fixer: -u Enable unsafe rules.
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: Iteration 0: done.
> > > misspell-fixer: Iteration 1: prefiltering.
> > > misspell-fixer: Iteration 1: nothing to replace.
> > > misspell-fixer: Iteration 1: done.
> > > /<<PKGBUILDDIR>>
> > > testMainFastu
> > > misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: -n Disable backups.
> > > misspell-fixer: -u Enable unsafe rules.
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: Iteration 0: done.
> > > misspell-fixer: Iteration 1: prefiltering.
> > > misspell-fixer: Iteration 1: nothing to replace.
> > > misspell-fixer: Iteration 1: done.
> > > /<<PKGBUILDDIR>>
> > > testMainNormalg
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: -n Disable backups.
> > > misspell-fixer: -g Enable GB to US rules.
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: Iteration 0: done.
> > > misspell-fixer: Iteration 1: prefiltering.
> > > misspell-fixer: Iteration 1: nothing to replace.
> > > misspell-fixer: Iteration 1: done.
> > > /<<PKGBUILDDIR>>
> > > testMainFastg
> > > misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: -n Disable backups.
> > > misspell-fixer: -g Enable GB to US rules.
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: Iteration 0: done.
> > > misspell-fixer: Iteration 1: prefiltering.
> > > misspell-fixer: Iteration 1: nothing to replace.
> > > misspell-fixer: Iteration 1: done.
> > > /<<PKGBUILDDIR>>
> > > testMainNormalRVD
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: -n Disable backups.
> > > misspell-fixer: -R Enable rare rules.
> > > misspell-fixer: -V Enable very-rare rules.
> > > misspell-fixer: -D Enable rules from lintian.debian.org / spelling.
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: Iteration 0: done.
> > > misspell-fixer: Iteration 1: prefiltering.
> > > misspell-fixer: Iteration 1: nothing to replace.
> > > misspell-fixer: Iteration 1: done.
> > > /<<PKGBUILDDIR>>
> > > testMainFastRVD
> > > misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: -n Disable backups.
> > > misspell-fixer: -R Enable rare rules.
> > > misspell-fixer: -V Enable very-rare rules.
> > > misspell-fixer: -D Enable rules from lintian.debian.org / spelling.
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: Iteration 0: done.
> > > misspell-fixer: Iteration 1: prefiltering.
> > > misspell-fixer: Iteration 1: nothing to replace.
> > > misspell-fixer: Iteration 1: done.
> > > /<<PKGBUILDDIR>>
> > > testMainNormalRVugD
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: -n Disable backups.
> > > misspell-fixer: -R Enable rare rules.
> > > misspell-fixer: -V Enable very-rare rules.
> > > misspell-fixer: -u Enable unsafe rules.
> > > misspell-fixer: -g Enable GB to US rules.
> > > misspell-fixer: -D Enable rules from lintian.debian.org / spelling.
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: Iteration 0: done.
> > > misspell-fixer: Iteration 1: prefiltering.
> > > misspell-fixer: Iteration 1: nothing to replace.
> > > misspell-fixer: Iteration 1: done.
> > > /<<PKGBUILDDIR>>
> > > testMainFastRVugD
> > > misspell-fixer: -f Enable fast mode. (Equivalent with -P4)
> > > misspell-fixer: -r Enable real run. Overwrite original files!
> > > misspell-fixer: -n Disable backups.
> > > misspell-fixer: -R Enable rare rules.
> > > misspell-fixer: -V Enable very-rare rules.
> > > misspell-fixer: -u Enable unsafe rules.
> > > misspell-fixer: -g Enable GB to US rules.
> > > misspell-fixer: -D Enable rules from lintian.debian.org / spelling.
> > > misspell-fixer: Target directories: work
> > > misspell-fixer: Iteration 0: prefiltering.
> > > misspell-fixer: Iteration 0: processing.
> > > misspell-fixer: Iteration 0: done.
> > > misspell-fixer: Iteration 1: prefiltering.
> > > misspell-fixer: Iteration 1: nothing to replace.
> > > misspell-fixer: Iteration 1: done.
> > > /<<PKGBUILDDIR>>
> > > testDebug
> > > /<<PKGBUILDDIR>>
> > >
> > > Ran 35 tests.
> > >
> > > FAILED (failures=11)
> > > make[1]: *** [Makefile:34: test] Error 1
> > > make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> > > dh_auto_test: error: make -j8 test returned exit code 2
> >
> >
> > The full build log is available from:
> > http://qa-logs.debian.net/2022/12/20/misspell-fixer_0.4-1_unstable.log
> >
> > All bugs filed during this archive rebuild are listed at:
> > https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20221220;users=lucas@debian.org
> > or:
> > https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20221220&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
> >
> > A list of current common problems and possible solutions is available at
> > http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
> >
> > If you reassign this bug to another package, please mark it as 'affects'-ing
> > this package. See https://www.debian.org/Bugs/server-control#affects
> >
> > If you fail to reproduce this, please provide a build log and diff it with mine
> > so that we can identify if something relevant changed in the meantime.
> >
> 
> -- 
> Lajos Veres
> vlajos@gmail.com
> 07927 460 778
> 

[toc] | [prev] | [next] | [standalone]


#334176

FromSantiago Vila <sanvila@debian.org>
Date2022-12-29 13:20 +0100
Message-ID<FI037-e690-1@gated-at.bofh.it>
In reply to#333449
El 29/12/22 a las 11:24, Lajos Veres escribió:
> Does this fail frequently for you?

Hi.

Building the package on Hetzner cloud machines of type cx21 and cx31
(having 2 CPUs) fails for me approximately 50% of the time in bookworm.

I also tried with machines with only one CPU, but then it does not seem to fail.

I think (but I'm unsure) that it may have something to do with parallel build,
i.e. some kind of race condition. If that's the case, maybe analyzing the code
for possible ways a race condition may happen could lead you to the root of
the problem.

Thanks.

[toc] | [prev] | [next] | [standalone]


#334351

FromSantiago Vila <sanvila@debian.org>
Date2022-12-31 00:30 +0100
Message-ID<FIwZ3-eqS3-1@gated-at.bofh.it>
In reply to#333449
> Could you please send me a few examples?

Hi.

I've just put my build logs here:

https://people.debian.org/~sanvila/build-logs/misspell-fixer/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.rc


csiph-web