Gentoo Archives: gentoo-user

From: Paige Thompson <erratic@××××××××××.sx>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] using cmake with ebuild
Date: Thu, 09 Oct 2014 16:11:35
Message-Id: 5436B353.90901@yourstruly.sx
In Reply to: [gentoo-user] using cmake with ebuild by Paige Thompson
1 On 10/09/14 18:40, Paige Thompson wrote:
2 > Hi,
3 >
4 > trying to figure out how to fix a problem I'm having with my ebuild:
5 > https://github.com/paigeadele/netcrave/blob/master/net-irc/anope/anope-9999.ebuild
6 >
7 > compiles fine, fails on install?
8 >
9 > Should I just do sed -i and remove this path from the CMakeLists.txt or
10 > something?
11 >
12 > here's the problem:
13 >
14 > Install the project...
15 > -- Install configuration: "Gentoo"
16 > * ACCESS DENIED: mkdir: /usr/data <--- do I have to create this
17 > dir with dodir or something ?
18 > CMake Error at cmake_install.cmake:36 (file):
19 > file problem creating directory: /usr/data/backups
20 >
21 >
22 > make: *** [install] Error 1
23 > * ERROR: net-irc/anope-9999::netcrave-ebuilds failed (install phase):
24 > * emake failed
25 > *
26 > * If you need support, post the output of `emerge --info
27 > '=net-irc/anope-9999::netcrave-ebuilds'`,
28 > * the complete build log and the output of `emerge -pqv
29 > '=net-irc/anope-9999::netcrave-ebuilds'`.
30 > * The complete build log is located at
31 > '/var/tmp/portage/net-irc/anope-9999/temp/build.log'.
32 > * The ebuild environment file is located at
33 > '/var/tmp/portage/net-irc/anope-9999/temp/environment'.
34 > * Working directory:
35 > '/var/tmp/portage/net-irc/anope-9999/work/anope-9999_build'
36 > * S: '/var/tmp/portage/net-irc/anope-9999/work/anope-9999'
37 > * --------------------------- ACCESS VIOLATION SUMMARY
38 > ---------------------------
39 > * LOG FILE: "/var/log/sandbox/sandbox-7388.log"
40 > *
41 > VERSION 1.0
42 > FORMAT: F - Function called
43 > FORMAT: S - Access Status
44 > FORMAT: P - Path as passed to function
45 > FORMAT: A - Absolute Path (not canonical)
46 > FORMAT: R - Canonical Path
47 > FORMAT: C - Command Line
48 >
49 > F: mkdir
50 > S: deny
51 > P: /usr/data
52 > A: /usr/data
53 > R: /usr/data
54 > C: /usr/bin/cmake -P cmake_install.cmake
55 > *
56 > --------------------------------------------------------------------------------
57 >
58 >>>> Failed to emerge net-irc/anope-9999, Log file:
59 >>>> '/var/tmp/portage/net-irc/anope-9999/temp/build.log'
60 > * Messages for package net-irc/anope-9999:
61 >
62 > * ERROR: net-irc/anope-9999::netcrave-ebuilds failed (install phase):
63 > * emake failed
64 > *
65 > * If you need support, post the output of `emerge --info
66 > '=net-irc/anope-9999::netcrave-ebuilds'`,
67 > * the complete build log and the output of `emerge -pqv
68 > '=net-irc/anope-9999::netcrave-ebuilds'`.
69 > * The complete build log is located at
70 > '/var/tmp/portage/net-irc/anope-9999/temp/build.log'.
71 > * The ebuild environment file is located at
72 > '/var/tmp/portage/net-irc/anope-9999/temp/environment'.
73 > * Working directory:
74 > '/var/tmp/portage/net-irc/anope-9999/work/anope-9999_build'
75 > * S: '/var/tmp/portage/net-irc/anope-9999/work/anope-9999'
76 > irc ~ #
77 >
78 >
79 >
80 >
81
82
83 Sorry I have a little bit more information:
84
85 cmake_install.cmake:36 (this is generated at some point, cmake-utils_src_configure?)
86 file(MAKE_DIRECTORY "${CMAKE_INSTALL_PREFIX}/data/backups")
87
88 I guess CMAKE_INSTALL_PREFIX is not getting set to the path of sandbox? seems weird to me that it wouldn't :/ any help appreciated