should samba-tool be in sbin?

Jelmer Vernooij jelmer at samba.org
Mon Nov 7 04:48:04 MST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/11/11 06:45, Andrew Bartlett wrote:
> On Wed, 2011-10-05 at 13:59 -0400, Sean Dague wrote:
>> On 10/05/2011 03:49 AM, Andrew Bartlett wrote:
>>> On Tue, 2011-10-04 at 08:27 -0400, Sean Dague wrote:
>>>> On 10/03/2011 08:44 PM, Andrew Bartlett wrote:
>>>>> On Mon, 2011-10-03 at 17:01 -0400, Sean Dague wrote:
>>>>>> After the changes to the wintest script to move the samba-tool path to
>>>>>> sbin (patch previously on list) I've been able to get the basic
Windows
>>>>>> 7 test to run, though I'm still fighting a bit with the win2k8
testing.
>>>>>
>>>>> This is a bit fishy. if it is expected to run from the install dir,
>>>>> then I guess it should run without a bin/ or sbin/. I think the bin/
>>>>> was for running from the build dir.
>>>>
>>>> What about just tweaking the path in the script, and then getting rid of
>>>> the prefixes entirely? Adding ${PREFIX}/bin:${PREFIX}/sbin to the path
>>>> would be easy enough. I can provide a patch in that direction if you'd
>>>> rather have that instead.
>>>
>>> Hmm, I would prefer to use as few environment variables as possible,
>>> including $PATH. If we are getting mixed up as to what directory we are
>>> in and so bin/ isn't the directory we just built then we should just
>>> prefix $PREFIX on the paths before we run them. This will make it
>>> easier to cut-and-paste the run commands when debugging.
>>
>> Well, the challenge is that we are running from the install dir (i.e.
>> /usr/local/samba), and some of the tools are in bin/ and some are in
sbin/.
>>
>> So, it seems like we need to either:
>>
>> 1) fix the reference to samba-tool that is now in sbin/
>> 2) change PATH so it can pick up the tools without the explicit path
callout
>> 3) don't run from install bin, run from build dir instead.
>>
>> I've got a patch out for #1. If you'd like a different approach (2 or 3,
>> or something else), I'd do it, just need to know what the acceptable
>> approach is for the in tree script.
>
> I'm sorry for the confusion on this. We currently cd to PREFIX before
> we run the commands, so 1) would seem to be the correct patch. However,
> I've looked into it more closely, and it seems we got here because
> samba-tool moved from C to python, an in the process became installed in
> PREFIX/sbin not PREFIX/bin as it once was.
>
> So, the real fix (I think) is to move it back to bin/, but I still need
> to figure out how to do that in waf.
I've submitted a patch to autobuild which changes it to bin/.

Cheers,

Jelmer

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJOt8V0AAoJEACAbyvXKaRXZ+0P/ihcWUHipAaqYJ2vCJ1t3zIz
04vxlU2w8ig1XXpfk+MfQ6zT8tHs4Bl4E9Dauy/c58g+uz/0lSk9UjAyZ17jMGkZ
XfVi23UADX3aPM6efSxloB5NAO2v8CqkQuFsKAQ0Em4oXN1AXdldmEzHo9LYlCxa
/Jbj+iM5Og8//9TJCyW3DHtGy01DvOAbvyEBg/3HPgI8r2TM44uOLcMMLq4tM3Pw
3MhDQPInJnrbIBCITp19nA+kgSTs8DZ23xBjU0dkcfJcXUyl2Gy3Xh7AC8RS/kv4
4WnkQHfElZz3uxxPOKETJzmdB05jXCPs3lL2bnyf7+QQep/0P5mzQa6yJRoCSy7B
2vtI893/CRQAn/GifyBPM8AxVXh4UWGNhcXcJJbR7HTOtfhYdyKddTU3gT7J9Itu
6gzXrTE4LkAZSDLRM1ZIOWyknxVNNF3tph/3g+uBvuAvuEUlqwTdTbIAPj9ptDpd
Y70e9G33g9j+TnJIyF1/F95z6UJb3LkClxCnHdHgll/dMZ+QinVOlTUWwr0DExR/
9MJtOQTbBG6bq6GntNNrHwO02Ro4nK98Fcwc+jlLiy2JZ4KzB7dAhD8tZW0y60oR
SNm8JU+hX7cJyfVstTbUesBlgAKmsKQpolCFycIQbhZugktKf9cDWyjqpypcrbLW
10sFVJPk6nDzCg6kDfnA
=VZk5
-----END PGP SIGNATURE-----



More information about the samba-technical mailing list