[
https://issues.apache.org/jira/browse/BIGTOP-688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13436912#comment-13436912
]
Roman Shaposhnik commented on BIGTOP-688:
-----------------------------------------
This is somewhat sizable patch, but what it does is actually pretty simple:
# makes the python virtual env relocatable
# moves the desktop.db out of /usr/lib/hue/desktop into /var/lib/hue
# makes everything under /usr/lib/hue owned by root and immutable
I do have one question for the python experts out there. The way that virtual
env becomes relocatable includes, among other things, changing all the shebang
lines inside of env/bin/<script> into:
{noformat}
#!/usr/bin/env python2.4
{noformat}
this, of course, makes it necessary to have the current location of the env
(/usr/lib/hue/build/env/bin) on the PATH (see changes to the init.d scripts). I
am wondering whether doing something like this:
{noformat}
- start_daemon -u $USER $DAEMON $DAEMON_OPTS
+ PATH=/usr/lib/hue/build/env/bin:$PATH start_daemon -u $USER $DAEMON
$DAEMON_OPTS
{noformat}
is truly the best way to make sure that the virtual env gets used. Ideas?
> improve hue packaging via making virtual env relocatable and moving DB files
> into /var/lib/hue
> ----------------------------------------------------------------------------------------------
>
> Key: BIGTOP-688
> URL: https://issues.apache.org/jira/browse/BIGTOP-688
> Project: Bigtop
> Issue Type: Improvement
> Components: General
> Affects Versions: 0.4.0
> Reporter: Roman Shaposhnik
> Assignee: Roman Shaposhnik
> Fix For: 0.5.0
>
> Attachments: BIGTOP-688.patch.txt
>
>
> Currently Hue packaging does unfortunate things with permissions and
> mutability of things under /usr/lib/hue. We should make sure our virtual env
> is relocatable and can be used in a R/O fashion and we should move mutable
> bits (desktop.db and app.reg) under /var/lib/hue.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira