Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 590764 - sys-auth/polkit-0.113-r1 with crossdev - install failed: /usr/lib/libgmodule-2.0.so: file not recognized: File format not recognized
Summary: sys-auth/polkit-0.113-r1 with crossdev - install failed: /usr/lib/libgmodule-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2016-08-08 12:16 UTC by Gerhard Bräunlich
Modified: 2016-09-09 19:35 UTC (History)
0 users

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


Attachments
Fix for polkit-0.113-r1.ebuild (polkit-0.113-r1.patch,608 bytes, patch)
2016-08-08 12:16 UTC, Gerhard Bräunlich
Details | Diff
build.log (build.log,147.85 KB, text/x-log)
2016-08-08 15:22 UTC, Gerhard Bräunlich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerhard Bräunlich 2016-08-08 12:16:00 UTC
Created attachment 442778 [details, diff]
Fix for polkit-0.113-r1.ebuild

Cross emerging sys-auth/polkit fails at relinking with libtool:


libtool: relink: /bin/grep -E -e "(^polkit_.*)" ".libs/libpolkit-agent-1.exp" > ".libs/libpolkit-agent-1.expT"
libtool: relink: mv -f ".libs/libpolkit-agent-1.expT" ".libs/libpolkit-agent-1.exp"
libtool: relink: echo "{ global:" > .libs/libpolkit-agent-1.ver
libtool: relink:  cat .libs/libpolkit-agent-1.exp | sed -e "s/\(.*\)/\1;/" >> .libs/libpolkit-agent-1.ver
libtool: relink:  echo "local: *; };" >> .libs/libpolkit-agent-1.ver
libtool: relink:  armv6j-hardfloat-linux-gnueabi-gcc -shared  -fPIC -DPIC  .libs/libpolkit_agent_1_la-polkitagentenumtypes.o .libs/libpolkit_agent_1_la-polkitagentmarshal.o .libs/libpolkit_agent_1_la-polkitagentsession.o .libs/libpolkit_agent_1_la-polkitagentlistener.o .libs/libpolkit_agent_1_la-polkitagenttextlistener.o   -L/usr/armv6j-hardfloat-linux-gnueabi/tmp/portage/sys-auth/polkit-0.113-r1/image//usr/lib -L/usr/lib -lpolkit-gobject-1 -lgmodule-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lexpat  -pthread -Wl,-rpath-link=/usr/lib64/gcc/armv6j-hardfloat-linux-gnueabi/4.9.3/ -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -Wl,--export-dynamic -pthread   -pthread -Wl,-soname -Wl,libpolkit-agent-1.so.0 -Wl,-version-script -Wl,.libs/libpolkit-agent-1.ver -o .libs/libpolkit-agent-1.so.0.0.0
/usr/lib/libgmodule-2.0.so: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
libtool: install: error: relink `libpolkit-agent-1.la' with the above command before installing it

The host library path "-L/usr/lib" is passed to gcc instead of the sysroot library path.

This error is fixed by calling elibtoolize in src_prepare which applies the patch eclass/ELT-patches/cross/2.4.3.
Comment 1 Gerhard Bräunlich 2016-08-08 12:28:41 UTC
Same issue with sys-auth/consolekit - same fix.
Comment 2 Gerhard Bräunlich 2016-08-08 15:22:10 UTC
Created attachment 442798 [details]
build.log

# armv6j-hardfloat-linux-gnueabi-emerge --info
Portage 2.2.28 (python 3.4.3-final-0, default/linux/arm/13.0/armv6j, gcc-4.9.3, unavailable, 4.4.6-gentoo x86_64)
=================================================================
System uname: Linux-4.4.6-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-1620_v2_@_3.70GHz-with-gentoo-2.2
KiB Mem:    16318052 total,  11505248 free
KiB Swap:     557052 total,    557052 free
Timestamp of repository gentoo: Mon, 08 Aug 2016 08:00:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.3_p46::gentoo
dev-lang/python:     2.7.12::gentoo, 3.4.5::gentoo
sys-apps/baselayout: 2.2-r1::gentoo
sys-apps/sandbox:    2.10-r2::gentoo
Repositories:

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

cross-armv6j-hardfloat-linux-gnueabi
    location: /usr/armv6j-hardfloat-linux-gnueabi/usr/portage
    masters: gentoo
    priority: 10

ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
CHOST="armv6j-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv6j"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nodoc noinfo noman parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv6j"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_CH.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/armv6j-hardfloat-linux-gnueabi/packages/"
PORTAGE_CONFIGROOT="/usr/armv6j-hardfloat-linux-gnueabi/"
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="/usr/armv6j-hardfloat-linux-gnueabi/tmp/"
USE="acl arm avahi berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 minimal modules ncurses nls nptl openmp pam pcre readline seccomp session ssl tcpd udev unicode webserver xattr zlib" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="fbdev dummy v4l" 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, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

# armv6j-hardfloat-linux-gnueabi-emerge -pqv polkit
[ebuild   R   ] sys-auth/polkit-0.113-r1 [0.113-r1] to /usr/armv6j-hardfloat-linux-gnueabi/ USE="nls pam -examples -gtk -introspection -jit (-kde) (-selinux) -systemd {-test}"
Comment 3 Patrice Clement gentoo-dev 2016-09-08 07:49:04 UTC
There's also a pending PR at https://github.com/gentoo/gentoo/pull/2215. Review and merge accordingly. Thanks.
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2016-09-08 23:07:25 UTC
I just pushed this to the tree without a revbump as it should not change build result for anyone else. Thanks for reporting.
Comment 5 Gerhard Bräunlich 2016-09-09 09:08:35 UTC
Thank you for pushing!
Shall I file another bug for consolekit or are you fixing consolekit as well?
Comment 6 Gilles Dartiguelongue (RETIRED) gentoo-dev 2016-09-09 18:45:16 UTC
A bug report per package is better since I didn't notice any reference to consolekit needing that fix too at this time.