Here is quick case > /etc/portage/package.use # flaggie --version > flaggie 0.2.1` and contets of a file > /etc/portage/package.use # cat llvm > sys-devel/clang LLVM_TARGETS: -NVPTX -AMDGPU > sys-devel/llvm LLVM_TARGETS: -NVPTX -AMDGPU I run sort > /etc/portage/package.use # flaggie --sort and -AMDGPU gets moved in front of LLVM_TARGETS: > /etc/portage/package.use # cat llvm > sys-devel/clang -AMDGPU LLVM_TARGETS: -NVPTX > sys-devel/llvm -AMDGPU LLVM_TARGETS: -NVPTX I have not looked at the code myself yet, maybe that's something I can fix myself and submit a patch. Maybe not.
I went to see the code and realized that there is an issue opened for that already https://github.com/mgorny/flaggie/issues/13 what should I do with this bug?
I track flaggie issues at GitHub. Long story short, the USE flag rework is WIP but I have so much on my plate that I don't even remember how far it's gotten. I'm sorry but please don't expect a complete fix anytime soon. I think the current git (-9999) has a partial support for USE_EXPAND groups in package.use. However, I think I've disabled all the cleanup actions there as they don't support it yet.