summaryrefslogtreecommitdiffstats
path: root/alpine
diff options
context:
space:
mode:
authorJuergen Werner <juergen@opensourcerouting.org>2019-12-03 21:24:02 +0100
committerJuergen Werner <juergen@opensourcerouting.org>2019-12-03 21:36:30 +0100
commitc3a61f38038327bbceaebcb01f653bba3e73b3b8 (patch)
treea70c96dc97c70f00ff0161630c3129ac64e4087f /alpine
parentMerge pull request #5442 from opensourcerouting/mpls-label-stacks (diff)
downloadfrr-c3a61f38038327bbceaebcb01f653bba3e73b3b8.tar.xz
frr-c3a61f38038327bbceaebcb01f653bba3e73b3b8.zip
alpine: fix build on current 'edge' version of Alpine
The python2 packet py-sphinx was removed from the edge repository, so we use pip to install it localy for the package build process. Also abuild assumes it is executed in a git folder and fails if no .git is found in the folder or its parent folders, so we work around this, by initializing an empty git repo with `git init`. Signed-off-by: Juergen Werner <juergen@opensourcerouting.org>
Diffstat (limited to 'alpine')
-rw-r--r--alpine/APKBUILD.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/alpine/APKBUILD.in b/alpine/APKBUILD.in
index 1c579a8e7..f740a3458 100644
--- a/alpine/APKBUILD.in
+++ b/alpine/APKBUILD.in
@@ -17,7 +17,7 @@ makedepends="ncurses-dev net-snmp-dev gawk texinfo perl
linux-headers lzip lzo m4 make mkinitfs mpc1 mpfr4 mtools musl-dev
ncurses-libs ncurses-terminfo ncurses-terminfo-base patch pax-utils pcre
perl pkgconf python2 python2-dev readline readline-dev sqlite-libs
- squashfs-tools sudo tar texinfo xorriso xz-libs py-pip py-sphinx rtrlib
+ squashfs-tools sudo tar texinfo xorriso xz-libs py-pip rtrlib
rtrlib-dev"
checkdepends="pytest py-setuptools"
install="$pkgname.pre-install $pkgname.pre-deinstall $pkgname.post-deinstall"
@@ -34,6 +34,12 @@ _user=frr
build() {
cd "$builddir"
+
+ _localpythondir=$PWD/.python
+ pip2 install --prefix $_localpythondir sphinx
+ export PATH=${_localpythondir}/bin:$PATH
+ export PYTHONPATH=${_localpythondir}/lib/python2.7/site-packages
+
./configure \
--prefix=/usr \
--sbindir=$_sbindir \