apt build-dep exim4-daemon-heavy omits libnsl-dev
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
exim4 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Noble |
Fix Released
|
Undecided
|
Lena Voytek |
Bug Description
[Impact]
When building exim4-daemon-heavy, libnsl-dev is not explicitly included as a build dependency, which can lead to the following error:
/usr/bin/ld: cannot find -lnsl
The fix should be backported to allow exim4-daemon-heavy to build properly using its libnsl dependency.
This is fixed by adding libnsl-dev as a build dependency.
[Test Plan]
The fix can be confirmed through the reporters provided steps on a noble system after including noble apt source packages:
$ sudo apt purge libnsl-dev
$ sudo apt install dpkg-dev
$ sudo apt build-dep exim4-daemon-heavy
$ apt-get source exim4-daemon-heavy
$ cd exim4-...
$ dpkg-buildpackage -b -uc
[Where problems could occur]
With the inclusion of a new build dependency, builds for other binary packages in exim4 may change. This could lead to ftbfs or other issues from libnsl at buildtime.
[Other Info]
This was fixed in Debian in 4.97-6 and included in Oracular
[Original Description]
"apt build-dep exim4-daemon-heavy" is supposed to install all packages needed for building exim4-daemon-heavy, but it omits libnsl-dev, resulting in
/usr/bin/ld: cannot find -lnsl
steps to reproduce:
sudo apt purge libnsl-dev;
sudo apt install dpkg-dev;
sudo apt build-dep exim4-daemon-heavy;
sudo apt-get source exim4-daemon-heavy;
FOLDER_NAME=$(find /tmp/exim4_builddir -maxdepth 1 -type d -name "exim4-*" | head -n 1);
cd "$FOLDER_NAME";
dpkg-buildpackage -b -uc -us --jobs=$(nproc);
results in the "cannot find -lnsl" error.
---
ProblemType: Bug
ApportVersion: 2.28.1-0ubuntu3.1
Architecture: amd64
CasperMD5CheckR
DistroRelease: Ubuntu 24.04
Package: exim4 4.97-4ubuntu4.1
PackageArchitec
ProcEnviron:
LANG=C
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-
XDG_RUNTIME_
ProcVersionSign
Tags: noble
Uname: Linux 6.8.12-1-pve x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: N/A
_MarkForUpload: True
Related branches
- git-ubuntu bot: Approve
- Utkarsh Gupta (community): Approve
- Canonical Server Reporter: Pending requested
-
Diff: 568 lines (+503/-0)9 files modifieddebian/changelog (+8/-0)
debian/control (+1/-0)
debian/patches/lp2077893-1-release-regex-match-store.patch (+106/-0)
debian/patches/lp2077893-2-in-regex-condition-release-store.patch (+215/-0)
debian/patches/lp2077893-3-use-non-releasable-memory.patch (+45/-0)
debian/patches/lp2077893-4-use-dynamic-mem-for-regex_match_string.patch (+33/-0)
debian/patches/lp2077893-5-use-non-releasable-memory.patch (+42/-0)
debian/patches/lp2077893-6-avoid-releasing-built-re-midloop.patch (+47/-0)
debian/patches/series (+6/-0)
Changed in exim4 (Ubuntu Noble): | |
assignee: | nobody → Lena Voytek (lvoytek) |
status: | Triaged → In Progress |
description: | updated |
apport information