make install fails on Fedora

Russel Winder via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Tue Apr 26 07:45:14 PDT 2016


On Tue, 2016-04-26 at 12:14 +0000, FreeSlave via digitalmars-d-ldc
wrote:
> On Tuesday, 26 April 2016 at 08:16:55 UTC, Russel Winder wrote:
> > On Debian Sid, the cmake_install.cmake file has a block:
> > 
> > if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" 
> > STREQUAL "Unspecified")
> >   list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES
> >    "/home/users/russel/Built/etc/bash_completion.d/")
> >   if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION)
> >     message(WARNING "ABSOLUTE path INSTALL DESTINATION : 
> > ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
> >   endif()
> >   if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION)
> >     message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION 
> > forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
> >   endif()
> > file(INSTALL DESTINATION 
> > "/home/users/russel/Built/etc/bash_completion.d" TYPE DIRECTORY 
> > FILES "/home/Checkouts/Git/LDC/bash_completion.d/")
> > endif()
> > 
> > [...]
> 
> Currently Debian uses /usr/share/bash-completion/completions/ 
> too. /usr/share/bash-completion/completions/bash_completion 
> script automatically includes /etc/bash_completion.d for backward 
> compatibility.

True, certainly, but given that CMAKE_INSTALL_PREFIX has been set, and
the entire /usr tree in not writeable, having the (working) path as
above for Debian is what needs to be the case for Fedora.

> So probably cmake file should be changed.

For Fedora builds yes, but not for Debian builds; the current way
things happen on Debian is just fine for me.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-ldc/attachments/20160426/0e0f5d2c/attachment.sig>


More information about the digitalmars-d-ldc mailing list