Build failed for man pages (cmake)
Hello, i'm trying to publish package of small utility built with CMake.
Build failed with this error:
fakeroot debian/rules binary
cd build_dir; cmake -DCOMPONENT=
-- Install configuration: ""
-- Install component: "Unspecified"
-- Installing: /<<PKGBUILDDIR>
-- Set runtime path of "../debian/
-- Installing: /<<PKGBUILDDIR>
-- Installing: /<<PKGBUILDDIR>
-- Installing: /<<PKGBUILDDIR>
-- Installing: /usr/share/
CMake Error at cmake_install.
file INSTALL cannot copy file
"/<<PKGBUILDD
"/usr/
My debian/rules is:
#!/usr/bin/make -f
BUILDDIR = build_dir
build:
mkdir -p $(BUILDDIR)
cd $(BUILDDIR); cmake -DOPT_BIN_SUFFIX=ON -DCMAKE_
make -C $(BUILDDIR) preinstall
touch build
binary: binary-indep binary-arch
binary-indep: build
binary-arch: build
cd $(BUILDDIR); cmake -DCOMPONENT=
mkdir -p debian/tmp/DEBIAN
dpkg-gensymbols -pxkb-switch
dh_shlibdeps
dpkg-gencontrol -pxkb-switch
dpkg --build debian/tmp ..
clean:
rm -f build
rm -rf $(BUILDDIR)
.PHONY: binary binary-arch binary-indep clean
My cmake_install.cmake is:
if("x${
file(INSTALL DESTINATION "${CMAKE_
endif()
My CMakeLists.txt is:
SET(MANDIR "share/man" CACHE STRING "Manpages installation path")
INSTALL(FILES ${compressed_man}
DESTINATION ${MANDIR}
How can I fix this issue?
Or have we good practices to build man files on launchpad?
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask islander for more information if necessary.