lin2k / pdfium

Automatically exported from code.google.com/p/pdfium
0 stars 0 forks source link

Fail to complete gclient sync operation due to a DEPS issue #176

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.install depot_tools so that gclient tools are available, add depot_tools to 
PATH
2.create a new blank dir called pdfium_src
3.cd to pdfium_src, run fetch pdfium will show the issue
4.or if already fetched, then run gclient sync will also show the issue

What is the expected output? What do you see instead?
The operation failed after git pull done
The error:
/usr/bin/python: can't open file 'build/gyp_pdfium',: [Error 2] No such file or 
directory

I think it is caused by a DEPS hook config issue:
hooks = [
  {
    # A change to a .gyp, .gypi, or to GYP itself should run the generator.
    'name': 'gyp',
    'pattern': '.',
    'action': ['python', 'build/gyp_pdfium'],
  },
]
the action path should be pdfium/build/gyp_pdfium, I guess.

Original issue reported on code.google.com by nimingha...@gmail.com on 30 Jun 2015 at 2:56

GoogleCodeExporter commented 9 years ago
Yeah, we hit this the other day.  There's no forced intermediate directory when 
you follow the steps at https://code.google.com/p/pdfium/wiki/Build, and do 
your fetch with the --name . option as shown on that page. If you omit that 
flag, then you do get the pdfium/ path appended.

So we had to pick one or the other for the hook, and picked the one that 
matches the directions.

Original comment by tsepez@chromium.org on 30 Jun 2015 at 10:22