Hi guys! Since the grass flag has been removed from gdal, we can't get anymore gdal-grass driver to handle raster grass layer in qgis. ( http://bugs.gentoo.org/show_bug.cgi?id=56262 ) Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 79812 [details] simple try to add grass flag to gdal simple try to add grass flag to gdal. It works for me. Now grass can r.out.gdal
In 1.3.1 there's no grass flag... how can i enable it?
This was in previous versions of gdal, but will cause a dependency loop during world updates (since grass depends on gdal for libgdal support, and gdal depends on grass for libgrass support). Instead of breaking people's emerges, we decided to take that out. Feel free to keep it in your overlay (you've been warned).
Created attachment 90623 [details] gdal-grass plugin ebuild
Created attachment 90625 [details, diff] Patch for fixing sandbox and installing issues Previuos and actual attachments are to put in sci-libs cathegory. The ebuild installs the so named 'gdal-grass' plugin that breaks circular dipendecy between grass and gdal. GDAL libs are to compile without GRASS support (as ebuild attached to bug #122188 does), then GRASS will be emerged against GDAL and then emerge gdal-grass. Tested on ~x86 with gcc-4.1.1; please feedback. Cheers
Thx for it...They are also needed by QGIS. Now we need to rewrite ebuild of GRASS?
(In reply to comment #6) > Now we need to rewrite ebuild of GRASS? From my POV, only qgis ebuild may be revised. I'll try to explain my ideas. When a user want to use GRASS with full support, then he could do: # emerge -av grass gdal-grass and there's no way to make gdal-grass dependent from grass, because doing so we have a circular dependency. Instead, if anyone would use QGIS with full support for GRASS, so he could do: # USE="grass" emerge -av qgis This time, if qgis is emerged and 'grass' useflag is used, gdal-grass may be a strict depencence. I am maintaining my personal ebuilds for grass-cvs and qgis-svn, so I think I fix it locally. Do you know if there's already an 'official' qgis ebuild?
I agree with you. Here http://bugs.gentoo.org/show_bug.cgi?id=56262 there's the ebuild i created with the sourcecode of preview 1. You can also get the snapshoot of the code from the bug page. Luca
Seems to be changed the official dl server, from www.gdal.org/dl/ to iweb.gdal.org/dl/. I'm waiting for other problems to release a new version of the ebuild. Bye.
Got this error in the building: * Applying gdal-grass-1.3.1-sandbox-fix.patch ... * Failed Patch: gdal-grass-1.3.1-sandbox-fix.patch ! * ( /usr/local/portage/sci-libs/gdal-grass/files/gdal-grass-1.3.1-sandbox-fix.patch ) * * Include in your bugreport the contents of: * * /var/tmp/portage/gdal-grass-1.3.1.2/temp/gdal-grass-1.3.1-sandbox-fix.patch-11591.out !!! ERROR: sci-libs/gdal-grass-1.3.1.2 failed. Call stack: ebuild.sh, line 1539: Called dyn_compile ebuild.sh, line 939: Called src_compile gdal-grass-1.3.1.2.ebuild, line 40: Called epatch '/usr/local/portage/sci-libs/gdal-grass/files/gdal-grass-1.3.1-sandbox-fix.patch' eutils.eclass, line 333: Called die The log file: ***** gdal-grass-1.3.1-sandbox-fix.patch ***** ============================================== PATCH COMMAND: patch -p0 -g0 -E --no-backup-if-mismatch < /usr/local/portage/sci-libs/gdal-grass/files/gdal-grass-1.3.1-sandbox-fix.patch ============================================== patching file Makefile Hunk #1 FAILED at 26. 1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej ============================================== PATCH COMMAND: patch -p1 -g0 -E --no-backup-if-mismatch < /usr/local/portage/sci-libs/gdal-grass/files/gdal-grass-1.3.1-sandbox-fix.patch ============================================== missing header for unified diff at line 3 of patch can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- Makefile 2006-07-01 18:08:36.977048616 +0200 |+++ Makefile.new 2006-07-01 18:09:11.864744880 +0200 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored ============================================== PATCH COMMAND: patch -p2 -g0 -E --no-backup-if-mismatch < /usr/local/portage/sci-libs/gdal-grass/files/gdal-grass-1.3.1-sandbox-fix.patch ============================================== missing header for unified diff at line 3 of patch can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? ============================================== PATCH COMMAND: patch -p3 -g0 -E --no-backup-if-mismatch < /usr/local/portage/sci-libs/gdal-grass/files/gdal-grass-1.3.1-sandbox-fix.patch ============================================== missing header for unified diff at line 3 of patch can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- Makefile 2006-07-01 18:08:36.977048616 +0200 |+++ Makefile.new 2006-07-01 18:09:11.864744880 +0200 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored ============================================== PATCH COMMAND: patch -p4 -g0 -E --no-backup-if-mismatch < /usr/local/portage/sci-libs/gdal-grass/files/gdal-grass-1.3.1-sandbox-fix.patch ============================================== missing header for unified diff at line 3 of patch can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- Makefile 2006-07-01 18:08:36.977048616 +0200 |+++ Makefile.new 2006-07-01 18:09:11.864744880 +0200 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored
Created attachment 93190 [details] gdal-grass directory in $PORTDIR_OVERLAY/sci-libs Due to the same error, I've released a new r1 ebuild with bug fixed. Attachment is a tarball containing all the required structure. Unpack it with: # tar xjvf gdal-grass.tar.bz2 -C $PORTDIR_OVERLAY/sci-libs where $PORTDIR_OVERLAY is your $PORTAGE_OVERLAY Please feedback. Thanks.
Same problem with patching the file.. * Applying gdal-grass-1.3.1-install.patch ... * Failed Patch: gdal-grass-1.3.1-install.patch ! * ( /usr/local/portage/sci-libs/gdal-grass/files/gdal-grass-1.3.1-install.patch ) Thanks for your help ***** gdal-grass-1.3.1-install.patch ***** ========================================== PATCH COMMAND: patch -p0 -g0 -E --no-backup-if-mismatch < /usr/local/portage/sci-libs/gdal-grass/files/gdal-grass-1.3.1-install.patch ========================================== patching file Makefile Hunk #1 FAILED at 26. 1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej ========================================== PATCH COMMAND: patch -p1 -g0 -E --no-backup-if-mismatch < /usr/local/portage/sci-libs/gdal-grass/files/gdal-grass-1.3.1-install.patch ========================================== missing header for unified diff at line 3 of patch can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- Makefile 2006-07-01 18:08:36.977048616 +0200 |+++ Makefile.new 2006-07-01 18:09:11.864744880 +0200 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored ========================================== PATCH COMMAND: patch -p2 -g0 -E --no-backup-if-mismatch < /usr/local/portage/sci-libs/gdal-grass/files/gdal-grass-1.3.1-install.patch ========================================== missing header for unified diff at line 3 of patch can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- Makefile 2006-07-01 18:08:36.977048616 +0200 |+++ Makefile.new 2006-07-01 18:09:11.864744880 +0200 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored ========================================== PATCH COMMAND: patch -p3 -g0 -E --no-backup-if-mismatch < /usr/local/portage/sci-libs/gdal-grass/files/gdal-grass-1.3.1-install.patch ========================================== missing header for unified diff at line 3 of patch can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- Makefile 2006-07-01 18:08:36.977048616 +0200 |+++ Makefile.new 2006-07-01 18:09:11.864744880 +0200 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored ========================================== PATCH COMMAND: patch -p4 -g0 -E --no-backup-if-mismatch < /usr/local/portage/sci-libs/gdal-grass/files/gdal-grass-1.3.1-install.patch ========================================== missing header for unified diff at line 3 of patch can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- Makefile 2006-07-01 18:08:36.977048616 +0200 |+++ Makefile.new 2006-07-01 18:09:11.864744880 +0200 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored
Please attach 'emerge --info' output and Makefile and Makefile.rej from /var/tmp/portage/gdal-grass-1.3.1.2-r1/work/gdal-grass-1.3.1/ The file to patch was found but the patch won't work; I will work on it only when more information will be provided. Thanks a lot.
Emerge --info gekomachine dati # emerge --info Portage 2.1-r1 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.3.6-r4, 2.6.15-gentoo-r1 i686) ================================================================= System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) M processor 1500MHz Gentoo Base System version 1.6.15 ccache version 2.3 [disabled] app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.3.5, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/grass60/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/" LANG="it_IT@euro" LINGUAS="it" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --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="x86 X acpi alsa apache2 apm arts asf avi berkdb bitmap-fonts cdr cli crypt cups dlloader dri dvd eds emboss encode foomaticdb fortran gdbm geos gif gpm gtk2 hal imlib ipod ipv6 isdnlog jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nvidia ogg oggvorbis opengl oss pam pcre pdflib perl png pppd proj python qt qt3 qt4 quicktime readline reflection scanner sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts usb vorbis xml2 xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux linguas_it userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS Makefile CC = i686-pc-linux-gnu-gcc CXX = i686-pc-linux-gnu-g++ LD = i686-pc-linux-gnu-g++ CPPFLAGS = -DUSE_CPL -DGRASS_GISBASE=\"/usr/grass60\" \ -I/usr/local/include -I/usr/grass60/include CXXFLAGS = -Wall -fPIC RANLIB = i686-pc-linux-gnu-ranlib SO_EXT = so LD_SHARED = i686-pc-linux-gnu-g++ -shared LIBS = -L/usr/grass60/lib -lgrass_I -lgrass_vask -lgrass_gmath -lgrass_gis -lgrass_datetime -lgrass_gproj -lgrass_vect -lgrass_dbmibase -lgrass_dbmiclient -L/usr/local/lib -lgdal GRASSTABLES_DIR = /usr/share/gdal/grass AUTOLOAD_DIR = /usr/local/lib/gdalplugins GLIBNAME = gdal_GRASS.so OLIBNAME = ogr_GRASS.so default: $(GLIBNAME) $(OLIBNAME) install: default install -d $(AUTOLOAD_DIR) cp $(GLIBNAME) $(AUTOLOAD_DIR) cp $(OLIBNAME) $(AUTOLOAD_DIR) test -d ${GRASSTABLES_DIR} || mkdir ${GRASSTABLES_DIR} test -d ${GRASSTABLES_DIR}/etc || mkdir ${GRASSTABLES_DIR}/etc cp /usr/grass60/etc/ellipse.table ${GRASSTABLES_DIR}/etc cp /usr/grass60/etc/datum.table ${GRASSTABLES_DIR}/etc clean: rm -f $(OLIBNAME) $(GLIBNAME) *.o distclean: clean rm -fr Makefile config.status config.log autom*.cache $(GLIBNAME): grass57dataset.o $(LD_SHARED) grass57dataset.o $(LIBS) -o $(GLIBNAME) $(OLIBNAME): ogrgrassdriver.o ogrgrassdatasource.o ogrgrasslayer.o $(LD_SHARED) ogrgrassdriver.o ogrgrassdatasource.o ogrgrasslayer.o $(LIBS) -o $(OLIBNAME) %.o: %.cpp $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $< Makefile.rej it's not in that directories Thanks
Created attachment 93272 [details] gdal-grass directory in $PORTDIR_OVERLAY I have worked on an r2 version of the ebuild. Unpack the tarball in the same way as the latest one. Please try this new ebuild, Luca. If it fails again, send me the Makefile as an attachment instead of sending it within the content of the comment. HTH, thanks again.
All is fine now! I'll submit the link to the qgis and grass ml to test this...Thank you very much!
Created attachment 98261 [details] gdal-grass-1.3.2.ebuild Version bump, no improvements on ebuild. HTH, if you try it please feedback.
According http://www.gdal.org/index.html, proper download URLs are: SRC_URI="ftp://ftp.remotesensing.org/gdal/${P}.tar.gz http://download.osgeo.org/gdal/${P}.tar.gz"