Quellcode |
|
1 2 |
#make #make install |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »hafgan« (01.01.2013, 12:40)
Quellcode |
|
1 2 3 4 5 6 7 8 |
[...] Install the project... -- Install configuration: "Release" -- Up-to-date: /usr/share/doc/flyhigh/AUTHORS ACCESS DENIED chmod: /usr/share/doc/flyhigh/AUTHORS CMake Error at cmake_install.cmake:44 (FILE): file INSTALL cannot set permissions on "/usr/share/doc/flyhigh/AUTHORS" [...] |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# Copyright # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="4" DESCRIPTION="Configuration of GPS flight devices, plan and analyze flights on Google maps (incl. airspaces), manage waypoints and store flights (flightbook)." HOMEPAGE="http://flyhigh.sourceforge.net" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" DEPEND=">=x11-libs/qt-core-4.3 dev-util/cmake" RDEPEND=">=dev-db/sqlite-3.6.19 >=sci-visualization/gnuplot-4.4.3" src_compile() { mkdir -p "${S}/build" && cd "${S}/build" cmake -DCMAKE_INSTALL_PREFIX= -DCMAKE_BUILD_TYPE=Release .. } src_install() { emake DESTDIR="${D}" install } |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header:$ inherit cmake-utils git-2 EGIT_REPO_URI="file:///home/georg/Dokumente/Entwicklung/hello-world/hello-world.git" EGIT_PROJECT="hello-world" DESCRIPTION="A sample program" HOMEPAGE="http://www.schorsch-tech.de" LICENSE="GPL-3" SLOT="0" IUSE="" DEPEND="sys-devel/gcc" DEPEND="${DEPEND}" KEYWORDS="" S="${WORKDIR}"/${PN} |
Hallo,
sorry, wenn das schon 1000 mal gefragt wurde aber vielleicht kann mir jemand kurz den Hinweis geben, wo ich schauen muss.
Ich benötige eine spezielle Anwendung die in keinem Overlay zu finden ist. Daher habe ich mich aus Zeitgründen für die allgemeine Installation entschieden:
Quellcode
1 2 #make #make install
Jetzt möchte ich aber doch nochmal nach den Nachteilen dieser Vorgehensweise fragen und ob ich mir da irgendwelche Probleme einhandeln könnte? Wie geht man normalerweise vor? Baut sich ein eigenes ebuilds? Sollte ich das noch nachholen?
Gruß
hafgan
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# Copyright 1999-2009 Tiziano Müller # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit cmake-utils DESCRIPTION="Configuration of GPS flight devices, plan and analyze flights on Google maps (incl. airspaces), manage waypoints and store flights (flightbook)." HOMEPAGE="http://flyhigh.sourceforge.net" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="" IUSE="" DEPEND=">=x11-libs/qt-core-4.3 dev-util/cmake" RDEPEND=">=dev-db/sqlite-3.6.19 >=sci-visualization/gnuplot-4.4.3" S="${WORKDIR}"/${P} |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# emerge -B flyhigh Calculating dependencies... done! >>> Verifying ebuild manifests >>> Emerging (1 of 1) app-misc/flyhigh-0.9.4 from lokal * flyhigh-0.9.4.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking flyhigh-0.9.4.tar.gz to /var/tmp/portage/app-misc/flyhigh-0.9.4/work >>> Source unpacked in /var/tmp/portage/app-misc/flyhigh-0.9.4/work >>> Compiling source in /var/tmp/portage/app-misc/flyhigh-0.9.4/work/flyhigh-0.9.4 ... >>> Working in BUILD_DIR: "/var/tmp/portage/app-misc/flyhigh-0.9.4/work/flyhigh-0.9.4_build" cmake --no-warn-unused-cli -C /var/tmp/portage/app-misc/flyhigh-0.9.4/work/flyhigh-0.9.4_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/app-misc/flyhigh-0.9.4/work/flyhigh-0.9.4_build/gentoo_rules.cmake /var/tmp/portage/app-misc/flyhigh-0.9.4/work/flyhigh-0.9.4 [....] Built target form [ 98%] Built target cfgflytec [100%] Built target flyhigh Install the project... -- Install configuration: "Gentoo" -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/doc/flyhigh/AUTHORS -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/doc/flyhigh/COPYING -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/doc/flyhigh/INSTALL -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/doc/flyhigh/NEWS -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/doc/flyhigh/README -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/doc/flyhigh/TODO -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/bin/flyhigh -- Removed runtime path from "/var/tmp/portage/app-misc/flyhigh-0.9.4/image//usr/usr/bin/flyhigh" -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/applications/flyhigh.desktop -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/pixmaps/flyhigh.png -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/doc/flyhigh/migrate2dbv2 -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/doc/flyhigh/xtrSwiss100 >>> Completed installing flyhigh-0.9.4 into /var/tmp/portage/app-misc/flyhigh-0.9.4/image/ strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line usr/usr/bin/flyhigh >>> Done. |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
inherit cmake-utils DESCRIPTION="Use your flight devices with Linux" HOMEPAGE="http://flyhigh.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-2" KEYWORDS="~amd64 ~x86" IUSE="" SLOT="0" RDEPEND="sci-visualization/gnuplot dev-db/sqlite x11-libs/qt-core" DEPEND="${RDEPEND} sys-devel/gcc dev-util/cmake" DOCS="ChangeLog README NEWS AUTHORS" |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# emerge -B flyhigh [...] [100%] Built target flyhigh Install the project... -- Install configuration: "Gentoo" -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/doc/flyhigh/AUTHORS -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/doc/flyhigh/COPYING -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/doc/flyhigh/INSTALL -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/doc/flyhigh/NEWS -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/doc/flyhigh/README -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/doc/flyhigh/TODO -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/bin/flyhigh -- Removed runtime path from "/var/tmp/portage/app-misc/flyhigh-0.9.4/image//usr/usr/bin/flyhigh" -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/applications/flyhigh.desktop -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/pixmaps/flyhigh.png -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/doc/flyhigh/migrate2dbv2 -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/doc/flyhigh/xtrSwiss100 !!! dodoc: ChangeLog does not exist dodoc failed * ERROR: app-misc/flyhigh-0.9.4 failed (install phase): * dodoc failed * * Call stack: * ebuild.sh, line 93: Called src_install * environment, line 2772: Called cmake-utils_src_install * environment, line 741: Called _execute_optionaly 'src_install' * environment, line 251: Called enable_cmake-utils_src_install * environment, line 1076: Called die * The specific snippet of code: * dodoc ${DOCS} || die "dodoc failed"; * * If you need support, post the output of `emerge --info '=app-misc/flyhigh-0.9.4'`, * the complete build log and the output of `emerge -pqv '=app-misc/flyhigh-0.9.4'`. * This ebuild is from an overlay named 'lokal': '/usr/local/portage/' * The complete build log is located at '/var/tmp/portage/app-misc/flyhigh-0.9.4/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-misc/flyhigh-0.9.4/temp/environment'. * Working directory: '/var/tmp/portage/app-misc/flyhigh-0.9.4/work/flyhigh-0.9.4' * S: '/var/tmp/portage/app-misc/flyhigh-0.9.4/work/flyhigh-0.9.4' * QA Notice: file does not exist: * * dodoc: ChangeLog does not exist >>> Failed to emerge app-misc/flyhigh-0.9.4, Log file: |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
Install the project... -- Install configuration: "Gentoo" -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/doc/flyhigh/AUTHORS -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/doc/flyhigh/COPYING -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/doc/flyhigh/INSTALL -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/doc/flyhigh/NEWS -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/doc/flyhigh/README -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/doc/flyhigh/TODO -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/bin/flyhigh -- Removed runtime path from "/var/tmp/portage/app-misc/flyhigh-0.9.4/image//usr/usr/bin/flyhigh" -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/applications/flyhigh.desktop -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/pixmaps/flyhigh.png -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/doc/flyhigh/migrate2dbv2 -- Installing: /var/tmp/portage/app-misc/flyhigh-0.9.4/image/usr/usr/share/doc/flyhigh/xtrSwiss100 >>> Completed installing flyhigh-0.9.4 into /var/tmp/portage/app-misc/flyhigh-0.9.4/image/ strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line usr/usr/bin/flyhigh >>> Installing (1 of 1) app-misc/flyhigh-0.9.4 >>> Recording app-misc/flyhigh in "world" favorites file... >>> Auto-cleaning packages... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date. |
Würd ich schon gern machen. Aber wie lege ich den Pfad fest?Du solltest /usr/usr ändern.
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# set file locations for installation # where to install binaries if(NOT FLYHIGH_BIN_DIR) set(FLYHIGH_BIN_DIR "${CMAKE_INSTALL_PREFIX}/usr/bin") endif() # where to install desktop link if(NOT FLYHIGH_APPLNK_DIR) set(FLYHIGH_APPLNK_DIR "${CMAKE_INSTALL_PREFIX}/usr/share/applications") endif() # where to install icons if(NOT FLYHIGH_ICON_DIR) set(FLYHIGH_ICON_DIR "${CMAKE_INSTALL_PREFIX}/usr/share/pixmaps") endif() # where to install documentation if(NOT FLYHIGH_DOC_DIR) set(FLYHIGH_DOC_DIR "${CMAKE_INSTALL_PREFIX}/usr/share/doc/flyhigh") endif() |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# set file locations for installation # where to install binaries if(NOT FLYHIGH_BIN_DIR) set(FLYHIGH_BIN_DIR "${CMAKE_INSTALL_PREFIX}/bin") endif() # where to install desktop link if(NOT FLYHIGH_APPLNK_DIR) set(FLYHIGH_APPLNK_DIR "${CMAKE_INSTALL_PREFIX}/share/applications") endif() # where to install icons if(NOT FLYHIGH_ICON_DIR) set(FLYHIGH_ICON_DIR "${CMAKE_INSTALL_PREFIX}/share/pixmaps") endif() # where to install documentation if(NOT FLYHIGH_DOC_DIR) set(FLYHIGH_DOC_DIR "${CMAKE_INSTALL_PREFIX}/share/doc/flyhigh") endif() |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
EAPI="2" inherit cmake-utils eutils DESCRIPTION="Use your flight devices with Linux" HOMEPAGE="http://flyhigh.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-2" KEYWORDS="~amd64 ~x86" IUSE="" SLOT="0" RDEPEND="sci-visualization/gnuplot dev-db/sqlite x11-libs/qt-core" DEPEND="${RDEPEND} sys-devel/gcc dev-util/cmake" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/flyhigh.patch } DOCS="README NEWS AUTHORS" |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
--- CMakeLists.txt.orig 2012-05-12 12:12:20.000000000 +0200 +++ CMakeLists.txt 2013-01-01 11:53:48.065166840 +0100 @@ -24,19 +24,19 @@ # set file locations for installation # where to install binaries if(NOT FLYHIGH_BIN_DIR) - set(FLYHIGH_BIN_DIR "${CMAKE_INSTALL_PREFIX}/usr/bin") + set(FLYHIGH_BIN_DIR "${CMAKE_INSTALL_PREFIX}/bin") endif() # where to install desktop link if(NOT FLYHIGH_APPLNK_DIR) - set(FLYHIGH_APPLNK_DIR "${CMAKE_INSTALL_PREFIX}/usr/share/applications") + set(FLYHIGH_APPLNK_DIR "${CMAKE_INSTALL_PREFIX}/share/applications") endif() # where to install icons if(NOT FLYHIGH_ICON_DIR) - set(FLYHIGH_ICON_DIR "${CMAKE_INSTALL_PREFIX}/usr/share/pixmaps") + set(FLYHIGH_ICON_DIR "${CMAKE_INSTALL_PREFIX}/share/pixmaps") endif() # where to install documentation if(NOT FLYHIGH_DOC_DIR) - set(FLYHIGH_DOC_DIR "${CMAKE_INSTALL_PREFIX}/usr/share/doc/flyhigh") + set(FLYHIGH_DOC_DIR "${CMAKE_INSTALL_PREFIX}/share/doc/flyhigh") endif() |