Subject: bug#503: Let's fork iwd for Devuan

From: Job Bautista <[email-masked]>
Date: Wed, 05 Aug 2020 02:56:46 +0000

Package: iwd
Version: 1.8-1
Severity: grave
Tags: patch
Justification: renders package unusable

Dear Devuan developers,

I had tried all possible routes that would avoid having to fork iwd. I sent a
bug report to the Debian maintainer and asked them to support sysvinit. I
asked upstream to consider supporting multiple inits. Both of them failed.
The upstream made it final that they will only support systemd, and those who
wish to make iwd support sysvinit will have to be done by downstream. So I
would like to volunteer being the maintainer for a Devuan fork of iwd. I was
able to make iwd work in my Chimaera system, thanks to the kind members of
the dev1galaxy.org forum. The VCS of this fork will be located at
https://git.devuan.org/jobbautista9/iwd. As you can see, I already started
forking iwd. The only thing I haven't done yet is to update the changelog,
which I will do shortly after finishing this bug report.

The reason why this bug's severity is grave is because the current version of
this package doesn't start at boot. I could have used severity important if
it exists in Devuan BTS...

-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 4 (chimaera/ceres)
Release:	testing/unstable
Codename:	n/a
Architecture: x86_64

Kernel: Linux 5.7.0-2-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=en_PH.UTF-8, LC_CTYPE=en_PH.UTF-8 (charmap=UTF-8), LANGUAGE=en_PH:en
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages iwd depends on:
ii  libc6         2.31-2
ii  libreadline8  8.0-4

iwd recommends no packages.

iwd suggests no packages.

-- no debconf information

---

From: Mark Hindley <[email-masked]>
Date: Wed, 5 Aug 2020 13:07:45 +0100

On Wed, Aug 05, 2020 at 02:56:46AM +0000, Job Bautista wrote:
> would like to volunteer being the maintainer for a Devuan fork of iwd.

Thanks for that offer. I will try to review your tree today.

Mark

---

From: Mark Hindley <[email-masked]>
Date: Wed, 5 Aug 2020 13:23:34 +0100

Job,

Many thanks for taking this on.

A few comments on https://git.devuan.org/jobbautista9/iwd

 - The branch should be suites/unstable.
 - Add Origin: Devuan to d/control
 - You need to update d/gbp.conf, in particular debian-branch, debian-tag and
   pristine-tar. Devuan avoids using pristine-tar.
 - Vcs-* fields in d/control should be https://git.devuan.org/devuan/iwd (where
   the definitive source will be once it is accepted)
 - You don't need quilt patches for changes in debian/. So you can just create
   the initscript as debian/iwd.init.
 - You shouldn't add the initscript control fragments to the maintscripts
   manually, debhelper should do it (correctly) for you.

Other than the last item, these are documented in the Devuan Maintainers
Guide[1]. If anything is not clear do ping me on #devuan-dev.

Thanks

Mark (LeePen)

[1]  https://git.devuan.org/devuan/documentation/src/branch/master/maintainers

---

From: Jérôme Bardot <[email-masked]>
Date: Wed, 5 Aug 2020 15:58:58 +0200

i also will ask for it, also maybe try to use
https://github.com/dylanaraps/eiwd look like a good alternative
because of the no dbus functionalities ?

Le mer. 5 août 2020 à 14:31, Mark Hindley <[email-masked]> a écrit :
> _______________________________________________
> devuan-dev internal mailing list
> [email-masked]
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/devuan-dev

---

From: Job Bautista <[email-masked]>
Date: Thu, 06 Aug 2020 04:43:59 +0000

Hi, I updated my git repo to address your comments. Are there anything else I need to do? Thanks :)

Job Bautista

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

---

From: Job Bautista <[email-masked]>
Date: Thu, 06 Aug 2020 04:54:29 +0000

Hi Jérôme, that looks like a good alternative indeed. It should be packaged by
Debian though, not Devuan. However, I don't think I can maintain more than two
packages. I already have a a sponsorship request pending on
mentors.debian.net for the xfce4-alsa-plugin package.[1] And now I'm going to
maintain a fork of iwd. So you will have to ask someone else to package eiwd.

I will ask the eiwd dev to consider adding support for sysvinit though. They
might be more open to supporting multiple inits than their upstream iwd. Or
they might just reject it because they want to modify as little as possible
from upstream. Who knows...

Job Bautista

[1]: https://mentors.debian.net/package/xfce4-alsa-plugin/

> Le mer. 5 août 2020 à 14:31, Mark Hindley [email-masked] a écrit :
>

---

From: Job Bautista <[email-masked]>
Date: Thu, 06 Aug 2020 10:59:30 +0000

> from upstream. Who knows...

For some reason I can't sign up in GitHub, even though I disabled my uBlock and HTTPS Everywhere add-ons. Seems like someone has to ask the eiwd dev to support sysvinit as well...

Job Bautista

---

From: Bardot Jérôme <[email-masked]>
Date: Thu, 6 Aug 2020 17:28:12 +0200

I just check in testing debian and

#apt show iwd

Package: iwd
Version: 1.8-1
Priority: optional
Section: net
Maintainer: Andreas Henriksson <[email-masked]>
Installed-Size: 2 019 kB
Depends: libc6 (>= 2.27), libreadline8 (>= 6.0)
Download-Size: 483 kB
APT-Manual-Installed: yes
APT-Sources: tor+http://ftp.fr.debian.org/debian testing/main amd64 Packages
Description: wireless daemon for Linux
 Minimalistic wireless daemon that uses modern Linux interfaces like
 cfg80211 and nl80211 (netlink). The daemon provides a D-Bus API.
 .
 The daemon can be controlled from the command line with the included
 iwctl client utility.
 .
 The included iwmon utility can be used to monitor the 802.11 subsystem
 generic netlink commands and events. It uses the nlmon kernel driver
 from Linux 3.10 and later.

If it s the right package it’s look like their is no dependencies to
systemd.

---

From: Job Bautista <[email-masked]>
Date: Fri, 07 Aug 2020 02:12:33 +0000

It's not declared in Depends, but iwd has a hidden dependency on systemd. On
non-systemd systems, iwd doesn't autostart on boot, requiring you to start it
manually or create an initscript for it. Debian packages are supposed to work
out-of-the-box when you install them. If today's iwd was being packaged
before systemd became the default init of Debian, no sane DD would have
sponsored or accepted it into the main archive.

iwd also has a Build-Depends on systemd, which means it's impossible to build
iwd on Devuan without disabling the compilation of the systemd service on
debian/rules. Or maybe it does build without systemd even when the systemd
service compilation is enabled. I haven't tested that yet I think.

Job Bautista

> Package: iwd
> Version: 1.8-1
> Priority: optional
> Section: net
> Maintainer: Andreas Henriksson [email-masked]
> Installed-Size: 2 019 kB

> > mentors.debian.net for the xfce4-alsa-plugin package.1 And now I'm going to
> > On Wednesday, August 5, 2020 9:58 PM, Jérôme Bardot [email-masked] wrote:
> > 

> > > > Guide1. If anything is not clear do ping me on #devuan-dev.
> > > > Thanks
> > > > Mark (LeePen)
> > > > 1 https://git.devuan.org/devuan/documentation/src/branch/master/maintainers
> >

---

From: Bardot Jérôme <[email-masked]>
Date: Fri, 7 Aug 2020 12:14:16 +0200

If it’s really the case it’s not fair and not profesionnal at all.

For me the fact is the current situation is not suitable at all. debian
and devuan need a way to select init system and apt install related
packages even if the default package is systemd. Something like that.

mypackage
mypackage-sysinit

For the current problem i guess if we do the init file maybe we can
upstream push request it instead of forking it ?

Also i don t know state of devuan's $$ ressources but it will be
necessary to have some kind of testing of all package (pseudo code)

service package start
if $? == 0
 ok
else
 notok

And also scenario cases to improve qualities because it’s the only way
to keep diversity on long term. (a day i will have time to weekly meeting)

---

From: Jérôme Bardot <[email-masked]>
Date: Fri, 7 Aug 2020 12:34:05 +0200

I just sysd2v v0.3 the /lib/systemd/system/iwd.service and the start
look good. Process is in ps auxf |grep "iwd"
I’m currently not able to be sure furthermore if it’s really working i
have to read more about init script  (never know what is needed or/and
for what) iw and connman integration there is a systemd script for
that to

cat /usr/share/dbus-1/system-services/net.connman.iwd.service
[D-BUS Service]
Name=net.connman.iwd
Exec=/bin/false
User=root
SystemdService=iwd.service

but not sure it s a really usefull one

---

From: Mark Hindley <[email-masked]>
Date: Fri, 7 Aug 2020 16:59:59 +0100

> Hi, I updated my git repo to address your comments. Are there anything else I need to do? Thanks :)

Thanks.

I don't see anything else in the packaging and it builds for me.

I will fork the repo to https://git.devuan.org/devuan/ and add you as
maintainer. You can then tag and trigger a build when you are ready.

Thanks very much.

Mark

---

From: "Devuan bug Tracking System" <[email-masked]>
Date: Sun, 09 Aug 2020 02:33:09 +0000

This is an automatic notification regarding your bug report
which was filed against the iwd package:

#503: Let's fork iwd for Devuan

It has been closed by [email-masked].

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact [email-masked] by
replying to this email.

-- 
503: https://bugs.devuan.org/cgi/bugreport.cgi?bug=503
Devuan Bug Tracking System
Contact [email-masked] with problems

Subject: #503: fixed in src:iwd version 1.8-1+devuan1
From: [email-masked]
To: [email-masked]
Date: Sun, 09 Aug 2020 01:25:24 +0000

Version: 1.8-1+devuan1

Source package iwd (1.8-1+devuan1) added to Devuan suite unstable.

This closes bug report 503.

Thanks

DAK managing the Devuan archive

Format: 1.8
Date: Wed, 05 Aug 2020 10:59:42 +0800
Source: iwd
Binary: iwd
Architecture: source
Version: 1.8-1+devuan1
Distribution: unstable
Urgency: medium
Maintainer: Job Bautista <[email-masked]>
Changed-By: Job Bautista <[email-masked]>
Description:
 iwd        - wireless daemon for Linux
Closes: 503
Changes:
 iwd (1.8-1+devuan1) unstable; urgency=medium
 .
   * Initial release built specifically for Devuan. (Closes: #503)
   * Disabled compilation of systemd service.
   * Added a sysvinit script for non-systemd users.
Checksums-Sha1:
 92404ac150c0c03111e34ac910d0bdc3f1a2e08b 1507 iwd_1.8-1+devuan1.dsc
 42f69f39704f306ada876c6fb990d7c874722f54 7608 iwd_1.8-1+devuan1.debian.tar.xz
 9e34da7316457cc6d0f452fed0e5f5f51a3ed10e 3011 iwd_1.8-1+devuan1_source.buildinfo
Checksums-Sha256:
 3b75601f8097e95a42e4eb64210f2c7154be14f1278d048d18f7a9c4adb922f5 1507 iwd_1.8-1+devuan1.dsc
 ce8232da0e06b6856b58895126eab349cad37de69a3ad61772e3693fe43f707f 7608 iwd_1.8-1+devuan1.debian.tar.xz
 cdb04fa3943aa40e078cbdee158c77bf5be7123922ba11582a156f110625c217 3011 iwd_1.8-1+devuan1_source.buildinfo
Files:
 1efcb46515f79ef2606758cdd7325d8b 1507 net optional iwd_1.8-1+devuan1.dsc
 cfa1782beaa12b0c947171c9c55f74e6 7608 net optional iwd_1.8-1+devuan1.debian.tar.xz
 ea970c8b0fa7dc5d1fe76a6e080fc7f0 3011 net optional iwd_1.8-1+devuan1_source.buildinfo

Subject: Let's fork iwd for Devuan
From: Job Bautista <[email-masked]>
To: "[email-masked]" <[email-masked]>
Date: Wed, 05 Aug 2020 02:56:46 +0000

Package: iwd
Version: 1.8-1
Severity: grave
Tags: patch

Dear Devuan developers,

-- System Information:
Distributor ID:	Devuan