Bug #101
Installation procedure tune up
Status: | Closed | Start date: | 04/23/2009 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Javi Fontan | % Done: | 0% | |
Category: | Core & System | |||
Target version: | Release 1.2.1 | |||
Resolution: | fixed | Pull request: | ||
Affected Versions: |
Description
A few minor issues noted during installation, reinstallation, and uninstallation
of ONE-1.2.
1. When (un)installing as root, the install.sh script is
a bit to keen on cleaning up:
root@hostname# scons root@hostname# ./install.sh -u one_user -g one_users root@hostname# ./install.sh -r rmdir: failed to remove `/var/log/one': Directory not empty rmdir: failed to remove `/usr/include': Directory not empty rmdir: failed to remove `/usr/lib/one': Directory not empty rmdir: failed to remove `/usr/bin': Directory not empty
When installing as root (under "/"),
the content in MAKE_DIRS (defined in istall.sh) need to be split
up into directories that are created, and those that already exist.
2.
It seems like neither "scons -c" nor "install -r"
removes the file $ONE_LOCATION/share/scons/lex_bison.pyc
This becomes an issue if you (from the same directory)
i. install as root
ii. uninstall as root
iii. try to install as normal user.
3. If there are any problems with xmlrpc, "scons -c" does not
clean up the generated files xmlrpc_test.****.cc:
"scons -c"
scons: Reading SConscript files ... Testing recipe: pkg-config Error calling pkg-config xmlrpc_server_abyss++ --static --libs Testing recipe: xmlrpc-c-config g++ .xmlrpc_test/xmlrpc_test.d695b5.cc -o .xmlrpc_test/xmlrpc_test.d695b5.cc.out -L/usr/lib -lxmlrpc_server_abyss++ -lxmlrpc_server++ -lxmlrpc_server_abyss -lxmlrpc_server -lxmlrpc_abyss -lpthread -lxmlrpc++ -lxmlrpc -lxmlrpc_util -lxmlrpc_xmlparse -lxmlrpc_xmltok -I/usr/include 1>>.xmlrpc_test/xmlrpc_test.d695b5.cc.log 2>&1 [...]
$ find | grep xml ./.xmlrpc_test ./.xmlrpc_test/xmlrpc_test.77fadc.cc ./.xmlrpc_test/xmlrpc_test.77fadc.cc.log ./.xmlrpc_test/xmlrpc_test.d695b5.cc ./.xmlrpc_test/xmlrpc_test.9ee5ef.cc.log ./.xmlrpc_test/xmlrpc_test.e036d0.cc.log ./.xmlrpc_test/xmlrpc_test.9ee5ef.cc ./.xmlrpc_test/xmlrpc_test.d695b5.cc.log ./.xmlrpc_test/xmlrpc_test.e036d0.cc ./share/scons/xmlrpc_config.py ./share/scons/get_xmlrpc_config ./src/scheduler/.xmlrpc_test ./src/scheduler/.xmlrpc_test/xmlrpc_test.c9be06.cc ./src/scheduler/.xmlrpc_test/xmlrpc_test.a71c02.cc.log ./src/scheduler/.xmlrpc_test/xmlrpc_test.a71c02.cc ./src/scheduler/.xmlrpc_test/xmlrpc_test.c9be06.cc.log ./src/scheduler/.xmlrpc_test/xmlrpc_test.610bef.cc ./src/scheduler/.xmlrpc_test/xmlrpc_test.610bef.cc.log ./src/nebula/.xmlrpc_test ./src/nebula/.xmlrpc_test/xmlrpc_test.9f808d.cc ./src/nebula/.xmlrpc_test/xmlrpc_test.c52a20.cc ./src/nebula/.xmlrpc_test/xmlrpc_test.9f808d.cc.log ./src/nebula/.xmlrpc_test/xmlrpc_test.c52a20.cc.log
Associated revisions
Applying patch by ubuntu to not search for xmlrpc libraries when cleaning (#101)
git-svn-id: http://svn.opennebula.org/one/trunk@484 3034c82b-c49b-4eb3-8279-a7acafdc01c0
Applying patch by ubuntu to not search for xmlrpc libraries when cleaning (#101)
git-svn-id: http://svn.opennebula.org/one/branches/one-1.2@484 3034c82b-c49b-4eb3-8279-a7acafdc01c0
scons -c deletes xmlrpc test files (#101)w
git-svn-id: http://svn.opennebula.org/one/trunk@485 3034c82b-c49b-4eb3-8279-a7acafdc01c0
scons -c deletes xmlrpc test files (#101)w
git-svn-id: http://svn.opennebula.org/one/branches/one-1.2@485 3034c82b-c49b-4eb3-8279-a7acafdc01c0
Uninstall does not try to delete system directories (#101)
git-svn-id: http://svn.opennebula.org/one/trunk@514 3034c82b-c49b-4eb3-8279-a7acafdc01c0
Backported uninstall fix r514, #101
git-svn-id: http://svn.opennebula.org/one/branches/one-1.2@754 3034c82b-c49b-4eb3-8279-a7acafdc01c0
History
#1 Updated by Javi Fontan about 12 years ago
- Category set to Core & System
- Status changed from New to Assigned
- Assignee set to Javi Fontan
- Target version changed from Release 1.2 to Release 1.2.1
#2 Updated by Javi Fontan about 12 years ago
lex_bison.pyc cannot be deleted as it is generated by python itself when scons is running. Still searching for a workaround.
#3 Updated by Javi Fontan almost 12 years ago
- Status changed from Assigned to 3
- Resolution set to fixed
It seems like neither "scons -c" nor "install -r"
removes the file $ONE_LOCATION/share/scons/lex_bison.pycThis becomes an issue if you (from the same directory)
i. install as root
ii. uninstall as root
iii. try to install as normal user.
The same could happen if you compile it as root and try to recompile as user. Also it is tricky to delete a file that it is being used while scons script is running. This behavior wont be changed.
The other problems are addressed, check associated revision comments.
#4 Updated by Ruben S. Montero almost 10 years ago
- Status changed from 3 to Closed