<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>4325</bug_id>
          
          <creation_ts>2013-04-17 08:24:07 +0000</creation_ts>
          <short_desc>Changing DISTRO_FEATURES (remove systemd) causes No keyboard in X when building sysvinit</short_desc>
          <delta_ts>2013-10-07 13:34:29 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>General Runtime</product>
          <component>General Runtime</component>
          <version>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>Release note for 1.4</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stefan Stanacar">sstncr</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>32264</commentid>
    <comment_count>0</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2013-04-17 08:24:07 +0000</bug_when>
    <thetext>Build Configuration:
BB_VERSION        = &quot;1.18.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Fedora-18&quot;
TARGET_SYS        = &quot;x86_64-poky-linux&quot;
MACHINE           = &quot;qemux86-64&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.4&quot;
TUNE_FEATURES     = &quot;m64&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        
meta-yocto-bsp    = &quot;dylan:61c6a8a93ec76ad4e6d98a06df489c8ae75e39c6&quot;



1 - add to local.conf

DISTRO_FEATURES_append = &quot; systemd&quot;
VIRTUAL-RUNTIME_init_manager = &quot;systemd&quot;

2 - bitbake core-image-sato - mouse and keyboard work in X


3 - remove the lines added to local.conf

4 - bitbake core-image-sato - mouse and keyboard don&apos;t work anymore in X

What happens here is that:
- udev-utils package for the systemd image installs udevadm in /bin/udevadm
- udev-utils for a _clean_ build (wipe tmp) with sysvinit installs udevadm in /usr/bin/udevadm
- but when building the second (above) core-image-sato udevadm remains in /bin/udev but in the sysvinit version udevadm is run from /etc/init.d/udev where the path is hardcoded as /usr/bin/udevadm

[stefans@firebird poky]$ grep -ir udevadm *
meta/recipes-core/udev/udev/init:    /usr/bin/udevadm control --env=STARTUP=1
meta/recipes-core/udev/udev/init:            /usr/bin/udevadm trigger --action=add --subsystem-nomatch=tty --subsystem-nomatch=mem --subsystem-nomatch=vc --subsystem-nomatch=vtconsole --subsystem-nomatch=misc --subsystem-nomatch=dcon --subsystem-nomatch=pci_bus  --subsystem-nomatch=graphics	 --subsystem-nomatch=backlight --subsystem-nomatch=video4linux	--subsystem-nomatch=platform
meta/recipes-core/udev/udev/init:            (/usr/bin/udevadm settle --timeout=3; /usr/bin/udevadm control --env=STARTUP=)&amp;
meta/recipes-core/udev/udev/init:            /usr/bin/udevadm trigger --action=add
meta/recipes-core/udev/udev/init:            /usr/bin/udevadm settle
meta/recipes-core/udev/udev.inc:FILES_udev-utils = &quot;${bindir}/udevadm&quot;


meta/recipes-core/systemd/systemd/init:    udevadm control --env=STARTUP=1
meta/recipes-core/systemd/systemd/init:            udevadm trigger --action=add --subsystem-nomatch=tty --subsystem-nomatch=mem --subsystem-nomatch=vc --subsystem-nomatch=vtconsole --subsystem-nomatch=misc --subsystem-nomatch=dcon --subsystem-nomatch=pci_bus  --subsystem-nomatch=graphics	 --subsystem-nomatch=backlight --subsystem-nomatch=video4linux	--subsystem-nomatch=platform
meta/recipes-core/systemd/systemd/init:            (udevadm settle --timeout=3; udevadm control --env=STARTUP=)&amp;
meta/recipes-core/systemd/systemd/init:            udevadm trigger --action=add</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32266</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-04-17 08:43:51 +0000</bug_when>
    <thetext>Ross gave a pretty good explaintion of this. The issue is the package overlap between the systemd and the udev recipes. When you remove systemd from DISTRO_FEATURES, not all the packages from systemd get removed from the sysroot and this breaks things.

We have *never* claimed to support changing DISTRO_FEATURES on an existing build directory so this use case is not supported. We should however release note it.

Its possible the changes needed for 4102 may allow this usecase to work better too but this is 1.5 enhancement material.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34191</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-06-27 15:07:58 +0000</bug_when>
    <thetext>This is not a supported use case!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37684</commentid>
    <comment_count>3</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2013-10-07 13:34:29 +0000</bug_when>
    <thetext>.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>