Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685756 - net-fs/nfs-utils-{2.3.3,2.3.4}: Misplaced dependency on dev-libs/libxml2
Summary: net-fs/nfs-utils-{2.3.3,2.3.4}: Misplaced dependency on dev-libs/libxml2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-12 20:07 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2019-05-13 08:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch (nfs-utils.patch,1.63 KB, patch)
2019-05-12 23:55 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2019-05-12 20:07:57 UTC
dev-libs/libxml2 should be in both DEPEND and RDEPEND, and not in BDEPEND.

DEPEND: Headers are included:
$ grep -Er "#[[:space:]]*include[[:space:]]+[<\"]libxml" *
support/junction/junction-internal.h:#include <libxml/tree.h>
support/junction/junction-internal.h:#include <libxml/xpath.h>
utils/mountd/cache.c:#include <libxml/parser.h>

DEPEND: -lxml2 is seen in build log.

RDEPEND:
$ scanelf -qF "%F: %n" $(qlist net-fs/nfs-utils-2.3.4 | sort) | grep libxml2
/usr/sbin/nfsref: libxml2.so.2,libc.so.6
/usr/sbin/rpc.mountd: libxml2.so.2,libwrap.so.0,libblkid.so.1,libtirpc.so.3,libc.so.6

BDEPEND: No executables from dev-libs/libxml2 are called (xml2-config, xmlcatalog, xmllint).

libxml2 is detected using pkg-config. (configure.ac calls AC_LIBXML2 macro, which is defined in aclocal/libxml2.m4 and uses pkg-config.)
Comment 1 Arfrever Frehtes Taifersar Arahesis 2019-05-12 23:50:49 UTC
In net-fs/nfs-utils-2.3.3:
$ scanelf -qF "%F: %n" $(qlist net-fs/nfs-utils-2.3.3 | sort) | grep libxml2
/usr/sbin/nfsref: libxml2.so.2,libc.so.6
Comment 2 Arfrever Frehtes Taifersar Arahesis 2019-05-12 23:55:03 UTC
Created attachment 576246 [details, diff]
Patch
Comment 3 Larry the Git Cow gentoo-dev 2019-05-13 08:06:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2e0a79ceca0edb072350594f47d143f7fd56db2

commit f2e0a79ceca0edb072350594f47d143f7fd56db2
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
AuthorDate: 2019-05-12 23:51:17 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2019-05-13 08:06:39 +0000

    net-fs/nfs-utils: Depend on dev-libs/libxml2 in DEPEND+RDEPEND, and not BDEPEND.
    
    Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
    Closes: https://bugs.gentoo.org/685756
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 net-fs/nfs-utils/nfs-utils-2.3.3.ebuild | 2 +-
 net-fs/nfs-utils/nfs-utils-2.3.4.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)