<?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>10944</bug_id>
          
          <creation_ts>2017-01-19 12:14:03 +0000</creation_ts>
          <short_desc>syslog: don&apos;t use update-alternatives for init scripts</short_desc>
          <delta_ts>2017-12-04 19:42:30 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.5</target_milestone>
          <dependson>9675</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Markus Lehtonen">markus.lehtonen</reporter>
          <assigned_to name="Markus Lehtonen">markus.lehtonen</assigned_to>
          <cc>mark.asselstine</cc>
    
    <cc>markus.lehtonen</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>oleksandr.poznyak</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>69931</commentid>
    <comment_count>0</comment_count>
    <who name="Markus Lehtonen">markus.lehtonen</who>
    <bug_when>2017-01-19 12:14:03 +0000</bug_when>
    <thetext>This bug is a follow-up to bug 10433.

Update-alternatives should not be used for managing init scripts. That causes problems in package scriptlets which enable/stop/start services at package (un)installation time. Syslog packages (busybox-syslog and sysklogd) are the only ones in oe-core doing this and they should be fixed. Currently, we don&apos;t see any crashes because of a workaround in update-alternatives and update-rc.d bbclasses (bug 10433). This workaround is basically only targeting the two syslog packages and a proper fix would be to revert the workaround and change the syslog packages to not use update-alternatives.

I already have a patchset at
http://git.openembedded.org/openembedded-core-contrib/log/?h=marquiz/fixes-10433

However, this cannot be merged, yet, because of bugs in opkg and smartpm.

In addition, fixing this bug should automatically resolve bug 8688.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77907</commentid>
    <comment_count>1</comment_count>
    <who name="Markus Lehtonen">markus.lehtonen</who>
    <bug_when>2017-11-01 14:02:51 +0000</bug_when>
    <thetext>Removing the dependency on bug 10777 as opkg now uses libsolv by default which fixes the opkg-issues that were blocking this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77908</commentid>
    <comment_count>2</comment_count>
    <who name="Markus Lehtonen">markus.lehtonen</who>
    <bug_when>2017-11-01 14:03:42 +0000</bug_when>
    <thetext>Patchset sent for review:
https://patchwork.openembedded.org/series/9573/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77909</commentid>
    <comment_count>3</comment_count>
    <who name="Markus Lehtonen">markus.lehtonen</who>
    <bug_when>2017-11-01 14:04:56 +0000</bug_when>
    <thetext>Moving milestone to 2.5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78259</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-11-16 16:29:26 +0000</bug_when>
    <thetext>*** Bug 11343 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78485</commentid>
    <comment_count>5</comment_count>
    <who name="Markus Lehtonen">markus.lehtonen</who>
    <bug_when>2017-12-04 11:37:34 +0000</bug_when>
    <thetext>Fixed in oe-master:
http://git.openembedded.org/openembedded-core/commit/?id=061fa614cec49deb0374ccadf3013e5cc8ad2c51 (et al.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78495</commentid>
    <comment_count>6</comment_count>
    <who name="Mark">mark.asselstine</who>
    <bug_when>2017-12-04 19:21:52 +0000</bug_when>
    <thetext>This seems to cause a conflict with inetutils in meta-networking. For example attempting to build an image which has both sysklogd and inetutils you will see:

---

[log_check] warning: %post(inetutils-doc-1.9.4-r0.core2_64) scriptlet failed, exit status 1

ERROR: cube-desktop-0.2-r0 do_rootfs: [log_check] cube-desktop: found 1 error message in the logfile:
[log_check] update-alternatives: Error: not linking .../tmp/work/genericx86_64-overc-linux/cube-desktop/0.2-r0/rootfs/usr/share/man/man8/syslogd.8 to /usr/share/man/man8/syslogd.8.inetutils since .../tmp/work/genericx86_64-overc-linux/cube-desktop/0.2-r0/rootfs/usr/share/man/man8/syslogd.8 exists and is not a link

---

I am looking into this now but wanted to raise this issue to keep others informed. Should the alternatives for docs be affected by this change or is this indicative of the fact that maybe they should be available as alternatives still?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78496</commentid>
    <comment_count>7</comment_count>
    <who name="Mark">mark.asselstine</who>
    <bug_when>2017-12-04 19:42:30 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; This seems to cause a conflict with inetutils in meta-networking. For
&gt; example attempting to build an image which has both sysklogd and inetutils
&gt; you will see:
&gt; 
&gt; ---
&gt; 
&gt; [log_check] warning: %post(inetutils-doc-1.9.4-r0.core2_64) scriptlet
&gt; failed, exit status 1
&gt; 
&gt; ERROR: cube-desktop-0.2-r0 do_rootfs: [log_check] cube-desktop: found 1
&gt; error message in the logfile:
&gt; [log_check] update-alternatives: Error: not linking
&gt; .../tmp/work/genericx86_64-overc-linux/cube-desktop/0.2-r0/rootfs/usr/share/
&gt; man/man8/syslogd.8 to /usr/share/man/man8/syslogd.8.inetutils since
&gt; .../tmp/work/genericx86_64-overc-linux/cube-desktop/0.2-r0/rootfs/usr/share/
&gt; man/man8/syslogd.8 exists and is not a link
&gt; 
&gt; ---
&gt; 
&gt; I am looking into this now but wanted to raise this issue to keep others
&gt; informed. Should the alternatives for docs be affected by this change or is
&gt; this indicative of the fact that maybe they should be available as
&gt; alternatives still?

Riffing on busybox-syslog and friends sending a patch to add the rconflicts for inetutils-syslogd addresses this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>