[mapserver-dev] Problem when compiling 6.2.0 beta 2 for RPM

Peter Hopfgartner peter.hopfgartner at r3-gis.com
Wed Sep 5 08:46:34 PDT 2012


On 09/05/2012 05:38 PM, Stephan Meißl wrote:
> On Wed, 2012-09-05 at 17:14 +0200, Peter Hopfgartner wrote:
>> When building an RPM package, the files get typically installed into a
>> build directory, which can be placed anywhere in the file system.
>>     In the "make install" phase of the RPM build process, a get to the
>> point where:
>>
>> /bin/sh ../../libtool --mode=install /usr/bin/install -c _mapscript.la
>> /builddir/build/BUILDROOT/mapserver-6.2.0-0.beta2.el6.x86_64`/usr/bin/python
>> -c "from distutils.sysconfig import get_python_lib; print
>> get_python_lib(1)"`
>> libtool: install: error: cannot install `_mapscript.la' to a directory
>> not ending in /usr/lib64/python2.6/site-packages
>> make[1]: Leaving directory
>> `/builddir/build/BUILD/mapserver-6.2.0-beta2/mapscript/python'
>>
>> where it complains that the target dir is not a subdir of
>> /usr/lib64/python2.6/site-packages.
>>
>> How did other packagers handle this?
>>
>> Regards,
>>
>> Peter
>>
> Hi Peter,
>
> that's odd, I thought this has been resolved (see [1]), at least I had a
> somehow working spec file then (see [2]).
I've started from the Fedora RPM. Looking at the links, the patches git 
applied. Indeed, I think that this change

-  $(LTINSTALL) $(INSTALL) _mapscript.la $(PYLIBDIR)
-  $(INSTALL) -c mapscript.py $(PYLIBDIR)
+  $(LTINSTALL) $(INSTALL) _mapscript.la $(DESTDIR)$(PYLIBDIR)
+  $(INSTALL) -c mapscript.py $(DESTDIR)$(PYLIBDIR)

leads to the situation, that the target of install is not a subdir of 
$(PYLIBDIR), but of $(DESTDIR)$(PYLIBDIR) and causes the above mentioned 
message.

> What does your spec file look like?
I've attached it. It's a WIP.
>
> cu
> Stephan
>
> [1] https://github.com/Schpidi/mapserver/commit/6e60a7e85bbdebc9c375fd18feb3ed72be19616b
> [2] http://osgeo-org.1560.n6.nabble.com/RPMs-from-trunk-td4902205.html
>

Bye,

Peter

-- 
Peter Hopfgartner
web  : http://www.r3-gis.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mapserver.spec
Type: text/x-rpm-spec
Size: 13937 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20120905/60c5007d/attachment-0001.bin>


More information about the mapserver-dev mailing list