Etapa G: prep frontera git2 — cargo-audit/generate/outdated (openssl + libgit2 vendored)
Aplica el mismo patrón openssl a los cargo-* (dep 'openssl' ⇒ OPENSSL_DIR) y deja que libgit2-sys vendoree su propio libgit2 con cmake (sin dep espuria). cargo-audit: además 'cargo auditable'→'cargo build', fix path '../target'→'target', dep 'openssl-dev>3'→'openssl'. Quedan staged para la próxima granja (validar el vendoring de libgit2 con zig-cc/cmake). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -20,18 +20,18 @@ flags = []
|
||||
# de build() de Alpine (traducido; el lab provee $CBUILD/$CHOST — Etapa G Fase 3; revisá --shared para estático):
|
||||
compile = '''
|
||||
_abuild_phase() {
|
||||
cargo auditable build --release --frozen --features fix
|
||||
cargo build --release --frozen --features fix
|
||||
}
|
||||
_abuild_phase
|
||||
'''
|
||||
# de package() de Alpine (traducido $pkgdir→/out):
|
||||
install = '''
|
||||
_abuild_phase() {
|
||||
install -Dm 755 ../target/release/cargo-audit -t "/out/usr/bin"
|
||||
install -Dm 755 target/release/cargo-audit -t "/out/usr/bin"
|
||||
install -Dm 644 -t "/out/usr/share/doc/cargo-audit" README.md
|
||||
}
|
||||
_abuild_phase
|
||||
'''
|
||||
|
||||
[deps]
|
||||
build = ["openssl-dev>3"]
|
||||
build = ["openssl"]
|
||||
|
||||
@@ -20,3 +20,6 @@ install = "mkdir -p /out/usr/bin && cp target/release/cargo-generate /out/usr/bi
|
||||
|
||||
# buildInputs de nix (NO deps de hammer — cargo vendorea; backend Rust por
|
||||
# defecto). Si algún sys-crate C falla, adaptá per-paquete (patch/feature): git-minimal, libgit2, openssl
|
||||
|
||||
[deps]
|
||||
build = ["openssl"]
|
||||
|
||||
@@ -20,3 +20,6 @@ install = "mkdir -p /out/usr/bin && cp target/release/cargo-outdated /out/usr/bi
|
||||
|
||||
# buildInputs de nix (NO deps de hammer — cargo vendorea; backend Rust por
|
||||
# defecto). Si algún sys-crate C falla, adaptá per-paquete (patch/feature): openssl
|
||||
|
||||
[deps]
|
||||
build = ["openssl"]
|
||||
|
||||
Reference in New Issue
Block a user