[ofa-general] ***SPAM*** Re: OpenSM script inconsistency ?

Hal Rosenstock hal.rosenstock at gmail.com
Tue Sep 30 14:18:14 PDT 2008


Sasha,

On Tue, Sep 30, 2008 at 5:02 PM, Sasha Khapyorsky <sashak at voltaire.com> wrote:
> Hi Hal,
>
> On 09:13 Tue 30 Sep     , Hal Rosenstock wrote:
>>
>> When using the defaults for an opensm configure,
>>
>> include/config.h:#define HAVE_DEFAULT_OPENSM_CONFIG_FILE "/usr/local/etc/opensm/
>> opensm.conf"
>
> Right, when prefix is '/usr/local'.

Isn't that the default prefix ?

>> but:
>> scripts/redhat-opensm.init.in:# config: @sysconfdir@/sysconfig/opensm.conf
>> scripts/redhat-opensm.init.in:CONFIG=@sysconfdir@/sysconfig/opensm.conf
>> scripts/sldd.sh.in:# config: @sysconfdir@/sysconfig/opensm.conf
>> scripts/sldd.sh.in:[ -f @sysconfdir@/sysconfig/opensm.conf ] && CONFIG=@sysconfd
>> ir@/sysconfig/opensm.conf
>
> yes, and:
>
> scripts/redhat-opensm.init:# config: ${prefix}/etc/sysconfig/opensm.conf
> scripts/redhat-opensm.init:prefix=/usr/local
> scripts/redhat-opensm.init:CONFIG=${prefix}/etc/sysconfig/opensm.conf
>
>> This doesn't look consistent to me.
>
> What is not consistent? It is all depends from ./configure's options
> --prefix, --sysconfdir, etc.

They are not consistent with defaults. Isn't opensm.conf in
.../etc/opensm/ by default (not .../etc/sysconfig/) ?

>> I know RedHat wants things in
>> certain places.
>
> Yes, they are running with "prefix=/usr", etc..

That's the prefix part and not the other pieces.

>> Shouldn't that be documented somewhere ? Also, what
>> about sldd ? Is that for RedHat or general ?
>
> I don't know much about who is using sldd.sh. Currently it is installed
> by RPM for any distro.

Looks to me to be consistent with RedHat script but not defaults.

-- Hal

> Sasha
>



More information about the general mailing list