Skip to content

Instantly share code, notes, and snippets.

# For debugging any ./configure linker errors
replace_in_file(self, os.path.join(self.source_folder, "configure"),
"ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'",
"ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS -Bd | tee -a link.log >&5'")
@valgur
valgur / add_hashes.py
Last active January 15, 2025 14:05
Add missing sha256 hashes to conanadata.yml
#!/usr/bin/env python3
import requests
import hashlib
import re
import sys
from pathlib import Path
def get_hash(url):
r = requests.get(url)
@valgur
valgur / fetch-libc-lib-files.py
Created October 8, 2023 16:43
Downloads and extracts all .deb files of libc6-dev and its dependencies for given Ubuntu release
import re
import subprocess
import sys
import tempfile
from pathlib import Path
import requests
def get_package_info(package_name, ubuntu_version, arch):
@valgur
valgur / libc_2.27_vs_2.38_removed.list
Last active October 8, 2023 16:24
Based on .a and .so files installed by Ubuntu in the bionic and mantic releases.
_IO_flush_all_lockp
_IO_getdelim
_IO_helper_overflow
_IO_obstack_overflow
_IO_obstack_printf
_IO_obstack_vprintf
_IO_obstack_xsputn
_IO_str_chk_overflow
_IO_strn_overflow
_IO_vasprintf
aeron/1.41.4 bin/aeronmd_s ['__exp_finite', '__log_finite']
aeron/1.41.4 bin/aeronmd_s ['__exp_finite', '__log_finite']
aeron/1.41.4 lib/libaeron_driver.so ['__exp_finite', '__log_finite']
android-ndk/r25c bin/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-bolt ['__xmknod']
android-ndk/r25c bin/toolchains/llvm/prebuilt/linux-x86_64/lib64/libLLVM-14git.so ['__xmknod']
android-ndk/r25c bin/toolchains/llvm/prebuilt/linux-x86_64/lib64/libclang-cpp.so.14git ['__xmknod']
android-ndk/r25c bin/toolchains/llvm/prebuilt/linux-x86_64/lib64/liblldb.so.14.0.7git ['__xmknod']
android-ndk/r25c bin/toolchains/llvm/prebuilt/linux-x86_64/python3/lib/libpython3.9.so.1.0 ['__xmknod', '__xmknodat']
aravis/0.8.20 bin/arv-camera-test-0.8 ['__dn_expand', '__res_nquery']
aravis/0.8.20 bin/arv-fake-gv-camera-0.8 ['__dn_expand', '__res_nquery']
#!/usr/bin/env python3
import requests
import hashlib
import re
import sys
from pathlib import Path
def get_hash(url):
r = requests.get(url)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@valgur
valgur / math-finite.h.txt
Last active August 4, 2023 13:22
List of symbols defined in math/bits/math-finite.h that were dropped in glibc 2.31. https://elixir.bootlin.com/glibc/glibc-2.30/source/bits/math-finite.h
__acos_finite
__acosf_finite
__acosl_finite
__acosf128_finite
__acosh_finite
__acoshf_finite
__acoshl_finite
__acoshf128_finite
__asin_finite
__asinf_finite
@valgur
valgur / update_deps.py
Last active July 31, 2024 12:54
Update the dependencies of a ConanCenterIndex recipe
#!/usr/bin/env python3
# suppress distutils warning
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)
import datetime
import re
import subprocess
import sys