diff --git a/srcpkgs/avr-gdb/template b/srcpkgs/avr-gdb/template index 2635f382fce..98cc18d8457 100644 --- a/srcpkgs/avr-gdb/template +++ b/srcpkgs/avr-gdb/template @@ -17,7 +17,7 @@ configure_args="\ $(vopt_if python --with-python=/usr/bin/python3)" hostmakedepends="texinfo perl $(vopt_if python python3-devel)" makedepends="ncurses-devel zlib-devel readline-devel expat-devel - $(vopt_if python 'python3-devel gettext-libs')" + $(vopt_if python 'python3-devel')" depends=gdb short_desc="GNU Debugger for AVR" maintainer="Artur Sinila " @@ -43,6 +43,10 @@ desc_option_gdbserver="Enable support for building GDB server" # Both options cannot be enabled at the same time vopt_conflict gdbserver static +if [ "$build_option_python" ] && [ "$XBPS_TARGET_LIBC" = musl ]; then + makedepends+=" gettext-libs" +fi + post_extract() { vsed -i 's,sgidefs.h,asm/sgidefs.h,' gdb/mips-linux-nat.c mkdir -p build