Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834575 - app-backup/borgbackup-1.2.0 does not work with LANG="de_DE@euro"
Summary: app-backup/borgbackup-1.2.0 does not work with LANG="de_DE@euro"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-04 13:01 UTC by dawgg
Modified: 2022-06-19 14:33 UTC (History)
2 users (show)

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


Attachments
emerge --info (file_834575.txt,3.33 KB, text/plain)
2022-03-04 13:01 UTC, dawgg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dawgg 2022-03-04 13:01:16 UTC
on a couple of ~amd64-boxes with LANG="de_DE@euro" app-backup/borgbackup-1.2.0 does not work but causes this error:

borg
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.9/borg", line 33, in <module>
    sys.exit(load_entry_point('borgbackup==1.2.0', 'console_scripts', 'borg')())
  File "/usr/lib/python3.9/site-packages/borg/archiver.py", line 5077, in main
    args = archiver.get_args(sys.argv, os.environ.get('SSH_ORIGINAL_COMMAND'))
  File "/usr/lib/python3.9/site-packages/borg/archiver.py", line 4869, in get_args
    result = self.parse_args(argv[1:])
  File "/usr/lib/python3.9/site-packages/borg/archiver.py", line 4914, in parse_args
    parser = self.build_parser()
  File "/usr/lib/python3.9/site-packages/borg/archiver.py", line 4339, in build_parser
    """) + ItemFormatter.keys_help()
  File "/usr/lib/python3.9/site-packages/borg/helpers/parseformat.py", line 733, in keys_help
    keys = cls.available_keys()
  File "/usr/lib/python3.9/site-packages/borg/helpers/parseformat.py", line 727, in available_keys
    keys.extend(formatter.get_item_data(fake_item).keys())
  File "/usr/lib/python3.9/site-packages/borg/helpers/parseformat.py", line 797, in get_item_data
    source = item.get('source', '')
SystemError: <cyfunction PropDict._make_property.<locals>._get at 0x7f5b4a2dee10> returned NULL without setting an error

Setting it to LANG="de_DE.utf8" or even LANG="" does not cause this error. Previous version(s) not concerned by this error (downgrading "fixed" it).
Occurs with python3.8, python3.9, python3.10
Forum-post: https://forums.gentoo.org/viewtopic-p-8693760.html
Comment 1 dawgg 2022-03-04 13:01:59 UTC
Created attachment 766224 [details]
emerge --info
Comment 2 Piotr Karbowski (RETIRED) gentoo-dev 2022-03-04 22:09:49 UTC
Thanks, reported upstream, this is candidate to block any future stablereq on this verison.

Also, out of curiosity, what's your reason to run non-unicode locale? the de_DE@euro is ISO-8859-15.
Comment 3 dawgg 2022-03-05 12:32:17 UTC
turns out some really ancient/obscure setting set LC_ALL to de_DE@euro (in spite of my system(s) being configured according to the gentoo localization guide) until i manually and explicitly unset it.
out of couriosity i checked and now (with LC_ALL="") borg works with LANG="de_DE@euro" borg
(what) should i investigate further?
Comment 4 Larry the Git Cow gentoo-dev 2022-06-19 14:33:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8011dfe2d5fa238ee24ba2a2c323ce0952161150

commit 8011dfe2d5fa238ee24ba2a2c323ce0952161150
Author:     Piotr Karbowski <slashbeast@gentoo.org>
AuthorDate: 2022-06-19 14:26:18 +0000
Commit:     Piotr Karbowski <slashbeast@gentoo.org>
CommitDate: 2022-06-19 14:32:59 +0000

    app-backup/borgbackup: 1.2.1-r1: bump cython and msgpack deps.
    
    Closes: https://bugs.gentoo.org/850769
    Closes: https://bugs.gentoo.org/834575
    Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org>

 .../{borgbackup-1.2.1.ebuild => borgbackup-1.2.1-r1.ebuild}           | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)