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

Angelos Tzotsos gcpp.kalxas at gmail.com
Wed Sep 5 12:32:31 PDT 2012


Hi,

I maintain the current trunk rpm for openSUSE here:
https://build.opensuse.org/package/show?package=mapserver&project=home%3Atzotsos%3AApplication%3AGeo

Perhaps it can help.

Cheers,
Angelos

On 09/05/2012 06:46 PM, Peter Hopfgartner wrote:
> 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
>
>
>
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev


-- 
Angelos Tzotsos
Remote Sensing Laboratory
National Technical University of Athens
http://users.ntua.gr/tzotsos

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20120905/de61beef/attachment.html>


More information about the mapserver-dev mailing list