Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 211352 - net-libs/libsoup-2.2.105-r1 fails to emerge with USE=doc
Summary: net-libs/libsoup-2.2.105-r1 fails to emerge with USE=doc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-25 10:15 UTC by Leonid Podolny
Modified: 2008-03-09 15:44 UTC (History)
10 users (show)

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


Attachments
full build log (net-libs:libsoup-2.2.105-r1:20080225-094728.log,77.93 KB, text/plain)
2008-02-25 10:16 UTC, Leonid Podolny
Details
emerge --info (emerge.info,5.76 KB, text/plain)
2008-02-25 10:17 UTC, Leonid Podolny
Details
build log with -j1 (net-libs:libsoup-2.2.105-r1:20080225-102753.log,77.93 KB, text/plain)
2008-02-25 10:30 UTC, Leonid Podolny
Details
libsoup-2.2.105-r1.ebuild (libsoup-2.2.105-r1.ebuild,1.13 KB, text/plain)
2008-03-01 20:47 UTC, Ed Catmur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Podolny 2008-02-25 10:15:38 UTC
mkdir .libs
 i686-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -D_REENTRANT -I../.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -c libsoup-2.2-scan.c  -fPIC -DPIC -o .libs/libsoup-2.2-scan.o
 i686-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -D_REENTRANT -I../.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -c libsoup-2.2-scan.c -o libsoup-2.2-scan.o >/dev/null 2>&1
gtk-doc: Linking scanner
i686-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -D_REENTRANT -o .libs/libsoup-2.2-scan .libs/libsoup-2.2-scan.o  ../../libsoup/.libs/libsoup-2.2.so /usr/lib/libgobject-2.0.so /usr/lib/libgthread-2.0.so -lpthread -lrt /usr/lib/libglib-2.0.so /usr/lib/libxml2.so -ldl -lm /usr/lib/libgnutls.so -L/usr/lib /usr/lib/libtasn1.so -lz /usr/lib/libgcrypt.so /usr/lib/libgpg-error.so
creating libsoup-2.2-scan
gtk-doc: Running scanner libsoup-2.2-scan
Scan failed:
make[3]: *** [scan-build.stamp] Error 255
make[3]: Leaving directory `/var/tmp/portage/net-libs/libsoup-2.2.105-r1/work/libsoup-2.2.105/docs/reference'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-libs/libsoup-2.2.105-r1/work/libsoup-2.2.105/docs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-libs/libsoup-2.2.105-r1/work/libsoup-2.2.105'
make: *** [all] Error 2
 *
 * ERROR: net-libs/libsoup-2.2.105-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2541:  Called gnome2_src_compile
 *             environment, line 1934:  Called die
 * The specific snippet of code:
 *       emake || die "compile failure"
 *  The die message:
 *   compile failure
 *
 * 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/net-libs:libsoup-2.2.105-r1:20080225-094728.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/libsoup-2.2.105-r1/temp/environment'.
Comment 1 Leonid Podolny 2008-02-25 10:16:36 UTC
Created attachment 144567 [details]
full build log
Comment 2 Leonid Podolny 2008-02-25 10:17:42 UTC
Created attachment 144569 [details]
emerge --info
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-02-25 10:20:43 UTC
Attach a full log w/ MAKEOPTS="-j1", thanks.
Comment 4 Leonid Podolny 2008-02-25 10:30:31 UTC
Created attachment 144571 [details]
build log with -j1
Comment 5 Leonid Podolny 2008-02-25 10:31:31 UTC
And it builds successfully with USE="-doc"
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2008-02-25 10:35:58 UTC
Bleh the output is still damn useless... :/ Is you system sane when you run revdep-rebuild -p, just in case?
Comment 7 Leonid Podolny 2008-02-25 10:57:55 UTC
While revdep-rebuild is running, I checked a little something. If you don't apply libsoup-2.2.105-fix-devhelp-docs.patch, then everything compiles. I'm not sure how  I can exclude a patch from the ebuild, so I have built this package from source. It build fine. If you apply this patch on these sources, then it begins to fail just like ebuild does. 
Let me know if there is anything else I can do.
Comment 8 Graham Murray 2008-02-25 10:59:06 UTC
I am seeing the same problem on 2 ~x86 systems and revdep-rebuild reports no problems.
Comment 9 emerald 2008-02-25 17:09:43 UTC
that's probably the relevant section of the compilation on my machine (~amd64)
i hope it helps.

creating ssl-test
make[2]: Leaving directory `/var/tmp/portage/net-libs/libsoup-2.2.105-r1/work/libsoup-2.2.105/tests'
Making all in docs
make[2]: Entering directory `/var/tmp/portage/net-libs/libsoup-2.2.105-r1/work/libsoup-2.2.105/docs'
Making all in reference
make[3]: Entering directory `/var/tmp/portage/net-libs/libsoup-2.2.105-r1/work/libsoup-2.2.105/docs/reference'
gtk-doc: Scanning header files
make[3]: *** No rule to make target `libsoup-2.2-docs.sgml', needed by `html-build.stamp'.  Stop.
make[3]: *** Waiting for unfinished jobs....
Comment 10 PL Hayes 2008-02-25 23:38:41 UTC
From the Changelog:

  24 Feb 2008; Mart Raudsepp <leio@gentoo.org>
  +files/libsoup-2.2.105-fix-devhelp-docs.patch, -libsoup-2.2.3-r1.ebuild,
  -libsoup-2.2.105.ebuild, +libsoup-2.2.105-r1.ebuild:
  Fix gtk-docs not showing up in devhelp

But the patch is wrong - apart from the last diff in it (to the Makefile.in) - as Mart seems to have recognised:

http://bugzilla.gnome.org/show_bug.cgi?id=518384

Furthermore, the ebuild renames two devhelp files:

	# Fix GNOME bug #518384 - API docs not found by devhelp
	epatch "${FILESDIR}/${P}-fix-devhelp-docs.patch"
	mv "${S}/docs/reference/html/libsoup.devhelp" "${S}/docs/reference/html/libsoup-2.2.devhelp"
	mv "${S}/docs/reference/html/libsoup.devhelp2" "${S}/docs/reference/html/libsoup-2.2.devhelp2"

which, though those files do actually exist and are used, appears to be wrong too:

When I manually patch the Makefile.in and rename four files along the same lines as they have been renamed here:

http://bugzilla.gnome.org/show_bug.cgi?id=518384

(ie using 2.2 instead of 2.4), libsoup builds okay and correctly named devhelp files are generated.
Comment 11 PL Hayes 2008-02-25 23:46:17 UTC
(In reply to comment #10)

> When I manually patch the Makefile.in and rename four files along the same
> lines as they have been renamed here:
> 
> http://bugzilla.gnome.org/show_bug.cgi?id=518384
> 
> (ie using 2.2 instead of 2.4), libsoup builds okay and correctly named devhelp
> files are generated.

Sorry, wrong link there. It should be:

http://svn.gnome.org/viewvc/libsoup/trunk/docs/reference/
Comment 12 Ed Catmur 2008-03-01 20:47:30 UTC
Created attachment 145043 [details]
libsoup-2.2.105-r1.ebuild

ebuild with fixes as per above.

Additional files that are moved:
	mv "${S}/docs/reference/libsoup"{,-2.2}"-docs.sgml"
	mv "${S}/docs/reference/libsoup"{,-2.2}"-overrides.txt"
	mv "${S}/docs/reference/libsoup"{,-2.2}"-sections.txt"
	mv "${S}/docs/reference/libsoup"{,-2.2}".types"
Comment 13 Zsolti 2008-03-05 14:09:35 UTC
(In reply to comment #0)
i can confirm this for net-libs/libsoup-2.2.105-r1. -doc solved it for me.

Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.7-r1, 2.6.23-lisabook-rc2 x86_64)
=================================================================
System uname: 2.6.23-lisabook-rc2 x86_64 Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz
Timestamp of tree: Wed, 05 Mar 2008 11:30:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r6, 2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="x86_64-pc-linux-gnu"
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/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LINGUAS="de hu en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage-overlays/my"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 amr audiofile bash-completion berkdb bluetooth bzip2 cairo cddb cdr cli cracklib crypt cups dbus dia directfb doc dri dv dvd dvdr emacs encode exif fbcon ffmpeg firefox flac foomaticdb fortran fuse gdbm gif gnome gtk gtk2 hal hbci hfs httpd ical iconv insecure-drivers ipv6 isdnlog jack jpeg ladspa lame libnotify libsamplerate live lm_sensors logrotate madwifi makecheck matroska midi mmx mmxext mod mono mozsvg mp3 mpeg mudflap musicbrainz ncurses network nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pda pdf perl pic png postscript ppds pppd python quicktime readline reflection samba sdl session shout spell spl sse sse2 ssl stream svg tcpd theora threads thunderbird truetype unicode usb v4l v4l2 vcd vlm vorbis wmf x264 xml xorg xv xvid yv12 zlib" ALSA_CARDS="hda-intel" 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" APACHE2_MODULES="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 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" CAMERAS="kodak_dc210 canon ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de hu en" USERLAND="GNU" VIDEO_CARDS="i810 vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



Comment 14 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-03-05 15:48:50 UTC
please, pretty please, stop the "same for me" comments. The problem is not arch specific, comment #10, #11 and #12 provide explanation and test ebuild. Trying them and reporting status would be much more appreciated. Thanks for understanding. 
Comment 15 Leonid Podolny 2008-03-05 16:03:21 UTC
(In reply to comment #14)
> please, pretty please, stop the "same for me" comments. The problem is not arch
> specific, comment #10, #11 and #12 provide explanation and test ebuild. Trying
> them and reporting status would be much more appreciated. Thanks for
> understanding. 
> 

Merged an ebuild from comment #12, it seems to work.
Comment 16 David Klempner 2008-03-06 15:41:14 UTC
Same for me. (On the comment #12 ebuild working)
Comment 17 Mart Raudsepp gentoo-dev 2008-03-09 13:43:28 UTC
Sorry for the delay and breakage. We should sort this out and kill those USE=doc's in the first place... useless and just a time consumer these days in many cases.
Anyhow, this should be fixed now with the four additional mv's to get the files that gtk-doc looks for based on the changed DOC_MODULES variable correctly named. I also left the patch in, as that should make it work good for the cases that USE=doc is not used..

I also tried to do more moves to get the installed files set the same for both USE=doc and USE=-doc, but that had a snowball effect, so the files that get renamed are named differently (USE=doc has libsoup-22-* and USE=-doc has just libsoup-*) between them, but at least all the internal links work then.
Comment 18 Leonid Podolny 2008-03-09 15:44:04 UTC
(In reply to comment #17)
> Anyhow, this should be fixed now with the four additional mv's to get the files
Verified. Mart, thanks for the great work.