Skip to content

Commit f1bb60b

Browse files
authored
programs/netperf/pkg/PKGBUILD: make downloads conditional in netperf PKGBUILD (#522)
Modify the netperf PKGBUILD to download config.guess and config.sub only when the architecture is riscv64, moving the download logic from the source array to the build() function. Signed-off-by: Srikanth Aithal <[email protected]>
1 parent c130d6b commit f1bb60b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

programs/netperf/pkg/PKGBUILD

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@ pkgrel=0
44
arch=('i386' 'x86_64' 'riscv64' 'aarch64')
55
url="https://github.com/HewlettPackard/netperf"
66
license=('GPL')
7-
source=("https://github.com/HewlettPackard/netperf/archive/netperf-$pkgver.$pkgrel.tar.gz" "https://git.savannah.gnu.org/cgit/config.git/plain/config.guess" "https://git.savannah.gnu.org/cgit/config.git/plain/config.sub")
8-
md5sums=('e0d45b5bca1eee2aef0155de82366202' 'SKIP' 'SKIP')
7+
source=("https://github.com/HewlettPackard/netperf/archive/netperf-$pkgver.$pkgrel.tar.gz")
8+
md5sums=('e0d45b5bca1eee2aef0155de82366202')
99

1010
build()
1111
{
1212
cd "$srcdir/$pkgname-$pkgname-$pkgver.$pkgrel"
1313
if [[ $CARCH == 'riscv64' ]]; then
14-
cp ../config.guess ../config.sub .
14+
. $LKP_SRC/lib/reproduce-log.sh
15+
log_cmd wget https://git.savannah.gnu.org/cgit/config.git/plain/config.guess -O config.guess
16+
log_cmd wget https://git.savannah.gnu.org/cgit/config.git/plain/config.sub -O config.sub
1517
fi
1618

1719
# sendfile_tcp_stream() misses assignment of len and it is possible

0 commit comments

Comments
 (0)