jailkit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Jailkit-dev] [bug #40681] Bug - jk_jailuser.in - PREFIX is static even


From: Declercq Laurent
Subject: [Jailkit-dev] [bug #40681] Bug - jk_jailuser.in - PREFIX is static even when using --prefix while configuration
Date: Fri, 22 Nov 2013 21:52:34 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.48 Safari/537.36

URL:
  <http://savannah.nongnu.org/bugs/?40681>

                 Summary: Bug - jk_jailuser.in - PREFIX is static even when
using --prefix while configuration
                 Project: Jailkit
            Submitted by: nuxwin
            Submitted on: ven. 22 nov. 2013 21:52:33 GMT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Hello

All is in the title. When using the prefix option such as:

<code>
./configure --prefix=/usr/local
</code>

I would expect that the jk_jailuser.in script PREFIX variable value is
/usr/local instead of /usr. Currently, this variable is never modified.

The following change do the job:

py/Makefile.in:
<code>
...
.in:
        sed -e "s!INIPREFIX='/etc/jailkit'!INIPREFIX='${INIPREFIX}'!" \
            -e "s!LIBDIR='[a-z/]*'!LIBDIR='${PYLIBDIR}'!" \
            -e "s!EXEPREFIX='[a-z/]*'!EXEPREFIX='${PREFIX}'!" \
            -e "s:#!/usr/bin/python:#!$(PYTHONINTERPRETER):" < $< > $@
...
</code>

should be

<code>
...
.in:
        sed -e "s!PREFIX='/usr'!PREFIX='${PREFIX}'!" \
            -e "s!INIPREFIX='/etc/jailkit'!INIPREFIX='${INIPREFIX}'!" \
            -e "s!LIBDIR='[a-z/]*'!LIBDIR='${PYLIBDIR}'!" \
            -e "s!EXEPREFIX='[a-z/]*'!EXEPREFIX='${PREFIX}'!" \
            -e "s:#!/usr/bin/python:#!$(PYTHONINTERPRETER):" < $< > $@
...
</code>

Thanks you.




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?40681>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]