Merge ~jchittum/ubuntu/+source/freeradius:plucky-remove-wtmpdb into ubuntu/+source/freeradius:ubuntu/devel

Proposed by John Chittum
Status: Approved
Approved by: git-ubuntu bot
Approved revision: not available
Proposed branch: ~jchittum/ubuntu/+source/freeradius:plucky-remove-wtmpdb
Merge into: ubuntu/+source/freeradius:ubuntu/devel
Diff against target: 65 lines (+24/-3)
4 files modified
debian/NEWS.Debian (+15/-0)
debian/changelog (+8/-0)
debian/freeradius-utils.install (+0/-1)
debian/rules (+1/-2)
Reviewer Review Type Date Requested Status
git-ubuntu bot Approve
Andreas Hasenack Approve
Canonical Server Reporter Pending
Review via email: mp+482226@code.launchpad.net

Description of the change

tested builds and installs locally and in PPA

https://launchpad.net/~jchittum/+archive/ubuntu/freeradius-2096611

radlast was not installed

$ apt-cache policy freeradius
freeradius:
  Installed: (none)
  Candidate: 3.2.7+dfsg-1ubuntu1~ppa2
  Version table:
     3.2.7+dfsg-1ubuntu1~ppa2 500
        500 https://ppa.launchpadcontent.net/jchittum/freeradius-2096611/ubuntu plucky/main amd64 Packages
     3.2.7+dfsg-1 500
        500 http://archive.ubuntu.com/ubuntu plucky/main amd64 Packages
$ sudo apt install freeradius
<snip>
$ radlast
Could not find command-not-found database. Run 'sudo apt update' to populate it.
radlast: command not found
$ which radlast

To post a comment you must log in.
Revision history for this message
Andreas Hasenack (ahasenack) :
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

What do you think about a d/NEWS.Debian entry? There is one already talking about the radlast problem, and acknowledging that a broken radlast script is being shipped. We could add one where we state that ubuntu has stopped shipping that script.

5181d9f... by John Chittum

d/NEWS add entry for Ubuntu specific change

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Sorry, I missed your update here. Just new commits don't trigger an email notification: it has to be an actual MP comment to get a notification that something changed in the PR :/

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

This looks good, thanks. But I think we need to ask the release team about it, even though we are dropping a command that doesn't work.

I'll give a +1 here, and sponsor once the release team ACKed the change. Would you mind getting them involved? Change the bug description slightly, putting the important TL;DR at the top. Perhaps this;

"""
This means the current version of freeradius in Plucky ships a command that is unusable, and removed in future versions. add a delta to stop shipping radlast, and ensure this delta is removed in subsequent syncs from Debian.
"""

And then show the relevant parts of the diff from this MP right below that. And add a release notes task to the bug, so that this change will be added to the release notes of 25.04. Finally, link to the PPA with the green builds and DEP8 tests, and then subscribe ubuntu-release.

review: Approve
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

I just triggered the DEP8 tests in your PPA.

Revision history for this message
git-ubuntu bot (git-ubuntu-bot) wrote :

Approvers: ahasenack, jchittum
Uploaders: ahasenack
MP auto-approved

review: Approve

Unmerged commits

5181d9f... by John Chittum

d/NEWS add entry for Ubuntu specific change

5b34c3c... by John Chittum

d/changelog update

9428c61... by John Chittum

d/rules and install: no longer compile radlast

radlast became an optional compile flag upstream.[0] Debian decided
to continue compiling with `--with-radlast` in 3.2.7. This leads to
including a tool that is unrunnable on Ubuntu (and Debian). Upstream has
completely removed radlast from future releases.[1] This puts us closer
to upstream, removing optional builds and installs

[0] https://github.com/FreeRADIUS/freeradius-server/commit/fece06e2f4984a1f4c227ba9ef3edf4a8ad5e2ee
[1] https://github.com/FreeRADIUS/freeradius-server/commit/b0f4123c84a0aeaa6fc393fd5e6fdaa0e0a86eaf

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/NEWS.Debian b/debian/NEWS.Debian
2index ef9b192..0c6d412 100644
3--- a/debian/NEWS.Debian
4+++ b/debian/NEWS.Debian
5@@ -1,3 +1,18 @@
6+freeradius (3.2.7+dfsg-1ubuntu1) plucky; urgency=medium
7+
8+ FreeRADIUS upstream has disabled the creation of radlast due to the
9+ deprecation of the last command. last was removed from Debian and Ubuntu
10+ due to not being year-2038 safe. Previously the FreeRADIUS Debian
11+ package introduced a dependency on wtmpdb, however wtpmdb is a replacement
12+ for system login tracking with PAM hooks and writing to an sqlite database.
13+ wtmpdb did not provide a wtmp file compatible last command.
14+
15+ Debian has chosen to continue shipping unusable radlast command until
16+ it is removed upstream. Ubuntu has made the choice to no longer compile
17+ radlast and include it in the package. As of 20250304, upstream source
18+ has already removed radlast and other older tools from FreeRADIUS.
19+ However they have not released those changes yet.
20+
21 freeradius (3.2.7+dfsg-1) unstable; urgency=medium
22
23 FreeRADIUS can write a log of logins to the radwtmp database meant to
24diff --git a/debian/changelog b/debian/changelog
25index c4d52e6..e42e2f0 100644
26--- a/debian/changelog
27+++ b/debian/changelog
28@@ -1,3 +1,11 @@
29+freeradius (3.2.7+dfsg-1ubuntu1) plucky; urgency=medium
30+
31+ * d/rules & d/freeradius-utils.install
32+ remove `radlast` from builds. there is no `last` implementation available
33+ in oracular+ and compilation has become optional. (LP: #2096611)
34+
35+ -- John Chittum <john.chittum@canonical.com> Fri, 28 Feb 2025 07:28:14 -0500
36+
37 freeradius (3.2.7+dfsg-1) unstable; urgency=medium
38
39 * New upstream version 3.2.7+dfsg
40diff --git a/debian/freeradius-utils.install b/debian/freeradius-utils.install
41index 3653fd3..be43d11 100644
42--- a/debian/freeradius-utils.install
43+++ b/debian/freeradius-utils.install
44@@ -1,7 +1,6 @@
45 usr/bin/radclient
46 usr/bin/radcrypt
47 usr/bin/radeapclient
48-usr/bin/radlast
49 usr/bin/radsecret
50 usr/bin/radsniff
51 usr/bin/radsqlrelay
52diff --git a/debian/rules b/debian/rules
53index 6410223..501f673 100755
54--- a/debian/rules
55+++ b/debian/rules
56@@ -74,8 +74,7 @@ override_dh_auto_configure:
57 --without-rlm_eap_ikev2 \
58 --without-rlm_sql_oracle \
59 --without-rlm_sql_unixodbc \
60- --with-systemd \
61- --with-radlast
62+ --with-systemd
63
64 %:
65 dh $@

Subscribers

People subscribed via source and target branches