liblxc-dev was built with LXC_DEVEL=1 in Ubuntu Jammy/Kinetic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
LXC 5.0.0 was built with LXC_DEVEL=1 set for Jammy. But for release build we should have LXC_DEVEL=0.
LXC_DEVEL is a variable that appears in the /usr/include/
Having LXC_DEVEL=1 makes problems for the users who want to build projects those are depend on liblxc
from source (for example, LXD, go-lxc: https:/
Q: Why it was not a problem for so long?
A: Because LXC API was stable for a long time, but recently we have extended liblxc API (https:/
This change was developed properly to be backward compatible with the old versions of liblxc. But, there is a problem. If LXC_DEVEL=1 then the macro check VERSION_AT_LEAST (https:/
[ Test Plan ]
Install liblxc-dev package and check /usr/include/
LXC_DEVEL should be 0
[ Where problems could occur ]
Theoretically, build of a software which depends on liblxc-dev may start to fail
if it assumes that LXC_DEVEL is 1.
[ Other Info ]
-
https:/ /git.launchpad. net/ubuntu/ +source/ lxc/tree/ debian/ patches/ 0003-meson- Set-DEVEL- flag-post- release. patch is the patch that should be dropped by the SRU.