Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263085 - sys-fs/udev installs cross-compile unfriendly .pc files
Summary: sys-fs/udev installs cross-compile unfriendly .pc files
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: ARM Linux
: High normal (vote)
Assignee: udev maintainers
URL: http://gentoo.mindzoo.de/index.cgi/ti...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-19 23:32 UTC by Maksim 'max_posedon' Melnikau
Modified: 2009-07-30 19:53 UTC (History)
1 user (show)

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


Attachments
pc files cross patch (pc-cross-fix.patch,866 bytes, patch)
2009-03-19 23:47 UTC, Maksim 'max_posedon' Melnikau
Details | Diff
patch for ebuild (udev-140.ebuild-cross.patch,323 bytes, patch)
2009-03-19 23:56 UTC, Maksim 'max_posedon' Melnikau
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim 'max_posedon' Melnikau 2009-03-19 23:32:30 UTC
${ROOT}/usr/lib/pkgconfig/libvolume_id.pc(libudev.pc) contains the following lines, making cross-compile-life very hard: 
 libvolume_id.pc:3:libdir=/usr/lib libvolume_id.pc:4:includedir=/usr/include 
 ebuild: openmoko-target/sys-fs/udev-*.ebuild

Reproducible: Always

Steps to Reproduce:
1. emerge-armv4tl-softfloat-linux-gnueabi udev

Actual Results:  
--- before cross-fix-root ---
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include

Name: libudev
Description: Library to access udev device information
Version: 140
Libs: -L${libdir} -ludev
Libs.private: 
Cflags: -I${includedir}


--- after cross fix root ---
prefix=/usr/armv4tl-softfloat-linux-gnueabi/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include

Name: libudev
Description: Library to access udev device information
Version: 140
Libs: -L${libdir} -ludev
Libs.private: 
Cflags: -I${includedir}


Expected Results:  
--- smth like ---
prefix=/usr/armv4tl-softfloat-linux-gnueabi/usr
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include

Name: libudev
Description: Library to access udev device information
Version: 140
Libs: -L${libdir} -ludev
Libs.private: 
Cflags: -I${includedir}


Paths should be ready for cross compilation packages that links with udev.

max_posedon armv4tl-softfloat-linux-gnueabi #
emerge-armv4tl-softfloat-linux-gnueabi --info
Portage 2.1.6.8
(!/home/data/gentoo/openmoko-overlay/openmoko-target/profiles/openmoko,
gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-rc7-git1 i686)                        
=================================================================               
System uname:
Linux-2.6.29-rc7-git1-i686-Genuine_Intel-R-_CPU_T2130_@_1.86GHz-with-glibc2.0   
Timestamp of tree: Mon, 16 Mar 2009 21:00:02 +0000                              
app-shells/bash:     3.2_p48-r1                                                 
dev-java/java-config: 1.3.7-r1, 2.1.7                                           
dev-lang/python:     2.5.2-r8                                                   
dev-python/pycrypto: 2.0.1-r7                                                   
dev-util/cmake:      2.6.3                                                      
sys-apps/baselayout: 2.0.0                                                      
sys-apps/openrc:     0.4.3-r1                                                   
sys-apps/sandbox:    1.5                                                        
sys-devel/autoconf:  2.13, 2.63                                                 
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                  
sys-devel/binutils:  2.19.1                                                     
sys-devel/gcc-config: 1.4.1                                                     
sys-devel/libtool:   2.2.6a                                                     
virtual/os-headers:  2.6.28-r1                                                  
ACCEPT_KEYWORDS="arm ~arm"                                                      
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -pipe -march=armv4t -mtune=arm920t -fomit-frame-pointer
-I/usr/armv4tl-softfloat-linux-gnueabi/usr/include/
-I/usr/armv4tl-softfloat-linux-gnueabi/include/"
CHOST="armv4tl-softfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/
/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
/etc/udev/rules.d"
CXXFLAGS="-Os -pipe -march=armv4t -mtune=arm920t -fomit-frame-pointer
-I/usr/armv4tl-softfloat-linux-gnueabi/usr/include/
-I/usr/armv4tl-softfloat-linux-gnueabi/include/"
DISTDIR="/home/data/gentoo/distfiles"
FEATURES="distlocks fixpackages nodoc noinfo noman parallel-fetch protect-owned
sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-L/usr/armv4tl-softfloat-linux-gnueabi/usr/lib
-L/usr/armv4tl-softfloat-linux-gnueabi/lib"
MAKEOPTS="-j3"
PKGDIR="/usr/armv4tl-softfloat-linux-gnueabi/packages/"
PORTAGE_CONFIGROOT="/usr/armv4tl-softfloat-linux-gnueabi/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
--exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/data/gentoo/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/data/gentoo/openmoko-overlay/openmoko-target"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arm dbus dri gps hal iconv midi minimal multicall ncurses nls
nptl opengl pam python readline sdl sqlite ssl unicode xorg zlib"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file
hooks iec958 ioplug ladspalfloat linear meter mmap_emul mulaw multi null plug
rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="tslib mouse keyboard
evdev void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780
lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev
glamo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL,
LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Maksim 'max_posedon' Melnikau 2009-03-19 23:47:29 UTC
Created attachment 185582 [details, diff]
pc files cross patch
Comment 2 Maksim 'max_posedon' Melnikau 2009-03-19 23:56:14 UTC
Created attachment 185584 [details, diff]
patch for ebuild
Comment 3 Maksim 'max_posedon' Melnikau 2009-03-20 00:07:46 UTC
== Testing ==

--- cross before cross-fix-root ---
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: libudev
Description: Library to access udev device information
Version: 140
Libs: -L${libdir} -ludev
Libs.private:
Cflags: -I${includedir}


--- cross after cross-fix-root ---
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: libudev
Description: Library to access udev device information
Version: 140
Libs: -L${libdir} -ludev
Libs.private:
Cflags: -I${includedir}



--- native before ---
prefix=/usr
exec_prefix=${prefix}
libdir=/usr/lib
includedir=${prefix}/include

Name: libusb
Description: USB access library
Version: 0.1.12
Libs: -L${libdir} -lusb
Cflags: -I${includedir}


--- native after ---
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: libudev
Description: Library to access udev device information
Version: 140
Libs: -L${libdir} -ludev
Libs.private:
Cflags: -I${includedir}

============

Looks like patch doesn't brake anything, but fixes cross compilation issues.
Comment 4 Maksim 'max_posedon' Melnikau 2009-03-20 00:10:10 UTC
(In reply to comment #3)
> == Testing ==

> --- cross after cross-fix-root ---
wrong copy paste:
> prefix=/usr
correct:
prefix=/usr/armv4tl-softfloat-linux-gnueabi/usr
Comment 5 SpanKY gentoo-dev 2009-03-28 10:55:31 UTC
patch could use a better name, but otherwise this looks safe to push upstream
Comment 6 Matthias Schwarzott gentoo-dev 2009-07-19 18:19:31 UTC
Do you have an updated patch for udev-145?
If no, please at least tell me which part of your patch is the fix and which part is only cleanup.
Comment 7 Matthias Schwarzott gentoo-dev 2009-07-30 19:53:18 UTC
any news?