Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#11716 closed enhancement (fixed)

postfix will need a patch or sed for linux-5.0.

Reported by: ken@… Owned by: Bruce Dubbs
Priority: normal Milestone: 9.0
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

The 5.0.0 kernel is possibly going to be released in a few hours, or alternatively in a week's time. Too late for our 8.4.

Testing a build in chroot while running on a 5.0.0-rc host kernel, postfix failed,

ATTENTION:
ATTENTION: Unknown system type: Linux 5.0.0-rc4
ATTENTION:

If it recognizes the system as Linux 3 or greater, it displays it as LINUX.

At first I thought this was similar to March 2015 when 4.0 was released, but upstream has made an extra change. Details in debian #922477. I adapted the patch suggested by Sven Joachen - rather than care about Linux-6.0 and later, for Linux-5, as well as Linux-4 use a RELEASE_MAJOR of 3 (4.xx is treated like 3.xx, the RELEASE_MAJOR setting in a separate file unnecessarily complicates things.

As of 13 hours ago,neither the development version of postfix, 3.5-20190221, nor the pre-release of 3.4, were adapted for Linux > 4.

Following sed seems to work:

sed -i -e 's/\$RELEASE_MAJOR/3/' \
       -e '/Linux..3/s/34/345/' makedefs

Change History (5)

comment:1 by Douglas R. Reno, 5 years ago

I wonder how many other packages are going to need similar changes. I remember reading about a couple of complete rewrites of some subsystems, but I don't recall where I found it at.

in reply to:  1 comment:2 by ken@…, 5 years ago

Replying to renodr:

I wonder how many other packages are going to need similar changes. I remember reading about a couple of complete rewrites of some subsystems, but I don't recall where I found it at.

I would expect very few, as in "we don't break userspace". From time to time, strace breaks - but that is akin to the tools shipped with the kernel and it has people testing against development kernels. On the rare occasions it has failed to build for me, there has already been a commit or even a newer release.

Postfix is different - it looks at the running kernel (not headers) and attempts to maintain compatability even with linux-1 and linux-2 releases.

comment:3 by Bruce Dubbs, 5 years ago

Owner: changed from blfs-book to Bruce Dubbs
Status: newassigned

comment:4 by Bruce Dubbs, 5 years ago

Resolution: fixed
Status: assignedclosed

Fixed at revision 21290.

comment:5 by Bruce Dubbs, 5 years ago

Milestone: 8.59.0

Milestone renamed

Note: See TracTickets for help on using tickets.