1 |
hello list, |
2 |
|
3 |
i need some help to come up with an ebuild for csound (a language for |
4 |
sound synthesis). |
5 |
|
6 |
csound uses scons and then installs files using a script called |
7 |
install.py. compilation goes fine. |
8 |
|
9 |
executables, libraries, plugins and header files are correctly |
10 |
installed (under /usr/bin, /usr/lib, /usr/lib/csound/plugins/ |
11 |
and /usr/include/csound/ respectively) |
12 |
|
13 |
but i'm having a bunch of messages like this when it comes to installing |
14 |
localization files: |
15 |
|
16 |
=== Installing Localisation files === |
17 |
ACCESS DENIED unlink: /usr/share/locale/de/LC_MESSAGES/csound5.mo |
18 |
install: cannot remove `/usr/share/locale/de/LC_MESSAGES/csound5.mo': |
19 |
Permission denied |
20 |
*** error copying /usr/share/locale/de/LC_MESSAGES/csound5.mo |
21 |
|
22 |
this is the summary: |
23 |
|
24 |
------------------ ACCESS VIOLATION SUMMARY --------------------------- |
25 |
LOG FILE = "/var/log/sandbox/sandbox-15019.log" |
26 |
|
27 |
unlink: /usr/share/locale/de/LC_MESSAGES/csound5.mo |
28 |
unlink: /usr/share/locale/en_GB/LC_MESSAGES/csound5.mo |
29 |
unlink: /usr/share/locale/en_US/LC_MESSAGES/csound5.mo |
30 |
unlink: /usr/share/locale/es_CO/LC_MESSAGES/csound5.mo |
31 |
unlink: /usr/share/locale/fr/LC_MESSAGES/csound5.mo |
32 |
unlink: /usr/share/locale/it/LC_MESSAGES/csound5.mo |
33 |
unlink: /usr/share/locale/ro/LC_MESSAGES/csound5.mo |
34 |
------------------------------------------------------------------------ |
35 |
|
36 |
i can circumvent this emerging with FEATURES="-sandbox", but i'd like |
37 |
to solve this in a cleaner way. |
38 |
|
39 |
|
40 |
the relevant (i think) part in the script is this: |
41 |
|
42 |
print ' === Installing Localisation files ===' |
43 |
xmgList = findFiles('.', '.+\\.xmg') |
44 |
if xmgList.__len__() > 0: |
45 |
err = installFiles(xmgList, xmgDir) |
46 |
installErrors = installErrors or err |
47 |
else: |
48 |
xmgList = ['de', 'en_GB','en_US', 'es_CO', 'fr', 'it','ro'] |
49 |
for i in xmgList: |
50 |
makeDir(concatPath([xmgDir, i, 'LC_MESSAGES'])) |
51 |
src = 'po/' + i + '/LC_MESSAGES/csound5.mo' |
52 |
fileName = concatPath([xmgDir, i, 'LC_MESSAGES/csound5.mo']) |
53 |
err = runCmd(['install', '-p', '-m', '0644', src, fileName]) |
54 |
if err == 0: |
55 |
addMD5(fileName, fileName) |
56 |
print ' %s' % fileName |
57 |
else: |
58 |
print ' *** error copying %s' % fileName |
59 |
installErrors = installErrors or err |
60 |
|
61 |
|
62 |
the ebuild is attached, any help greatly appreciated. |
63 |
|
64 |
best, |
65 |
|
66 |
lj |