bugJailkit - Bugs: bug #40681, Bug - jk_jailuser.in - PREFIX is...

 
 

bug #40681: Bug - jk_jailuser.in - PREFIX is static even when using --prefix while configuration

Submitted by:  Declercq Laurent <nuxwin>
Submitted on:  Fri 22 Nov 2013 09:52:33 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 21 Dec 2013 09:11:11 PM UTC, comment #1:

thanks, committed!

Olivier Sessink <oli4>
Project Administrator
Fri 22 Nov 2013 09:52:33 PM UTC, original submission:

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.

Declercq Laurent <nuxwin>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by oli4 (Posted a comment)
  • -unavailable- added by nuxwin (Submitted the item)
  • -unavailable- added by nuxwin
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 04 Nov 2015 09:43:30 PM UTColi4Open/ClosedOpen=>Closed
    Sat 21 Dec 2013 09:11:11 PM UTColi4StatusNone=>Fixed
    Fri 22 Nov 2013 09:52:33 PM UTCnuxwinCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1