[pkg-grass-Bugs][313720] gdal_1.9.0-3 source package fails to build without `sudo` in makefile

pkg-grass-bugs at alioth.debian.org pkg-grass-bugs at alioth.debian.org
Fri Jul 13 20:51:52 UTC 2012


pkg-grass-Bugs item #313720, was changed at 2012-07-13 16:51 by Tom Roche
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=410558&aid=313720&group_id=30241

Status: Open
Priority: 3
Submitted By: Tom Roche (tlroche-guest)
Assigned to: Nobody (None)
Summary: gdal_1.9.0-3 source package fails to build without `sudo` in makefile 
Category: None
Group: None
Resolution: None


Initial Comment:
summary: building the source package for gdal_1.9.0-3

me at it:/tmp/gdal$ dget --build http://ftp.de.debian.org/debian/pool/main/g/gdal/gdal_1.9.0-3.dsc

fails at end 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

unless I patch gdal-1.9.0/swig/python/GNUmakefile

me at it:/tmp/gdal$ diff -wB /tmp/gdal/gdal-1.9.0/swig/python/GNUmakefile.0 /tmp/gdal/gdal-1.9.0/swig/python/GNUmakefile
71c71
< 	$(PYTHON) setup.py install 
---
> 	sudo $(PYTHON) setup.py install 

details:

For details of problem, see

http://lists.debian.org/debian-user/2012/07/msg00866.html

Fix is to allow `dget` to download the sources, then (while `dpkg-buildpackage` is running) do

me at it:/tmp/gdal$ cp ./gdal-1.9.0/swig/python/GNUmakefile ./gdal-1.9.0/swig/python/GNUmakefile.0
me at it:/tmp/gdal$ chmod a-w ./gdal-1.9.0/swig/python/GNUmakefile.0
# then edit ./gdal-1.9.0/swig/python/GNUmakefile such that
me at it:/tmp/gdal$ diff -wB ./gdal-1.9.0/swig/python/GNUmakefile.0 ./gdal-1.9.0/swig/python/GNUmakefile
71c71
< 	$(PYTHON) setup.py install 
---
> 	sudo $(PYTHON) setup.py install


----------------------------------------------------------------------

Comment By: Tom Roche (tlroche-guest)
Date: 2012-07-13 16:51

Message:
note just running as root fails, as described @

http://lists.debian.org/debian-gis/2012/07/msg00005.html

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=410558&aid=313720&group_id=30241



More information about the Pkg-grass-devel mailing list