Re: rbt diff tool not found

2024-12-26 Thread Ron T
Thank you for the explanation David :) Merry Christmas. On Wed, Dec 25, 2024, 20:57 David Trowbridge wrote: > When you pass env=, it's overriding the entire environment for the child > process. From the debug output, it's failing to find "diff" because there's > no PATH set at all. If you need t

Re: rbt diff tool not found

2024-12-25 Thread David Trowbridge
When you pass env=, it's overriding the entire environment for the child process. From the debug output, it's failing to find "diff" because there's no PATH set at all. If you need to override $HOME here, you could copy os.environ, set HOME in the copy, and then pass that in for the env parameter.

Re: rbt diff tool not found

2024-12-25 Thread Ron T
I found the culprit. at the end of the rbt post command was env={"HOME": "/mnt/data/www"}).communicate() removing that fixed the diff binary not being found. I'm not sure why though? The user apache has its home at /mnt/data/www for my test case so that's the reason env was set, but unsetting it r

Re: rbt diff tool not found

2024-12-25 Thread Ron T
Here it is, thanks. 2024-12-25 13:51:17 - DEBUG - PostReviewStdErr: >>> RBTools 5.1.1\n>>> Python 3.9.21 (main, Dec 5 2024, 00:00:00) \n[GCC 11.5.0 20240719 (Red Hat 11.5.0-2)]\n>>> Running on Linux-5.14.0-427.35.1.el9_4.cloud.1.0.x86_64-x86_64-with-glibc2.34\n>>> Home = /mnt/data/www\n>>> Comman

Re: rbt diff tool not found

2024-12-25 Thread David Trowbridge
Thanks for that. Can you also run your rbt command with --debug and send the output? David On Wed, Dec 25, 2024 at 2:54 PM Ron T wrote: > On rocky 9 there is only one version available it appears, at least as far > as the repos I've searched so far. > dnf search diffutils --showduplicates > N

Re: rbt diff tool not found

2024-12-25 Thread Ron T
On rocky 9 there is only one version available it appears, at least as far as the repos I've searched so far. dnf search diffutils --showduplicates Name Exactly Matched: diffutils = diffutils-3.7-12.el9.x86_64 : GNU collection of diff uti

Re: rbt diff tool not found

2024-12-25 Thread Ron T
Here is the output. Thanks. diff --version diff (GNU diffutils) 3.7 Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later < https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the ext

Re: rbt diff tool not found

2024-12-25 Thread David Trowbridge
What is the output if you run "diff --version"? David On Wed, Dec 25, 2024 at 1:53 PM Ron A wrote: > Testing on reviewboard 4.x and 7.x > rbt post command can't find the diff tool. > Thanks for the help in advance! > > os rocky 9.x > which diff > /bin/diff > > RBTools 5.1.1 > INFO -

rbt diff tool not found

2024-12-25 Thread Ron A
Testing on reviewboard 4.x and 7.x rbt post command can't find the diff tool. Thanks for the help in advance! os rocky 9.x which diff /bin/diff RBTools 5.1.1 INFO - Python script running under: apache INFO - PATH /usr/bin/:/usr/local/bin:/bin:/usr/bin A compatible command line diff