Forráskód Böngészése

nghttp2: Update import script to fix version header

In commit 66c9536775 (nghttp2: Update script to get nghttp2 1.50.0,
2022-10-31, v3.26.0-rc1~455^2~2) we forgot to update the `nghttp2ver.h`
replacements to provide the proper `NGHTTP2_VERSION_NUM`.  This causes
our build of curl to think it is using a different version of nghttp2
than we provide.  Fix the version and add a reminder comment.

Issue: #24419
Brad King 2 éve
szülő
commit
1ca53784ca
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      Utilities/Scripts/update-nghttp2.bash

+ 2 - 2
Utilities/Scripts/update-nghttp2.bash

@@ -8,7 +8,7 @@ readonly name="nghttp2"
 readonly ownership="nghttp2 upstream <[email protected]>"
 readonly subtree="Utilities/cmnghttp2"
 readonly repo="https://github.com/nghttp2/nghttp2.git"
-readonly tag="v1.50.0"
+readonly tag="v1.50.0" # When updating, sync PACKAGE_VERSION below!
 readonly shortlog=false
 readonly paths="
   COPYING
@@ -23,7 +23,7 @@ extract_source () {
     pushd "${extractdir}/${name}-reduced"
     echo "* -whitespace" > .gitattributes
     mv lib/includes/nghttp2/nghttp2ver.h.in lib/includes/nghttp2/nghttp2ver.h
-    sed -i 's/@PACKAGE_VERSION@/1.40.0/;s/@PACKAGE_VERSION_NUM@/0x012800/' lib/includes/nghttp2/nghttp2ver.h
+    sed -i 's/@PACKAGE_VERSION@/1.50.0/;s/@PACKAGE_VERSION_NUM@/0x013200/' lib/includes/nghttp2/nghttp2ver.h
     popd
 }