* [gentoo-user] problems with csound ebuild
@ 2008-10-11 1:19 luis jure
2008-10-11 1:36 ` Andrey Falko
0 siblings, 1 reply; 6+ messages in thread
From: luis jure @ 2008-10-11 1:19 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2259 bytes --]
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
[-- Attachment #2: csound-5.09.0.ebuild --]
[-- Type: application/octet-stream, Size: 3423 bytes --]
# Copyright none yet
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="Csound is a powerful and flexible system for digital sound synthesis and processing"
HOMEPAGE="http://csounds.com"
RESTRICT="nomirror"
MY_P=${P/csound-/Csound}
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=" alsa amd64 coreaudio doc double dssi dynamic fltk fluidsynth gui jack
java loris osc_opcodes pd portaudio portmidi ppc64 python static stk_opcodes
tcltk vst"
RDEPEND="
media-libs/ladspa-sdk
media-libs/alsa-lib
>=media-libs/libsndfile-1.0.12-r1"
DEPEND="${RDEPEND}
>=x11-libs/fltk-1.1.0
dev-util/scons
dev-lang/python
dev-lang/swig
portaudio? ( =media-libs/portaudio-19* )
python? ( >=dev-lang/python-2.4 )
jack? ( media-sound/jack-audio-connection-kit )
tcltk? ( dev-lang/tcl )
tcltk? ( dev-lang/tk )
java? ( virtual/jdk )
vst? ( >=dev-libs/boost-1.32.1 )
vst? ( dev-lang/swig )
osc_opcodes? ( media-libs/liblo )
pd? ( media-sound/pd )
doc? ( app-doc/doxygen )
dssi? ( >=media-libs/dssi-0.9.1 )"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
cd ${S}
mv SConstruct SConstruct.old
sed '/./{H;$!d;};x;/winsock/d' SConstruct.old | sed '/SOCKETS/d' > Sconstruct
}
src_compile() {
cp "${FILESDIR}/custom.py" .
local myconf="prefix=/usr buildRelease=1"
# Feed scons with use-enabled options
! use alsa; myconf="${myconf} useALSA=$?"
! use doc; myconf="${myconf} generatePdf=$?"
! use double; myconf="${myconf} useDouble=$?"
! use coreaudio; myconf="${myconf} useCoreAudio=$?"
! use dssi; myconf="${myconf} buildDSSI=$?"
! use dynamic; myconf="${myconf} dynamicCsoundLibrary=$?"
! use fltk; myconf="${myconf} useFLTK=$? customCPPPATH=/usr/include/fltk-1.1 customLIBPATH=/usr/lib/fltk-1.1"
! use fluidsynth; myconf="${myconf} useFluidsynth=$?"
! use gui; myconf="${myconf} buildCsound5GUI=$?"
! use jack; myconf="${myconf} useJack=$?"
! use java; myconf="${myconf} buildJavaWrapper=$?"
! use loris; myconf="${myconf} buildLoris=$?"
! use osc_opcodes; myconf="${myconf} useOSC=$?"
! use pd; myconf="${myconf} buildPDClass=$?"
! use portaudio; myconf="${myconf} usePortAudio=$?"
! use portmidi; myconf="${myconf} usePortMIDI=$?"
! use python; myconf="${myconf} buildPythonOpcodes=$?"
! use static; myconf="${myconf} dynamicCsoundLibrary=$?"
! use stk_opcodes; myconf="${myconf} buildStkOpcodes=$?"
! use tcltk; myconf="${myconf} buildTclcsound=$?"
! use vst; myconf="${myconf} buildCsoundVST=$?"
( use amd64 || use ppc64 ) && myconf="${myconf} Word64=1"
einfo "configuring with following options:"
einfo "${myconf}"
sleep 2
# These addpredicts are to stop sandbox violation errors
addpredict "/usr/include"
addpredict "/usr/local/include"
addpredict "/usr/lib"
addpredict "/usr/local/lib"
scons ${myconf} || die "scons failed!"
}
src_install() {
./install.py --prefix="/usr/" --instdir="${D}"
cd ${D}/usr
rm -f *.md5sums
}
pkg_postinst() {
ewarn "* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * "
ewarn "This is a testing ebuild, a few build options are still missing."
ewarn "Please report your success or lack thereof to the csound mailing list."
ewarn "remember to set the OPCODEDIR variable to"
ewarn "/usr/lib/csound/plugins or /usr/lib/csound/plugins64"
ewarn "* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * "
}
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] problems with csound ebuild
2008-10-11 1:19 [gentoo-user] problems with csound ebuild luis jure
@ 2008-10-11 1:36 ` Andrey Falko
2008-10-11 12:37 ` luis jure
0 siblings, 1 reply; 6+ messages in thread
From: Andrey Falko @ 2008-10-11 1:36 UTC (permalink / raw
To: gentoo-user
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] problems with csound ebuild
2008-10-11 1:36 ` Andrey Falko
@ 2008-10-11 12:37 ` luis jure
2008-10-11 13:17 ` Daniel Pielmeier
2008-10-11 13:49 ` Daniel Pielmeier
0 siblings, 2 replies; 6+ messages in thread
From: luis jure @ 2008-10-11 12:37 UTC (permalink / raw
To: gentoo-user
on 2008-10-10 at 18:36 Andrey Falko wrote:
>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.
thanks for your answer, that doesn't seem to be the problem, though.
i can install everything using install.py directly (not emerging with
portage). also, using FEATURES="-sandbox" i can emerge without
problems. so this problem seems to be related to the "sandbox",
something i never got to understand completely...
best,
lj
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] problems with csound ebuild
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
1 sibling, 1 reply; 6+ messages in thread
From: Daniel Pielmeier @ 2008-10-11 13:17 UTC (permalink / raw
To: gentoo-user
luis jure schrieb am 11.10.2008 14:37:
>> 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.
>
> thanks for your answer, that doesn't seem to be the problem, though.
> i can install everything using install.py directly (not emerging with
> portage). also, using FEATURES="-sandbox" i can emerge without
> problems. so this problem seems to be related to the "sandbox",
> something i never got to understand completely...
>
Have you updated python recently and did not run python-updater? You can
also try to re-emerge scons.
Sandbox errors are mostly caused when the ebuild tries to access the
filesystem directly instead of using $WORKDIR.
Maybe some parts of install.py do not honor --instdir="${D}".
Some links:
http://bugday.gentoo.org/sandbox.html
http://devmanual.gentoo.org/general-concepts/sandbox/index.html
Regards,
Daniel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] problems with csound ebuild
2008-10-11 12:37 ` luis jure
2008-10-11 13:17 ` Daniel Pielmeier
@ 2008-10-11 13:49 ` Daniel Pielmeier
1 sibling, 0 replies; 6+ messages in thread
From: Daniel Pielmeier @ 2008-10-11 13:49 UTC (permalink / raw
To: gentoo-user
luis jure schrieb am 11.10.2008 14:37:
> thanks for your answer, that doesn't seem to be the problem, though.
> i can install everything using install.py directly (not emerging with
> portage). also, using FEATURES="-sandbox" i can emerge without
> problems. so this problem seems to be related to the "sandbox",
> something i never got to understand completely...
I guess you need to invoke instdir in src_compile too, at least it is an
option available in Sconstruct.
Regards,
Daniel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] problems with csound ebuild
2008-10-11 13:17 ` Daniel Pielmeier
@ 2008-10-11 23:13 ` luis jure
0 siblings, 0 replies; 6+ messages in thread
From: luis jure @ 2008-10-11 23:13 UTC (permalink / raw
To: gentoo-user
on 2008-10-11 at 15:17 Daniel Pielmeier wrote:
>Have you updated python recently and did not run python-updater? You
>can also try to re-emerge scons.
did both, but i get the same results.
>Sandbox errors are mostly caused when the ebuild tries to access the
>filesystem directly instead of using $WORKDIR.
>
>Maybe some parts of install.py do not honor --instdir="${D}".
that seems to be the problem, but IANAP and i don't read python... :-(
best,
lj
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-10-11 23:17 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-11 1:19 [gentoo-user] problems with csound ebuild luis jure
2008-10-11 1:36 ` Andrey Falko
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox