Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 637972 - media-libs/libv4l - elibtoolize required to fix cross-compiling
Summary: media-libs/libv4l - elibtoolize required to fix cross-compiling
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Alexandre Rostovtsev (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2017-11-17 23:19 UTC by James Le Cuirot
Modified: 2017-12-08 22:49 UTC (History)
0 users

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


Attachments
Patch against libv4l-1.12.5.ebuild (libv4l-elibtoolize.patch,591 bytes, patch)
2017-11-17 23:19 UTC, James Le Cuirot
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Le Cuirot gentoo-dev 2017-11-17 23:19:45 UTC
Created attachment 504580 [details, diff]
Patch against libv4l-1.12.5.ebuild

libv4l suffers from a common problem with libtool that affects cross-compiling.

libtool: relink: armv7a-hardfloat-linux-gnueabi-gcc -shared  -fPIC -DPIC  .libs/libv4l2_la-libv4l2.o .libs/libv4l2_la-v4l2-plugin.o .libs/libv4l2_la-log.o   -lpthread -ldl -L/var/tmp/portage/media-libs/libv4l-1.12.5/image//usr/lib -L/usr/lib -lv4lconvert  -mcpu=cortex-a8 -mfpu=neon -O3 -Wl,-O1 -Wl,--as-needed   -Wl,-soname -Wl,libv4l2.so.0 -o .libs/libv4l2.so.0.0.0
/usr/libexec/gcc/armv7a-hardfloat-linux-gnueabi/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/usr/lib/libpthread.a: error adding symbols: File format not recognized
collect2: error: ld returned 1 exit status
libtool:   error: error: relink 'libv4l2.la' with the above command before installing it

This can be fixed by simply calling elibtoolize. Please see the attached patch. I'm happy to commit this myself, I just need you to OK it. I don't know whether this is needed for all the versions but the latest would be sufficient for me. It won't need a revbump as only DEPEND is affected.
Comment 1 Larry the Git Cow gentoo-dev 2017-12-08 22:49:49 UTC
The bug has been closed via the following commit(s):

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

commit efa9af88c0249b76df2e6e1fce17dd6a06b2842a
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2017-12-08 21:26:15 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2017-12-08 22:49:19 +0000

    media-libs/libv4l: Fix cross-compiling by adding elibtoolize call
    
    Closes: https://bugs.gentoo.org/637972
    Package-Manager: Portage-2.3.17, Repoman-2.3.6

 media-libs/libv4l/Manifest             | 10 +++++-----
 media-libs/libv4l/libv4l-1.12.5.ebuild |  7 ++++++-
 2 files changed, 11 insertions(+), 6 deletions(-)