Skip to contentSkip to conversation

gnome.gtk-doc() gives permission denied error in Yocto (do_install)

DISCUSSION [email protected] 2 participants 2 messages Apr 14, 2020

lore
Share & tools
lore
#0 lore raw

I'm trying to generate html docs using meson build. I used gnome.gtkdoc() method for this (meson build system).

Following is my meson.build file

Quoted 20 lines

project('mydoc', 'c',
version: '0.1.0')

gnome = import('gnome')

glib_prefix = dependency('glib-2.0').get_pkg config_variable('prefix') glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html') docpath = join_paths(get_option('datadir '), 'gtk-doc', 'html')

content_files = [
'docbook-mydoc.xml',
]
gnome.gtkdoc('mydoc',
main_xml : 'main-doc.xml',
src_dir : [
join_paths(meson.source_root() )
],
fixxref_args: [
'--html-dir=' + (gnome.gtkdoc_html_dir(meson.p roject_name())),

Quoted 8 lines

'--extra-dir=@0@'.format(join_ paths(glib_docpath, 'glib')), '--extra-dir=@0@'.format(join_ paths(glib_docpath, 'gobject')), '--extra-dir=@0@'.format(join_ paths(glib_docpath, 'gio')), ],
content_files: content_files,
install : true,
install_dir: join_paths(meson.source_root() , 'doc') )

Above meson.build works fine & generates html pages in SDK environment (generated by yocto). I've problem when running above meson.build in Yocto. It gives me Permission denied error while do_install operation.

*ERROR:*

Quoted 14 lines

ERROR: ['gtkdoc-mkhtml', '--path=/home/user/yocto/build -zeus/tmp/work/cortexa7t2hf- neon-fslc-linux-gnueabi/mydoc/ 1.0.0-r0/git/:/home/user/ yocto/build-zeus/tmp/work/ cortexa7t2hf-neon-fslc-linux- gnueabi/mydoc/1.0.0-r0/build/' , 'mydoc', '../main-doc.xml'] failed with status 1 Traceback (most recent call last):
File "/home/user/yocto/build-zeus/t mp/work/cortexa7t2hf-neon-fslc -linux-gnueabi/mydoc/1.0.0-r0/ recipe-sysroot-native/usr/bin/ gtkdoc-mkhtml", line 51, in sys.exit(mkhtml.run(options)) File "/home/user/yocto/build-zeus/t mp/work/cortexa7t2hf-neon-fslc -linux-gnueabi/mydoc/1.0.0-r0/ recipe-sysroot-native/usr/ share/gtk-doc/python/gtkdoc/ mkhtml.py", line 93, in run quiet] + remaining_args + [gtkdocdir + '/gtk-doc.xsl', document]) File "/home/user/yocto/build-zeus/t mp/work/cortexa7t2hf-neon-fslc -linux-gnueabi/mydoc/1.0.0-r0/ recipe-sysroot-native/usr/ share/gtk-doc/python/gtkdoc/ mkhtml.py", line 42, in run_xsltproc return subprocess.call(command + args)
File "/home/user/yocto/build-zeus/t mp/work/cortexa7t2hf-neon-fslc -linux-gnueabi/mydoc/1.0.0-r0/

Quoted 8 lines

recipe-sysroot-native/usr/lib/ python3.7/subprocess.py", line 339, in call with Popen(*popenargs, **kwargs) as p: File "/home/user/yocto/build-zeus/t mp/work/cortexa7t2hf-neon-fslc -linux-gnueabi/mydoc/1.0.0-r0/ recipe-sysroot-native/usr/lib/ python3.7/subprocess.py", line 800, in init restore_signals, start_new_session) File "/home/user/yocto/build-zeus/t mp/work/cortexa7t2hf-neon-fslc -linux-gnueabi/mydoc/1.0.0-r0/ recipe-sysroot-native/usr/lib/ python3.7/subprocess.py", line 1551, in _execute_child raise child_exception_type(errno_num , err_msg, err_filename) PermissionError: [Errno 13] Permission denied: ''

I'm not sure why its giving permission denied error. Any help will be appreciated.

#1 lore raw

You need to show the recipe as well. I'd suggest you take an existing recipe that uses meson and has gtk-doc enabled, and see how it's done in the source code of the component. fixxref_args in particular look suspicious to me, maybe you could try removing them.

Alex

Quoted 69 lines · On Tue, 14 Apr 2020 at 11:27, <[email protected]> wrote:

I'm trying to generate html docs using meson build. I used gnome.gtkdoc() method for this (meson build system).

Following is my meson.build file

project('mydoc', 'c',
version: '0.1.0')

gnome = import('gnome')

glib_prefix = dependency('glib-2.0').get_pkgconfig_variable('prefix') glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html') docpath = join_paths(get_option('datadir'), 'gtk-doc', 'html')

content_files = [
'docbook-mydoc.xml',
]
gnome.gtkdoc('mydoc',
main_xml : 'main-doc.xml',
src_dir : [
join_paths(meson.source_root())
],
fixxref_args: [

      '--html-dir=' + (gnome.gtkdoc_html_dir(meson.project_name())),
      '--extra-dir=@0@'.format(join_paths(glib_docpath, 'glib')),
      '--extra-dir=@0@'.format(join_paths(glib_docpath, 'gobject')),
      '--extra-dir=@0@'.format(join_paths(glib_docpath, 'gio')),
    ],

content_files: content_files,
install : true,
install_dir: join_paths(meson.source_root(), 'doc')
)

Above meson.build works fine & generates html pages in SDK environment (generated by yocto). I've problem when running above meson.build in Yocto. It gives me Permission denied error while do_install operation.

*ERROR:*

ERROR: ['gtkdoc-mkhtml','--path=/home/user/yocto/build -zeus/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/mydoc/ 1.0.0-r0/git/:/home/user/yocto/build-zeus/tmp/work/ cortexa7t2hf-neon-fslc-linux-gnueabi/mydoc/1.0.0-r0/build/','mydoc', '../main-doc.xml'] failed with status 1Traceback (most recent call last):File "/home/user/yocto/build-zeus/tmp/work/cortexa7t2hf-neon-fslc -linux-gnueabi/mydoc/1.0.0-r0/recipe-sysroot-native/usr/bin/ gtkdoc-mkhtml",line 51, in sys.exit(mkhtml.run(options)) File "/home/user/yocto/build-zeus/tmp/work/cortexa7t2hf-neon-fslc -linux-gnueabi/mydoc/1.0.0-r0/recipe-sysroot-native/usr/ share/gtk-doc/python/gtkdoc/mkhtml.py",line 93, in run quiet] + remaining_args + [gtkdocdir + '/gtk-doc.xsl',document])File "/home/user/yocto/build-zeus/tmp/work/cortexa7t2hf-neon-fslc -linux-gnueabi/mydoc/1.0.0-r0/recipe-sysroot-native/usr/ share/gtk-doc/python/gtkdoc/mkhtml.py",line 42, in run_xsltproc return subprocess.call(command + args)File "/home/user/yocto/build-zeus/t mp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/mydoc/1.0.0-r0/ recipe-sysroot-native/usr/lib/python3.7/subprocess.py",line 339, in call with Popen(*popenargs, **kwargs) as p:File "/home/user/yocto/build-zeus/t mp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/mydoc/1.0.0-r0/ recipe-sysroot-native/usr/lib/python3.7/subprocess.py",line 800, in init restore_signals, start_new_session)File "/home/user/yocto/build-zeus/t mp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/mydoc/1.0.0-r0/ recipe-sysroot-native/usr/lib/python3.7/subprocess.py",line 1551, in _execute_child raise child_exception_type(errno_num,err_msg, err_filename) PermissionError: [Errno 13] Permission denied:''

I'm not sure why its giving permission denied error. Any help will be appreciated.