https://bugzilla.redhat.com/show_bug.cgi?id=1271792
Bug ID: 1271792 Summary: repo-font-audit invalid option errors Product: Fedora Version: 23 Component: fontpackages Assignee: nicolas.mailhot@laposte.net Reporter: kvolny@redhat.com QA Contact: extras-qa@fedoraproject.org CC: fonts-bugs@lists.fedoraproject.org, nicolas.mailhot@laposte.net, paul@frixxon.co.uk, tagoh@redhat.com
Description of problem: Following https://fedoraproject.org/wiki/Font_package_lifecycle#2.a the step with repo-font-audit doesn't work for me as the tool reports many "invalid option" errors for coreutils programs it obviously tries to use.
Version-Release number of selected component (if applicable): fontpackages-tools-1.44-14.fc23.noarch
How reproducible: always
Steps to Reproduce: 0. # dnf install fontpackages-tools createrepo rpm-build ... whatever needed 1. cd ~/rpmbuild/SRPMS 2. wget https://kvolny.fedorapeople.org/comic-neue-fonts-2.2-1.fc23.src.rpm 3. rpmbuild --rebuild comic-neue-fonts-2.2-1.fc23.src.rpm 4. cd ../RPMS/noarch 5. mkdir /tmp/testrepo 6. mv comic*rpm /tmp/testrepo 7. createrepo /tmp/testrepo 8. repo-font-audit testrepo file:///tmp/testrepo
Actual results: Looking for packages: — with font metadata… Error: 'Package' object has no attribute 'packagesize' — that include files with common font extensions… — that use the core X11 protocol…
Inspecting packages: – -. ◔mkdir: invalid option -- '.' Try 'mkdir --help' for more information. /bin/repo-font-audit: line 388: cd: -.: invalid option cd: usage: cd [-L|[-P [-e]] [-@]] [dir] curl: (3) [globbing] bad range specification in column 90 ◑rpm2cpio: *.rpm: No such file or directory ◕cat: invalid option -- '.' Try 'cat --help' for more information. cpio: premature end of archive cat: invalid option -- '.' Try 'cat --help' for more information. touch: invalid option -- '.' Try 'touch --help' for more information. cat: invalid option -- '.' Try 'cat --help' for more information. cpio: premature end of archive rm: invalid option -- '.' Try 'rm ./-..cpio' to remove the file '-..cpio'. Try 'rm --help' for more information. ● sed: invalid option -- '.' Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...
-n, --quiet, --silent suppress automatic printing of pattern space -e script, --expression=script add the script to the commands to be executed -f script-file, --file=script-file add the contents of script-file to the commands to be executed --follow-symlinks follow symlinks when processing in place -i[SUFFIX], --in-place[=SUFFIX] edit files in place (makes backup if SUFFIX supplied) -c, --copy use copy instead of rename when shuffling files in -i mode -b, --binary does nothing; for compatibility with WIN32/CYGWIN/MSDOS/EMX ( open files in binary mode (CR+LFs are not treated specially)) -l N, --line-length=N specify the desired line-wrap length for the `l' command --posix disable all GNU extensions. -r, --regexp-extended use extended regular expressions in the script. -s, --separate consider files as separate rather than as a single continuous long stream. -u, --unbuffered load minimal amounts of data from the input files and flush the output buffers more often -z, --null-data separate lines by NUL characters --help display this help and exit --version output version information and exit
If no -e, --expression, -f, or --file option is given, then the first non-option argument is taken as the sed script to interpret. All remaining arguments are names of input files; if no input files are specified, then the standard input is read.
GNU sed home page: http://www.gnu.org/software/sed/. General help using GNU software: http://www.gnu.org/gethelp/. sed: invalid option -- '.' Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...
-n, --quiet, --silent suppress automatic printing of pattern space -e script, --expression=script add the script to the commands to be executed -f script-file, --file=script-file add the contents of script-file to the commands to be executed --follow-symlinks follow symlinks when processing in place -i[SUFFIX], --in-place[=SUFFIX] edit files in place (makes backup if SUFFIX supplied) -c, --copy use copy instead of rename when shuffling files in -i mode -b, --binary does nothing; for compatibility with WIN32/CYGWIN/MSDOS/EMX ( open files in binary mode (CR+LFs are not treated specially)) -l N, --line-length=N specify the desired line-wrap length for the `l' command --posix disable all GNU extensions. -r, --regexp-extended use extended regular expressions in the script. -s, --separate consider files as separate rather than as a single continuous long stream. -u, --unbuffered load minimal amounts of data from the input files and flush the output buffers more often -z, --null-data separate lines by NUL characters --help display this help and exit --version output version information and exit
If no -e, --expression, -f, or --file option is given, then the first non-option argument is taken as the sed script to interpret. All remaining arguments are names of input files; if no input files are specified, then the standard input is read.
GNU sed home page: http://www.gnu.org/software/sed/. General help using GNU software: http://www.gnu.org/gethelp/.
– -. ◔mkdir: invalid option -- '.' Try 'mkdir --help' for more information. /bin/repo-font-audit: line 388: cd: -.: invalid option cd: usage: cd [-L|[-P [-e]] [-@]] [dir] curl: (3) [globbing] bad range specification in column 90 ◑rpm2cpio: *.rpm: No such file or directory ◕cat: invalid option -- '.' Try 'cat --help' for more information. cpio: premature end of archive cat: invalid option -- '.' Try 'cat --help' for more information. touch: invalid option -- '.' Try 'touch --help' for more information. cat: invalid option -- '.' Try 'cat --help' for more information. cpio: premature end of archive rm: invalid option -- '.' Try 'rm ./-..cpio' to remove the file '-..cpio'. Try 'rm --help' for more information. ● sed: invalid option -- '.' Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...
-n, --quiet, --silent suppress automatic printing of pattern space -e script, --expression=script add the script to the commands to be executed -f script-file, --file=script-file add the contents of script-file to the commands to be executed --follow-symlinks follow symlinks when processing in place -i[SUFFIX], --in-place[=SUFFIX] edit files in place (makes backup if SUFFIX supplied) -c, --copy use copy instead of rename when shuffling files in -i mode -b, --binary does nothing; for compatibility with WIN32/CYGWIN/MSDOS/EMX ( open files in binary mode (CR+LFs are not treated specially)) -l N, --line-length=N specify the desired line-wrap length for the `l' command --posix disable all GNU extensions. -r, --regexp-extended use extended regular expressions in the script. -s, --separate consider files as separate rather than as a single continuous long stream. -u, --unbuffered load minimal amounts of data from the input files and flush the output buffers more often -z, --null-data separate lines by NUL characters --help display this help and exit --version output version information and exit
If no -e, --expression, -f, or --file option is given, then the first non-option argument is taken as the sed script to interpret. All remaining arguments are names of input files; if no input files are specified, then the standard input is read.
GNU sed home page: http://www.gnu.org/software/sed/. General help using GNU software: http://www.gnu.org/gethelp/. sed: invalid option -- '.' Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...
-n, --quiet, --silent suppress automatic printing of pattern space -e script, --expression=script add the script to the commands to be executed -f script-file, --file=script-file add the contents of script-file to the commands to be executed --follow-symlinks follow symlinks when processing in place -i[SUFFIX], --in-place[=SUFFIX] edit files in place (makes backup if SUFFIX supplied) -c, --copy use copy instead of rename when shuffling files in -i mode -b, --binary does nothing; for compatibility with WIN32/CYGWIN/MSDOS/EMX ( open files in binary mode (CR+LFs are not treated specially)) -l N, --line-length=N specify the desired line-wrap length for the `l' command --posix disable all GNU extensions. -r, --regexp-extended use extended regular expressions in the script. -s, --separate consider files as separate rather than as a single continuous long stream. -u, --unbuffered load minimal amounts of data from the input files and flush the output buffers more often -z, --null-data separate lines by NUL characters --help display this help and exit --version output version information and exit
If no -e, --expression, -f, or --file option is given, then the first non-option argument is taken as the sed script to interpret. All remaining arguments are names of input files; if no input files are specified, then the standard input is read.
GNU sed home page: http://www.gnu.org/software/sed/. General help using GNU software: http://www.gnu.org/gethelp/.
Analysing files… ♻
Consolidating data…
Conducting tests:
— Error: fonts deployed outside /usr/share/fonts ⇒ None!
— Error: fonts in packages that do not declare font metadata ⇒ None!
— Error: packages that mix different font families ⇒ None!
— Error: exact font duplication ⇒ None!
— Error: font faces duplicated by different packages ⇒ None!
— Error: fonts fc-query can not parse ⇒ None!
— Error: fonts not identified as such by libmagic ⇒ None!
— Error: broken symlinks to font files ⇒ None!
— Error: rpmlint ⇒ None!
— Error: fonts in packages that contain non-font data ⇒ None!
— Error: fonts in arch packages ⇒ None!
— Warning: fonts in packages that do not respect font naming conventions ⇒ None!
— Warning: bad font naming ⇒ None!
— Warning: core fonts use ⇒ None!
— Warning: font linking ⇒ None!
— Warning: font faces duplicated within a package ⇒ None!
— Warning: fonts that do not pass fontlint sanity checks ⇒ None!
— Warning: fonts with localized metadata but no English variant ⇒ None!
— Suggestion: fonts with partial script coverage ⇒ None!
— Suggestion: fonts with partial unicode block coverage ⇒ None!
Audit results:
– packages that declare font metadata: ⇒ None!
☛ File size is computed as extracted, while rpm is a compressed format. ☛ Mid-term, files in legacy PCF or Type1 formats need to be converted or removed.
– font files in other packages (we should not find any!) ⇒ None!
– errors, warnings and suggestions:
⇒ None!
Packing mail data… Packing result data…
Audit complete!
Run time: 9 s. Number of items processed: ⇒ None!
1. Extracted data: /home/kvolny/rpmbuild/RPMS/noarch/repo-font-audit-testrepo-20151014T175728Z.tar.xz 2. Short summary: /home/kvolny/rpmbuild/RPMS/noarch/repo-font-audit-testrepo-20151014T175728Z-short.tar.xz 3. Mail data: /home/kvolny/rpmbuild/RPMS/noarch/repo-font-audit-testrepo-20151014T175728Z-mail.tar.xz
This report was generated by the repo-font-audit command from: http://fedoraproject.org/wiki/fontpackages
Please post questions, suggestions, patches or bug reports to: https://admin.fedoraproject.org/mailman/listinfo/fonts (subscription required) ♻
Expected results: (no such errors)
Additional info:
https://bugzilla.redhat.com/show_bug.cgi?id=1271792
--- Comment #1 from Fedora End Of Life jkurik@fedoraproject.org --- This message is a reminder that Fedora 23 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 23. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '23'.
Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 23 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
https://bugzilla.redhat.com/show_bug.cgi?id=1271792
Fedora End Of Life jkurik@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |EOL Last Closed| |2016-12-20 09:59:21
--- Comment #2 from Fedora End Of Life jkurik@fedoraproject.org --- Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug.
Thank you for reporting this bug and we are sorry it could not be fixed.
https://bugzilla.redhat.com/show_bug.cgi?id=1271792
Zdenek Dohnal zdohnal@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |NEW CC| |zdohnal@redhat.com Resolution|EOL |--- Keywords| |Reopened
--- Comment #3 from Zdenek Dohnal zdohnal@redhat.com --- Still present in Fedora 25, reopening it.
https://bugzilla.redhat.com/show_bug.cgi?id=1271792
--- Comment #4 from Zdenek Dohnal zdohnal@redhat.com --- This issue happens to me when I ran fedora-review for font package urw-base35-fonts.
Output: fedora-review -n urw-base35-fonts INFO: Processing local files: urw-base35-fonts INFO: Getting .spec and .srpm Urls from : Local files in /home/zdohnal/repo_upstream/urw-base35-fonts INFO: --> SRPM url: file:///home/zdohnal/repo_upstream/urw-base35-fonts/urw-base35-fonts-20160926-1.fc27.src.rpm INFO: --> Spec url: file:///home/zdohnal/repo_upstream/urw-base35-fonts/urw-base35-fonts.spec INFO: Using review directory: /home/zdohnal/repo_upstream/urw-base35-fonts/review-urw-base35-fonts INFO: Downloading (Source0): http://downloads.ghostscript.com/public/fonts/urw-base35-20160926.zip INFO: Running checks and generating report INFO: Results and/or logs in: /home/zdohnal/repo_upstream/urw-base35-fonts/review-urw-base35-fonts/results INFO: WARNING: Probably non-rawhide buildroot used. Rawhide should be used for most package reviews INFO: Build completed INFO: Installing built package(s) INFO: Active plugins: Generic, fonts, Shell-api INFO: Starting new HTTPS connection (1): admin.fedoraproject.org INFO: Starting new HTTPS connection (1): admin.fedoraproject.org INFO: ExclusiveArch dependency checking disabled, enable with EXARCH flag
========================== HERE COMES REPO-FONT-AUDIT ==========================
WARNING: Illegal return from /usr/share/fedora-review/scripts/fonts-repo-audit.sh, code 80, output: stdout:repo-font-audit analyze results in /home/zdohnal/repo_upstream/urw-base35-fonts/review-urw-base35-fonts/fonts directory. stderr:Error: 'Package' object has no attribute 'packagesize' mkdir: invalid option -- '.' Try 'mkdir --help' for more information. /bin/repo-font-audit: line 388: cd: -.: invalid option cd: usage: cd [-L|[-P [-e]] [-@]] [dir] curl: (3) [globbing] bad range specification in column 152 rpm2cpio: *.rpm: No such file or directory cat: invalid option -- '.' Try 'cat --help' for more information. cpio: premature end of archive cat: invalid option -- '.' Try 'cat --help' for more information. touch: invalid option -- '.' Try 'touch --help' for more information. cat: invalid option -- '.' Try 'cat --help' for more information. cpio: premature end of archive rm: invalid option -- '.' Try 'rm ./-..cpio' to remove the file '-..cpio'. Try 'rm --help' for more information. sed: invalid option -- '.' Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...
-n, --quiet, --silent suppress automatic printing of pattern space -e script, --expression=script add the script to the commands to be executed -f script-file, --file=script-file add the contents of script-file to the commands to be executed --follow-symlinks follow symlinks when processing in place -i[SUFFIX], --in-place[=SUFFIX] edit files in place (makes backup if SUFFIX supplied) -c, --copy use copy instead of rename when shuffling files in -i mode -b, --binary does nothing; for compatibility with WIN32/CYGWIN/MSDOS/EMX ( open files in binary mode (CR+LFs are not treated specially)) -l N, --line-length=N specify the desired line-wrap length for the `l' command --posix disable all GNU extensions. -r, --regexp-extended use extended regular expressions in the script. -s, --separate consider files as separate rather than as a single continuous long stream. -u, --unbuffered load minimal amounts of data from the input files and flush the output buffers more often -z, --null-data separate lines by NUL characters --help display this help and exit --version output version information and exit
If no -e, --expression, -f, or --file option is given, then the first non-option argument is taken as the sed script to interpret. All remaining arguments are names of input files; if no input files are specified, then the standard input is read.
GNU sed home page: http://www.gnu.org/software/sed/. General help using GNU software: http://www.gnu.org/gethelp/. sed: invalid option -- '.' Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...
-n, --quiet, --silent suppress automatic printing of pattern space -e script, --expression=script add the script to the commands to be executed -f script-file, --file=script-file add the contents of script-file to the commands to be executed --follow-symlinks follow symlinks when processing in place -i[SUFFIX], --in-place[=SUFFIX] edit files in place (makes backup if SUFFIX supplied) -c, --copy use copy instead of rename when shuffling files in -i mode -b, --binary does nothing; for compatibility with WIN32/CYGWIN/MSDOS/EMX ( open files in binary mode (CR+LFs are not treated specially)) -l N, --line-length=N specify the desired line-wrap length for the `l' command --posix disable all GNU extensions. -r, --regexp-extended use extended regular expressions in the script. -s, --separate consider files as separate rather than as a single continuous long stream. -u, --unbuffered load minimal amounts of data from the input files and flush the output buffers more often -z, --null-data separate lines by NUL characters --help display this help and exit --version output version information and exit
If no -e, --expression, -f, or --file option is given, then the first non-option argument is taken as the sed script to interpret. All remaining arguments are names of input files; if no input files are specified, then the standard input is read.
GNU sed home page: http://www.gnu.org/software/sed/. General help using GNU software: http://www.gnu.org/gethelp/. mkdir: invalid option -- '.' Try 'mkdir --help' for more information. /bin/repo-font-audit: line 388: cd: -.: invalid option cd: usage: cd [-L|[-P [-e]] [-@]] [dir] curl: (3) [globbing] bad range specification in column 152 rpm2cpio: *.rpm: No such file or directory cat: invalid option -- '.' Try 'cat --help' for more information. cpio: premature end of archive cat: invalid option -- '.' Try 'cat --help' for more information. touch: invalid option -- '.' Try 'touch --help' for more information. cat: invalid option -- '.' Try 'cat --help' for more information. cpio: premature end of archive rm: invalid option -- '.' Try 'rm ./-..cpio' to remove the file '-..cpio'. Try 'rm --help' for more information. sed: invalid option -- '.' Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...
-n, --quiet, --silent suppress automatic printing of pattern space -e script, --expression=script add the script to the commands to be executed -f script-file, --file=script-file add the contents of script-file to the commands to be executed --follow-symlinks follow symlinks when processing in place -i[SUFFIX], --in-place[=SUFFIX] edit files in place (makes backup if SUFFIX supplied) -c, --copy use copy instead of rename when shuffling files in -i mode -b, --binary does nothing; for compatibility with WIN32/CYGWIN/MSDOS/EMX ( open files in binary mode (CR+LFs are not treated specially)) -l N, --line-length=N specify the desired line-wrap length for the `l' command --posix disable all GNU extensions. -r, --regexp-extended use extended regular expressions in the script. -s, --separate consider files as separate rather than as a single continuous long stream. -u, --unbuffered load minimal amounts of data from the input files and flush the output buffers more often -z, --null-data separate lines by NUL characters --help display this help and exit --version output version information and exit
If no -e, --expression, -f, or --file option is given, then the first non-option argument is taken as the sed script to interpret. All remaining arguments are names of input files; if no input files are specified, then the standard input is read.
GNU sed home page: http://www.gnu.org/software/sed/. General help using GNU software: http://www.gnu.org/gethelp/. sed: invalid option -- '.' Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...
-n, --quiet, --silent suppress automatic printing of pattern space -e script, --expression=script add the script to the commands to be executed -f script-file, --file=script-file add the contents of script-file to the commands to be executed --follow-symlinks follow symlinks when processing in place -i[SUFFIX], --in-place[=SUFFIX] edit files in place (makes backup if SUFFIX supplied) -c, --copy use copy instead of rename when shuffling files in -i mode -b, --binary does nothing; for compatibility with WIN32/CYGWIN/MSDOS/EMX ( open files in binary mode (CR+LFs are not treated specially)) -l N, --line-length=N specify the desired line-wrap length for the `l' command --posix disable all GNU extensions. -r, --regexp-extended use extended regular expressions in the script. -s, --separate consider files as separate rather than as a single continuous long stream. -u, --unbuffered load minimal amounts of data from the input files and flush the output buffers more often -z, --null-data separate lines by NUL characters --help display this help and exit --version output version information and exit
If no -e, --expression, -f, or --file option is given, then the first non-option argument is taken as the sed script to interpret. All remaining arguments are names of input files; if no input files are specified, then the standard input is read.
GNU sed home page: http://www.gnu.org/software/sed/. General help using GNU software: http://www.gnu.org/gethelp/.
====================== END OF REPO-FONT-AUDIT ======================
Review template in: /home/zdohnal/repo_upstream/urw-base35-fonts/review-urw-base35-fonts/review.txt fedora-review is automated tool, but *YOU* are responsible for manually reviewing the results and finishing the review. Do not just copy-paste the results without understanding them.
https://bugzilla.redhat.com/show_bug.cgi?id=1271792
Robert-André Mauchin zebob.m@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zebob.m@gmail.com
--- Comment #5 from Robert-André Mauchin zebob.m@gmail.com --- I've got the same issue on Fedora 26, the repo-font-audit tool outputs the same "garbage".
https://bugzilla.redhat.com/show_bug.cgi?id=1271792
Jan Kurik jkurik@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|23 |27
https://bugzilla.redhat.com/show_bug.cgi?id=1271792
--- Comment #6 from Jan Kurik jkurik@redhat.com --- This bug is currently reported against a Fedora version which is already unsuported. I am changing the version to '27', the latest supported release.
Please check whether this bug is still an issue on the '27' release. If you find this bug not being applicable on this release, please close it.
https://bugzilla.redhat.com/show_bug.cgi?id=1271792
Karel Volný kvolny@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|27 |28
--- Comment #7 from Karel Volný kvolny@redhat.com --- with fontpackages-tools-1.44-21.fc28.noarch, it doesn't output that much garbage, but on the other hand, it doesn't seem to do anything useful ... not sure if I should close this bug about garbage and open a new one about emptiness :-)
$ repo-font-audit testrepo file:///tmp/testrepo Looking for packages: — with font metadata… — that include files with common font extensions… — that use the core X11 protocol… Přidán repozitář testrepo-rfa-20180801T135643Z z file:///tmp/testrepo Poslední kontrola metadat: před 0:00:01, St 1. srpna 2018, 15:56:43 CEST. Nothing to do!
fonts-bugs@lists.fedoraproject.org