Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 598595 - app-portage/flaggie: unknown python backtrace
Summary: app-portage/flaggie: unknown python backtrace
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-30 21:30 UTC by Raymond Jennings
Modified: 2018-03-18 14:35 UTC (History)
1 user (show)

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


Attachments
python backtrace (oops,925 bytes, text/plain)
2016-10-30 21:32 UTC, Raymond Jennings
Details
emerge --info (einfo.txt,5.84 KB, text/plain)
2016-10-30 21:33 UTC, Raymond Jennings
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raymond Jennings 2016-10-30 21:30:29 UTC
While attempting to fix 594446 flaggie dumped python and I have no idea what's going on.
Comment 1 Raymond Jennings 2016-10-30 21:32:24 UTC
Created attachment 451941 [details]
python backtrace
Comment 2 Raymond Jennings 2016-10-30 21:33:03 UTC
Created attachment 451943 [details]
emerge --info
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-10-30 21:59:26 UTC
Lovely. Well, long story short, it's unhappy about some unicode characters in the files. Probably you need to use io.open() somewhere with encoding='utf8', or something like that. That's one of the many reasons why I stopped developing anything serious in Python.
Comment 4 Raymond Jennings 2016-10-30 22:03:09 UTC
I'd almost want to just huck the whole thing and write it in C++ or something.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-10-30 22:10:52 UTC
(In reply to Raymond Jennings from comment #4)
> I'd almost want to just huck the whole thing and write it in C++ or
> something.

So do I. Sadly, I don't have time for that.

Besides, it would be interesting to get libconfig to handle package.* files. Also, dumping make.conf is a good idea since pseudo-shell is a pain to process correctly.
Comment 6 Raymond Jennings 2016-10-31 01:25:24 UTC
What exactly is libconfig for?
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-10-31 07:53:44 UTC
(In reply to Raymond Jennings from comment #6)
> What exactly is libconfig for?

Manipulating configuration files. The wheel flaggie reinvents.
Comment 8 Raymond Jennings 2016-11-06 14:32:46 UTC
Flaggie's unicode reading was choking on international characters (non ascii) in /usr/portage/profiles/desc/*
Comment 9 George Shapovalov 2018-03-18 12:47:26 UTC
libconfig doesn't seem to be a very good match here, as package.*/* files have  a really trivial format compared to even the example on libconfig page. I am confused as to the possible advantage/use for a tool like flaggie? Parsing use-flags files is rather trivial, does not seem to warrant pulling in an extra dep..
Comment 10 Raymond Jennings 2018-03-18 14:35:12 UTC
flaggie can keep them tidy and sorted IIRC.  I've used it a few times.

It has a utility function akin to eclean-kernel