[Yhc] Yhc Scons and chmod
Neil Mitchell
ndmitchell at gmail.com
Fri Mar 23 12:06:27 EDT 2007
Hi
I'm trying to install Yhc on venice, Matt originally installed it, I
did darcs pull scons. I have permissions to do stuff to the yhc
directory, but not permission to do a chmod, as the setup script seems
to do:
Warning: The module PreludeBuiltin is called Prelude in its interface
file (/grp/haskell/yhc/src/packages/yhc-base-1.0/PreludeBuiltin.hi)
Copy("src/packages/yhc-base-1.0", "bootstrap/packages/yhc-base/1.0/Prelude.hi")
scons: *** [src/packages/yhc-base-1.0/Prelude.hbc] Exception
Traceback (most recent call last):
File "/usr/local/pkg/scons-0.96.1/lib/scons/SCons/Taskmaster.py",
line 101, in execute
self.targets[0].build()
File "/usr/local/pkg/scons-0.96.1/lib/scons/SCons/Node/__init__.py",
line 201, in build
apply(executor, (self, errfunc), kw)
File "/usr/local/pkg/scons-0.96.1/lib/scons/SCons/Executor.py", line
115, in __call__
apply(action, (self.targets, self.sources, env, errfunc), kw)
File "/usr/local/pkg/scons-0.96.1/lib/scons/SCons/Action.py", line
243, in __call__
stat = self.execute(target, source, env)
File "/usr/local/pkg/scons-0.96.1/lib/scons/SCons/Action.py", line
512, in execute
return self.execfunction(target=target, source=rsources, env=env)
File "src/packages/yhc-base-1.0/SConscript", line 61, in YHC_build
env.Execute(Copy("src/packages/yhc-base-1.0",
"bootstrap/packages/yhc-base/1.0/Prelude.hi"))
File "/usr/local/pkg/scons-0.96.1/lib/scons/SCons/Environment.py",
line 1052, in Execute
return action([], [], self)
File "/usr/local/pkg/scons-0.96.1/lib/scons/SCons/Action.py", line
243, in __call__
stat = self.execute(target, source, env)
File "/usr/local/pkg/scons-0.96.1/lib/scons/SCons/Action.py", line
512, in execute
return self.execfunction(target=target, source=rsources, env=env)
File "/usr/local/pkg/scons-0.96.1/lib/scons/SCons/Action.py", line
622, in __call__
return apply(self.parent.actfunc, args, kw)
File "/usr/local/pkg/scons-0.96.1/lib/scons/SCons/Defaults.py", line
177, in copy_func
return shutil.copy(src, dest)
File "/usr/lib/python2.4/shutil.py", line 82, in copy
copymode(src, dst)
File "/usr/lib/python2.4/shutil.py", line 61, in copymode
os.chmod(dst, mode)
OSError: [Errno 1] Operation not permitted:
'src/packages/yhc-base-1.0/Prelude.hi'
scons: building terminated because of errors.
So the question is:
1) Does the setup really need to do a chmod
2) If the chmod fails, what can't we do? Could we perhaps limp along
to the end anyway.
Thanks
Neil
More information about the Yhc
mailing list