From: thelma@sys-concept.com
To: Gentoo mailing list <gentoo-user@lists.gentoo.org>
Subject: [gentoo-user] /etc/portage/bashrc - patches
Date: Sat, 14 Apr 2018 18:30:12 -0600 [thread overview]
Message-ID: <ec751d72-9f35-9be5-a886-7bc139561170@sys-concept.com> (raw)
I'm trying to patch audacity-2.1.3-r1 (as it fails to compile) with the patch provided in Gentoo-Bug forum:
https://bugs.gentoo.org/show_bug.cgi?id=618326
I've edited the /etc/portage/bashrc:
https://wiki.gentoo.org/wiki//etc/portage/patches#Enabling_.2Fetc.2Fportage.2Fpatches_for_all_ebuilds
--- bashrc -----
# This hook is neccesary for automatic updating of the cfg-update index, please do not modify it!
pre_pkg_setup() {
[[ $ROOT = / ]] && cfg-update --index
}
pre_src_prepare() {
[[ ${EAPI:-0} == [012345] ]] || return
if ! type estack_push > /dev/null 2>&1; then
local estack_names="eshopts_push eshopts_pop evar_push evar_push_set evar_pop estack_push estack_pop"
source <(awk "/^# @(FUNCTION|VARIABLE): / { p = 0 } /^# @(FUNCTION|VARIABLE): (${estack_names// /|})\$/ { p = 1 } p { print }" ${PORTDIR}/eclass/estack.eclas$
fi
if ! type epatch_user > /dev/null 2>&1; then
local epatch_names="EPATCH_SOURCE EPATCH_USER_SOURCE epatch_user_death_notice epatch_user epatch"
source <(awk "/^# @(FUNCTION|VARIABLE): / { p = 0 } /^# @(FUNCTION|VARIABLE): (${epatch_names// /|})\$/ { p = 1 } p { print }" ${PORTDIR}/eclass/epatch.eclas$
fi
epatch_user
for name in $epatch_names; do
unset $name
done
for name in $estack_names; do
unset $name
done
}
----- bashrc end --------
I've copied the patch "TrackPanel-Track-GetRate.patch"
to:
/etc/portage/patches/media-sound/audacity-2.1.3-r1/
but emerge still fails.
What am I missing?
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:2005: audacity] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-sound/audacity-2.1.3-r1/work/audacity-minsrc-2.1.3/src'
make[1]: *** [Makefile:1377: all] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-sound/audacity-2.1.3-r1/work/audacity-minsrc-2.1.3/src'
make: *** [Makefile:795: all-recursive] Error 1
* ERROR: media-sound/audacity-2.1.3-r1::gentoo failed (compile phase):
* emake failed
--
Thelma
next reply other threads:[~2018-04-15 0:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-15 0:30 thelma [this message]
2018-04-15 5:45 ` [gentoo-user] Re: /etc/portage/bashrc - patches Nikos Chantziaras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ec751d72-9f35-9be5-a886-7bc139561170@sys-concept.com \
--to=thelma@sys-concept.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox