Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 347069 - sci-geosciences/qgis-1.6.0 Version bump
Summary: sci-geosciences/qgis-1.6.0 Version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement with 1 vote (vote)
Assignee: Sci-geo Project
URL: http://www.qgis.org/wiki/Download#Sou...
Whiteboard:
Keywords:
: 369017 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-28 18:52 UTC by Jean-Claude Repetto
Modified: 2011-06-14 21:16 UTC (History)
9 users (show)

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


Attachments
Ebuild after some hacking (qgis-1.6.0.ebuild,2.39 KB, text/plain)
2010-11-28 23:32 UTC, Vincent-Xavier JUMEL
Details
FindQWT patch (qgis-1.6.0-FindQWT.patch,448 bytes, patch)
2010-11-28 23:33 UTC, Vincent-Xavier JUMEL
Details | Diff
build.log (build.log,103.38 KB, text/plain)
2010-11-28 23:34 UTC, Vincent-Xavier JUMEL
Details
environment (environment,196.58 KB, text/plain)
2010-11-28 23:35 UTC, Vincent-Xavier JUMEL
Details
fix build with new SIP versions (qgis-1.6.0-qsettype.patch,1.20 KB, patch)
2011-06-09 04:24 UTC, Nenad Bulatović
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Claude Repetto 2010-11-28 18:52:52 UTC
QGIS 1.6.0 has been released on Nov 27, 2010.

Reproducible: Always




Download page is at : http://www.qgis.org/wiki/Download#Source_Code
Comment 1 Vincent-Xavier JUMEL 2010-11-28 23:31:42 UTC
I've tried to bump from 1.5.0 

It does'nt compile when called from the ebuild, even after some hacking.

It compiles fine "by hand" !

See attached files for more information.
Comment 2 Vincent-Xavier JUMEL 2010-11-28 23:32:47 UTC
Created attachment 255765 [details]
Ebuild after some hacking
Comment 3 Vincent-Xavier JUMEL 2010-11-28 23:33:43 UTC
Created attachment 255767 [details, diff]
FindQWT patch

At the moment, it doesn't seems possible to disable QWT dependency
Comment 4 Vincent-Xavier JUMEL 2010-11-28 23:34:48 UTC
Created attachment 255769 [details]
build.log
Comment 5 Vincent-Xavier JUMEL 2010-11-28 23:35:12 UTC
Created attachment 255771 [details]
environment
Comment 6 karpi 2011-02-13 20:15:38 UTC
Unfortunatelly doesn't compile for me.. .(

Portage 2.1.9.24 (default/linux/x86/10.0, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-sabayon i686)
=================================================================
System uname: Linux-2.6.36-sabayon-i686-AMD_Athlon-tm-_XP_2400+-with-gentoo-1.12.14
Timestamp of tree: Wed, 15 Dec 2010 10:30:21 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distcc distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.gentoo.sk/ http://mirror.gentoo.sk/pub ftp://gentoo.ynet.sk/ ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo ftp://ftp.linux.cz/pub/linux/gentoo ftp://fi.muni.cz/pub/linux/gentoo"
LANG="cs_CZ.UTF-8"
LC_ALL="cs_CZ.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm iconv ipv6 modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline session ssl sysfs tcpd unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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" 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 keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa" 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, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


- - - - -   r e t u r n s   t h i s   e r r o r    - - - - -

[ 26%] Building CXX object src/core/CMakeFiles/qgis_core.dir/spatialindex/rtree/BulkLoader.cc.o
[ 26%] Building CXX object src/core/CMakeFiles/qgis_core.dir/spatialindex/rtree/Index.cc.o
[ 26%] Building CXX object src/core/CMakeFiles/qgis_core.dir/spatialindex/rtree/Leaf.cc.o
[ 26%] Building CXX object src/core/CMakeFiles/qgis_core.dir/spatialindex/rtree/Node.cc.o
[ 26%] Building CXX object src/core/CMakeFiles/qgis_core.dir/spatialindex/rtree/RTree.cc.o
distcc[11587] ERROR: nonblocking connect to 192.168.0.103:3632 failed: No route to host
distcc[11587] Warning: failed to distribute /var/tmp/ccache//Node.tmp.alnagon.11581.ii to 192.168.0.103, running locally instead
[ 26%] Building CXX object src/core/CMakeFiles/qgis_core.dir/spatialindex/rtree/Statistics.cc.o
Linking CXX shared library libqgis_core.so
CMakeFiles/qgis_core.dir/composer/qgscomposermap.cpp.o: file not recognized: File truncated
collect2: ld returned 1 exit status
distcc[11620] ERROR: compile (null) on localhost failed
make[2]: *** [src/core/libqgis_core.so.1.6.0] Error 1
make[1]: *** [src/core/CMakeFiles/qgis_core.dir/all] Error 2
make: *** [all] Error 2
emake failed

Comment 7 Jean-Claude Repetto 2011-02-22 10:14:04 UTC
It seems that QGIS 1.6.0 needs qwt even without the gps flag enabled :


>>> Emerging (1 of 1) sci-geosciences/qgis-1.6.0 from unknown repo
 * qgis-1.6.0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                                                 [ ok ]
 * Package:    sci-geosciences/qgis-1.6.0
 * USE:  amd64 elibc_glibc kernel_linux multilib python sqlite userland_GNU
>>> Unpacking source...
>>> Unpacking qgis-1.6.0.tar.bz2 to /var/tmp/portage/sci-geosciences/qgis-1.6.0/work
>>> Source unpacked in /var/tmp/portage/sci-geosciences/qgis-1.6.0/work
>>> Preparing source in /var/tmp/portage/sci-geosciences/qgis-1.6.0/work/qgis-1.6.0 ...
 * Applying qgis-1.6.0-FindQWT.patch ...                                                                                                                                                                                              [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sci-geosciences/qgis-1.6.0/work/qgis-1.6.0 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/sci-geosciences/qgis-1.6.0/work/qgis-1.6.0_build"
cmake -C /var/tmp/portage/sci-geosciences/qgis-1.6.0/temp/gentoo_common_config.cmake -DCMAKE_INSTALL_PREFIX=/usr -DWITH_MAPSERVER=OFF -DWITH_POSTGRESQL=OFF -DWITH_grass=OFF -DWITH_GRASS=OFF -DWITH_Grass=OFF -DWITH_EXPAT=OFF -DWITH_QWT=OFF -DWITH_gsl=OFF -DWITH_GSL=OFF -DWITH_Gsl=OFF -DWITH_BINDINGS=ON -DWITH_SPATIALITE=ON -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/sci-geosciences/qgis-1.6.0/temp/gentoo_rules.cmake  /var/tmp/portage/sci-geosciences/qgis-1.6.0/work/qgis-1.6.0
loading initial cache file /var/tmp/portage/sci-geosciences/qgis-1.6.0/temp/gentoo_common_config.cmake
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Quantum GIS version: 1.6.0 Copiapo (10600)
-- Looking for openpty
-- Looking for openpty - not found
-- Looking for openpty
-- Looking for openpty - found
-- Found Proj: /usr/lib64/libproj.so
-- Found Expat: /usr/lib64/libexpat.so
-- Found GSL: -L/usr/lib64 -lgsl -lgslcblas -lm
-- Found GEOS: /usr/lib64/libgeos_c.so
-- Found GDAL: /usr/lib64/libgdal.so
CMake Error at cmake/FindQWT.cmake:41 (MESSAGE):
  Could not find QWT
Call Stack (most recent call first):
  CMakeLists.txt:143 (FIND_PACKAGE)
Comment 8 Penetsdorfer Martin 2011-04-03 21:22:34 UTC
Please add sci-geosciences/qgis-1.6.0 to the portage tree
Comment 9 Kenneth Prugh (RETIRED) gentoo-dev 2011-05-31 02:43:45 UTC
*** Bug 369017 has been marked as a duplicate of this bug. ***
Comment 10 Nenad Bulatović 2011-06-09 04:24:52 UTC
Created attachment 276327 [details, diff]
fix build with new SIP versions

I am getting following error with Qt 4.7.3/PyQt 4.8.4/SIP 4.12:


sip: /var/tmp/portage/sci-geosciences/qgis-1.6.0/work/qgis-1.6.0/python/core/conversions.sip:326: %MappedType template for this type has already been defined
make[2]: *** [python/core/sipcorepart0.cpp] Error 1
make[1]: *** [python/CMakeFiles/python_module_qgis_core.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

It seems that this is fixed by upstream (changeset 14988).
Therefore, I am attaching the proposed patch.
Comment 11 Nenad Bulatović 2011-06-09 15:29:23 UTC
Comment on attachment 255765 [details]
Ebuild after some hacking

># Copyright 1999-2010 Gentoo Foundation
># Distributed under the terms of the GNU General Public License v2
># $Header: /var/cvsroot/gentoo-x86/sci-geosciences/qgis/qgis-1.5.0.ebuild,v 1.1 2010/08/06 19:06:20 scarabeus Exp $
>
>EAPI="2"
>
>PYTHON_USE_WITH="sqlite"
>PYTHON_DEPEND="python? 2"
>inherit python cmake-utils eutils
>
>DESCRIPTION="User friendly Geographic Information System"
>HOMEPAGE="http://www.qgis.org/"
>SRC_URI="http://qgis.org/downloads/${P}.tar.bz2
>	examples? ( http://download.osgeo.org/qgis/data/qgis_sample_data.tar.gz )"
>
>LICENSE="GPL-2"
>SLOT="0"
>KEYWORDS="~amd64 ~x86"
>IUSE="examples gps grass gsl postgres python sqlite"
>
>RDEPEND=">=sci-libs/gdal-1.6.1[geos,postgres?,python?,sqlite?]
>	x11-libs/qt-core:4[qt3support]
>	x11-libs/qt-gui:4
>	x11-libs/qt-svg:4
>	x11-libs/qt-sql:4
>	x11-libs/qt-webkit:4
>	sci-libs/geos
>	gps? (
>		dev-libs/expat
>		sci-geosciences/gpsbabel
>		x11-libs/qwt
>	)
>	grass? ( >=sci-geosciences/grass-6.4.0_rc6[postgres?,python?,sqlite?] )
>	gsl? ( sci-libs/gsl )
>	postgres? (
>		|| (
>			>=dev-db/postgresql-base-8.4
>			>=dev-db/postgresql-server-8.4
>		)
>	)
>	python? ( dev-python/PyQt4[sql,svg] )
>	sqlite? ( dev-db/sqlite:3 )"
>
>DEPEND="${RDEPEND}
>	sys-devel/bison
>	sys-devel/flex"
>
>PATCHES=( "${FILESDIR}/${P}-FindQWT.patch" "${FILESDIR}/${P}-qsettype.patch" )
>
>pkg_setup() {
>	python_set_active_version 2
>	python_pkg_setup
>}
>
>src_configure() {
>	local mycmakeargs
>	mycmakeargs+=(
>		#"-DQGIS_MANUAL_SUBDIR=/share/man/"
>		#"-DBUILD_SHARED_LIBS=ON"
>		#"-DBINDINGS_GLOBAL_INSTALL=ON"
>		#"-DQGIS_LIB_SUBDIR=$(get_libdir)"
>		#"-DQGIS_PLUGIN_SUBDIR=$(get_libdir)/qgis"
>		"-DWITH_MAPSERVER=OFF"
>		$(cmake-utils_use_with postgres POSTGRESQL)
>		$(cmake-utils_use_with grass)
>		$(cmake-utils_use_with gps EXPAT)
>		$(cmake-utils_use_with gps QWT)
>		$(cmake-utils_use_with gsl)
>		$(cmake-utils_use_with python BINDINGS)
>		$(cmake-utils_use_with sqlite SPATIALITE)
>	)
>	use grass && mycmakeargs+=( "-DGRASS_PREFIX=/usr/" )
>
>	cmake-utils_src_configure
>}
>
>src_install() {
>	cmake-utils_src_install
>	dodoc AUTHORS BUGS ChangeLog README SPONSORS CONTRIBUTORS || die
>
>	newicon images/icons/qgis-icon.png qgis.png || die
>	make_desktop_entry qgis "Quantum GIS " qgis
>
>	if use examples; then
>		insinto /usr/share/doc/${PF}/examples
>		doins -r "${WORKDIR}"/qgis_sample_data/* || die "Unable to install examples"
>	fi
>}
>
>pkg_postinst() {
>	if use postgres; then
>		elog "If you don't intend to use an external PostGIS server"
>		elog "you should install:"
>		elog "   dev-db/postgis"
>	fi
>}
Comment 12 Tomáš Chvátal (RETIRED) gentoo-dev 2011-06-12 17:10:28 UTC
1.7.0 added to main tree.
Comment 13 karpi 2011-06-12 20:46:01 UTC
It is great, 1.7.0 compiled successfully, but ebuild installation fails on:


-- Installing: /var/tmp/portage/sci-geosciences/qgis-1.7.0/image/usr/share/qgis/python/plugins/osm/styles/medium_scale.style
-- Installing: /var/tmp/portage/sci-geosciences/qgis-1.7.0/image/usr/share/qgis/python/plugins/osm/styles/big_scale.style
-- Installing: /var/tmp/portage/sci-geosciences/qgis-1.7.0/image/usr/share/qgis/python/plugins/osm/styles/small_scale.style
!!! dodoc: AUTHORS does not exist
dodoc failed
 ^[[31;01m*^[[0m ERROR: sci-geosciences/qgis-1.7.0 failed (install phase):
 ^[[31;01m*^[[0m   dodoc failed
 ^[[31;01m*^[[0m
 ^[[31;01m*^[[0m Call stack:
 ^[[31;01m*^[[0m     ebuild.sh, line   56:  Called src_install
 ^[[31;01m*^[[0m   environment, line 5161:  Called cmake-utils_src_install
 ^[[31;01m*^[[0m   environment, line 1344:  Called _execute_optionaly 'src_install'
 ^[[31;01m*^[[0m   environment, line  373:  Called enable_cmake-utils_src_install
 ^[[31;01m*^[[0m   environment, line 1652:  Called base_src_install
 ^[[31;01m*^[[0m   environment, line 1020:  Called base_src_install_docs
 ^[[31;01m*^[[0m   environment, line 1031:  Called die
 ^[[31;01m*^[[0m The specific snippet of code:
 ^[[31;01m*^[[0m               dodoc "${x}" || die "dodoc failed";
 ^[[31;01m*^[[0m
Comment 14 Tomáš Chvátal (RETIRED) gentoo-dev 2011-06-12 21:37:15 UTC
I should've not put back the dodoc line :D Anyway fixed now.
Comment 15 Jean-Claude Repetto 2011-06-14 08:19:30 UTC
Hi,
Some comments :
- QGIS 1.7.0 has nos been released yet.
- This bug should not have been closed, since the ebuild for QGIS 1.6.0 has not been added to the main tree.
Comment 16 Tomáš Chvátal (RETIRED) gentoo-dev 2011-06-14 10:14:10 UTC
(In reply to comment #15)
> Hi,
> Some comments :
> - QGIS 1.7.0 has nos been released yet.
Not a problem, it aint released but has tarball and at least compiles.
> - This bug should not have been closed, since the ebuild for QGIS 1.6.0 has not
> been added to the main tree.
This bug is closed as newer version is added to main tree which is enough for closing.
Comment 17 karpi 2011-06-14 21:16:23 UTC
..only question, please. I would like to try qgis-mapserver.
I try compile it manualy, but some fast cgi header files are requried (fcgi_stdio.h)
I have installed mod_fastcgi, but no headers emerged in it..

So what to do?

Also some use flag like "qgis_mapserv" for qgis ebuild should be useful in the future.