Randy Eckenrode
2025-10-19 20:32:00 -04:00
parent 29fe5dc5ca
commit a9d62c1d6a
3 changed files with 11 additions and 7 deletions

View File

@@ -26,8 +26,8 @@ libresolv = library(
'dns_async.c', 'dns_async.c',
'dns_util.c', 'dns_util.c',
'dst_api.c', 'dst_api.c',
'dst_hmac_link.c', 'hmac_link.c',
'dst_support.c', 'mtctxres.c',
'ns_date.c', 'ns_date.c',
'ns_name.c', 'ns_name.c',
'ns_netint.c', 'ns_netint.c',
@@ -47,7 +47,9 @@ libresolv = library(
'res_query.c', 'res_query.c',
'res_send.c', 'res_send.c',
'res_sendsigned.c', 'res_sendsigned.c',
'res_state.c',
'res_update.c', 'res_update.c',
'support.c',
], ],
soversion : '9' soversion : '9'
) )

View File

@@ -38,12 +38,14 @@ mkAppleDerivation {
]; ];
postPatch = '' postPatch = ''
mkdir arpa
cp ${Libc}/include/arpa/nameser_compat.h arpa/nameser_compat.h cp ${Libc}/include/arpa/nameser_compat.h arpa/nameser_compat.h
cp nameser.h arpa
# Use CommonCryptos implementation of MD5. The upstream build appears to use corecrypto, which we cant use.
substituteInPlace hmac_link.c \
--replace-fail '<md5.h>' '<CommonCrypto/CommonDigest.h>'
''; '';
xcodeHash = "sha256-yHNa6cpI3T4R/iakeHmL6S/c9p+VpYR4fudv2UXUpnY="; xcodeHash = "sha256-Q5jHee9rxge6HJtf9/sFK15FsS02GQmx7L0BBDiyGIs=";
env.NIX_CFLAGS_COMPILE = "-I${privateHeaders}/include -I${configd}/dnsinfo -I${Libinfo}/lookup.subproj -I${Libnotify}"; env.NIX_CFLAGS_COMPILE = "-I${privateHeaders}/include -I${configd}/dnsinfo -I${Libinfo}/lookup.subproj -I${Libnotify}";

View File

@@ -68,8 +68,8 @@
"version": "140" "version": "140"
}, },
"libresolv": { "libresolv": {
"hash": "sha256-ndGcicbHizPazTCB0P3aioDOv7IJPmTOgLnioFHH2+o=", "hash": "sha256-GtPVlL1mD58um5hOFd3HQKQ7pqutBe9jZKgQw8pOkPE=",
"version": "83" "version": "91"
}, },
"libutil": { "libutil": {
"hash": "sha256-tUsl22Z0HUVSkSoohFXkhicNFCW+RARvpTS0q6yaQFk=", "hash": "sha256-tUsl22Z0HUVSkSoohFXkhicNFCW+RARvpTS0q6yaQFk=",