Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 651874 - sys-boot/plymouth: fails to compile on musl profile
Summary: sys-boot/plymouth: fails to compile on musl profile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-28 23:58 UTC by Steve Arnold
Modified: 2018-04-04 17:04 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Arnold archtester gentoo-dev 2018-03-28 23:58:01 UTC
Linker fails on undefined "rpmatch" symbol.  Sysinfo:

Portage 2.3.24 (python 3.5.4-final-0, default/linux/amd64/17.0/musl/hardened/selinux, gcc-6.4.0, musl-1.1.19, 4.14.27-gentoo x86_64)
=================================================================
System uname: Linux-4.14.27-gentoo-x86_64-AMD_E1-1200_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.4.1
KiB Mem:     3622588 total,   2660624 free
KiB Swap:    1023996 total,   1023996 free
Head commit of repository gentoo: 2d4843bd31a8d55d4594e8d167226d35c4c34cfd

sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.35.5::gentoo
sys-apps/sandbox:         2.13::musl
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0-r1::musl
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::musl (virtual/os-headers)
sys-libs/musl:            1.1.19::gentoo
Repositories:

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

grs_support
    location: /var/lib/layman/grs_support
    masters: gentoo
    priority: 50

musl
    location: /var/lib/layman/musl
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-gentoo-linux-musl"
CFLAGS="-O2 -pipe -fno-diagnostics-color"
CHOST="x86_64-gentoo-linux-musl"
CONFIG_PROTECT="/etc /etc/grs/systems.conf /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -pipe -fno-diagnostics-color"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="charset.alias"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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="X acl amd64 bzip2 crypt cxx glamor hardened i965 iconv ipv6 mmx ncurses nls nptl openmp pam pcre pie readline seccomp selinux sse sse2 ssl ssp 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="musl" 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" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="intel i915 i965 nouveau radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Steve Arnold archtester gentoo-dev 2018-03-28 23:59:44 UTC
x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I./libply -I./libply-splash-core -I. -DPLYMOUTH_LOG_DIRECTORY=\"/var/log\" -DPLYMOUTH_SPOOL_DIRECTORY=\"/var/spool/plymouth\" -DPLYMOUTH_TIME_DIRECTORY=\"/var/lib/plymouth/\" -DPLYMOUTH_LOGO_FILE=\"/usr/share/plymouth/bizcom.png\"  -Wall -Wno-sign-compare -Wno-deprecated-declarations -rdynamic -DPLYMOUTH_PLUGIN_PATH=\"/usr/lib/plymouth/\" -DPLYMOUTH_THEME_PATH=\"/usr/share/plymouth/themes/\" -DPLYMOUTH_POLICY_DIR=\"/usr/share/plymouth//\" -DPLYMOUTH_RUNTIME_DIR=\"/var/run/plymouth\" -DPLYMOUTH_CONF_DIR=\"/etc/plymouth//\" -DPLYMOUTH_RUNTIME_THEME_PATH=\"/var/run/plymouth/themes/\" -O2 -pipe -fno-diagnostics-color -c -o plymouthd-plugin.o `test -f 'plugins/splash/details/plugin.c' || echo './'`plugins/splash/details/plugin.c
x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I./libply -I./libply-splash-core -I. -DPLYMOUTH_LOG_DIRECTORY=\"/var/log\" -DPLYMOUTH_SPOOL_DIRECTORY=\"/var/spool/plymouth\" -DPLYMOUTH_TIME_DIRECTORY=\"/var/lib/plymouth/\" -DPLYMOUTH_LOGO_FILE=\"/usr/share/plymouth/bizcom.png\"  -Wall -Wno-sign-compare -Wno-deprecated-declarations -rdynamic -DPLYMOUTH_PLUGIN_PATH=\"/usr/lib/plymouth/\" -DPLYMOUTH_THEME_PATH=\"/usr/share/plymouth/themes/\" -DPLYMOUTH_POLICY_DIR=\"/usr/share/plymouth//\" -DPLYMOUTH_RUNTIME_DIR=\"/var/run/plymouth\" -DPLYMOUTH_CONF_DIR=\"/etc/plymouth//\" -DPLYMOUTH_RUNTIME_THEME_PATH=\"/var/run/plymouth/themes/\" -O2 -pipe -fno-diagnostics-color -c -o plymouthd-main.o `test -f 'main.c' || echo './'`main.c
/bin/sh ../libtool  --tag=CC   --mode=link x86_64-gentoo-linux-musl-gcc -Wall -Wno-sign-compare -Wno-deprecated-declarations -rdynamic -DPLYMOUTH_PLUGIN_PATH=\"/usr/lib/plymouth/\" -DPLYMOUTH_THEME_PATH=\"/usr/share/plymouth/themes/\" -DPLYMOUTH_POLICY_DIR=\"/usr/share/plymouth//\" -DPLYMOUTH_RUNTIME_DIR=\"/var/run/plymouth\" -DPLYMOUTH_CONF_DIR=\"/etc/plymouth//\" -DPLYMOUTH_RUNTIME_THEME_PATH=\"/var/run/plymouth/themes/\" -O2 -pipe -fno-diagnostics-color  -Wl,-O1 -Wl,--as-needed -o plymouthd plymouthd-ply-boot-server.o plymouthd-plugin.o plymouthd-main.o -lm -lrt -ldl libply/libply.la libply-splash-core/libply-splash-core.la 
libtool: link: x86_64-gentoo-linux-musl-gcc -Wall -Wno-sign-compare -Wno-deprecated-declarations -rdynamic -DPLYMOUTH_PLUGIN_PATH=\"/usr/lib/plymouth/\" -DPLYMOUTH_THEME_PATH=\"/usr/share/plymouth/themes/\" -DPLYMOUTH_POLICY_DIR=\"/usr/share/plymouth//\" -DPLYMOUTH_RUNTIME_DIR=\"/var/run/plymouth\" -DPLYMOUTH_CONF_DIR=\"/etc/plymouth//\" -DPLYMOUTH_RUNTIME_THEME_PATH=\"/var/run/plymouth/themes/\" -O2 -pipe -fno-diagnostics-color -Wl,-O1 -o .libs/plymouthd plymouthd-ply-boot-server.o plymouthd-plugin.o plymouthd-main.o  -Wl,--as-needed libply/.libs/libply.so libply-splash-core/.libs/libply-splash-core.so /usr/lib/libudev.so -lselinux /var/tmp/portage/sys-boot/plymouth-0.9.3-r1/work/plymouth-0.9.3/src/libply/.libs/libply.so -lm -lrt -ldl
libply/.libs/libply.so: undefined reference to `rpmatch'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:551: plymouthd] Error 1
make[3]: Leaving directory '/var/tmp/portage/sys-boot/plymouth-0.9.3-r1/work/plymouth-0.9.3/src'
make[2]: *** [Makefile:702: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/sys-boot/plymouth-0.9.3-r1/work/plymouth-0.9.3/src'
make[1]: *** [Makefile:457: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-boot/plymouth-0.9.3-r1/work/plymouth-0.9.3'
make: *** [Makefile:389: all] Error 2
Comment 2 Anthony Basile gentoo-dev 2018-03-29 10:51:22 UTC
i will have to add rpmatch-standalone to the tree and we'll have to hack plymouth's build system so that it looks for the breakout rpmatch library.
Comment 3 Anthony Basile gentoo-dev 2018-03-29 18:47:48 UTC
(In reply to Anthony Basile from comment #2)
> i will have to add rpmatch-standalone to the tree and we'll have to hack
> plymouth's build system so that it looks for the breakout rpmatch library.

i've added rpmatch-standalone to the tree and modified the ebuild to link against it.  the ebuild is in the musl overlay and doesn't require any patches, just some elib_musl? specific checks.

i'm cc-ing prometheanfire and eva (the maintainers) to see if i can just add the changes directly to the tree so we have less maintenance in the musl overlay.  i'm trying to shrink the overlay, not grow it.

diff with the tree is - not i dropped keywords to ~arch because of rpmatch-standalone is ~arch, but I can quickly stabilize it.


--- /usr/portage/sys-boot/plymouth/plymouth-0.9.3-r1.ebuild	2018-03-29 13:08:47.340213069 -0400
+++ plymouth-0.9.3-r1.ebuild	2018-03-29 12:59:14.112494116 -0400
@@ -3,6 +3,8 @@
 
 EAPI=6
 
+inherit flag-o-matic
+
 SRC_URI="https://dev.gentoo.org/~aidecoe/distfiles/${CATEGORY}/${PN}/gentoo-logo.png"
 
 if [[ ${PV} == 9999 ]]; then
@@ -20,7 +22,7 @@
 LICENSE="GPL-2"
 SLOT="0"
 [[ ${PV} == 9999 ]] || \
-KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86"
 IUSE="debug gdm +gtk +libkms +pango static-libs"
 
 CDEPEND="
@@ -33,6 +35,7 @@
 	pango? ( >=x11-libs/pango-1.21 )
 "
 DEPEND="${CDEPEND}
+	elibc_musl? ( sys-libs/rpmatch-standalone )
 	app-text/docbook-xsl-stylesheets
 	dev-libs/libxslt
 	virtual/pkgconfig
@@ -53,6 +56,7 @@
 )
 
 src_prepare() {
+	use elibc_musl && append-ldflags -lrpmatch
 	default
 	eautoreconf
 }
Comment 4 Anthony Basile gentoo-dev 2018-04-04 11:07:17 UTC
@prometheanfire @eva what do you think of just adding these changes to the tree?  if not, just close this bug.
Comment 5 Larry the Git Cow gentoo-dev 2018-04-04 17:04:23 UTC
The bug has been closed via the following commit(s):

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

commit 1025a469f1d1dbb1c9c281dfb86961ca8d9dfbd3
Author:     Matthew Thode <prometheanfire@gentoo.org>
AuthorDate: 2018-04-04 17:03:04 +0000
Commit:     Matthew Thode <prometheanfire@gentoo.org>
CommitDate: 2018-04-04 17:03:56 +0000

    sys-boot/plymouth: fixing musl and updating 9999 ebuild
    
    Closes: https://bugs.gentoo.org/651874
    Package-Manager: Portage-2.3.27, Repoman-2.3.9

 sys-boot/plymouth/plymouth-0.9.3-r2.ebuild | 107 +++++++++++++++++++++++++++++
 sys-boot/plymouth/plymouth-9999.ebuild     |  14 ++--
 2 files changed, 117 insertions(+), 4 deletions(-)