GNOME Bugzilla – Bug 683566
OSError: [Errno 2] No such file or directory: '/opt/gnome/_jhbuild/root-libgphoto2/opt/gnome/include/gphoto2
Last modified: 2012-09-12 13:00:33 UTC
# jhbuild tinderbox I get the following at libgphoto2 install phase: Traceback (most recent call last):
+ Trace 230820
jhbuild.main.main(sys.argv[1:])
rc = jhbuild.commands.run(command, config, args, help=lambda: print_help(parser))
return cmd.execute(config, args, help)
return self.run(config, options, args, help)
return build.build()
error, altphases = module.run_phase(self, phase)
method(buildscript)
self.process_install(buildscript, self.get_revision())
num_copied = self._process_install_files(destdir, destdir_prefix, buildscript.config.prefix)
num_copied += self._process_install_files(installroot, src_path, prefix)
os.rmdir(src_path)
I guess it installs a self referencing symlink, and that process_install_files walks into it…
Created attachment 224045 [details] [review] Do not walk into symlinks
Review of attachment 224045 [details] [review]: Thank you. Works for me. The following is now redundant. Change the lines (line 263): if os.path.islink(src_path): os.unlink(src_path) else: os.rmdir(src_path) To: os.rmdir(src_path) Then good to commit.
I raised a another bug which is related, bug 683846 - manifests filelists incorrect when module has soft links.
Review of attachment 224045 [details] [review]: Actually fileutils.rename doesn't work for symlinks on Linux. Receive the following error: OSError: [Errno 21] Is a directory
Thanks for your patch Frédéric. I learnt from it and committed an enhanced version :) http://git.gnome.org/browse/jhbuild/commit/?id=b959e7a67634daa722c8652281f163a1bfdcf1f6