<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>41458</bug_id>
          
          <creation_ts>2021-11-29 00:47:04 +0300</creation_ts>
          <short_desc>Требует /bin/systemctl</short_desc>
          <delta_ts>2021-11-29 20:00:11 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>bluez</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mikhail Efremov">sem</reporter>
          <assigned_to name="Valery Inozemtsev">shrek</assigned_to>
          <cc>antohami</cc>
    
    <cc>aris</cc>
    
    <cc>lakostis</cc>
    
    <cc>ldv</cc>
    
    <cc>shaba</cc>
    
    <cc>shrek</cc>
    
    <cc>zerg</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>205400</commentid>
    <comment_count>0</comment_count>
    <who name="Mikhail Efremov">sem</who>
    <bug_when>2021-11-29 00:47:04 +0300</bug_when>
    <thetext>Явно требует /bin/systemd-sysctl, что стало критично для систем sysvinit, т.к. провайдит это только systemd (с версии 248.3-alt2).
Пакет systemd-utils-standalone симлинка /bin/systemd-sysctl -&gt; /sbin/systemd-sysctl не имеет и /bin/systemd-sysctl не провайдит. Это, может, тоже не есть хорошо, но в любом случае в bluez лучше требовать /sbin/systemd-sysctl.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>205403</commentid>
    <comment_count>1</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2021-11-29 04:33:41 +0300</bug_when>
    <thetext>Я ещё летом предлагал избавиться от зависимости, сделав как-то так:

@@ -26,7 +26,6 @@ Patch1: bluez-5.55-alt-firmware-path-fixes.patch
 Patch10: 0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch
 Obsoletes: obex-data-server &lt; 0.4.6-alt3
 Conflicts: udev-extras &lt; 169
-Requires(post,preun): /bin/systemctl
 
 BuildRequires: glib2-devel libudev-devel libdbus-devel libreadline-devel
 BuildRequires: systemd-devel gtk-doc
@@ -128,17 +127,17 @@ find %buildroot%_libdir -name \*.la -delete
 if [ $1 = 1 ]; then
 %post_service bluetoothd
        chkconfig bluetoothd on
-       /bin/systemctl --user --global preset obex.service &gt;/dev/null 2&gt;&amp;1 || :
+       ln -s %prefix/lib/systemd/user/obex.service %_sysconfdir/systemd/user/dbus-org.bluez.obex.service &gt;/dev/null 2&gt;&amp;1 || :
 fi
 
 %preun
 if [ $1 = 0 ]; then
 %preun_service bluetoothd
-       /bin/systemctl --user --global disable obex.service &gt;/dev/null 2&gt;&amp;1 || :
+       rm -f %_sysconfdir/systemd/user/dbus-org.bluez.obex.service || :
 fi
 
 %triggerin -- %name &lt; 5.54-alt5
-/bin/systemctl --user --global preset obex.service &gt;/dev/null 2&gt;&amp;1 || :
+ln -s %prefix/lib/systemd/user/obex.service %_sysconfdir/systemd/user/dbus-org.bluez.obex.service &gt;/dev/null 2&gt;&amp;1 || :
 
 %files
 %doc AUTHORS ChangeLog README

Но мой патч не приняли. Из-за этого я ещё тогда же перестал собирать регулярки sysv с bluez.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>205450</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2021-11-29 17:37:26 +0300</bug_when>
    <thetext>Не путайте пожалуйста /bin/systemd-sysctl (которого никогда не было) и /bin/systemctl.
/bin/systemctl безполезен на системах без systemd.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>205456</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2021-11-29 19:23:36 +0300</bug_when>
    <thetext>Исправил в bluez.git-5.62-alt2
Таск #290973</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>205458</commentid>
    <comment_count>4</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2021-11-29 19:39:03 +0300</bug_when>
    <thetext>$ rpmquery -Rp Sisyphus/files/x86_64/RPMS/*bluez* |grep sys
/bin/systemctl</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>205459</commentid>
    <comment_count>5</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2021-11-29 20:00:11 +0300</bug_when>
    <thetext>bluez-5.62-alt2 -&gt; sisyphus:

 Mon Nov 29 2021 Alexey Shabalin &lt;shaba@altlinux&gt; 5.62-alt2
 - Avoid /bin/systemctl requirements (ALT #41458).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>