From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KoTP4-0001Wu-4Z for garchives@archives.gentoo.org; Sat, 11 Oct 2008 01:36:22 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 340D4E039F; Sat, 11 Oct 2008 01:36:20 +0000 (UTC) Received: from mail-gx0-f19.google.com (mail-gx0-f19.google.com [209.85.217.19]) by pigeon.gentoo.org (Postfix) with ESMTP id 0FB00E039F for ; Sat, 11 Oct 2008 01:36:20 +0000 (UTC) Received: by gxk12 with SMTP id 12so1584438gxk.10 for ; Fri, 10 Oct 2008 18:36:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=C8PaJBqJsg72D2IF3VWtvVHYwEg9205p6tfCIu7CdsA=; b=xWX/9F3PiGoySxK8ewA6EjbzELlKjC3hMfi6rE/7Bkit52aJNE+djjpZVIvmW/k+HB elxfv2xD6kingj1KvidB9RZwB4iGF40qWoBbd09Fa4c2ukLntnO8b0Oll1AyXu6GJ8sM xcmaAUkILL98wzIrBZ+uM1wdK1hMHfVhtdakI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=vyoKIKO5o/z0xxcQj5OlTkAc9e3Bldqs4DUIqPuroYiyL5NDNq8fjZ1cFZCo5DBik+ K9uwUEgRnSPOZ7CwIno5yOywTC5rJsc9xM+VI5+riOETq+zSDwxpxnf9YXKSyr/bX2Qw 1cyP2IUuiBasLui9G/k+XUKIy0z4PoHFLBJ2E= Received: by 10.151.27.15 with SMTP id e15mr3332679ybj.41.1223688976002; Fri, 10 Oct 2008 18:36:16 -0700 (PDT) Received: by 10.150.122.12 with HTTP; Fri, 10 Oct 2008 18:36:15 -0700 (PDT) Message-ID: <350fc7cf0810101836g6976e0c8p912d2d25cf8cbbec@mail.gmail.com> Date: Fri, 10 Oct 2008 18:36:15 -0700 From: "Andrey Falko" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] problems with csound ebuild In-Reply-To: <20081010231920.39053de8@acme.acmenet> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081010231920.39053de8@acme.acmenet> X-Archives-Salt: 5e2f3647-1d78-4484-b65e-9db0325bdf56 X-Archives-Hash: b56c3e9fa485268924aa4696a1e2952a On Fri, Oct 10, 2008 at 6:19 PM, luis jure 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.