Bug 7184 - supervisord depends on libxml2 implicitly
Summary: supervisord depends on libxml2 implicitly
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 normal
Target Milestone: 2014.08
Assignee: Thomas De Schampheleire
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-10 11:19 UTC by Sebastian Himberger
Modified: 2014-06-15 14:12 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Himberger 2014-06-10 11:19:31 UTC
When using supervisord without libxml2 it complains because it can not use the python xml module. apparently python needs libxml2 present to build the xml module but happily builds without it and also works (as long as you dont use the module). I would suggest either adding libxml2 to python or the supervisord package as a dependency since supervisord fails to start without xml support.
Comment 1 Thomas De Schampheleire 2014-06-10 11:26:20 UTC
Thanks for the report.
Can you provide the steps to reproduce? Is running 'supervisord' without parameters sufficient? Any additional steps?
Comment 2 Thomas De Schampheleire 2014-06-10 12:09:53 UTC
I made a build for qemu with only supervisord, and during boot I get another error:

Starting supervisord: Traceback (most recent call last):
  File "/usr/bin/supervisord", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
Comment 3 Sebastian Himberger 2014-06-10 12:18:43 UTC
Sorry, I forgot that completely. You also need python-setuptools which is another dependency I added manually.
Comment 4 Thomas De Schampheleire 2014-06-10 12:20:05 UTC
(In reply to comment #2)
> I made a build for qemu with only supervisord, and during boot I get another
> error:
> 
> Starting supervisord: Traceback (most recent call last):
>   File "/usr/bin/supervisord", line 5, in <module>
>     from pkg_resources import load_entry_point
> ImportError: No module named pkg_resources

After explicitly adding python-setuptools to the configuration, this error disappeared. This means that supervisord has a missing runtime dependency on python-setuptools.

Note that supervisord starts correctly after this, even without xml in my configuration. Please clarify which steps are needed to reproduce the problem.

The defconfig I am using is:
BR2_x86_64=y
BR2_DL_DIR="~/repo/contrib/dl"
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TARGET_GENERIC_GETTY_PORT="tty1"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.13.5"
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/x86_64/linux-3.13.config"
BR2_PACKAGE_PYTHON=y
BR2_PACKAGE_PYTHON_SETUPTOOLS=y
BR2_PACKAGE_SUPERVISOR=y
BR2_TARGET_ROOTFS_EXT2=y
# BR2_TARGET_ROOTFS_TAR is not set
Comment 5 Thomas De Schampheleire 2014-06-11 19:18:56 UTC
A patch fixing the dependency on python-setuptools was sent to the list: 
http://patchwork.ozlabs.org/patch/358871/

Please let me know if there is another problem according to you, or all is fixed now. Thanks.
Comment 6 Thomas De Schampheleire 2014-06-15 14:12:54 UTC
Problem assumed fixed with commit http://git.buildroot.org/buildroot/commit/?id=c3e3b2a20848a610040411bd00d8f1d7912e284c, please reopen if there is still something wrong.