Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 165804 - media-libs/fontconfig-2.4.2 fails to build in chroot w/ USE=doc
Summary: media-libs/fontconfig-2.4.2 fails to build in chroot w/ USE=doc
Status: RESOLVED DUPLICATE of bug 56407
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-07 19:06 UTC by DEMAINE Benoît-Pierre, aka DoubleHP
Modified: 2008-06-20 18:35 UTC (History)
0 users

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


Attachments
/mnt/gentoo/var/log/portage/media-libs:fontconfig-2.4.2:20070207-175535.log (media-libs:fontconfig-2.4.2:20070207-175535.log,55.72 KB, text/plain)
2007-02-07 19:07 UTC, DEMAINE Benoît-Pierre, aka DoubleHP
Details

Note You need to log in before you can comment on or make changes to this bug.
Description DEMAINE Benoît-Pierre, aka DoubleHP 2007-02-07 19:06:29 UTC
I am compiling a new gentoo, chrooting my futur disk from an old one. Thats why I am logged first as user under X, then run Eterm/xterm, su, chroot, then emerge.

In this case, due to su and chroot, some ENV vars seem to "pass through". My problem is that it prevents compiling this ebuild, and only this one (at least at the moment: I emerge more than 350 ebuilds already: "emerge -e world", the base, and more than 150 additionnal ebuilds).

*** variables that came through chroot (my X user is "dhp"):
root@moon_gen:/# export |grep dhp
declare -x CHOICESPATH="/home/dhp/.Choices:/usr/local/share/Choices:/usr/share/Choices"
declare -x ETERM_USER_ROOT="/home/dhp/.Eterm/themes/Eterm"
declare -x E_IPC_SOCKET="/tmp/enlightenment-dhp/disp-:0.0-7358"
declare -x LYNX_CFG="/home/dhp/.lynx.cfg"
root@moon_gen:/#

*** compile error:
docbook2man local-fontconfig-devel.sgml
Using catalogs: /etc/sgml/sgml-docbook-3.1.cat
Using stylesheet: /usr/share/sgml/docbook/utils-0.6.14/docbook-utils.dsl#print
Working on: /var/tmp/portage/media-libs/fontconfig-2.4.2/work/fontconfig-2.4.2/doc/local-fontconfig-devel.sgml
Done.
mv manpage.refs func.refs
rm -f manpage.links
ln -s fontconfig-user.sgml local-fontconfig-user.sgml
rm -f fonts-conf.5
docbook2man local-fontconfig-user.sgml
Using catalogs: /etc/sgml/sgml-docbook-3.1.cat
Using stylesheet: /usr/share/sgml/docbook/utils-0.6.14/docbook-utils.dsl#print
Working on: /var/tmp/portage/media-libs/fontconfig-2.4.2/work/fontconfig-2.4.2/doc/local-fontconfig-user.sgml
Done.
rm -f manpage.refs manpage.links
rm -f fontconfig-user.txt
docbook2txt local-fontconfig-user.sgml
Using catalogs: /etc/sgml/sgml-docbook-3.1.cat
Using stylesheet: /usr/share/sgml/docbook/utils-0.6.14/docbook-utils.dsl#html
Working on: /var/tmp/portage/media-libs/fontconfig-2.4.2/work/fontconfig-2.4.2/doc/local-fontconfig-user.sgml

Configuration file "/home/dhp/.lynx.cfg" is not available.

make[2]: *** [fontconfig-user.txt] Error 9
make[2]: Leaving directory `/var/tmp/portage/media-libs/fontconfig-2.4.2/work/fontconfig-2.4.2/doc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-libs/fontconfig-2.4.2/work/fontconfig-2.4.2'
make: *** [all] Error 2

!!! ERROR: media-libs/fontconfig-2.4.2 failed.
Call stack:
  ebuild.sh, line 1613:   Called dyn_compile
  ebuild.sh, line 970:   Called qa_call 'src_compile'
  environment, line 3452:   Called src_compile
  fontconfig-2.4.2.ebuild, line 53:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/log/portage/media-libs:fontconfig-2.4.2:20070207-175535.log'.

*** *** ***

Since I need to go forward, I will look for a workaround *NOW*; but still, I logged in as root using su, then moved to "an other root user" using chroot; furthermore, after chroot, /home/dhp/.lynx.cfg is very likely not to exist (unless I had already copied my user dir; any way, maybe the user on the new system will not be called "dhp")

I dont know why fontconfig needs lynx, and I dont mind; but emerging as root should depend on user conf. I dont mind at which level you are to fix this, but I think it should be fixed at "emerge" level; by doing something like "export -n  LYNX_CFG".
Comment 1 DEMAINE Benoît-Pierre, aka DoubleHP 2007-02-07 19:07:13 UTC
Created attachment 109446 [details]
/mnt/gentoo/var/log/portage/media-libs:fontconfig-2.4.2:20070207-175535.log
Comment 2 DEMAINE Benoît-Pierre, aka DoubleHP 2007-02-07 19:08:05 UTC

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

Portage 2.1.2-r8 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5-Gentoo-moon_11 i686)
=================================================================
System uname: 2.6.19-gentoo-r5-Gentoo-moon_11 i686 mobile AMD Athlon(tm) 4 Processor
Gentoo Base System version 1.12.9
Timestamp of tree: Tue, 06 Feb 2007 13:20:02 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.3.6, 2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.20
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB.iso885915"
LC_ALL="en_GB.iso885915"
LINGUAS="en fr en_GB fr_FR en_US"
MAKEOPTS="-j2"
PKGDIR="/tmp"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/big"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/opt/doublehp/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dfx X _________replytolist _____xcb a52 aac aalib ace acpi aiglx aim alsa amr amuled ao aoss apache2 apic arts asf audiofile bash-completion berkdb bidi binfilter bitmap-fonts bl bluetooth bonjour bootsplash branding bzip2 cdda cdparanoia cdr cgi cjk cli cmov compress console cpio cpudetection cracklib crypt cups curl cx8 dbus de dg dga directfb djvu dlloader dmi dmx doc dri dts dv dvb dvd dvdr dvdread dvi dynamic eds emboss encode esd ethereal evo examples exif fam fbcon ffmpeg firefox flac flash fortran fping fpu freetype fxsr gadu gdbm ggi gif gnome gnutls gpm gs gstreamer gtk hal httpd i8x0 ical iconv icq idea idn ieee1394 imagemagick imlib ipv6 irc isdnlog jabber jack javascript jpeg jpeg2k lcms libcaca libg++ libnotify lirc listentcp live lj lm_sensors logrotate lzo mad matrox mca mce meanwhile midi mikmod mmx mmxext mng modplug motif mozcalendar mozdom mp3 mp4 mpeg mplayer msn msr mtrr mtyhtv ncurses network nls no-htdocs nptl nptlonly nsplugin offensive ogg opengl oss pae pam pat pcre pdf perl pge php__ png posix ppds pppd pse pse36 python qq qt3 qt4 quicktime rar readline real reflection rpm rss rtc rtsp samba sasl screen sdl sensord sep server session silc skey skins sms sndfile speex spell spl sse ssl startup-notification stream subtitles svg svga swat symlink syslog tcpd tga theora threads tiff transmitter truetype truetype-fonts tsc type1-fonts udev unicode urandom usb uuencode v4l v4l2 vcd vidix vim vlm vme vorbis win32codecs wma wmf wxwindows x264 x86 xanim xcomposite xinerama xorg xosd xscreensaver xv xvid xvmc yahoo zeroconf zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fr en_GB fr_FR en_US" LIRC_DEVICES="usbirboy com1 com2 userspace" USERLAND="GNU" VIDEO_CARDS="apm chips cirrus fbdev i810 i128 mga nv s3 s3virge sis tga trident v4l vesa vga via tdfx"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

Comment 3 DEMAINE Benoît-Pierre, aka DoubleHP 2007-02-07 19:21:40 UTC
export -n LYNX_CFG

fixed it for me:

1170875617:  === (2 of 23) Compiling/Merging (media-libs/fontconfig-2.4.2::/usr/portage/media-libs/fontconfig/fontconfig-2.4.2.ebuild)
1170875772:  >>> AUTOCLEAN: media-libs/fontconfig
1170875772:  --- AUTOCLEAN: Nothing unmerged.
1170875772:  === (2 of 23) Post-Build Cleaning (media-libs/fontconfig-2.4.2::/usr/portage/media-libs/fontconfig/fontconfig-2.4.2.ebuild)
1170875772:  ::: completed emerge (2 of 23) media-libs/fontconfig-2.4.2 to /
Comment 4 Peter Volkov (RETIRED) gentoo-dev 2008-06-20 18:35:43 UTC
docbook uses lynx for docbook to txt conversation. Take a look at /usr/share/sgml/docbook/utils-0.6.14/backends/txt if interested...

Adding workaround for this issue into ebuild is not a good idea as there are many other env variables which make ebuild fail. May be portage will find some general solution for this... Marking this bug as duplicate.

BTW, for chroot personally I found solution to enter it with the following command:
env -i chroot ${path} /bin/bash --login
this will recreate environment on entering chroot... HTH.


*** This bug has been marked as a duplicate of bug 56407 ***