mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-07 19:33:20 +00:00
fix(main/libslirp): Patch libslirp to use Termux's own resolv.conf (#21008)
This patch addresses DNS-related failures due to the absence of /etc/resolv.conf
This commit is contained in:
@@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="A general purpose TCP-IP emulator"
|
||||
TERMUX_PKG_LICENSE="BSD 3-Clause, MIT"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=4.8.0
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_SRCURL=https://gitlab.freedesktop.org/slirp/libslirp/-/archive/v${TERMUX_PKG_VERSION}/libslirp-v${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=2a98852e65666db313481943e7a1997abff0183bd9bea80caec1b5da89fda28c
|
||||
TERMUX_PKG_DEPENDS="glib"
|
||||
|
||||
11
packages/libslirp/resolvconf.patch
Executable file
11
packages/libslirp/resolvconf.patch
Executable file
@@ -0,0 +1,11 @@
|
||||
--- a/src/slirp.c
|
||||
+++ b/src/slirp.c
|
||||
@@ -362,6 +362,8 @@ int get_dns6_addr(struct in6_addr *pdns6_addr, uint32_t *scope_id)
|
||||
|
||||
#if defined(__HAIKU__)
|
||||
#define RESOLV_CONF_PATH "/boot/system/settings/network/resolv.conf"
|
||||
+#elif defined(__ANDROID__)
|
||||
+#define RESOLV_CONF_PATH "@TERMUX_PREFIX@/etc/resolv.conf"
|
||||
#else
|
||||
#define RESOLV_CONF_PATH "/etc/resolv.conf"
|
||||
#endif
|
||||
Reference in New Issue
Block a user