Michael Tokarev
2024-Oct-26 11:03 UTC
[Samba] my debian/ubuntu samba packages: update to samba-ad-dc split
Hi! A while back, with 4.20.1+dfsg-2 version (26 May 2024), I split AD-DC functionality from samba package to a separate samba-ad-dc package. Adding a NEWS entry for this, which suggests to install samba-ad-dc package separately for the cases when it is needed. This turned out to be a bit problematic from a few points of view. First of all, despite the NEWS item and a big fat warning from postinst, it turned out quite a few people missed this info, which resulted in their AD-DCs being broken (since the required components aren't installed). Second, I ignored a bit tricky to implement cleanup of the startup files (initscripts) of samba-ad-dc from the samba package. My reasoning was that initscripts are mostly obsolete these days and there's no need to spend much time on them. However, dpkg is "helpful" here and on upgrades, kept the startup files in place (marking them "obsolete"), - again, I thought it is just cosmetic, but it turned out to be a bit more than that, since now systemd issued warnings about an initscript which does not have native systemd service file. See https://bugs.debian.org/1085617 for more details. So I've updated the debian/ubuntu samba packages now, both for 4.20 and 4.21 series, with proper cleanup of the leftover startup scripts, and with added Recommends of samba-ad-dc by samba. This might come as a surprise for the ones who already upgraded samba packages to the split version and don't use ad-dc functionality - if you don't disable installing recommends, the new update will install samba-ad-dc for you, even if you don't use it. In case you don't use ad-dc functionality, feel free to remove samba-ad-dc package. Or you can upgrade samba with --no-install-recommends flag to apt. For ones who disable apt recommends, nothing changed in this version besides proper cleaning up of the stale startup files for samba-ad-dc, so systemd et al wont complain anymore. Hopefully this will clean up all the issues from this split, - for the users of my repository and for debian bookworm-backorts (not uploaded yet) and for future versions of debian and ubuntu. Thanks, /mjt
Elias Pereira
2024-Oct-26 11:30 UTC
[Samba] my debian/ubuntu samba packages: update to samba-ad-dc split
Thanks for your work, Michael!!! On Sat, Oct 26, 2024 at 8:04?AM Michael Tokarev via samba < samba at lists.samba.org> wrote:> Hi! > > A while back, with 4.20.1+dfsg-2 version (26 May 2024), > I split AD-DC functionality from samba package to a separate > samba-ad-dc package. Adding a NEWS entry for this, which > suggests to install samba-ad-dc package separately for the > cases when it is needed. > > This turned out to be a bit problematic from a few points > of view. > > First of all, despite the NEWS item and a big fat warning > from postinst, it turned out quite a few people missed this > info, which resulted in their AD-DCs being broken (since > the required components aren't installed). > > Second, I ignored a bit tricky to implement cleanup of the > startup files (initscripts) of samba-ad-dc from the samba > package. My reasoning was that initscripts are mostly > obsolete these days and there's no need to spend much > time on them. However, dpkg is "helpful" here and on > upgrades, kept the startup files in place (marking them > "obsolete"), - again, I thought it is just cosmetic, but > it turned out to be a bit more than that, since now > systemd issued warnings about an initscript which does > not have native systemd service file. See > https://bugs.debian.org/1085617 for more details. > > So I've updated the debian/ubuntu samba packages now, > both for 4.20 and 4.21 series, with proper cleanup of > the leftover startup scripts, and with added Recommends > of samba-ad-dc by samba. > > This might come as a surprise for the ones who already > upgraded samba packages to the split version and don't > use ad-dc functionality - if you don't disable installing > recommends, the new update will install samba-ad-dc for > you, even if you don't use it. In case you don't use > ad-dc functionality, feel free to remove samba-ad-dc > package. Or you can upgrade samba with --no-install-recommends > flag to apt. > > For ones who disable apt recommends, nothing changed in > this version besides proper cleaning up of the stale > startup files for samba-ad-dc, so systemd et al wont > complain anymore. > > Hopefully this will clean up all the issues from this > split, - for the users of my repository and for > debian bookworm-backorts (not uploaded yet) and for > future versions of debian and ubuntu. > > Thanks, > > /mjt > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >-- Elias Pereira
Possibly Parallel Threads
- my debian/ubuntu samba packages: update to samba-ad-dc split
- my debian/ubuntu samba packages: update to samba-ad-dc split
- my debian/ubuntu samba packages: update to samba-ad-dc split
- Upgrading from samba version 4.20.5 to 4.21.1 using Debian Bookworm-backports
- mjt debian/ubuntu samba builds update