Skip to content

Commit 40e5f9d

Browse files
committed
build-bpf-gcc: fix how binutils snapshot is identified
Latest binutils snapshot is fetched from: snapshots.sourceware.org/binutils/trunk/latest/src/sha512.sum There was an unnecessary grep filter on the tarball name, which caused a script failure when it changed. Simply take the name of the tarball from the checksum as is instead. Signed-off-by: Ihor Solodrai <[email protected]>
1 parent 9ce5709 commit 40e5f9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build-bpf-gcc/latest-snapshots.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22
set -euo pipefail
33

4-
BINUTILS_TARBALL=`wget https://snapshots.sourceware.org/binutils/trunk/latest/src/sha512.sum -O - -o /dev/null | grep -E 'binutils-[0-9a-f.-]+.tar.xz' | sed -e 's/.*\(binutils-[^<]*\).*/\1/'`
5-
GCC_TARBALL=`wget https://gcc.gnu.org/pub/gcc/snapshots/LATEST-15 -O - -o /dev/null | grep -E 'gcc-15-[0-9]+.tar.xz' | sed -e 's/.*\(gcc-15-[^<]*\).*/\1/'`
4+
BINUTILS_TARBALL=$(wget https://snapshots.sourceware.org/binutils/trunk/latest/src/sha512.sum -O - -o /dev/null | awk '{print $2}')
5+
GCC_TARBALL=$(wget https://gcc.gnu.org/pub/gcc/snapshots/LATEST-15 -O - -o /dev/null | grep -E 'gcc-15-[0-9]+.tar.xz' | sed -e 's/.*\(gcc-15-[^<]*\).*/\1/')
66

77
BINUTILS_URL="https://snapshots.sourceware.org/binutils/trunk/latest/src/$BINUTILS_TARBALL"
88
GCC_URL="https://gcc.gnu.org/pub/gcc/snapshots/LATEST-15/$GCC_TARBALL"

0 commit comments

Comments
 (0)