public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrey Falko" <ma3oxuct@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] problems with csound ebuild
Date: Fri, 10 Oct 2008 18:36:15 -0700	[thread overview]
Message-ID: <350fc7cf0810101836g6976e0c8p912d2d25cf8cbbec@mail.gmail.com> (raw)
In-Reply-To: <20081010231920.39053de8@acme.acmenet>

On Fri, Oct 10, 2008 at 6:19 PM, luis jure <ljc@internet.com.uy> wrote:
>
>
> hello list,
>
> i need some help to come up with an ebuild for csound (a language for
> sound synthesis).
>
> csound uses scons and then installs files using a script called
> install.py. compilation goes fine.
>
> executables, libraries, plugins and header files are correctly
> installed (under /usr/bin, /usr/lib, /usr/lib/csound/plugins/
> and /usr/include/csound/ respectively)
>
> but i'm having a bunch of messages like this when it comes to installing
> localization files:
>
>  === Installing Localisation files ===
> ACCESS DENIED  unlink:    /usr/share/locale/de/LC_MESSAGES/csound5.mo
> install: cannot remove `/usr/share/locale/de/LC_MESSAGES/csound5.mo':
> Permission denied
>  *** error copying /usr/share/locale/de/LC_MESSAGES/csound5.mo
>
> this is the summary:
>
> ------------------ ACCESS VIOLATION SUMMARY ---------------------------
> LOG FILE = "/var/log/sandbox/sandbox-15019.log"
>
> unlink:    /usr/share/locale/de/LC_MESSAGES/csound5.mo
> unlink:    /usr/share/locale/en_GB/LC_MESSAGES/csound5.mo
> unlink:    /usr/share/locale/en_US/LC_MESSAGES/csound5.mo
> unlink:    /usr/share/locale/es_CO/LC_MESSAGES/csound5.mo
> unlink:    /usr/share/locale/fr/LC_MESSAGES/csound5.mo
> unlink:    /usr/share/locale/it/LC_MESSAGES/csound5.mo
> unlink:    /usr/share/locale/ro/LC_MESSAGES/csound5.mo
> ------------------------------------------------------------------------
>
> i can circumvent this emerging with FEATURES="-sandbox", but i'd like
> to solve this in a cleaner way.
>
>
> the relevant (i think) part in the script is this:
>
> print ' === Installing Localisation files ==='
> xmgList = findFiles('.', '.+\\.xmg')
> if xmgList.__len__() > 0:
>    err = installFiles(xmgList, xmgDir)
>    installErrors = installErrors or err
> else:
>  xmgList = ['de', 'en_GB','en_US', 'es_CO', 'fr', 'it','ro']
>  for i in xmgList:
>    makeDir(concatPath([xmgDir, i, 'LC_MESSAGES']))
>    src = 'po/' + i + '/LC_MESSAGES/csound5.mo'
>    fileName = concatPath([xmgDir, i, 'LC_MESSAGES/csound5.mo'])
>    err = runCmd(['install', '-p', '-m', '0644', src, fileName])
>    if err == 0:
>        addMD5(fileName, fileName)
>        print '  %s' % fileName
>    else:
>        print ' *** error copying %s' % fileName
>        installErrors = installErrors or err
>
>
> the ebuild is attached, any help greatly appreciated.
>
> best,
>
> lj
>
>

Can you emerge attr, then run lsattr on the files that cannot be
unlinked? I suspect that they might have extended attributes
preventing those file from being deleted. If you do have extended
attributes, you can remove them using chattr, I've had extended
attributes appear before and to this day don't understand why they
showed up.



  reply	other threads:[~2008-10-11  1:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-11  1:19 [gentoo-user] problems with csound ebuild luis jure
2008-10-11  1:36 ` Andrey Falko [this message]
2008-10-11 12:37   ` luis jure
2008-10-11 13:17     ` Daniel Pielmeier
2008-10-11 23:13       ` luis jure
2008-10-11 13:49     ` Daniel Pielmeier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=350fc7cf0810101836g6976e0c8p912d2d25cf8cbbec@mail.gmail.com \
    --to=ma3oxuct@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox