commit:     3d76fd2a63cd75d1ab29fdb81cef1014c50a9eff
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jun  2 03:37:30 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jun  2 03:37:30 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d76fd2a

app-arch/xz-utils: cater to libarchive tar harder

Closes: https://bugs.gentoo.org/933200
Signed-off-by: Sam James <sam <AT> gentoo.org>

 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 1a3ca64e6cc2..a5c27989d3cc 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 1a3ca64e6cc2..a5c27989d3cc 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
                        (

Reply via email to