Skip to content

Commit fe77414

Browse files
author
Rutvik Saptarshi
committed
fix: call pf9_git_setup after package install so git is available
1 parent b14ea42 commit fe77414

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

build-aux/build-common.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ ROOT="$(pwd)/pf9-ovn"
77
OVS_BASE="3.3.6"
88
OVN_BASE="24.03.6"
99

10-
git config --global --add safe.directory '*'
11-
git config --global url."https://github.com/".insteadOf "git@github.com:"
10+
pf9_git_setup() {
11+
git config --global --add safe.directory '*'
12+
git config --global url."https://github.com/".insteadOf "git@github.com:"
13+
}
1214

1315
pf9_submodule_update() {
1416
git -C "$ROOT" submodule update --init --recursive

build-aux/build-debs.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ DEBIAN_FRONTEND=noninteractive apt-get install -y -qq \
1515
libsystemd-dev python3 python3-pip curl python3-twisted python3-zope.interface \
1616
libunwind-dev git strongswan kmod uuid-runtime python3-netifaces
1717

18+
pf9_git_setup
19+
1820
# Cleanup: Remove previous build artifacts
1921
if [ -f "$ROOT/Makefile" ]; then
2022
make -C "$ROOT" distclean

build-aux/build-rpms.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ dnf install -y \
1818
libevent-devel json-c-devel libunwind-devel \
1919
desktop-file-utils libbpf-devel libxdp-devel
2020

21+
pf9_git_setup
22+
2123
# Cleanup: Remove previous build artifacts
2224
if [ -f "$ROOT/Makefile" ]; then
2325
make -C "$ROOT" distclean

0 commit comments

Comments
 (0)