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

2012-09-04 Thread pkg-grass-bugs
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@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@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@it:/tmp/gdal$ cp ./gdal-1.9.0/swig/python/GNUmakefile 
./gdal-1.9.0/swig/python/GNUmakefile.0
me@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@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/msg5.html

--

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

___
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel


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

2012-09-04 Thread pkg-grass-bugs
pkg-grass-Bugs item #313720, was opened at 2012-07-13 15:17 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@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@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@it:/tmp/gdal$ cp ./gdal-1.9.0/swig/python/GNUmakefile 
./gdal-1.9.0/swig/python/GNUmakefile.0
me@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@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


--

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

___
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel