<div dir="ltr">Hi Peter,<div><br></div><div>This is strange:</div><div><br></div><div><a href="https://github.com/godiard/tamtam/blob/master/setup.py#L160">https://github.com/godiard/tamtam/blob/master/setup.py#L160</a><br></div><div><br></div><div>is adding "usr" after the prefix?</div><div><br></div><div>Gonzalo</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 26, 2014 at 11:57 AM, Peter Robinson <span dir="ltr"><<a href="mailto:pbrobinson@gmail.com" target="_blank">pbrobinson@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Dec 23, 2014 at 4:34 PM, Sugar Labs Activities<br>
<<a href="mailto:activities@sugarlabs.org">activities@sugarlabs.org</a>> wrote:<br>
> Activity Homepage:<br>
> <a href="http://activities.sugarlabs.org/addon/4059" target="_blank">http://activities.sugarlabs.org/addon/4059</a><br>
><br>
> Sugar Platform:<br>
> 0.82 - 0.102<br>
><br>
> Download Now:<br>
> <a href="http://activities.sugarlabs.org/downloads/file/29045/tamtamedit-68.xo" target="_blank">http://activities.sugarlabs.org/downloads/file/29045/tamtamedit-68.xo</a><br>
><br>
> Release notes:<br>
> Make csound config compatible with Fedora 20<br>
> Add information about the repository<br>
<br>
<br>
</span>I've spent a few moments to see if I could make the TamTam suite build<br>
as a rpm but it seems the install process doesn't honor the --prefix<br>
option.<br>
<br>
I've tried the following as per the README file:<br>
DESTDIR=<dest-dir> ./setup.py install<br>
<br>
And the following as per all the other activities:<br>
./setup.py install --prefix=$RPM_BUILD_ROOT%{sugaractivitydir}<br>
<br>
But neither seem to honor the prefix and I get the following as it<br>
just tries to install it straight into /usr anyway:<br>
<br>
+ ./setup.py install<br>
--prefix=/home/perobins/rpmbuild/BUILDROOT/sugar-tamtam-68-1.fc21.x86_64/usr/share/sugar/activities/<br>
-- build Edit activity<br>
-- install --prefix=/usr Edit activity<br>
Install common/Resources/Images/miniTam.png to<br>
/usr/share/sugar/activities/TamTamEdit.activity/common/Resources/Images/miniTam.png.<br>
Traceback (most recent call last):<br>
File "setup.py", line 3, in <module><br>
bundlebuilder.start()<br>
File "/usr/lib/python2.7/site-packages/sugar/activity/bundlebuilder.py",<br>
line 403, in start<br>
globals()['cmd_' + args[0]](config, args[1:])<br>
File "/usr/lib/python2.7/site-packages/sugar/activity/bundlebuilder.py",<br>
line 326, in cmd_install<br>
installer.install(suboptions.prefix)<br>
File "/usr/lib/python2.7/site-packages/sugar/activity/bundlebuilder.py",<br>
line 257, in install<br>
os.makedirs(path)<br>
File "/usr/lib64/python2.7/os.py", line 150, in makedirs<br>
makedirs(head, mode)<br>
File "/usr/lib64/python2.7/os.py", line 150, in makedirs<br>
makedirs(head, mode)<br>
File "/usr/lib64/python2.7/os.py", line 150, in makedirs<br>
makedirs(head, mode)<br>
File "/usr/lib64/python2.7/os.py", line 157, in makedirs<br>
mkdir(name, mode)<br>
OSError: [Errno 13] Permission denied:<br>
'/usr/share/sugar/activities/TamTamEdit.activity'<br>
Traceback (most recent call last):<br>
File "./setup.py", line 160, in <module><br>
walk_activities(['build'], ['install', '--prefix=%s/usr' % destdir])<br>
File "./setup.py", line 91, in walk_activities<br>
cwd=activity_dir)<br>
File "/usr/lib64/python2.7/subprocess.py", line 540, in check_call<br>
raise CalledProcessError(retcode, cmd)<br>
subprocess.CalledProcessError: Command '['python', 'setup.py',<br>
'install', '--prefix=/usr']' returned non-zero exit status 1<br>
error: Bad exit status from /var/tmp/rpm-tmp.fEqWqH (%install)<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Gonzalo Odiard<br><br><div>SugarLabs - Software for children learning <br></div></div></div>
</div>