Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save floppym/2638687 to your computer and use it in GitHub Desktop.
Save floppym/2638687 to your computer and use it in GitHub Desktop.
app-misc/foo/foo-0.ebuild app-misc/bar/bar-0.ebuild
$ cat app-misc/foo/foo-0.ebuild
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
DESCRIPTION=""
HOMEPAGE=""
SRC_URI=""
LICENSE=""
SLOT="0"
KEYWORDS="amd64"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
S=${WORKDIR}
src_install() {
echo 'MYFOO=abcd' > 50foo
doenvd 50foo
}
$ cat app-misc/bar/bar-0.ebuild
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
DESCRIPTION=""
HOMEPAGE=""
SRC_URI=""
LICENSE=""
SLOT="0"
KEYWORDS="amd64"
IUSE=""
DEPEND="app-misc/foo"
RDEPEND="${DEPEND}"
S=${WORKDIR}
src_unpack() {
echo "MYFOO=${MYFOO}"
}
floppym@naomi foo % sudo emerge -av1 -j1 app-misc/bar
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] app-misc/foo-0::local 0 kB
[ebuild N ] app-misc/bar-0::local 0 kB
Total: 2 packages (2 new), Size of downloads: 0 kB
Would you like to merge these packages? [Yes/No]
>>> Verifying ebuild manifests
>>> Starting parallel fetch
>>> Emerging (1 of 2) app-misc/foo-0 from local
>>> Unpacking source...
>>> Source unpacked in /tmp/portage/app-misc/foo-0/work
>>> Preparing source in /tmp/portage/app-misc/foo-0/work ...
>>> Source prepared.
>>> Configuring source in /tmp/portage/app-misc/foo-0/work ...
>>> Source configured.
>>> Compiling source in /tmp/portage/app-misc/foo-0/work ...
>>> Source compiled.
>>> Test phase [not enabled]: app-misc/foo-0
>>> Install foo-0 into /tmp/portage/app-misc/foo-0/image/ category app-misc
>>> Completed installing foo-0 into /tmp/portage/app-misc/foo-0/image/
./
./etc/
./etc/env.d/
./etc/env.d/50foo
>>> Done.
>>> Installing (1 of 2) app-misc/foo-0
* checking 1 files for package collisions
>>> Merging app-misc/foo-0 to /
--- /etc/
--- /etc/env.d/
>>> /etc/env.d/50foo
>>> app-misc/foo-0 merged.
>>> Regenerating /etc/ld.so.cache...
>>> Emerging (2 of 2) app-misc/bar-0 from local
>>> Unpacking source...
MYFOO=abcd
>>> Source unpacked in /tmp/portage/app-misc/bar-0/work
>>> Preparing source in /tmp/portage/app-misc/bar-0/work ...
>>> Source prepared.
>>> Configuring source in /tmp/portage/app-misc/bar-0/work ...
>>> Source configured.
>>> Compiling source in /tmp/portage/app-misc/bar-0/work ...
>>> Source compiled.
>>> Test phase [not enabled]: app-misc/bar-0
>>> Install bar-0 into /tmp/portage/app-misc/bar-0/image/ category app-misc
>>> Completed installing bar-0 into /tmp/portage/app-misc/bar-0/image/
./
>>> Done.
>>> Installing (2 of 2) app-misc/bar-0
* checking 0 files for package collisions
>>> Merging app-misc/bar-0 to /
>>> app-misc/bar-0 merged.
>>> Regenerating /etc/ld.so.cache...
>>> Auto-cleaning packages...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment