vcpkg's x264 port downloads from code.videolan.org, whose GitLab serves the archive behind an anti-bot challenge: CI runners hit curl 7/35 (connection/SSL) or 404 at random, so whether a vcpkg install succeeded was a coin flip. This overlay port is a verbatim copy of the builtin port at baseline 771b0a2e with vcpkg_from_gitlab swapped for vcpkg_from_github against mirror/x264 (byte-identical archive, same SHA512); both workflows now pass --overlay-ports tooling/vcpkg-ports. Verified locally in debian:12: the port downloaded from github.com/mirror/x264 and built libx264.a. No other port in the tree uses code.videolan.org (dav1d/x265 already fetch from GitHub).
30 lines
913 B
Diff
30 lines
913 B
Diff
diff --git a/configure b/configure
|
|
index 5116bb97..e4ff41cc 100755
|
|
--- a/configure
|
|
+++ b/configure
|
|
@@ -1,4 +1,7 @@
|
|
-#!/bin/bash
|
|
+#!/usr/bin/env bash
|
|
+
|
|
+export CFLAGS="${CPPFLAGS} ${CFLAGS}"
|
|
+test "${AS:-:}" = ":" && unset AS
|
|
|
|
if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
|
|
cat <<EOF
|
|
@@ -865,6 +868,7 @@ case $host_cpu in
|
|
AS="${AS-${SRCPATH}/tools/gas-preprocessor.pl -arch aarch64 -as-type armasm -- armasm64 -nologo}"
|
|
else
|
|
AS="${AS-${CC}}"
|
|
+ test "${AS}" = "${CC}" && ASFLAGS="${CPPFLAGS} ${ASFLAGS}"
|
|
fi
|
|
;;
|
|
arm*)
|
|
@@ -883,6 +887,7 @@ case $host_cpu in
|
|
AS="${AS-${SRCPATH}/tools/gas-preprocessor.pl -arch arm -as-type clang -force-thumb -- ${CC} -mimplicit-it=always}"
|
|
else
|
|
AS="${AS-${CC}}"
|
|
+ test "${AS}" = "${CC}" && ASFLAGS="${CPPFLAGS} ${ASFLAGS}"
|
|
fi
|
|
;;
|
|
s390|s390x)
|