|Summary:||app-portage/flaggie: unknown python backtrace|
|Product:||Gentoo Linux||Reporter:||Raymond Jennings <shentino>|
|Component:||Current packages||Assignee:||Michał Górny <mgorny>|
|Package list:||Runtime testing required:||---|
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 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 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 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