[Sugar-devel] [ASLO] Release TamTam Edit-68

Gonzalo Odiard godiard at sugarlabs.org
Mon Dec 29 10:12:09 EST 2014


Hi Peter,

This is strange:

https://github.com/godiard/tamtam/blob/master/setup.py#L160

is adding "usr" after the prefix?

Gonzalo

On Fri, Dec 26, 2014 at 11:57 AM, Peter Robinson <pbrobinson at gmail.com>
wrote:

> On Tue, Dec 23, 2014 at 4:34 PM, Sugar Labs Activities
> <activities at sugarlabs.org> wrote:
> > Activity Homepage:
> > http://activities.sugarlabs.org/addon/4059
> >
> > Sugar Platform:
> > 0.82 - 0.102
> >
> > Download Now:
> > http://activities.sugarlabs.org/downloads/file/29045/tamtamedit-68.xo
> >
> > Release notes:
> > Make csound config compatible with Fedora 20
> > Add information about the repository
>
>
> I've spent a few moments to see if I could make the TamTam suite build
> as a rpm but it seems the install process doesn't honor the --prefix
> option.
>
> I've tried the following as per the README file:
> DESTDIR=<dest-dir> ./setup.py install
>
> And the following as per all the other activities:
> ./setup.py install --prefix=$RPM_BUILD_ROOT%{sugaractivitydir}
>
> But neither seem to honor the prefix and I get the following as it
> just tries to install it straight into /usr anyway:
>
> + ./setup.py install
>
> --prefix=/home/perobins/rpmbuild/BUILDROOT/sugar-tamtam-68-1.fc21.x86_64/usr/share/sugar/activities/
> -- build Edit activity
> -- install --prefix=/usr Edit activity
> Install common/Resources/Images/miniTam.png to
>
> /usr/share/sugar/activities/TamTamEdit.activity/common/Resources/Images/miniTam.png.
> Traceback (most recent call last):
>   File "setup.py", line 3, in <module>
>     bundlebuilder.start()
>   File "/usr/lib/python2.7/site-packages/sugar/activity/bundlebuilder.py",
> line 403, in start
>     globals()['cmd_' + args[0]](config, args[1:])
>   File "/usr/lib/python2.7/site-packages/sugar/activity/bundlebuilder.py",
> line 326, in cmd_install
>     installer.install(suboptions.prefix)
>   File "/usr/lib/python2.7/site-packages/sugar/activity/bundlebuilder.py",
> line 257, in install
>     os.makedirs(path)
>   File "/usr/lib64/python2.7/os.py", line 150, in makedirs
>     makedirs(head, mode)
>   File "/usr/lib64/python2.7/os.py", line 150, in makedirs
>     makedirs(head, mode)
>   File "/usr/lib64/python2.7/os.py", line 150, in makedirs
>     makedirs(head, mode)
>   File "/usr/lib64/python2.7/os.py", line 157, in makedirs
>     mkdir(name, mode)
> OSError: [Errno 13] Permission denied:
> '/usr/share/sugar/activities/TamTamEdit.activity'
> Traceback (most recent call last):
>   File "./setup.py", line 160, in <module>
>     walk_activities(['build'], ['install', '--prefix=%s/usr' % destdir])
>   File "./setup.py", line 91, in walk_activities
>     cwd=activity_dir)
>   File "/usr/lib64/python2.7/subprocess.py", line 540, in check_call
>     raise CalledProcessError(retcode, cmd)
> subprocess.CalledProcessError: Command '['python', 'setup.py',
> 'install', '--prefix=/usr']' returned non-zero exit status 1
> error: Bad exit status from /var/tmp/rpm-tmp.fEqWqH (%install)
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>



-- 
Gonzalo Odiard

SugarLabs - Software for children learning
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20141229/59fc13d1/attachment.html>


More information about the Sugar-devel mailing list