summary: I'm almost able to build a package, except me@it:/tmp/gdal$ dget --build http://ftp.de.debian.org/debian/pool/main/g/gdal/gdal_1.9.0-3.dsc
fails at end (after long successful build) with > error: could not create '/usr/local/lib/python2.6/dist-packages/osgeo': > Permission denied ... > error: could not create '/usr/local/lib/python2.7/dist-packages/osgeo': > Permission denied ... > dpkg-buildpackage: error: debian/rules build gave error exit status 2 How to solve this `dget --build` problem? details: I'm running $ lsb_release -ds > Linux Mint Debian Edition $ cat /etc/debian_version > wheezy/sid $ uname -rv > 3.2.0-2-amd64 #1 SMP Sun Mar 4 22:48:17 UTC 2012 $ cat /etc/apt/sources.list > deb http://packages.linuxmint.com/ debian main upstream import > deb http://debian.linuxmint.com/latest testing main contrib non-free > deb http://debian.linuxmint.com/latest/security testing/updates main contrib > non-free > deb http://debian.linuxmint.com/latest/multimedia testing main non-free ... To assimilate some data, I need to install app=gdalwarp >= 1.9, and therefore package=gdal-bin >= 1.9, but the version currently provided by LMDE is 1.7.3. I noted http://packages.debian.org/search?keywords=gdal-bin&searchon=names&suite=all§ion=all&sourceid=mozilla-search > Package gdal-bin ... > wheezy (testing) [...] 1.9.0-3+b1 so I attempted to install gdal-bin from wheezy: me@it:/etc/apt$ sudo cp sources.list sources.list_20120710_1834 me@it:/etc/apt$ sudo emacs -nw -q sources.list me@it:/etc/apt$ diff -wB sources.list_20120710_1834 sources.list 20c20 < #deb http://ftp.debian.org/debian/ testing main contrib non-free --- > deb http://ftp.debian.org/debian/ testing main contrib non-free me@it:~$ sudo aptitude update # very not up-to-date Unfortunately, me@it:~$ sudo aptitude install -s gdal-bin ... > The following packages have unmet dependencies: ... > libpoppler19: Depends: libfontconfig1 (>= 2.9.0) but 2.8.0-2.1ubuntu3 is > installed. libfontconfig1 has major reverse depends, including emacs, xulrunner, cinnamon, gnome-shell, MATE, so I'd prefer not to update that in the current configuration. Seeking an alternative install, I was advised to try installing from the source package. This seemed sensible, since I didn't hafta pull from experimental: http://ftp.de.debian.org/debian/pool/main/g/gdal/ > gdal-bin_1.9.0-3+b1_amd64.deb 25-Jun-2012 09:03 325K ... > gdal_1.9.0-3.dsc 05-Jun-2012 15:47 2.2K So I installed `dget` from package=devscripts, and did me@it:/tmp/gdal$ dget --build http://ftp.de.debian.org/debian/pool/main/g/gdal/gdal_1.9.0-3.dsc This discovered many unmet dependencies, but I didn't need an uplevel libfontconfig1, and I only had to touch my sources.list once, to get libsqlite3-dev version=3.7.13-1 from the wheezy repo. I then ran me@it:/tmp/gdal$ dget --build http://ftp.de.debian.org/debian/pool/main/g/gdal/gdal_1.9.0-3.dsc again, which did a long [configure, make]-type build, ending with > error: could not create '/usr/local/lib/python2.6/dist-packages/osgeo': > Permission denied ... > error: could not create '/usr/local/lib/python2.7/dist-packages/osgeo': > Permission denied > make[1]: *** [install] Error 1 > make[1]: Leaving directory `/tmp/gdal/gdal-1.9.0/swig/python' > make: *** [build-stamp] Error 2 > dpkg-buildpackage: error: debian/rules build gave error exit status 2 I thought the fix might be to run as root, but that also failed (much more quickly): me@it:/tmp/gdal$ sudo dget --build http://ftp.de.debian.org/debian/pool/main/g/gdal/gdal_1.9.0-3.dsc > dget: retrieving > http://ftp.de.debian.org/debian/pool/main/g/gdal/gdal_1.9.0-3.dsc ... > dscverify: gdal_1.9.0-3.dsc failed signature check: > gpg: keyblock resource `/root/.gnupg/secring.gpg': file open error > gpg: Signature made Tue 05 Jun 2012 09:24:57 AM EDT using DSA key ID E9F2C747 > gpg: fatal: /root/.gnupg: directory does not exist! > secmem usage: 1408/1408 bytes in 2/2 blocks of pool 1408/32768 > Validation FAILED!! So I'm wondering, how to fix or work around the `dget --build` permissions problem? `dget` seems to have almost completely built gdal-bin, so I'd prefer to just finish that, rather than, e.g., build separately from source tarballs. TIA, Tom Roche <tom_ro...@pobox.com> -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87zk74yky1....@pobox.com