GNOME Bugzilla – Bug 706667
[patch] Fix permission denied error when installing from an nfs directory
Last modified: 2017-11-03 20:16:29 UTC
If the build directory is mounted via nfs, then sudo make install will fail with the following error: make install-data-hook GEN libglib-gdb.py /bin/sh: ./libglib-gdb.py: Permission denied make[5]: *** [libglib-gdb.py] Error 1 make[4]: *** [install-data-am] Error 2 make[3]: *** [install-am] Error 2 make[2]: *** [install-recursive] Error 1 make[1]: *** [install] Error 2 make: *** [install-recursive] Error 1 The problem is that install-data-hook tries to create the file libglib-gdb.py in the build directory at install-time, but this is not allowed when the uid is root. A similar problem occurs with libgobject-gdb.py. The attached patch fixes this by adding a makefile dependency to create the files at build-time. The patch is against the release tar, hence it contains changes to Makefile.in rather than Makefile.am.
Created attachment 252862 [details] [review] Patch to create py files at build time
Review of attachment 252862 [details] [review]: Looks reasonable.
Turned it into a proper patch with some amount of attribution, and pushed.