Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 562108 - sys-apps/portage-2.2.22: repoman failed to set commit message
Summary: sys-apps/portage-2.2.22: repoman failed to set commit message
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-03 10:12 UTC by Pacho Ramos
Modified: 2022-07-12 03:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2015-10-03 10:12:44 UTC
Looks like it cannot handle some characters:
$ repoman commit -m "$(cat_pn): Set proper configure option for pdf (#520374 by Rafał Mużyło), automake-1.13 is needed (#547168 by Drunkard Zhang), remove orphaned files (#547344 by Nikoli), use libtdl (#560182 by David Flogeras), set proper configure option for qt (#426362 by Dave Bender), fix postscript support (#421735 by Rafał Mużyło)."

RepoMan scours the neighborhood...
>>> Creating Manifest for /home/pacho/gentoo/media-gfx/graphviz
  KEYWORDS.dropped              4
   media-gfx/graphviz/graphviz-2.36.0.ebuild: mips x86-fbsd
   media-gfx/graphviz/graphviz-2.36.0-r1.ebuild: mips x86-fbsd
   media-gfx/graphviz/graphviz-2.38.0.ebuild: mips x86-fbsd
   media-gfx/graphviz/graphviz-2.38.0-r1.ebuild: mips x86-fbsd
  dependency.missingslot        6
   media-gfx/graphviz/graphviz-2.28.0.ebuild: RDEPEND: 'dev-lang/ruby' matches more than one slot, please specify an explicit slot and/or use the := or :* slot operator
   media-gfx/graphviz/graphviz-2.34.0.ebuild: RDEPEND: 'dev-lang/ruby' matches more than one slot, please specify an explicit slot and/or use the := or :* slot operator
   media-gfx/graphviz/graphviz-2.36.0.ebuild: RDEPEND: 'dev-lang/ruby' matches more than one slot, please specify an explicit slot and/or use the := or :* slot operator
   media-gfx/graphviz/graphviz-2.36.0-r1.ebuild: RDEPEND: 'dev-lang/ruby' matches more than one slot, please specify an explicit slot and/or use the := or :* slot operator
   media-gfx/graphviz/graphviz-2.38.0.ebuild: RDEPEND: 'dev-lang/ruby' matches more than one slot, please specify an explicit slot and/or use the := or :* slot operator
   media-gfx/graphviz/graphviz-2.38.0-r1.ebuild: RDEPEND: 'dev-lang/ruby' matches more than one slot, please specify an explicit slot and/or use the := or :* slot operator
  inherit.deprecated            1
   media-gfx/graphviz/graphviz-2.26.3-r4.ebuild: please migrate from 'python' to 'python-r1 / python-single-r1 / python-any-r1' on line: 8
  repo.eapi.deprecated          1
   media-gfx/graphviz/graphviz-2.26.3-r4.ebuild: 3

Note: use --include-dev (-d) to check dependencies for 'dev' profiles

Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/repoman", line 37, in <module>
    repoman_main(sys.argv[1:])
  File "/usr/lib64/python2.7/site-packages/repoman/main.py", line 166, in repoman_main
    actions.perform(qa_output)
  File "/usr/lib64/python2.7/site-packages/repoman/actions.py", line 125, in perform
    commitmessage += commit_footer
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 72: ordinal not in range(128)
Comment 1 Brian Dolbec (RETIRED) gentoo-dev 2015-10-03 16:48:14 UTC
I am not able to reproduce this error.

What is your locale settings.
Comment 2 Pacho Ramos gentoo-dev 2015-10-04 08:03:42 UTC
This:
$ locale
LANG=es_ES.UTF-8
LC_CTYPE="es_ES.UTF-8"
LC_NUMERIC="es_ES.UTF-8"
LC_TIME="es_ES.UTF-8"
LC_COLLATE=C
LC_MONETARY="es_ES.UTF-8"
LC_MESSAGES="es_ES.UTF-8"
LC_PAPER="es_ES.UTF-8"
LC_NAME="es_ES.UTF-8"
LC_ADDRESS="es_ES.UTF-8"
LC_TELEPHONE="es_ES.UTF-8"
LC_MEASUREMENT="es_ES.UTF-8"
LC_IDENTIFICATION="es_ES.UTF-8"
LC_ALL=

And I have currently python-2 as main interpreter:
$ eselect python list
Available Python interpreters:
  [1]   python2.7 *
  [2]   python3.4
Comment 3 Brian Dolbec (RETIRED) gentoo-dev 2017-03-15 23:56:55 UTC
I still can not reproduce this in python-2.7 or 3.5.

Does this still cause a tracback?  There have been a lot of code changes for better consistency with unicode.

If not please close.
Comment 4 Zac Medico gentoo-dev 2017-03-16 05:38:07 UTC
It has to be python2.7, since sys.argv is bytes. In python3, sys.argv is unicode (and we can access the original bytes by encoding with the surrogateescape codec as we do in bin/install.py).
Comment 5 Brian Dolbec (RETIRED) gentoo-dev 2017-03-16 07:45:38 UTC
In both bugs he has opened for this same problem, both have been 2.7 in the traceback.

Yeah, since sys.argv is bytes for 2.7, it would not play nicely with other unicode strings.

But what surprises me most is that it only seems to bite pacho at times.  No one else has joined into either bug to say "me too".
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-12 03:18:18 UTC
repoman support has been removed per bug 835013.

Please file a new bug (or, I suppose, reopen this one) if you feel this check is still applicable to pkgcheck and doesn't already exist.