Jump to content

Welcome to CyanogenMod

Welcome to our forum. Like most online communities you must register to post, but don't worry this is a simple free process that requires minimal information for you to signup. Be a part of the CyanogenMod Forum by signing in or creating an account. You can even sign in with your Facebook or Twitter account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get automatic updates
  • Get your own profile and make new friends
  • Download files attached to the forum.
  • Customize your experience here
  • Share your CyanogenMod experience!
Guest Message by DevFuse
 

brunch passion causes error with SetPermissionsRecursive

CM7

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1 Paul Jack

Paul Jack
  • Members
  • 3 posts

Posted 08 November 2011 - 04:46 PM

I'm trying to build CM7 for Google Nexus One.

I am following the instructions from http://wiki.cyanogen...nogenMod_(Linux).

I'm on the step:  ". build/envsetup.sh && brunch passion"
envsetup.sh runs fine and I believe most of brunch passion works fine too.  The error I'm getting looks like it has something to do with SetPermissionsRecursive.

Here's the error message being generated:

  running:  imgdiff /tmp/tmpM2Cd0h /tmp/tmp6dc1De /tmp/tmpv4IL0t
Traceback (most recent call last):
  File "./build/tools/releasetools/ota_from_target_files", line 813, in <module>
    main(sys.argv[1:])
  File "./build/tools/releasetools/ota_from_target_files", line 788, in main
    WriteFullOTAPackage(input_zip, output_zip)
  File "./build/tools/releasetools/ota_from_target_files", line 405, in WriteFullOTAPackage
    Item.Get("system").SetPermissions(script)
  File "./build/tools/releasetools/ota_from_target_files", line 249, in SetPermissions
    recurse(self, (-1, -1, -1, -1))
  File "./build/tools/releasetools/ota_from_target_files", line 235, in recurse
    script.SetPermissionsRecursive("/"+item.name, *item.best_subtree)
  File "/mnt/android/system/build/tools/releasetools/edify_generator.py", line 271, in SetPermissionsRecursive
    % (uid, gid, dmode, fmode, fn))
TypeError: %d format: a number is required, not NoneType
make: *** [out/target/product/passion/cyanogen_passion-ota-eng.root.zip] Error 1

I've tried everything I can think of but still am unable to get past this problem.  Does anyone have any idea why this is failing?

#2 temasek

temasek
  • Donators
  • 3,343 posts

Posted 09 November 2011 - 01:12 AM

Have u tried "make clobber" and try again?

#3 Paul Jack

Paul Jack
  • Members
  • 3 posts

Posted 10 November 2011 - 03:25 PM

Seems the uid and gid are showing up as "None".  I'm not sure what to do about that.  Any ideas?