Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 248734 Details for
Bug 338875
sci-electronics/gerbmerge-1.8 (new ebuild)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Prevents the setup script from trying to chmod in the live filesystem, breaking sandbox
gerbmerge-1.6-no-fixperms.patch (text/plain), 1.42 KB, created by
Christopher Head
on 2010-09-27 04:08:20 UTC
(
hide
)
Description:
Prevents the setup script from trying to chmod in the live filesystem, breaking sandbox
Filename:
MIME Type:
Creator:
Christopher Head
Created:
2010-09-27 04:08:20 UTC
Size:
1.42 KB
patch
obsolete
>diff --git a/setup.py b/setup.py >--- a/setup.py >+++ b/setup.py >@@ -49,6 +49,7 @@ > python %s/site-packages/gerbmerge/gerbmerge.py $* > """ % DestLib) > fid.close() >+ os.chmod('misc/gerbmerge', 0755) > > dist=setup (name = "gerbmerge", > license = "GPL", >@@ -80,39 +81,11 @@ > (BinDir, BinFiles) ] > ) > >-do_fix_perms = 0 > if sys.platform != "win32": > for cmd in dist.commands: > if cmd[:7]=='install': >- do_fix_perms = 1 > break > >-if do_fix_perms: >- # Ensure package files and misc/help files are world readable-searchable. >- # Shouldn't Distutils do this for us? >- print 'Setting permissions on installed files...', >- try: >- def fixperms(arg, dirname, names): >- os.chmod(dirname, 0755) >- for name in names: >- fullname = os.path.join(dirname, name) >- if os.access(fullname, os.X_OK): >- os.chmod(fullname, 0755) >- else: >- os.chmod(fullname, 0644) >- >- os.path.walk(DestDir, fixperms, 1) >- os.path.walk(os.path.join(DestLib, 'site-packages/gerbmerge'), fixperms, 1) >- >- os.chmod(os.path.join(BinDir, 'gerbmerge'), 0755) >- print 'done' >- except: >- print 'FAILED' >- print >- print '*** Please verify that the installed files have correct permissions. On' >- print "*** systems without permission flags, you don't need to" >- print '*** worry about it.' >- > if cmd[:7]=='install': > print > print '******** Installation Complete ******** '
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 338875
:
248732
| 248734