Gentoo Archives: gentoo-user

From: thelma@×××××××××××.com
To: Gentoo mailing list <gentoo-user@l.g.o>
Subject: [gentoo-user] /etc/portage/bashrc - patches
Date: Sun, 15 Apr 2018 00:30:15
Message-Id: ec751d72-9f35-9be5-a886-7bc139561170@sys-concept.com
1 I'm trying to patch audacity-2.1.3-r1 (as it fails to compile) with the patch provided in Gentoo-Bug forum:
2 https://bugs.gentoo.org/show_bug.cgi?id=618326
3
4 I've edited the /etc/portage/bashrc:
5 https://wiki.gentoo.org/wiki//etc/portage/patches#Enabling_.2Fetc.2Fportage.2Fpatches_for_all_ebuilds
6
7 --- bashrc -----
8 # This hook is neccesary for automatic updating of the cfg-update index, please do not modify it!
9 pre_pkg_setup() {
10 [[ $ROOT = / ]] && cfg-update --index
11 }
12
13 pre_src_prepare() {
14 [[ ${EAPI:-0} == [012345] ]] || return
15 if ! type estack_push > /dev/null 2>&1; then
16 local estack_names="eshopts_push eshopts_pop evar_push evar_push_set evar_pop estack_push estack_pop"
17 source <(awk "/^# @(FUNCTION|VARIABLE): / { p = 0 } /^# @(FUNCTION|VARIABLE): (${estack_names// /|})\$/ { p = 1 } p { print }" ${PORTDIR}/eclass/estack.eclas$
18 fi
19 if ! type epatch_user > /dev/null 2>&1; then
20 local epatch_names="EPATCH_SOURCE EPATCH_USER_SOURCE epatch_user_death_notice epatch_user epatch"
21 source <(awk "/^# @(FUNCTION|VARIABLE): / { p = 0 } /^# @(FUNCTION|VARIABLE): (${epatch_names// /|})\$/ { p = 1 } p { print }" ${PORTDIR}/eclass/epatch.eclas$
22 fi
23
24 epatch_user
25
26 for name in $epatch_names; do
27 unset $name
28 done
29 for name in $estack_names; do
30 unset $name
31 done
32
33 }
34 ----- bashrc end --------
35
36 I've copied the patch "TrackPanel-Track-GetRate.patch"
37 to:
38 /etc/portage/patches/media-sound/audacity-2.1.3-r1/
39
40 but emerge still fails.
41 What am I missing?
42
43 collect2: error: ld returned 1 exit status
44 make[2]: *** [Makefile:2005: audacity] Error 1
45 make[2]: Leaving directory '/var/tmp/portage/media-sound/audacity-2.1.3-r1/work/audacity-minsrc-2.1.3/src'
46 make[1]: *** [Makefile:1377: all] Error 2
47 make[1]: Leaving directory '/var/tmp/portage/media-sound/audacity-2.1.3-r1/work/audacity-minsrc-2.1.3/src'
48 make: *** [Makefile:795: all-recursive] Error 1
49 * ERROR: media-sound/audacity-2.1.3-r1::gentoo failed (compile phase):
50 * emake failed
51
52 --
53 Thelma

Replies

Subject Author
[gentoo-user] Re: /etc/portage/bashrc - patches Nikos Chantziaras <realnc@×××××.com>