Logo
Explore Help
Sign In
talexander/nixpkgs
1
0
Fork 0
You've already forked nixpkgs
Code Issues Pull Requests Releases Activity
nixpkgs/pkgs/build-support/bintools-wrapper/llvm-ranlib-wrapper.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
240 B
Bash
Raw Normal View History

llvmPackages.bintuils: Hack ranlib to ignore `-t` Old versions of libtool for OpenBSD insist on adding the `-t` flag to ranlib, which updates the timestamp. llvm-ranlib does not support `-t` and as no plans to do so [1], since it makes builds less reproducable. OpenBSD upstream deals with this by patching ranlib to ignore the `-t` flag [2]. Instead of writing patches for all LLVM versions or re-running `autoreconf` on all packages that use libtool, we can wrap ranlib to ignore the flag. [1]: https://github.com/llvm/llvm-project/issues/57129 [2]: https://github.com/openbsd/src/commit/d00990cc11fce25520b9dde416bb8cf50990e992
2024-06-20 18:09:58 -04:00
#! @shell@
# shellcheck shell=bash
args=()
for p in "$@"; do
case "$p" in
-t)
# Skip, LLVM ranlib doesn't support
;;
*)
args+=("$p")
;;
esac
done
@prog@ "${args[@]}"
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 4201ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API