From 3d76fd2a63cd75d1ab29fdb81cef1014c50a9eff Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 2 Jun 2024 04:37:30 +0100 Subject: [PATCH] app-arch/xz-utils: cater to libarchive tar harder Closes: https://bugs.gentoo.org/933200 Signed-off-by: Sam James --- app-arch/xz-utils/xz-utils-5.6.2.ebuild | 12 ++++++++---- app-arch/xz-utils/xz-utils-9999.ebuild | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/app-arch/xz-utils/xz-utils-5.6.2.ebuild b/app-arch/xz-utils/xz-utils-5.6.2.ebuild index 1a3ca64e6cc26..a5c27989d3cc6 100644 --- a/app-arch/xz-utils/xz-utils-5.6.2.ebuild +++ b/app-arch/xz-utils/xz-utils-5.6.2.ebuild @@ -116,10 +116,14 @@ multilib_src_compile() { if use pgo ; then emake CFLAGS="${CFLAGS} ${pgo_generate_flags}" -k check - local tar_pgo_args=( - --mtime=@2718281828 - ) - has_version -b "app-alternatives/tar[gnu]" && tar_pgo_args+=( --sort=name ) + local tar_pgo_args=() + + if has_version -b "app-alternatives/tar[gnu]" ; then + tar_pgo_args+=( + --mtime=@2718281828 + --sort=name + ) + fi if multilib_is_native_abi ; then ( diff --git a/app-arch/xz-utils/xz-utils-9999.ebuild b/app-arch/xz-utils/xz-utils-9999.ebuild index 1a3ca64e6cc26..a5c27989d3cc6 100644 --- a/app-arch/xz-utils/xz-utils-9999.ebuild +++ b/app-arch/xz-utils/xz-utils-9999.ebuild @@ -116,10 +116,14 @@ multilib_src_compile() { if use pgo ; then emake CFLAGS="${CFLAGS} ${pgo_generate_flags}" -k check - local tar_pgo_args=( - --mtime=@2718281828 - ) - has_version -b "app-alternatives/tar[gnu]" && tar_pgo_args+=( --sort=name ) + local tar_pgo_args=() + + if has_version -b "app-alternatives/tar[gnu]" ; then + tar_pgo_args+=( + --mtime=@2718281828 + --sort=name + ) + fi if multilib_is_native_abi ; then (