Skip to content

Instantly share code, notes, and snippets.

View minrk's full-sized avatar

Min RK minrk

View GitHub Profile
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.
@minrk
minrk / bless.py
Created April 4, 2025 10:58 — forked from milljm/bless.py
Recursively seek out and remove duplicate LC_RPATH entries from linked libraries with supplied binary
#!/usr/bin/env python3
''' A tool which searches recursively and removes duplicate loader paths '''
import subprocess
import sys
import os
def run_command(command):
"""Run a shell command and return the output."""
try:
result = subprocess.run(command, check=True, text=True, capture_output=True)

test for gfortran on macOS 15.4

run:

pixi clean
pixi run test  # should fail
pixi run patch # patches libgfortran, libquadmath
pixi run test # should pass
# packages in environment at /srv/conda/envs/notebook:
#
# Name Version Build Channel
_libgcc_mutex 0.1 conda_forge conda-forge
_openmp_mutex 4.5 2_gnu conda-forge
_py-xgboost-mutex 2.0 gpu_0 conda-forge
adlfs 2024.12.0 pyhd8ed1ab_0 conda-forge
affine 2.4.0 pyhd8ed1ab_1 conda-forge
aiobotocore 2.19.0 pyhd8ed1ab_0 conda-forge
aiohappyeyeballs 2.4.4 pyhd8ed1ab_1 conda-forge
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.
package:
name: test
version: 1.0.0
source:
url: https://example.org
sha256: 85866aa052a5a6153468ba31712ea49db6b7d3858d6b3d3f25b7fa926e04691f
requirements:
host:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
version: 6
environments:
default:
channels:
- url: https://conda.anaconda.org/conda-forge/
packages:
osx-arm64:
- conda: https://conda.anaconda.org/conda-forge/osx-arm64/c-compiler-1.9.0-hdf49b6b_0.conda
- conda: https://conda.anaconda.org/conda-forge/osx-arm64/ca-certificates-2025.1.31-hf0a4a13_0.conda
- conda: https://conda.anaconda.org/conda-forge/osx-arm64/cctools-1010.6-hb4fb6a3_3.conda