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

Peter Robinson pbrobinson at gmail.com
Fri Dec 26 09:57:21 EST 2014


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)


More information about the Sugar-devel mailing list