Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 524504 - dev-qt/qt-creator-2.8.1 fails to validate cmake path
Summary: dev-qt/qt-creator-2.8.1 fails to validate cmake path
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Davide Pesavento (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-05 09:20 UTC by Cyril
Modified: 2014-10-14 23:40 UTC (History)
1 user (show)

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


Attachments
Packages update since 3.10.2014 (emerge.log,21.25 KB, text/plain)
2014-10-06 06:39 UTC, Cyril
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cyril 2014-10-05 09:20:40 UTC
When opening cmake project, qt creator looks for cmake path. If not valid, creator pop up a wizard to indicate the good path.
Validator of the wizard do not pass test, so we can't achieve the wizard.

Reproducible: Always

Steps to Reproduce:
1. open a cmake project with qt creator
2. follow the wizard to configure project
3.



The validator for the cmake binary path, is a QProcess where you push the cmake path and the argument "--help".

I think QProcess::execute failed. Perhaps a bash compatibility ? This fails since 3 days ago. Looking my emerge.log -> bash update.
Comment 1 Cyril 2014-10-05 10:04:44 UTC
Humm, small snippets works

#include <QCoreApplication>
#include <QProcess>

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    qDebug("Start test");

    QProcess test;
    test.start("/usr/bin/cmake", QStringList() << "--help");
    if (!test.waitForStarted()) {
        qDebug("Not Started");
        return false;
    }
    qDebug("Started");

    test.waitForReadyRead();
    qDebug(qPrintable(test.readAllStandardOutput()));
    return a.exec();
}

$ qmake -project
$ qmake 
$ make
$ ./test 
Start test
Started
Usage

  cmake [options] <path-to-source>
  cmake [options] <path-to-existing-build>

Options
  -C <initial-cache>          = Pre-load a script to populate the cache.
  -D <var>:<type>=<value>     = Create a cmake cache entry.
  -U <globbing_expr>          = Remove matching entries from CMake cache.
  -G <generator-name>         = Specify a build system generator.
  -T <toolset-name>           = Specify toolset name if supported by
                                generator.
  -Wno-dev                    = Suppress developer warnings.
  -Wdev                       = Enable developer warnings.
  -E                          = CMake command mode.
  -L[A][H]                    = List non-advanced cached variables.
  --build <dir>               = Build a CMake-generated project binary tree.
  -N                          = View mode only.
  -P <file>                   = Process script mode.
  --find-package              = Run in pkg-config like mode.
  --graphviz=[file]           = Generate graphviz of dependencies, see
                                CMakeGraphVizOptions.cmake for more.
  --system-information [file] = Dump information about this system.
  --debug-trycompile          = Do not delete the try_compile build tree.
                                Only useful on one try_compile at a time.
  --debug-output              = Put cmake in a debug mode.
  --trace                     = Put cmake in trace mode.
  --warn-uninitialized        = Warn about uninitialized values.
  --warn-unused-vars          = Warn about unused variables.
  --no-warn-unused-cli        = Don't warn about command line options.
  --check-system-vars         = Find problems with variable usage in system
                                files.
  --help,-help,-usage,-h,-H,/?= Print usage information and exit.
  --version,-version,/V [<f>] = Print version number and exit.
  --help-full [<f>]           = Print all help manuals and exit.
  --help-manual <man> [<f>]   = Print one help manual and exit.
  --help-manual-list [<f>]    = List help manuals available and exit.
  --help-command <cmd> [<f>]  = Print help for one command and exit.
  --help-command-list [<f>]   = List commands with help available and exit.
  --help-commands [<f>]       = Print cmake-commands manual and exit.
  --help-module <mod> [<f>]   = Print help for one module and exit.
  --help-module-list [<f>]    = List modules with help available and exit.
  --help-modules [<f>]        = Print cmake-modules manual and exit.
  --help-policy <cmp> [<f>]   = Print help for one policy and exit.
  --help-policy-list [<f>]    = List policies with help available and exit.
  --help-policies [<f>]       = Print cmake-policies manual and exit.
  --help-property <prop> [<f>]= Print help for one property and exit.
  --help-property-list [<f>]  = List properties with help available and exit.
  --help-properties [<f>]     = Print cmake-properties manual and exit.
  --help-variable var [<f>]   = Print help for one variable and exit.
  --help-variable-list [<f>]  = List variables with help available and exit.
  --help-variables [<f>]      = Print cmake-variables manual and exit.

Generators

The following generators are available on this platform:
  Unix Makefiles              = Generates standard UNIX makefiles.
  Ninja                       = Generates build.ninja files (experimental).
  CodeBlocks - Ninja          = Generates CodeBlocks project files.
  CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.
  CodeLite - Ninja            = Generates CodeLite project files.
  CodeLite - Unix Makefiles   = Generates CodeLite project files.
  Eclipse CDT4 - Ninja        = Generates Eclipse CDT 4.0 project files.
  Eclipse CDT4 - Unix Makefiles
                              = Generates Eclipse CDT 4.0 project files.
  KDevelop3                   = Generates KDevelop 3 project files.
  KDevelop3 - Unix Makefiles  = Generates KDevelop 3 project files.
  Kate - Ninja                = Generates Kate project files.
  Kate - Unix Makefiles       = Generates Kate project files.
  Sublime Text 2 - Ninja
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-05 10:36:53 UTC
Please post your `emerge --info dev-qt/qt-creator' output in a comment.
Comment 3 Cyril 2014-10-05 10:51:22 UTC
# emerge --info dev-qt/qt-creator
Portage 2.2.14_rc1 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop/kde/systemd, gcc-4.8.3, glibc-2.19-r1, 3.16.3-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.16.3-gentoo-x86_64-Intel-R-_Core-TM-_i5-3570K_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:     8115164 total,   6433156 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of tree: Sun, 05 Oct 2014 08:45:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p52
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.1
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.1
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo steam-overlay leio-personal monoverlay
Installed sets: @gstreamer, @monkde, @ryzom
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -floop-interchange -floop-strip-mine -floop-block"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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"
CXXFLAGS="-O2 -march=native -pipe -floop-interchange -floop-strip-mine -floop-block"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"                                                                                                                  
FCFLAGS="-O2 -pipe"                                                                                                                                   
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"                       
FFLAGS="-O2 -pipe"                                                                                                                                    
GENTOO_MIRRORS="ftp://gentoo.imj.fr/pub/gentoo/"                                                                                                      
LANG="fr_FR.utf8"                                                                                                                                     
LDFLAGS="-Wl,-O1 -Wl,--as-needed"                                                                                                                     
MAKEOPTS="-j4"                                                                                                                                        
PKGDIR="/usr/portage/packages"                                                                                                                        
PORTAGE_CONFIGROOT="/"                                                                                                                                
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                                                            
PORTAGE_TMPDIR="/var/tmp"                                                                                                                             
PORTDIR="/usr/portage"                                                                                                                                
PORTDIR_OVERLAY="/var/lib/layman/steam /var/lib/layman/leio /var/lib/monoverlay"                                                                      
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"                                                                                                     
USE="X a52 aac acl acpi amd64 avahi berkdb bluetooth branding bzip2 cairo cdda cdr cli cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam fftw firefox flac fortran gdbm gif glamor gmp gpm gstreamer iconv icu imagemagick ipv6 jemalloc jpeg jpeg2k kde kipi lcms ldap libnotify lzma mad mmx mng modules mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opencl openexr opengl openmp opus pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qt3support qt4 raster readline samba scanner sdl semantic-desktop session spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd tcpd threads tiff truetype udev udisks unicode upnp upower usb v4l2 vaapi vdpau vorbis wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zeroconf zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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="flow krita sheets stage tables words" 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 ublox ubx" GRUB_PLATFORMS="pc efi-64" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON                                                                                                                                                    
                                                                                                                                                      
=================================================================                                                                                     
                        Package Settings                                                                                                              
=================================================================

dev-qt/qt-creator-2.8.1 was built with the following:
USE="cmake git valgrind -android -autotools -bazaar -clearcase -cvs -debug -doc -examples -fakevim -madde -mercurial -perforce -qnx -subversion -test" ABI_X86="64" LINGUAS="fr -cs -de -es -it -ja -pl -ru -sl -uk -zh_CN -zh_TW"
Comment 4 Cyril 2014-10-05 13:30:57 UTC
With dev-qt/qt-creator-3.2.0, no problems with cmake path détection.
Comment 5 Cyril 2014-10-06 06:39:39 UTC
Created attachment 386124 [details]
Packages update since 3.10.2014
Comment 6 Cyril 2014-10-06 06:41:55 UTC
(In reply to Cyril from comment #5)
> Created attachment 386124 [details]
> Packages update since 3.10.2014

Same problem on my professionnal computer at work.
Comment 7 Davide Pesavento (RETIRED) gentoo-dev 2014-10-14 23:40:04 UTC
I've unmasked qt-creator-3.x so I will consider this as fixed upstream.