Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 274270 - [kde-testing] kde-base/kget-4.2.91 fails to compile: BTCORE_INCLUDE_DIR not defined
Summary: [kde-testing] kde-base/kget-4.2.91 fails to compile: BTCORE_INCLUDE_DIR not d...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-15 19:08 UTC by Tanktalus
Modified: 2009-07-10 13:47 UTC (History)
0 users

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


Attachments
build log (build.log,7.64 KB, text/plain)
2009-06-15 20:10 UTC, Tanktalus
Details
patch fixing the problem for me (amd64, with kdeprefix) (kget-4.3-btcore-external-kdeprefix.patch,630 bytes, patch)
2009-06-16 21:12 UTC, Tanktalus
Details | Diff
BTCore.patch from pinotree (findbtcore.patch,453 bytes, text/plain)
2009-06-16 21:51 UTC, Tomáš Chvátal (RETIRED)
Details
Reformatted patch (kget-4.3-btcore-official.patch,374 bytes, patch)
2009-06-17 17:42 UTC, Tanktalus
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tanktalus 2009-06-15 19:08:28 UTC
I have kget-4.2.91 installed, but the USE flags changed, so it's trying to reinstall.  Unfortunately, I'm getting the following error:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
BTCORE_INCLUDE_DIR
   used as include directory in directory /var/tmp/portage/kde-base/kget-4.2.91/work/kget-4.2.91/kget/transfer-plugins/bittorrent

My USE flags for kget are: bittorrent-external debug handbook kdeprefix plasma semantic-desktop (-aqua) -sqlite (-bittorrent%)


Reproducible: Always
Comment 1 Sebastian Luther (few) 2009-06-15 19:39:28 UTC
emerge --info and the build.log/config.log please.
Comment 2 Tanktalus 2009-06-15 20:10:05 UTC
Portage 2.2_rc33 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-x86_64-AMD_Phenom-tm-_9850_Quad-Core_Processor-with-glibc2.2.5
Timestamp of tree: Mon, 15 Jun 2009 07:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    1.6-r2
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.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=native"
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/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/kde/4.3/env /usr/kde/4.3/share/config /usr/kde/4.3/shutdown /usr/share/config /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O3 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo ftp://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://gentoo.mirrors.tds.net/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j9 -l25"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/home/dmcbride/cvs/portdir-mine /usr/portage/local/layman/qting-edge /usr/portage/local/layman/jokey /usr/portage/local/layman/kde-testing"
SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 arts audiofile avi bash-completion berkdb branding bzip2 cairo cddb cdparanoia cdr cli cracklib crypt css cups dbus dri dvd dvdr dvdread encode exif expat ffmpeg fftw firefox fontconfig fortran gd gdbm gif gimp gmp gnutls gpm gs hal htmlhandbook iconv imagemagick ipv6 isdnlog java jbig jpeg jpeg2k kde kdeprefix lcms lzo mad midi mjpeg mmx mng mp3 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre perl png pppd python qt4 readline reflection sdl session smp spl sse sse2 ssl subversion svg sysfs tcpd threads tiff truetype unicode vcd vorbis wmf x264 xcb xcomposite xinerama xml xorg xulrunner xvid 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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" ELIBC="glibc" FOO2ZJS_DEVICES="hp2600n" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="vesa fbdev radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Tanktalus 2009-06-15 20:10:55 UTC
Created attachment 194827 [details]
build log
Comment 4 Tanktalus 2009-06-15 20:17:04 UTC
Should mention the obvious: this is an overlay bug, which is why I didn't mark it higher severity.
Comment 5 Tomáš Chvátal (RETIRED) gentoo-dev 2009-06-16 14:39:05 UTC
Lokos like kdeprefix issue. Without kdeprefix it get located correctly.
Comment 6 Tanktalus 2009-06-16 19:30:36 UTC
That's odd - since I got it to compile before the bittorrent flag was removed?
Comment 7 Tomáš Chvátal (RETIRED) gentoo-dev 2009-06-16 19:33:18 UTC
try -bittorent-external :]
Comment 8 Tanktalus 2009-06-16 21:12:43 UTC
Created attachment 194940 [details, diff]
patch fixing the problem for me (amd64, with kdeprefix)

suggested patch that gets this to compile in a kdeprefix environment.  I added the following function to my kget ebuild:

src_prepare() {
	kde4-meta-src_prepare
	use kdeprefix && epatch ${FILESDIR}/kget-4.3-btcore-external-kdeprefix.patch
}

and then it compiled.
Comment 9 Tomáš Chvátal (RETIRED) gentoo-dev 2009-06-16 21:51:31 UTC
Created attachment 194943 [details]
BTCore.patch from pinotree

As kindly provided on #kde-devel this patch should be correct and fix the issue.
Please test and confirm.
Comment 10 Tanktalus 2009-06-16 23:10:00 UTC
I had to add some whitespace to the patch to get it to patch, and then it seemed to work.  The original source had a single space at the end of the "PATHS" line and the "FIND_LIBRARY" line at the bottom.  And the ---/+++ lines at the top need full paths: "cmake/modules/" to both lines.  And then it patched and worked.

I'm wondering if upstream is going to put this in?
Comment 11 Tomáš Chvátal (RETIRED) gentoo-dev 2009-06-17 16:28:47 UTC
It is fixed in live kget.
So with next snapshots it will be fixed. For now use -bittorrent-external :]
Comment 12 Tanktalus 2009-06-17 17:42:10 UTC
Created attachment 195011 [details, diff]
Reformatted patch

This is my reformatted version of pinotree's patch which actually applies here for me, in case someone finds it useful prior to .92's release.
Comment 13 Tanktalus 2009-06-17 17:44:33 UTC
Here's my ebuild diff.  This, with the official patch (reformatted), gets kget to build with kdeprefix and the external btcore.  I'm not sure if we should check !use externall-bittorrent or not.

--- /usr/portage/local/layman/kde-testing/kde-base/kget/kget-4.2.91.ebuild      2009-06-14 02:30:42.726799849 -0600
+++ kget-4.2.91-r1.ebuild       2009-06-16 17:00:20.166800441 -0600
@@ -26,6 +26,10 @@
 RDEPEND="${DEPEND}
        semantic-desktop? ( >=kde-base/nepomuk-${PV}:${SLOT}[kdeprefix=] )
 "
+src_prepare() {
+       kde4-meta_src_prepare
+       use kdeprefix && epatch ${FILESDIR}/kget-4.3-btcore-official.patch
+}

 src_configure() {
        mycmakeargs="${mycmakeargs}
Comment 14 Tanktalus 2009-07-03 17:16:44 UTC
@Tomáš - you said this was in live?  It doesn't seem to be in .95 :-(
Comment 15 Tanktalus 2009-07-10 13:47:14 UTC
Not in .96, either.  What bug in kde's bugzilla is this covered in?  I'd update that if I found it ;-)