Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 387709 - net-p2p/transmission-2.41 fails to compile with USE="-utp"
Summary: net-p2p/transmission-2.41 fails to compile with USE="-utp"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Peter Volkov (RETIRED)
URL:
Whiteboard:
Keywords:
: 391303 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-10-19 17:17 UTC by Oleh
Modified: 2011-11-26 22:46 UTC (History)
18 users (show)

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


Attachments
build.log (build.log,99.29 KB, text/plain)
2011-10-19 17:55 UTC, Oleh
Details
transmission-2.41-1.ebuild (transmission-2.41.ebuild,3.93 KB, text/plain)
2011-10-19 20:03 UTC, Helmuth Schmelzer
Details
transmission-2.41-r1.ebuild (transmission-2.41.ebuild,3.93 KB, text/plain)
2011-10-19 20:10 UTC, Helmuth Schmelzer
Details
transmission-2.41-no_utp.patch (transmission-2.41-no_utp.patch,1.14 KB, text/plain)
2011-10-19 20:12 UTC, Helmuth Schmelzer
Details
build log with +qt -utp (build.log,241.62 KB, text/plain)
2011-10-23 15:52 UTC, Marko D
Details
Upstream patch (transmission-2.41-third-party_libutp_utypes_h.patch,323 bytes, patch)
2011-10-24 19:29 UTC, blakawk
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oleh 2011-10-19 17:17:12 UTC
transmission-2.41 fails to compile with disabled utp flag. With enabled flag package emerged as it should

Reproducible: Always

Steps to Reproduce:
1.Set -utp and emerge =net-p2p/transmission-2.41, notice a build failure.
2.Set utp flag, emerge is fine
3.
Actual Results:  
compile phase failure because of disabled utp

make[1]: Leaving directory `/var/tmp/portage/net-p2p/transmission-2.41/work/transmission-2.41/libtransmission'
make: *** [all-recursive] Error 1
 * ERROR: net-p2p/transmission-2.41 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of 'emerge --info =net-p2p/transmission-2.41',
 * the complete build log and the output of 'emerge -pqv =net-p2p/transmission-2.41'.
 * The complete build log is located at '/var/tmp/portage/net-p2p/transmission-2.41/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-p2p/transmission-2.41/temp/environment'.
 * S: '/var/tmp/portage/net-p2p/transmission-2.41/work/transmission-2.41'

>>> Failed to emerge net-p2p/transmission-2.41, Log file:

>>>  '/var/tmp/portage/net-p2p/transmission-2.41/temp/build.log'

 * Messages for package net-p2p/transmission-2.41:

 * ERROR: net-p2p/transmission-2.41 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of 'emerge --info =net-p2p/transmission-2.41',
 * the complete build log and the output of 'emerge -pqv =net-p2p/transmission-2.41'.
 * The complete build log is located at '/var/tmp/portage/net-p2p/transmission-2.41/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-p2p/transmission-2.41/temp/environment'.
 * S: '/var/tmp/portage/net-p2p/transmission-2.41/work/transmission-2.41'

Expected Results:  
emerged and installed

emerge --info

Portage 2.3-r7 (default/linux/amd64/2008.0, gcc-4.4.5, glibc-2.11.3-r0, 2.6.32debian-30 x86_64)
=================================================================
System uname: Linux-2.6.32debian-30-x86_64-AMD_Phenom-tm-_II_X6_1055T_Processor-with-gentoo-2.1.8
Timestamp of tree: Wed, 19 Oct 2011 16:00:01 +0000
app-shells/bash:          4.2_p10-r1::funtoo-overlay
dev-lang/python:          2.7.1-r3::funtoo-overlay, 3.2::funtoo-overlay
dev-util/cmake:           2.8.6-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1.8-r2
sys-apps/openrc:          0.8.3-r3::funtoo-overlay
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1-r1
sys-devel/binutils:       2.20.1::funtoo-overlay
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.5
sys-devel/libtool:        2.4-r3::funtoo-overlay
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.32 (virtual/os-headers)
sys-libs/glibc:           2.11.3
Repositories: gentoo oss-overlay lcd-filtering mpd funtoo-overlay
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/src/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages mini-manifest news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="ru"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/cache/portage"
PORTDIR_OVERLAY="/var/lib/layman/oss-overlay /var/lib/layman/lcd-filtering /var/lib/layman/mpd /home/oleg/funtoo-overlay"
SYNC="git://github.com/funtoo/portage-mini-2011.git"
SYNC_USER="root"
USE="X acl alac amd64 apng berkdb bzip2 cdr cli cracklib crypt cxx dbus dri dvd dvdr dvdread encode flac fortran gdbm gif gpm iconv ipv6 jpeg lame lcdfilter mad mmx modules mp3 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre perl png pppd python readline session sse sse2 sse3 ssl ssse3 sysfs tcpd threads tiff truetype udev unicode vorbis wavpack xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 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 stage tables krita karbon braindump" 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 ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fglrx" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC_UMASK
Comment 1 Oleh 2011-10-19 17:55:05 UTC
Created attachment 290257 [details]
build.log
Comment 2 Helmuth Schmelzer 2011-10-19 20:03:09 UTC
Created attachment 290271 [details]
transmission-2.41-1.ebuild

Modifiqued Ebuild for net-p2p/transmission with transmission-2.41-noutp.patch
Comment 3 Helmuth Schmelzer 2011-10-19 20:10:48 UTC
Created attachment 290273 [details]
transmission-2.41-r1.ebuild

Modifiqued Ebuild for net-p2p/transmission with transmission-2.41-noutp.patch
Comment 4 Helmuth Schmelzer 2011-10-19 20:12:25 UTC
Created attachment 290275 [details]
transmission-2.41-no_utp.patch

Patch for net-p2p/transmission for successfull compilation with use utp disabled
Comment 5 Scott Alfter 2011-10-20 14:38:31 UTC
I've seen the same behavior on one of my systems...the proposed fix still doesn't allow Transmission to build.  It looks like linking fails.
Comment 6 Dmitry Suloev 2011-10-20 17:38:23 UTC
Same problem.
Comment 7 Alexander 2011-10-20 21:45:15 UTC
same here
Comment 8 Oleg Gawriloff 2011-10-21 09:54:51 UTC
With proposed patch (renamed to transmission-2.41-no_utp.patch) compiles well.
Comment 9 Helmuth Schmelzer 2011-10-21 16:43:41 UTC
Errata in proposed patch fixed, renamed this patch to transmission-2.41-no_utp.patch = compiles_well :)
Comment 10 Nikolaj Šujskij 2011-10-22 10:53:40 UTC
2.42 is out, but I don't see anything concerning this issue in Release Notes or Trac.
Comment 11 Marko D 2011-10-23 15:52:39 UTC
Created attachment 290641 [details]
build log with +qt -utp

If qt flag is enabled and utp flag is disabled the build is failing:

net-p2p/transmission-2.41 [2.33-r1] USE="gtk nls qt4 -kde -utp (-libcanberra%) (-libnotify%*)" .
The issue seems to be that the qt folder is ignoring the --disable-utp option.
Comment 12 Rémi Cardona (RETIRED) gentoo-dev 2011-10-24 06:27:08 UTC
Confirming on an amd64 system. I'll give the patch a try soon.

Thanks
Comment 13 blakawk 2011-10-24 19:25:52 UTC
The attached patch does not work on my system. After looking around, it seems that upstream (https://trac.transmissionbt.com/ticket/4528) is waiting for upstream libutp (https://github.com/bittorrent/libutp/pull/12) to be included. I added some comments in both upstream sources in order to have this fixed.

In the mean time, I attach the temporary fix that should work until upstream decides what to do.
Comment 14 blakawk 2011-10-24 19:29:16 UTC
Created attachment 290737 [details, diff]
Upstream patch
Comment 15 Petr Zima 2011-10-28 15:05:32 UTC
Confirming here on ~x86. The upstream patch fixes it for me (without qt).
Comment 16 Guillaume ZITTA 2011-10-29 07:43:14 UTC
(In reply to comment #15)
> Confirming here on ~x86. The upstream patch fixes it for me (without qt).

Same on ~amd64
Comment 17 Rémi Cardona (RETIRED) gentoo-dev 2011-11-01 15:20:35 UTC
The patch works fine with a local 2.42 ebuild, so I assume it should work fine on 2.41 as well.

Peter, may I commit?

Thanks
Comment 18 elvis4526 2011-11-08 02:18:10 UTC
I can confirm this bug, I temporary fixed it by enabling utp.
Comment 19 Oleg Gawriloff 2011-11-18 09:19:57 UTC
Any news?
Comment 20 Jory A. Pratt gentoo-dev 2011-11-26 02:31:58 UTC
*** Bug 391303 has been marked as a duplicate of this bug. ***
Comment 21 Gilles Dartiguelongue (RETIRED) gentoo-dev 2011-11-26 22:46:06 UTC
+  26 Nov 2011; Gilles Dartiguelongue <eva@gentoo.org> transmission-2.41.ebuild,
+  +files/transmission-2.41-noutp.patch:
+  Fix build issue when USE=-utp, bug #290737.

With so many people complaining and no sign of activity, I took the liberty to
fix this myself applying "upstream" patch. Hope I'm not stepping on anyone toes.