Skip to content

Commit

Permalink
Merge pull request #452 from messense/auditwheel-no-symbol-versions
Browse files Browse the repository at this point in the history
Improve error message when auditwheel failed to find versioned offending symbols
  • Loading branch information
konstin authored Mar 1, 2021
2 parents 3d5f2dd + 10a8487 commit 5bf64c8
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/auditwheel/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,19 @@ pub fn auditwheel_rs(
.map(|v| format!("{}_{}", name, v))
.collect();
let offending_symbols = find_incompliant_symbols(&elf, &offending_symbol_versions)?;
let offender = format!(
"{} offending symbols: {}",
library.name,
offending_symbols.join(", ")
);
let offender = if offending_symbols.is_empty() {
format!(
"{} offending versions: {}",
library.name,
offending_symbol_versions.join(", ")
)
} else {
format!(
"{} offending symbols: {}",
library.name,
offending_symbols.join(", ")
)
};
offenders.insert(offender);
}
}
Expand Down

0 comments on commit 5bf64c8

Please sign in to comment.