0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-04 18:45:52 +00:00
termux-packages/packages/doge/src-resolve.rs.patch
Fredrik Fornwall a9f58a7dd2 replace(main/dog->doge): Replace with maintained fork
dog is no longer maintained and depends on openssl-1.1. It was recently
removed from homebrew: https://github.com/ogham/dog/issues/136
2024-09-11 13:59:45 +02:00

13 lines
467 B
Diff

diff -uNr dog-0.1.0/src/resolve.rs dog-0.1.0.mod/src/resolve.rs
--- dog-0.1.0/src/resolve.rs 2020-11-07 13:54:47.000000000 +0200
+++ dog-0.1.0.mod/src/resolve.rs 2021-10-15 19:11:54.059069719 +0300
@@ -42,7 +42,7 @@
use std::io::{BufRead, BufReader};
use std::fs::File;
- let f = File::open("/etc/resolv.conf")?;
+ let f = File::open("@TERMUX_PREFIX@/etc/resolv.conf")?;
let reader = BufReader::new(f);
let mut nameservers = Vec::new();