Gentoo Archives: gentoo-devhelp

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-devhelp@l.g.o
Subject: Re: [gentoo-devhelp] Cannot get build directory in multilib ebuild
Date: Sun, 16 Jun 2019 08:42:52
Message-Id: 20190616114209.0e27d6b06e645ef805b39110@gentoo.org
In Reply to: [gentoo-devhelp] Cannot get build directory in multilib ebuild by Nikos Chantziaras
1 Hi!
2
3 On Sun, 16 Jun 2019 09:58:10 +0300 Nikos Chantziaras wrote:
4 > I need to install a file that the package generates in its build
5 > directory. It's a cmake project. I tried:
6 >
7 > doins "${BUILD_DIR}/some_file"
8 >
9 > But it doesn't find the file:
10 >
11 > FileNotFoundError: [Errno 2] No such file or directory: b'/some_file'
12 >
13 > The ebuild inherits cmake-multilib. There's two build directories of
14 > course, since this is a multilib ebuild:
15 >
16 > package-version-abi_x86_32.x86
17 > package-version-abi_x86_64.amd64
18 >
19 >
20 > I'm interested in the native build directory (the amd64 one in this
21 > case.) Is there a variable somewhere that I'm just not finding, or do I
22 > have to construct the build directory path myself?
23
24 Try something like (not tested):
25
26 install_files() {
27 multilib_is_native_abi && doins "${BUILD_DIR}/some_file"
28 }
29
30 multilib_foreach_abi install_files
31
32
33 Best regards,
34 Andrew Savchenko

Replies

Subject Author
[gentoo-devhelp] Re: Cannot get build directory in multilib ebuild Nikos Chantziaras <realnc@×××××.com>