pkgdev icon indicating copy to clipboard operation
pkgdev copied to clipboard

tatt: /root/.config/pkgdev/pkgdev.conf seems somewhat ignored when running pkgdev tatt as root

Open juippis opened this issue 1 year ago • 2 comments

I have:

[DEFAULT]
tatt.ignore-prefixes = elibc_,video_cards_,linguas_,python_targets_,python_single_target_,kdeenablefinal,test,debug,qemu_user_,qemu_softmmu_,libressl,static-libs,systemd,sdjournal,doc,ruby_targets

in /root/.config/pkgdev/pkgdev.conf, but the use flag debug is constantly enabled when running pkgdev tatt.

If I call pkgdev tatt --emerge-opts="--verbose" --ignore-prefixes debug from command like it never gets enabled.

juippis avatar Feb 07 '24 08:02 juippis

I suspect an issue in finding the config file. I think we can try to debug it in 2 ways:

  1. Add some option which is clearly invalid, for example tatt.arthur = invalid and run pkgdev tatt and see if it explodes.
  2. Let's try to find the place it looks for. In practice I use in priority place: $XDG_CONFIG_HOME/pkgdev and then "~/.config/pkgdev" - can you echo both in the same shell where you trigger pkgdev tatt which ignores it.

arthurzam avatar Feb 09 '24 19:02 arthurzam

When /root/.config/pkgdev/pkgdev.conf exists with the line you gave:

pkgdev tatt: failed loading config: unknown arguments: --arthur=invalid

But still, with the config line above: pkgdev tatt --emerge-opts="--autounmask=y --verbose" --use-combos 6 --extra-env-file test.conf -t -p =dev-libs/nspr-4.35-r2 -j tatt-nspr

# grep debug tatt-nspr.sh 
    TUSE="debug " tatt_test_pkg '=dev-libs/nspr-4.35-r2' || test_ret=1
    TUSE="debug ABI_X86: x32" tatt_test_pkg '=dev-libs/nspr-4.35-r2' || test_ret=1
    TUSE="debug ABI_X86: 32" tatt_test_pkg '=dev-libs/nspr-4.35-r2' || test_ret=1

Even with:

# cat /root/.config/pkgdev/pkgdev.conf
[DEFAULT]
tatt.ignore-prefixes = debug

it'll add +debug to be tested.

echo $XDG_CONFIG_HOME

gives no output (container)

juippis avatar Feb 18 '24 11:02 juippis