Skip to content

Commit

Permalink
meson: Avoid potentially bad sed backup filename when fixing .pc file
Browse files Browse the repository at this point in the history
  • Loading branch information
ximion committed Oct 14, 2023
1 parent 7c1a72e commit b9f2314
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ pkgc.generate(
# builds using libappstream. Fix this issue by post-processing the file.
sed_prog = find_program('sed')
pc_fixup = run_command(sed_prog,
'-i ""',
'-i.old',
'/^Requires.private\|^Libs.private/ d',
join_paths(meson.global_build_root(), 'meson-private', 'appstream.pc'),
meson.global_build_root() / 'meson-private' / 'appstream.pc',
check: false)
if pc_fixup.returncode() != 0
error('Unable to fix up the .pc file:\n' + pc_fixup.stderr())
Expand Down

0 comments on commit b9f2314

Please sign in to comment.