pacparser: 1.4.6 -> 1.5.1

This commit is contained in:
Xiangyan Sun
2026-05-03 09:57:24 -07:00
parent db985dfa6e
commit f9a8d4d915
2 changed files with 2 additions and 20 deletions
@@ -1,11 +0,0 @@
--- a/src/spidermonkey/js/src/jsapi.c
+++ b/src/spidermonkey/js/src/jsapi.c
@@ -93,7 +93,7 @@
#ifdef HAVE_VA_LIST_AS_ARRAY
#define JS_ADDRESSOF_VA_LIST(ap) ((va_list *)(ap))
#else
-#define JS_ADDRESSOF_VA_LIST(ap) (&(ap))
+#define JS_ADDRESSOF_VA_LIST(ap) ((va_list *)(&(ap)))
#endif
#if defined(JS_PARANOID_REQUEST) && defined(JS_THREADSAFE)
+2 -9
View File
@@ -6,22 +6,15 @@
stdenv.mkDerivation (finalAttrs: {
pname = "pacparser";
version = "1.4.6";
version = "1.5.1";
src = fetchFromGitHub {
owner = "manugarg";
repo = "pacparser";
rev = "v${finalAttrs.version}";
hash = "sha256-rHRW/zzQS2vV+rQeZBQNSp2id0Gir1yFPwN2OPMOvVo=";
hash = "sha256-CkaRgm5xZHKiewPDSp0bzVkgAOeTbuGrY3FM4HaN97I=";
};
patches = [
# jsapi.c:96:35: error: passing argument 5 of 'TryArgumentFormatter' from incompatible pointer type []
# 96 | #define JS_ADDRESSOF_VA_LIST(ap) (&(ap))
# suggested by https://github.com/manugarg/pacparser/issues/194#issuecomment-2262030966
./fix-invalid-pointer-type.patch
];
makeFlags = [
"NO_INTERNET=1"
"PREFIX=${placeholder "out"}"