Skip to content

Commit

Permalink
app-backup/tarsnap: respect AR
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/721914
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Thomas Deutschmann <[email protected]>
  • Loading branch information
Whissi committed Dec 22, 2020
1 parent 468a6c9 commit bcd1e28
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
14 changes: 14 additions & 0 deletions app-backup/tarsnap/files/tarsnap-1.0.39-respect-AR.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
https://bugs.gentoo.org/721914

--- a/Makefile.in
+++ b/Makefile.in
@@ -124,7 +124,7 @@ CONFIG_HEADER = config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
LIBRARIES = $(noinst_LIBRARIES)
-AR = ar
+AR := ar
ARFLAGS = cru
AM_V_AR = $(am__v_AR_@AM_V@)
am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@)

10 changes: 8 additions & 2 deletions app-backup/tarsnap/tarsnap-1.0.39.ebuild
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 1999-2018 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="7"

inherit bash-completion-r1
inherit bash-completion-r1 toolchain-funcs

DESCRIPTION="Online backups for the truly paranoid"
HOMEPAGE="https://www.tarsnap.com/"
Expand All @@ -26,6 +26,8 @@ RDEPEND="
DEPEND="${RDEPEND}
virtual/os-headers" # Required for "magic.h"

PATCHES=( "${FILESDIR}"/${PN}-1.0.39-respect-AR.patch )

S=${WORKDIR}/${PN}-autoconf-${PV}

src_configure() {
Expand All @@ -37,6 +39,10 @@ src_configure() {
$(use_with lzma)
}

src_compile() {
emake AR=$(tc-getAR)
}

src_install() {
default
dobashcomp misc/bash_completion.d/*
Expand Down

0 comments on commit bcd1e28

Please sign in to comment.