Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 276220 - app-pda/libopensync-plugin-python can't find python-2.7
Summary: app-pda/libopensync-plugin-python can't find python-2.7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Lowest normal with 1 vote (vote)
Assignee: Ryan Hill (RETIRED)
URL:
Whiteboard:
Keywords:
: 276215 276216 276222 276224 276226 276228 276230 308801 348483 (view as bug list)
Depends on:
Blocks: 354423
  Show dependency tree
 
Reported: 2009-07-02 13:14 UTC by Alexey Skobkin
Modified: 2011-02-20 03:42 UTC (History)
15 users (show)

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


Attachments
Build.log (build.log,3.75 KB, text/plain)
2009-07-05 11:26 UTC, Alexey Skobkin
Details
emerge --info (emergeinfo.txt,3.77 KB, text/plain)
2009-07-05 11:27 UTC, Alexey Skobkin
Details
Patch to make cmake properly set python-related variables (libopensync-plugin-python-cmake-python2.6.patch,1.32 KB, patch)
2009-08-02 17:56 UTC, Gef
Details | Diff
native_cmake.patch (native_cmake.patch,387 bytes, patch)
2010-03-21 07:17 UTC, Andrey Falko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Skobkin 2009-07-02 13:14:38 UTC
>>> Emerging (1 of 5) app-pda/libopensync-plugin-python-0.36
 * libopensync-plugin-python-0.36.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...[ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
>>> Unpacking source...
>>> Unpacking libopensync-plugin-python-0.36.tar.bz2 to /var/tmp/portage/app-pda/libopensync-plugin-python-0.36/work
>>> Source unpacked in /var/tmp/portage/app-pda/libopensync-plugin-python-0.36/work
>>> Compiling source in /var/tmp/portage/app-pda/libopensync-plugin-python-0.36/work/libopensync-plugin-python-0.36 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/app-pda/libopensync-plugin-python-0.36/work/libopensync-plugin-python-0.36_build"
loading initial cache file /var/tmp/portage/app-pda/libopensync-plugin-python-0.36/temp/gentoo_common_config.cmake
-- The C compiler identification is GNU
-- Check for working C compiler: /usr/bin/i686-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/i686-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- checking for one of the modules 'opensync-1.0>=0.36'
--   found opensync-1.0, version 0.36
-- checking for one of the modules 'glib-2.0'
--   found glib-2.0, version 2.20.3
-- checking for one of the modules 'gmodule-2.0'
--   found gmodule-2.0, version 2.20.3
-- checking for one of the modules 'gthread-2.0'
--   found gthread-2.0, version 2.20.3
-- checking for one of the modules 'gobject-2.0'
--   found gobject-2.0, version 2.20.3
-- Found GLib2: glib-2.0;gmodule-2.0;glib-2.0;gthread-2.0;rt;glib-2.0
-- CTest cannot determine repository type. Please set UPDATE_TYPE to 'cvs' or 'svn'. CTest update will not work.
CMake Warning (dev) at src/CMakeLists.txt:4 (ADD_DEFINITIONS):
  Policy CMP0005 is not set: Preprocessor definition values are now escaped
  automatically.  Run "cmake --help-policy CMP0005" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- <<< Gentoo configuration >>>
Build type: Gentoo
Install path: /usr

CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.6)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

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:
PYTHON_INCLUDE_PATH
   used as include directory in directory /var/tmp/portage/app-pda/libopensync-plugin-python-0.36/work/libopensync-plugin-python-0.36/src
PYTHON_LIBRARY
    linked by target "python-module" in directory /var/tmp/portage/app-pda/libopensync-plugin-python-0.36/work/libopensync-plugin-python-0.36/src

-- Configuring incomplete, errors occurred!
 *
 * ERROR: app-pda/libopensync-plugin-python-0.36 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2821:  Called cmake-utils_src_compile
 *             environment, line  748:  Called cmake-utils_src_configure
 *             environment, line  792:  Called die
 * The specific snippet of code:
 *       cmake ${cmakeargs} "${CMAKE_USE_DIR}" || die "cmake failed";
 *  The die message:
 *   cmake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-pda/libopensync-plugin-python-0.36/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-pda/libopensync-plugin-python-0.36/temp/environment'.

Reproducible: Always

Steps to Reproduce:
1. emerge --sync && emerge --regen
2. emerge -uDNva @world
Comment 1 Rafał Mużyło 2009-07-02 14:03:37 UTC
*** Bug 276222 has been marked as a duplicate of this bug. ***
Comment 2 Rafał Mużyło 2009-07-02 14:03:41 UTC
*** Bug 276224 has been marked as a duplicate of this bug. ***
Comment 3 Rafał Mużyło 2009-07-02 14:03:44 UTC
*** Bug 276226 has been marked as a duplicate of this bug. ***
Comment 4 Rafał Mużyło 2009-07-02 14:03:47 UTC
*** Bug 276228 has been marked as a duplicate of this bug. ***
Comment 5 Rafał Mużyło 2009-07-02 14:03:52 UTC
*** Bug 276230 has been marked as a duplicate of this bug. ***
Comment 6 Rafał Mużyło 2009-07-02 14:06:57 UTC
*** Bug 276216 has been marked as a duplicate of this bug. ***
Comment 7 Rafał Mużyło 2009-07-02 14:07:00 UTC
*** Bug 276215 has been marked as a duplicate of this bug. ***
Comment 8 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-07-05 09:32:41 UTC
Please post your "emerge --info" and attach the config.log file of the failed emerge to this bug.
Comment 9 Alexey Skobkin 2009-07-05 11:26:25 UTC
Created attachment 196743 [details]
Build.log

There is not config.log, but i find this...
Comment 10 Alexey Skobkin 2009-07-05 11:27:03 UTC
Created attachment 196745 [details]
emerge --info

There is "emerge --info" result.
Comment 11 Gef 2009-08-02 17:54:16 UTC
Same here with :
dev-util/cmake-2.6.4-r2
dev-lang/python-2.6.2-r1
(and full system rebuild to gcc-4.4.1 3 hours ago).

The cmake module FindPythonLibs.cmake is not python2.6-aware.
Comment 12 Gef 2009-08-02 17:56:07 UTC
Created attachment 199947 [details, diff]
Patch to make cmake properly set python-related variables
Comment 13 Alexey Skobkin 2009-08-02 19:08:27 UTC
(In reply to comment #12)
> Created an attachment (id=199947) [edit]
> Patch to make cmake properly set python-related variables

Sorry. I have very little experience. How can I apply this patch and how?
Comment 14 Gef 2009-08-02 20:01:10 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > Created an attachment (id=199947) [edit]
> > Patch to make cmake properly set python-related variables
> 
> Sorry. I have very little experience. How can I apply this patch and how?
> 
Save the patch to /some/location/my.patch
then :
ebuild /usr/portage/app-pda/libopensync-plugin-python/libopensync-plugin-python-0.36.ebuild unpack
cd /var/tmp/portage/app-pda/libopensync-plugin-python-0.36/work/libopensync-plugin-python-0.36
patch -p1 < /some/location/my.patch
ebuild /usr/portage/app-pda/libopensync-plugin-python/libopensync-plugin-python-0.36.ebuild merge

That should to it.
Comment 15 Alexey Skobkin 2009-08-02 20:13:24 UTC
Patch not work for me...

>
pc libopensync-plugin-python-0.36 # patch -p1 < /home/xak/libopensync-plugin-python-cmake-python2.6.patch
patching file cmake/modules/FindPythonLibs.cmake
pc libopensync-plugin-python-0.36 # ebuild /usr/portage/app-pda/libopensync-plugin-python/libopensync-plugin-python-0.36.ebuild merge
Disabling noauto in features... merge disables it. (qmerge doesn't)
>>> Existing ${T}/environment for 'libopensync-plugin-python-0.36' will be
>>> sourced. Run 'clean' to start with a fresh environment.
 * libopensync-plugin-python-0.36.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...[ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
 * checking libopensync-plugin-python-0.36.tar.bz2 ;-) ...               [ ok ]
>>> Checking libopensync-plugin-python-0.36.tar.bz2's mtime...
>>> WORKDIR is up-to-date, keeping...
>>> Compiling source in /var/tmp/portage/app-pda/libopensync-plugin-python-0.36/work/libopensync-plugin-python-0.36 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/app-pda/libopensync-plugin-python-0.36/work/libopensync-plugin-python-0.36_build"
loading initial cache file /var/tmp/portage/app-pda/libopensync-plugin-python-0.36/temp/gentoo_common_config.cmake
-- Found Python: /usr/lib/libpython2.6.so
CMake Error at CMakeLists.txt:15 (INCLUDE):
  include could not find load file:

    OpenSyncInternal


CMake Warning (dev) at src/CMakeLists.txt:4 (ADD_DEFINITIONS):
  Policy CMP0005 is not set: Preprocessor definition values are now escaped
  automatically.  Run "cmake --help-policy CMP0005" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at src/CMakeLists.txt:11 (OPENSYNC_PLUGIN_ADD):
  Unknown CMake command "OPENSYNC_PLUGIN_ADD".


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.6)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
 *
 * ERROR: app-pda/libopensync-plugin-python-0.36 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2822:  Called cmake-utils_src_compile
 *             environment, line  749:  Called cmake-utils_src_configure
 *             environment, line  793:  Called die
 * The specific snippet of code:
 *       cmake ${cmakeargs} "${CMAKE_USE_DIR}" || die "cmake failed";
 *  The die message:
 *   cmake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-pda/libopensync-plugin-python-0.36/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-pda/libopensync-plugin-python-0.36/temp/environment'.
 *

 * Messages for package app-pda/libopensync-plugin-python-0.36:

 *
 * ERROR: app-pda/libopensync-plugin-python-0.36 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2822:  Called cmake-utils_src_compile
 *             environment, line  749:  Called cmake-utils_src_configure
 *             environment, line  793:  Called die
 * The specific snippet of code:
 *       cmake ${cmakeargs} "${CMAKE_USE_DIR}" || die "cmake failed";
 *  The die message:
 *   cmake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-pda/libopensync-plugin-python-0.36/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-pda/libopensync-plugin-python-0.36/temp/environment'.
Comment 16 Gef 2009-08-02 20:25:47 UTC
(In reply to comment #15)
> CMake Error at CMakeLists.txt:15 (INCLUDE):
>   include could not find load file:
> 
>     OpenSyncInternal
Do you have /usr/share/opensync-1.0/cmake/modules/OpenSyncInternal.cmake on your system ? (from app-pda/libopensync). Which version of app-pda/libopensync ?
Comment 17 Alexey Skobkin 2009-08-02 20:36:28 UTC
There is no /usr/share/opensync-1.0/ directory.
Yesterday I installed 0.38, but this take cycle bugs with kitchensync
Comment 18 Rolando J. Zappacosta 2009-09-20 12:47:40 UTC
(In reply to comment #14)

The patch did the trick on my PC. I'm now behind an error when running sync-engine, will open a ticket for that if needed.

Thanks,
Rolando Zappacosta
Comment 19 John W Eckhart 2009-10-13 20:01:07 UTC
The problem is that libopensync-plugin-python ships with a cmake plugin for FindPythonLibs that is not forward compatible with new versions of python. Since gentoo ships cmake with a FindPythonLibs module that works for current versions, it's best to remove the module from libopensync-plugin-python and defer to the default module shipped with Gentoo's cmake.

i.e. in my libopensync-plugin-python ebuild, I have the following which works well for me:

src_unpack() {
	unpack $A
	rm "${S}"/cmake/modules/FindPythonLibs.cmake
}

Comment 20 Simeon Maryasin 2009-10-18 01:50:09 UTC
(In reply to comment #19)
> i.e. in my libopensync-plugin-python ebuild, I have the following which works
> well for me:
> 
> src_unpack() {
>         unpack $A
>         rm "${S}"/cmake/modules/FindPythonLibs.cmake
> }
> 
Works fine for me. Thanks.
Comment 21 Gef 2009-10-29 14:58:05 UTC
(In reply to comment #19)
> The problem is that libopensync-plugin-python ships with a cmake plugin for
> FindPythonLibs that is not forward compatible with new versions of python.
> Since gentoo ships cmake with a FindPythonLibs module that works for current
> versions, it's best to remove the module from libopensync-plugin-python and
> defer to the default module shipped with Gentoo's cmake.
> 
> i.e. in my libopensync-plugin-python ebuild, I have the following which works
> well for me:
Clever, works for me. Thanks.

emerge --info :
Portage 2.2_rc46 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.10.1-r0, 2.6.31-zen4-low-tickless-hrt-ipv6 x86_64)
=================================================================
System uname: Linux-2.6.31-zen4-low-tickless-hrt-ipv6-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7300_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 28 Oct 2009 21:45:02 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.3, 3.1.1-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
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/X11/xkb /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/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="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/usr/local/portage/distfiles/"
FEATURES="assume-digests ccache collision-protect distlocks fixpackages news parallel-fetch preserve-libs preserved-rebuild protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.free.fr/mirrors/ftp.gentoo.org/ http://mirror.ovh.net/gentoo-distfiles/"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="fr fr_FR"
MAKEOPTS="-j3"
PKGDIR="/usr/local/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="/usr/local/portage/zeta-overlay /usr/local/portage/layman/mozilla /usr/local/portage/layman/wschlich-testing /usr/local/portage/layman/x11 /usr/local/portage/layman/sunrise"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apm berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt dbus dri dts dvd dvdr emboss encode evo exif ffmpeg flac gdbm gif gnutls gpm gstreamer gtk hal iconv id3tag ipv6 isdnlog jpeg lame laptop libnotify mad mikmod mmx modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nvidia ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl ssse3 svg sysfs tcpd threads thunar tiff truetype unicode usb vdpau vorbis x264 xcb xinerama xml xorg xulrunner xv xvid xvmc 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 mmap_emul mulaw multi null plug rate route share shm softvol" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr fr_FR" QEMU_SOFTMMU_TARGETS="x86_64 x86" QEMU_USER_TARGETS="x86_64 x86" USERLAND="GNU" VIDEO_CARDS="nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 22 Andrey Falko 2010-03-21 07:08:27 UTC
I'm hitting this same exact problem. 

Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.4.3, glibc-2.11-r1, 2.6.33.1 i686)
=================================================================
System uname: Linux-2.6.33.1-i686-AMD_Phenom-tm-_9850_Quad-Core_Processor-with-gentoo-2.0.1
Timestamp of tree: Sat, 20 Mar 2010 15:30:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p2
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-python/pycrypto: 2.1.0
dev-util/cmake:      2.8.1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.7.9-r1, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA ut2003 dlj-1.1 skype-eula QUAKE4"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon64 -pipe"
DISTDIR="/in/portage"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1"
LINGUAS="en ru"
MAKEOPTS="-j4"
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="/usr/portage/local/layman/gnash-cvs /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl alsa apache2 arts bash-completion berkdb branding bzip2 cairo cdda cddb cli cracklib crypt cups curl cxx dbus dri dts dvb dvd dvdread encode enscript exif fax fbcon ffmpeg firefox flac foomaticdb fortran gd gdbm gif gimpprint gphoto2 gpm gstreamer hal iconv imap imlib iproute2 ipv6 java jpeg kde kpathsea lame libwww lirc lm_sensors mad maildir matroska mikmod mjpeg mng modules motif mp3 mpeg mplayer mudflap mysql ncurses nls nptl nptlonly nsplugin nvidia offensive ogg openal opengl openmp optimisememory oss pam pcre pdf perl php png postfix postgres ppds pppd python qt3support qt4 quicktime readline reflection rpm rtsp sasl scanner sdl sdl-image secure-delete semantic-desktop session snmp sound speex spell spl sql ssl ssse3 stream subversion svg sysfs tcpd tetex theora threads tiff tk truetype unicode usb v4l v4l2 vcd vim-syntax vorbis webdav win32codecs wxwindows x264 x86 xcb xinerama xml xorg xv xvid zlib" ALSA_CARDS="usb-usx2y hdsp hdspm" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" FOO2ZJS_DEVICES="hp1020" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" LIRC_DEVICES="hauppauge" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 23 Andrey Falko 2010-03-21 07:17:59 UTC
Created attachment 224475 [details, diff]
native_cmake.patch

Per Comment #19, I'm attaching this patch because it is the fix that has worked for me and I think it should go into the tree.
Comment 24 Herbert Wantesh 2010-03-30 20:21:15 UTC
it works for me too
Comment 25 L. Gordnier 2010-07-08 00:34:50 UTC
I used both patched.  Added the second one first (since I found it first), no dice.  Then added the first suggested patch on this buglist and it worked.(In reply to comment #0)
> >>> Emerging (1 of 5) app-pda/libopensync-plugin-python-0.36
>  * libopensync-plugin-python-0.36.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...[ ok ]
>  * checking ebuild checksums ;-) ...                                     [ ok ]
>  * checking auxfile checksums ;-) ...                                    [ ok ]
>  * checking miscfile checksums ;-) ...                                   [ ok ]
> >>> Unpacking source...
> >>> Unpacking libopensync-plugin-python-0.36.tar.bz2 to /var/tmp/portage/app-pda/libopensync-plugin-python-0.36/work
> >>> Source unpacked in /var/tmp/portage/app-pda/libopensync-plugin-python-0.36/work
> >>> Compiling source in /var/tmp/portage/app-pda/libopensync-plugin-python-0.36/work/libopensync-plugin-python-0.36 ...
> >>> Working in BUILD_DIR: "/var/tmp/portage/app-pda/libopensync-plugin-python-0.36/work/libopensync-plugin-python-0.36_build"
> loading initial cache file
> /var/tmp/portage/app-pda/libopensync-plugin-python-0.36/temp/gentoo_common_config.cmake
> -- The C compiler identification is GNU
> -- Check for working C compiler: /usr/bin/i686-pc-linux-gnu-gcc
> -- Check for working C compiler: /usr/bin/i686-pc-linux-gnu-gcc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- checking for one of the modules 'opensync-1.0>=0.36'
> --   found opensync-1.0, version 0.36
> -- checking for one of the modules 'glib-2.0'
> --   found glib-2.0, version 2.20.3
> -- checking for one of the modules 'gmodule-2.0'
> --   found gmodule-2.0, version 2.20.3
> -- checking for one of the modules 'gthread-2.0'
> --   found gthread-2.0, version 2.20.3
> -- checking for one of the modules 'gobject-2.0'
> --   found gobject-2.0, version 2.20.3
> -- Found GLib2: glib-2.0;gmodule-2.0;glib-2.0;gthread-2.0;rt;glib-2.0
> -- CTest cannot determine repository type. Please set UPDATE_TYPE to 'cvs' or
> 'svn'. CTest update will not work.
> CMake Warning (dev) at src/CMakeLists.txt:4 (ADD_DEFINITIONS):
>   Policy CMP0005 is not set: Preprocessor definition values are now escaped
>   automatically.  Run "cmake --help-policy CMP0005" for policy details.  Use
>   the cmake_policy command to set the policy and suppress this warning.
> This warning is for project developers.  Use -Wno-dev to suppress it.
> 
> -- <<< Gentoo configuration >>>
> Build type: Gentoo
> Install path: /usr
> 
> CMake Warning (dev) in CMakeLists.txt:
>   No cmake_minimum_required command is present.  A line of code such as
> 
>     cmake_minimum_required(VERSION 2.6)
> 
>   should be added at the top of the file.  The version specified may be lower
>   if you wish to support older CMake versions for this project.  For more
>   information run "cmake --help-policy CMP0000".
> This warning is for project developers.  Use -Wno-dev to suppress it.
> 
> 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:
> PYTHON_INCLUDE_PATH
>    used as include directory in directory
> /var/tmp/portage/app-pda/libopensync-plugin-python-0.36/work/libopensync-plugin-python-0.36/src
> PYTHON_LIBRARY
>     linked by target "python-module" in directory
> /var/tmp/portage/app-pda/libopensync-plugin-python-0.36/work/libopensync-plugin-python-0.36/src
> 
> -- Configuring incomplete, errors occurred!
>  *
>  * ERROR: app-pda/libopensync-plugin-python-0.36 failed.
>  * Call stack:
>  *               ebuild.sh, line   49:  Called src_compile
>  *             environment, line 2821:  Called cmake-utils_src_compile
>  *             environment, line  748:  Called cmake-utils_src_configure
>  *             environment, line  792:  Called die
>  * The specific snippet of code:
>  *       cmake ${cmakeargs} "${CMAKE_USE_DIR}" || die "cmake failed";
>  *  The die message:
>  *   cmake failed
>  *
>  * If you need support, post the topmost build error, and the call stack if
> relevant.
>  * A complete build log is located at
> '/var/tmp/portage/app-pda/libopensync-plugin-python-0.36/temp/build.log'.
>  * The ebuild environment file is located at
> '/var/tmp/portage/app-pda/libopensync-plugin-python-0.36/temp/environment'.
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. emerge --sync && emerge --regen
> 2. emerge -uDNva @world
> 

Comment 26 cmuelle8 2010-10-13 02:14:09 UTC
the native_cmake.patch is all that is needed to make it compile..  just tested


greetings,
cmuelle8
Comment 27 cmuelle8 2010-10-13 02:15:26 UTC
(confirming comment #23 and comment #24)
Comment 28 Ryan Hill (RETIRED) gentoo-dev 2011-02-10 22:24:16 UTC
*** Bug 308801 has been marked as a duplicate of this bug. ***
Comment 29 Ryan Hill (RETIRED) gentoo-dev 2011-02-10 22:34:18 UTC
*** Bug 348483 has been marked as a duplicate of this bug. ***
Comment 30 Ryan Hill (RETIRED) gentoo-dev 2011-02-12 03:39:47 UTC
Mine.