Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685456 - net-misc/ntpsec-1.1.2 magically links to libbsd.so.0
Summary: net-misc/ntpsec-1.1.2 magically links to libbsd.so.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Steve Arnold
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-09 13:20 UTC by Marcin Mirosław
Modified: 2019-08-05 05:03 UTC (History)
2 users (show)

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


Attachments
disable libbsd detection (inner) (no-bsd.patch,1.54 KB, patch)
2019-06-22 19:52 UTC, James Browning
Details | Diff
ebuild patch for libbsd no autodetect (ntpsec-ebuild-nobsd.patch,1013 bytes, patch)
2019-06-22 22:35 UTC, James Browning
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2019-05-09 13:20:14 UTC
If I emerge net-misc/ntpsec while dev-libs/libbsd is installed, ntpd is linked to
# scanelf -n /usr/sbin/ntpd
 TYPE   NEEDED FILE
ET_DYN libcrypto.so.1.0.0,libm.so.6,librt.so.1,libcap.so.2,libseccomp.so.2,libpthread.so.0,libbsd.so.0,libc.so.6 /usr/sbin/ntpd

without libbsd installed:
# scanelf -n /usr/sbin/ntpd
 TYPE   NEEDED FILE
ET_DYN libcrypto.so.1.0.0,libm.so.6,librt.so.1,libcap.so.2,libseccomp.so.2,libpthread.so.0,libc.so.6 /usr/sbin/ntpd


Reproducible: Always




Portage 2.3.62 (python 3.6.5-final-0, default/linux/amd64/17.0/no-multilib/hardened, gcc-8.3.0, glibc-2.28-r6, 4.19.37-gentoo x86_64)
=================================================================
System uname: Linux-4.19.37-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_X5650_@_2.67GHz-with-gentoo-2.6
KiB Mem:     2048548 total,    247996 free
KiB Swap:    1441784 total,   1439736 free
Timestamp of repository gentoo: Thu, 09 May 2019 06:04:36 +0000
Head commit of repository gentoo: ddc515f39dc4736dd84ec948c1fba740035aef8b

sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.31.1 p5) 2.31.1
ccache version 3.6 [enabled]
app-shells/bash:          4.4_p23-r1::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/ccache:          3.6::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r4::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000


Installed sets: @fail2ban, @www
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=westmere -mtune=native -ftracer -fvar-tracking-assignments -fopt-info-optimized -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -march=westmere -mtune=native -ftracer -fvar-tracking-assignments -fopt-info-optimized -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache collision-protect compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/etc/php/fpm-php7.*/fpm.d/www.conf"
LANG="pl_PL.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2 -l 3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 bzip2 caps crypt cxx device-mapper hardened iconv idn iproute2 ipv6 jemalloc libtirpc lto lz4 modules nano-syntax ncurses nls nptl openmp pam pcre pgo pie readline seccomp sse sse2 sse3 sse4_1 sse4_2 ssl ssp ssse3 udev unicode xattr xtpax zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="aggregation cgroups conntrack contextswitch cpu curl curl_json df disk dns email entropy ethstat exec filecount hugepages interface iptables irq lvm match_regex mysql netlink load memory network nginx notify_email ntpd openvpn ping postgresql processes protocols redis snmp statsd swap syslog tail tail_csv tcpconns unixsock uptime vmem" CPU_FLAGS_X86="aes sse sse2 sse3 ssse3 sse4_1 sse4_2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="en pl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" NGINX_MODULES_HTTP="access auth_basic browser charset dav dav_ext fastcgi gzip headers_more limit_conn limit_req map proxy realip referer rewrite security" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="tarpit"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Gary E. Miller 2019-05-22 19:23:04 UTC
A feature, not a bug.  NTPsec uses the libbsd version of strlcpy() and strlcat() if libbsd is installed.  Otherwise it provides a local copy of those two function.s

See the source file libntp/strl_obsd.c for details.
Comment 2 James Browning 2019-06-22 19:52:28 UTC
Created attachment 580454 [details, diff]
disable libbsd detection (inner)

applies to the upstream build file
Comment 3 James Browning 2019-06-22 22:35:20 UTC
Created attachment 580470 [details, diff]
ebuild patch for libbsd no autodetect

not tested in isolation
Comment 4 Marcin Mirosław 2019-07-11 09:00:21 UTC
I installed ntpsec-1.1.4 and it doesn't linkt to libbsd.
Comment 5 Marcin Mirosław 2019-07-11 09:02:52 UTC
(In reply to Marcin Mirosław from comment #4)
> I installed ntpsec-1.1.4 and it doesn't linkt to libbsd.

Sorry for noise, problem still exists.
Comment 6 Steve Arnold archtester gentoo-dev 2019-08-05 05:03:46 UTC
Thanks for the patch; works on versions 1.1.4 and up.  I bumped to 1.1.4 and updated the remaining ebuilds.  Also removed an obsolete configure option and bumped a test install to 1.1.6 (hopefully the next stable candidate).