1 |
On Fri, Oct 10, 2008 at 6:19 PM, luis jure <ljc@××××××××××××.uy> wrote: |
2 |
> |
3 |
> |
4 |
> hello list, |
5 |
> |
6 |
> i need some help to come up with an ebuild for csound (a language for |
7 |
> sound synthesis). |
8 |
> |
9 |
> csound uses scons and then installs files using a script called |
10 |
> install.py. compilation goes fine. |
11 |
> |
12 |
> executables, libraries, plugins and header files are correctly |
13 |
> installed (under /usr/bin, /usr/lib, /usr/lib/csound/plugins/ |
14 |
> and /usr/include/csound/ respectively) |
15 |
> |
16 |
> but i'm having a bunch of messages like this when it comes to installing |
17 |
> localization files: |
18 |
> |
19 |
> === Installing Localisation files === |
20 |
> ACCESS DENIED unlink: /usr/share/locale/de/LC_MESSAGES/csound5.mo |
21 |
> install: cannot remove `/usr/share/locale/de/LC_MESSAGES/csound5.mo': |
22 |
> Permission denied |
23 |
> *** error copying /usr/share/locale/de/LC_MESSAGES/csound5.mo |
24 |
> |
25 |
> this is the summary: |
26 |
> |
27 |
> ------------------ ACCESS VIOLATION SUMMARY --------------------------- |
28 |
> LOG FILE = "/var/log/sandbox/sandbox-15019.log" |
29 |
> |
30 |
> unlink: /usr/share/locale/de/LC_MESSAGES/csound5.mo |
31 |
> unlink: /usr/share/locale/en_GB/LC_MESSAGES/csound5.mo |
32 |
> unlink: /usr/share/locale/en_US/LC_MESSAGES/csound5.mo |
33 |
> unlink: /usr/share/locale/es_CO/LC_MESSAGES/csound5.mo |
34 |
> unlink: /usr/share/locale/fr/LC_MESSAGES/csound5.mo |
35 |
> unlink: /usr/share/locale/it/LC_MESSAGES/csound5.mo |
36 |
> unlink: /usr/share/locale/ro/LC_MESSAGES/csound5.mo |
37 |
> ------------------------------------------------------------------------ |
38 |
> |
39 |
> i can circumvent this emerging with FEATURES="-sandbox", but i'd like |
40 |
> to solve this in a cleaner way. |
41 |
> |
42 |
> |
43 |
> the relevant (i think) part in the script is this: |
44 |
> |
45 |
> print ' === Installing Localisation files ===' |
46 |
> xmgList = findFiles('.', '.+\\.xmg') |
47 |
> if xmgList.__len__() > 0: |
48 |
> err = installFiles(xmgList, xmgDir) |
49 |
> installErrors = installErrors or err |
50 |
> else: |
51 |
> xmgList = ['de', 'en_GB','en_US', 'es_CO', 'fr', 'it','ro'] |
52 |
> for i in xmgList: |
53 |
> makeDir(concatPath([xmgDir, i, 'LC_MESSAGES'])) |
54 |
> src = 'po/' + i + '/LC_MESSAGES/csound5.mo' |
55 |
> fileName = concatPath([xmgDir, i, 'LC_MESSAGES/csound5.mo']) |
56 |
> err = runCmd(['install', '-p', '-m', '0644', src, fileName]) |
57 |
> if err == 0: |
58 |
> addMD5(fileName, fileName) |
59 |
> print ' %s' % fileName |
60 |
> else: |
61 |
> print ' *** error copying %s' % fileName |
62 |
> installErrors = installErrors or err |
63 |
> |
64 |
> |
65 |
> the ebuild is attached, any help greatly appreciated. |
66 |
> |
67 |
> best, |
68 |
> |
69 |
> lj |
70 |
> |
71 |
> |
72 |
|
73 |
Can you emerge attr, then run lsattr on the files that cannot be |
74 |
unlinked? I suspect that they might have extended attributes |
75 |
preventing those file from being deleted. If you do have extended |
76 |
attributes, you can remove them using chattr, I've had extended |
77 |
attributes appear before and to this day don't understand why they |
78 |
showed up. |