Opened 10 years ago

Closed 7 years ago

Last modified 7 years ago

#2077 closed defect (fixed)

bundlebuilder chokes on git submodules

Reported by: sascha_silbe Owned by: erikos
Priority: Unspecified by Maintainer Milestone: Unspecified
Component: Sugar Version: Git as of bugdate
Severity: Blocker Keywords: r?
Cc: lfaraone, mtd Distribution/OS:
Bug Status: Needinfo

Description

Pippy FTBFS for quite some time now because bundlebuilder chokes on git submodules:

Traceback (most recent call last):
  File "setup.py", line 21, in <module>
    bundlebuilder.start()
  File "/home/buildslave/sugar-jhbuild/install/lib/python2.6/site-packages/sugar/activity/bundlebuilder.py", line 418, in start
    globals()['cmd_' + args[0]](config, args[1:])
  File "/home/buildslave/sugar-jhbuild/install/lib/python2.6/site-packages/sugar/activity/bundlebuilder.py", line 343, in cmd_install
    installer.install(suboptions.prefix)
  File "/home/buildslave/sugar-jhbuild/install/lib/python2.6/site-packages/sugar/activity/bundlebuilder.py", line 275, in install
    shutil.copy(source, dest)
  File "/usr/lib/python2.6/shutil.py", line 84, in copy
    copyfile(src, dst)
  File "/usr/lib/python2.6/shutil.py", line 51, in copyfile
    with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: '/home/buildslave/sugar-jhbuild/install/share/sugar/activities/Pippy.activity/dobject/.git/objects/pack/pack-50d5617ffbf6a5c020782

bundlebuilder should probably ignore all "hidden" directories (i.e. those starting with a dot).

Attachments (1)

2077-bundlebuilder-should-ignore-.git-submodules-2077.patch (803 bytes) - added by mtd 10 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 10 years ago by mtd

  • Cc mtd added

This problem still exists for me:

Install locale/nl/activity.linfo to /home/martin/src/sugar-jhbuild/install/share/sugar/activities/Pippy.activity/locale/nl/activity.linfo.
Install dobject/.git/objects/pack/pack-50d5617ffbf6a5c02078289b04469d28188200fd.pack to /home/martin/src/sugar-jhbuild/install/share/sugar/activities/Pippy.activity/dobject/.git/objects/pack/pack-50d5617ffbf6a5c02078289b04469d28188200fd.pack.
Traceback (most recent call last):
  File "setup.py", line 21, in <module>
    bundlebuilder.start()
  File "/home/martin/src/sugar-jhbuild/install/lib/python2.6/site-packages/sugar/activity/bundlebuilder.py", line 418, in start
    globals()['cmd_' + args[0]](config, args[1:])
  File "/home/martin/src/sugar-jhbuild/install/lib/python2.6/site-packages/sugar/activity/bundlebuilder.py", line 343, in cmd_install
    installer.install(suboptions.prefix)
  File "/home/martin/src/sugar-jhbuild/install/lib/python2.6/site-packages/sugar/activity/bundlebuilder.py", line 275, in install
    shutil.copy(source, dest)
  File "/usr/lib/python2.6/shutil.py", line 88, in copy
    copyfile(src, dst)
  File "/usr/lib/python2.6/shutil.py", line 53, in copyfile
    fdst = open(dst, 'wb')
IOError: [Errno 13] Permission denied: '/home/martin/src/sugar-jhbuild/install/share/sugar/activities/Pippy.activity/dobject/.git/objects/pack/pack-50d5617ffbf6a5c02078289b04469d28188200fd.pack'
*** Error during phase install of pippy: ########## Error running python setup.py install --prefix /home/martin/src/sugar-jhbuild/install *** [23/28]

comment:2 Changed 10 years ago by mtd

  • Keywords r? added

comment:3 Changed 10 years ago by mtd

  • Keywords r? removed

Sorry - I don't think this fixes it.

comment:4 Changed 10 years ago by mtd

  • Keywords r? added

This one works better (the pattern is broader).

I'm not sure that this approach is right as I really don't know enough context.

But this patch fixes the specific symptom: pippy builds now from jhbuild.

comment:5 Changed 10 years ago by m_anish

  • Bug Status changed from New to Needinfo

Try building again from the latest pippy/mainline snapshot (after cleaning your local repo). This commit should have fixed the problem.

comment:6 Changed 7 years ago by dnarvaez

  • Resolution set to fixed
  • Status changed from new to closed

comment:7 Changed 7 years ago by dnarvaez

  • Component changed from sugar-toolkit to Sugar
Note: See TracTickets for help on using tickets.