Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 479402 - [qt overlay] missing dev-qt/qtquick1 package
Summary: [qt overlay] missing dev-qt/qtquick1 package
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2013-08-01 13:44 UTC by Jan Kundrát (RETIRED)
Modified: 2013-10-22 23:39 UTC (History)
1 user (show)

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


Attachments
qtquick1-5.1.0.ebuild (qtquick1-5.1.0.ebuild,875 bytes, text/plain)
2013-08-01 13:44 UTC, Jan Kundrát (RETIRED)
Details
build.log (build.log.bz2,8.57 KB, application/x-bzip)
2013-08-10 14:22 UTC, Uwe L. Korn
Details
build.log (without opengl use flag) (build.log,919.80 KB, text/x-log)
2013-08-10 14:49 UTC, Uwe L. Korn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Kundrát (RETIRED) gentoo-dev 2013-08-01 13:44:28 UTC
Created attachment 354822 [details]
qtquick1-5.1.0.ebuild

Upstream ships the "QtDeclarative" compatibility module as a part of the "qtquick1" repository. There's no ebuild for that in the Qt overlay yet. The attached one seems to work for me.
Comment 1 Jan Kundrát (RETIRED) gentoo-dev 2013-08-09 14:14:31 UTC
Dear Qt team, do you want a pull request? The ebuild is tested and works.
Comment 2 Michael Palimaka (kensington) gentoo-dev 2013-08-09 15:51:08 UTC
>src_prepare() {
>	qt5-build_src_prepare
>
>	use opengl || sed -i -e '/shaders/d' \
>		src/imports/imports.pro || die
>
>	use webkit || sed -i -e '/webkit/d' \
>		src/imports/imports.pro || die
>}

It is possible do this with configure options, or is sed used because it's automagic?

We should check with pesa about the package name. I see that some of the newer packages/splits drop the qt prefix, but I am not sure if that is the plan moving forward or if those ones are special.

We should also include 5.1.9999 and 5.9999 versions.
Comment 3 Davide Pesavento gentoo-dev 2013-08-09 16:54:49 UTC
(In reply to Michael Palimaka (kensington) from comment #2)
> >src_prepare() {
> >	qt5-build_src_prepare
> >
> >	use opengl || sed -i -e '/shaders/d' \
> >		src/imports/imports.pro || die
> >
> >	use webkit || sed -i -e '/webkit/d' \
> >		src/imports/imports.pro || die
> >}
> 
> It is possible do this with configure options, or is sed used because it's
> automagic?
> 
> We should check with pesa about the package name. I see that some of the
> newer packages/splits drop the qt prefix, but I am not sure if that is the
> plan moving forward or if those ones are special.
> 

Those were special, qtquick1 is fine.

> We should also include 5.1.9999 and 5.9999 versions.

Yep.
Comment 4 Davide Pesavento gentoo-dev 2013-08-09 16:57:03 UTC
More comments/questions:

1/ the opengl use flag is confusing since opengl in qtgui is always required according to your deps.

2/ what is qttest needed for?

3/ why are both use flags enabled by default?
Comment 5 Jan Kundrát (RETIRED) gentoo-dev 2013-08-09 17:19:51 UTC
(In reply to Davide Pesavento from comment #4)
> 1/ the opengl use flag is confusing since opengl in qtgui is always required
> according to your deps.

Well, according to the build logic, the module should be buildable even without OpenGL. Looks like my deps are wrong, then.

> 2/ what is qttest needed for?

I recall that the build failed when it was disabled. Perhaps I made an error. I suppose that this should be controlled by FEATURES=test.

> 3/ why are both use flags enabled by default?

I'm pretty sure that upstream's idea is that OpenGL shall be enabled by default, but could be disabled under special circumstances. Therefore it makes sense to have Qt in Gentoo support OpenGL by default, unless someone decides to override that.

Yup, the other Qt5 packages do not follow this, which is a bug in my opinion. One should not rely on the system profile to have OpenGL enabled by default -- when someone installs Qt, they are requesting Qt as intended by upstream, and a working OpenGL is pretty much assumed nowadays.

The same applies e.g. to webkit and widgets use flags of qtwebkit -- both should get a + in my opinion.

(In reply to Michael Palimaka (kensington) from comment #2)
> It is possible do this with configure options, or is sed used because it's
> automagic?

It is used because other qt5 ebuilds use that as well. Looking at the .pro file, I don't see a user-visible flag for disabling this:

jkt@svist ~/work/prog/qt5/qtquick1[(no branch)] $ cat src/imports/imports.pro
TEMPLATE = subdirs

SUBDIRS += folderlistmodel particles gestures builtins.pro
qtHaveModule(opengl):!contains(QT_CONFIG, opengles1): SUBDIRS += shaders

qtHaveModule(webkitwidgets): SUBDIRS += webview

> We should also include 5.1.9999 and 5.9999 versions.

Definitely, but I suspect you don't want me to attach three identical files to one bug :).
Comment 6 Uwe L. Korn 2013-08-10 14:22:21 UTC
This ebuild does not build on my (qt5-only) system due to some compilation problems with OpenGL (see the attached build.log). Some (hopefully relevant) information:

% emerge -pqv '=dev-qt/qtquick1-5.1.0'
[ebuild  N    ] dev-qt/qtquick1-5.1.0  USE="c++11 opengl -debug {-test} -webkit"

% emerge -pqv '=dev-qt/qtopengl-5.1.0'
[ebuild   R   ] dev-qt/qtopengl-5.1.0  USE="c++11 -debug {-test}" 

% emerge -pqv '=dev-qt/qtgui-5.1.0'
[ebuild   R   ] dev-qt/qtgui-5.1.0  USE="c++11 gif glib jpeg opengl png udev xcb -accessibility -debug -eglfs -evdev -gles2 -kms {-test}"

% emerge --info '=dev-qt/qtquick1-5.1.0'
Portage 2.1.12.2 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.15-r3, 3.8.0-27-generic x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.8.0-27-generic-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:     6113932 total,    438712 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sat, 10 Aug 2013 11:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-lang/python:          2.6.8-r1, 2.7.5, 3.2.5-r1
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.10.3, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3, 4.7.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo qt kde xhochy
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=2 --color y --autounmask-write 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 sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.hadiko.de/pub/dists/gentoo/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="-q"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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/qt /var/lib/layman/kde /home/xhochy/Development/gentoo-overlay"
SYNC="rsync://ftp.hadiko.de/gentoo-portage"
USE="acl amd64 berkdb bindist bzip2 cleartype cli corefonts cracklib crypt cxx dbus dri fortran gdbm iconv idn iproute2 ipv6 jpeg jpeg2k libnotify mmx modules mudflap multilib ncurses nls nptl openmp pam pcre png pulseaudio qt5 readline session sse sse2 ssl tcpd threads tiff truetype type1 unicode vim-syntax xattr zlib zsh-completion" ABI_X86="64" 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="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="kexi words flow plan sheets stage tables krita karbon braindump author" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US en_GB de de_DE" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2 python2_6" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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"
USE_PYTHON="2.6 2.7 3.2"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 7 Uwe L. Korn 2013-08-10 14:22:47 UTC
Created attachment 355614 [details]
build.log

Build log for failed build with OpenGL problems
Comment 8 Uwe L. Korn 2013-08-10 14:49:16 UTC
Created attachment 355616 [details]
build.log (without opengl use flag)

Sadly building without the opengl use flag does not work either as there seems to be some code that requires a bit of QOpenGl
Comment 9 Uwe L. Korn 2013-08-11 14:04:51 UTC
Previous breakage was due to a broken mesa installation. Sorry about that. Rebuild mesa and everything compiles fine now.
Comment 10 Davide Pesavento gentoo-dev 2013-10-22 23:39:13 UTC
Added to qt overlay with some improvements. Thanks!

http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=e96547c503a9c2e87b86c3ae3a9f671b9bd24a82