sane curl fork that could possibly be merged upstream
sane curl fork that could possibly be merged upstream
this is potentially useful so why destroy all chances of including this upstream . start over in a sane fashion. this might work by a miracle in GNU libc but any other flavours and it falls apart. this could possibly be merged and I could fix the well intended but broken Sid paths to some things that require less work
sudo apt install -y libbrotli-dev libnghttp2-dev android-libboringssl-dev
# to-do fix Sid and remove all this
PREFIX=/usr
P=android
p=/opt/boringssl
HOST=$(gcc -dumpmachine)
LIBDIR=$PREFIX/lib/$HOST
INCDIR=$PREFIX/include
mkdir $p -p
ln -s $LIBDIR/$P $p/lib
ln -s $INCDIR/$P/openssl $p/openssl
gh c https://github.com/curl/curl -b curl-8_1_1
patch -p1 -i ~/curl-impersonate/chrome/patches/curl-impersonate.patch
cmake . -B build -GNinja -DCURL_BROTLI=ON -DUSE_NGHTTP2=ON -DOPENSSL_ROOT_DIR=$PREFIX/opt/boringssl
curl_chrome116 -Iv $url
Sid repo por favour ? ? url
Debian Sid use a complicated prefix system that curl doesn't understand $LIBDIR/prefix $INCDIR/prefix . if someone could point me to the Sid repo I could propose a change . I just can't find it and probably for the better since I would argue all day long with them to make life easier for everyone
apt-file list android-libboringssl-dev
android-libboringssl-dev: /usr/include/android/openssl/base.h
android-libboringssl-dev: /usr/lib/aarch64-linux-gnu/android/libssl.so
curl use a folder structure that comes directly from -DCMAKE_INSTALL_PREFIX=abc
https://github.com/google/boringssl
cmake . -B build -GNinja -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=$PREFIX/opt/boringssl
sudo ninja -C build install
tree /opt
/opt
└── boringssl
├── lib
│ ├── libcrypto.so -> libcrypto.so.0
│ ├── libcrypto.so.0
│ ├── libssl.so -> libssl.so.0
│ └── libssl.so.0
└── openssl
├── aead.h
├── aes.h
├── x509.h
├── x509_vfy.h
└── x509v3.h
4 directories, 88 files
Source: lwthiker/curl-impersonate